Search in sources :

Example 16 with Section

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

the class PatientRegistrationApp method getInsuranceSection.

public Section getInsuranceSection(Config config) {
    Section s = new Section();
    s.setId("insurance");
    s.setLabel("zl.registration.patient.insurance.label");
    s.addQuestion(getInsuranceNameAndNumber(config));
    return s;
}
Also used : Section(org.openmrs.module.registrationapp.model.Section)

Example 17 with Section

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

the class PatientRegistrationApp method getContactInfoSection.

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

Example 18 with Section

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

the class PatientRegistrationApp method getDemographicsSection.

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

Example 19 with Section

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

the class SectionsHaiti method getContactsSection.

public Section getContactsSection() {
    Section s = super.getContactsSection();
    // we use a simplified registration in "tablet entry" locations
    s.setRequire(RequireUtil.sessionLocationDoesNotHaveTag("Tablet Entry Location"));
    return s;
}
Also used : Section(org.openmrs.module.registrationapp.model.Section)

Example 20 with Section

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

the class SectionsHaiti method getSocialSection.

@Override
public Section getSocialSection() {
    Section s = new Section();
    s.setId("social");
    s.setLabel("zl.registration.patient.social.label");
    // we use a simplified registration in "tablet entry" locations
    s.setRequire(RequireUtil.sessionLocationDoesNotHaveTag("Tablet Entry Location"));
    s.addQuestion(getBirthplaceQuestion());
    s.addQuestion(getCivilStatusQuestion());
    s.addQuestion(getOccupationQuestion());
    s.addQuestion(getReligionQuestion());
    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