Search in sources :

Example 26 with Section

use of org.openmrs.module.registrationapp.model.Section in project openmrs-module-pihcore by PIH.

the class SectionsDefault method getBiometricsSection.

public Section getBiometricsSection() {
    Section s = new Section();
    s.setId("patient-biometrics-section");
    s.setLabel("zl.registration.patient.biometrics.label");
    s.setSkipConfirmation(true);
    s.addQuestion(getBiometricsFingerprintsQuestion());
    s.setRequire(RequireUtil.sessionLocationDoesNotHaveTag("Tablet Entry Location"));
    return s;
}
Also used : Section(org.openmrs.module.registrationapp.model.Section)

Example 27 with Section

use of org.openmrs.module.registrationapp.model.Section in project openmrs-module-pihcore by PIH.

the class SectionsDefault method getDemographicsSection.

public Section getDemographicsSection() {
    Section s = new Section();
    s.setId("demographics");
    s.setLabel("");
    DemographicsConfigDescriptor demsConfig = config.getRegistrationConfig().getDemographics();
    if (demsConfig != null) {
        if (demsConfig.getMothersName() != null) {
            s.addQuestion(getMothersNameQuestion());
        }
    }
    return s;
}
Also used : DemographicsConfigDescriptor(org.openmrs.module.pihcore.config.registration.DemographicsConfigDescriptor) Section(org.openmrs.module.registrationapp.model.Section)

Example 28 with Section

use of org.openmrs.module.registrationapp.model.Section in project openmrs-module-pihcore by PIH.

the class SectionsPeru method getContactInfoSection.

public Section getContactInfoSection() {
    Section s = new Section();
    s.setId("contactInfo");
    s.setLabel("registrationapp.patient.contactInfo.label");
    s.addQuestion(getAddressQuestion());
    s.addQuestion(getTelephoneNumberQuestion());
    s.addQuestion(getCellphoneNumberQuestion());
    s.addQuestion(getEmailQuestion());
    return s;
}
Also used : Section(org.openmrs.module.registrationapp.model.Section)

Example 29 with Section

use of org.openmrs.module.registrationapp.model.Section in project openmrs-module-pihcore by PIH.

the class SectionsPeru method getIdentifierSection.

@Override
public Section getIdentifierSection() {
    Section s = new Section();
    s.setId("patient-identification-section");
    s.setLabel("registrationapp.patient.identifiers.label");
    s.addQuestion(getDNIdocument());
    s.addQuestion(getPassportdocument());
    s.addQuestion(getInmigrationCard());
    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