Search in sources :

Example 11 with Section

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

the class SectionsDefault method getSocialSection.

public Section getSocialSection() {
    Section s = new Section();
    s.setId("social");
    s.setLabel("zl.registration.patient.social.label");
    s.addQuestion(getBirthplaceQuestion());
    s.addQuestion(getCivilStatusQuestion());
    s.addQuestion(getOccupationQuestion());
    return s;
}
Also used : Section(org.openmrs.module.registrationapp.model.Section)

Example 12 with Section

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

the class SectionsPeru method getSocialSection.

@Override
public Section getSocialSection() {
    Section s = new Section();
    s.setId("social");
    s.setLabel("zl.registration.patient.social.label");
    s.addQuestion(getCivilStatusQuestion());
    s.addQuestion(getLevelOfStudyQuestion());
    s.addQuestion(getIdentityGender());
    s.addQuestion(getOccupationQuestion());
    s.addQuestion(getBirthplaceQuestion());
    return s;
}
Also used : Section(org.openmrs.module.registrationapp.model.Section)

Example 13 with Section

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

the class PatientRegistrationApp method getIdCardPrintSection.

public Section getIdCardPrintSection() {
    Section s = new Section();
    s.setId("idcardSection");
    s.setLabel("zl.registration.patient.idcard.label");
    s.addQuestion(getIdCardPrintQuestion());
    return s;
}
Also used : Section(org.openmrs.module.registrationapp.model.Section)

Example 14 with Section

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

the class PatientRegistrationApp method getContactsSection.

public Section getContactsSection(Config config) {
    Section s = new Section();
    s.setId("contacts");
    s.setLabel("zl.registration.patient.contactPerson.label");
    // TODO: Replace with property in RegistrationConfig
    boolean required = config.getCountry() == ConfigDescriptor.Country.HAITI;
    s.addQuestion(getContactNameAndRelationship(config, required));
    s.addQuestion(getContactAddress(config, required));
    s.addQuestion(getContactPhoneNumber(config, required));
    return s;
}
Also used : Section(org.openmrs.module.registrationapp.model.Section)

Example 15 with Section

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

the class PatientRegistrationApp method getBiometricsSection.

public Section getBiometricsSection(Config config) {
    Section s = new Section();
    s.setId("patient-biometrics-section");
    s.setLabel("zl.registration.patient.biometrics.label");
    s.setSkipConfirmation(true);
    s.addQuestion(getBiometricsFingerprintsQuestion(config));
    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