use of org.openmrs.module.registrationapp.model.Section in project openmrs-module-pihcore by PIH.
the class SectionsSierraLeone method getIdentifierSection.
@Override
public Section getIdentifierSection() {
Section s = new Section();
s.setId("patient-identification-section");
s.setLabel("registrationapp.patient.identifiers.label");
if (config.getCountry().equals(ConfigDescriptor.Country.SIERRA_LEONE) && config.getSite().equalsIgnoreCase("KGH")) {
s.addQuestion(geWellbodyEmrId());
} else if (config.getCountry().equals(ConfigDescriptor.Country.SIERRA_LEONE) && config.getSite().equalsIgnoreCase("WELLBODY")) {
s.addQuestion(geKghEmrId());
}
return s;
}
use of org.openmrs.module.registrationapp.model.Section in project openmrs-module-pihcore by PIH.
the class SectionsDefault method getIdCardPrintSection.
public Section getIdCardPrintSection() {
Section s = new Section();
s.setId("idcardSection");
s.setLabel("zl.registration.patient.idcard.label");
s.addQuestion(getIdCardPrintQuestion());
s.setRequire(RequireUtil.sessionLocationDoesNotHaveTag("Tablet Entry Location"));
return s;
}
use of org.openmrs.module.registrationapp.model.Section in project openmrs-module-pihcore by PIH.
the class SectionsDefault method getContactInfoSection.
public Section getContactInfoSection() {
Section s = new Section();
s.setId("contactInfo");
s.setLabel("registrationapp.patient.contactInfo.label");
s.addQuestion(getAddressQuestion());
s.addQuestion(getTelephoneNumberQuestion());
return s;
}
use of org.openmrs.module.registrationapp.model.Section in project openmrs-module-pihcore by PIH.
the class SectionsDefault method getContactsSection.
public Section getContactsSection() {
Section s = new Section();
s.setId("contacts");
s.setLabel("zl.registration.patient.contactPerson.label");
s.addQuestion(getContactNameAndRelationship());
s.addQuestion(getContactAddress());
s.addQuestion(getContactPhoneNumber());
return s;
}
use of org.openmrs.module.registrationapp.model.Section in project openmrs-module-pihcore by PIH.
the class SectionsDefault method getIdentifierSection.
public Section getIdentifierSection() {
Section s = new Section();
s.setId("patient-identification-section");
s.setLabel("registrationapp.patient.identifiers.label");
return s;
}
Aggregations