Search in sources :

Example 6 with Section

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;
}
Also used : Section(org.openmrs.module.registrationapp.model.Section)

Example 7 with Section

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;
}
Also used : Section(org.openmrs.module.registrationapp.model.Section)

Example 8 with Section

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;
}
Also used : Section(org.openmrs.module.registrationapp.model.Section)

Example 9 with Section

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;
}
Also used : Section(org.openmrs.module.registrationapp.model.Section)

Example 10 with Section

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;
}
Also used : Section(org.openmrs.module.registrationapp.model.Section)

Aggregations

Section (org.openmrs.module.registrationapp.model.Section)29 HashMap (java.util.HashMap)2 SocialConfigDescriptor (org.openmrs.module.pihcore.config.registration.SocialConfigDescriptor)2 Field (org.openmrs.module.registrationapp.model.Field)2 Question (org.openmrs.module.registrationapp.model.Question)2 AddressField (org.openmrs.module.addresshierarchy.AddressField)1 DemographicsConfigDescriptor (org.openmrs.module.pihcore.config.registration.DemographicsConfigDescriptor)1