Search in sources :

Example 1 with SocialConfigDescriptor

use of org.openmrs.module.pihcore.config.registration.SocialConfigDescriptor in project openmrs-module-pihcore by PIH.

the class SectionsMexico method getSocialSection.

@Override
public Section getSocialSection() {
    Section s = new Section();
    s.setId("social");
    s.setLabel("zl.registration.patient.social.label");
    SocialConfigDescriptor socConfig = config.getRegistrationConfig().getSocial();
    if (socConfig != null) {
        if (socConfig.getIsImmigrant() != null) {
            s.addQuestion(getIsImmigrantQuestion());
        }
        if (socConfig.getIsIndigenous() != null) {
            s.addQuestion(getIsIndigenousQuestion());
        }
        if (socConfig.getIsDisabled() != null) {
            s.addQuestion(getIsDisabledQuestion());
        }
        if (socConfig.getCanRead() != null) {
            s.addQuestion(getCanReadQuestion());
        }
        if (socConfig.getActiveCasefinding() != null) {
            s.addQuestion(getActiveCasefindingQuestion());
        }
    }
    s.addQuestion(getCivilStatusQuestion());
    s.addQuestion(getOccupationQuestion());
    return s;
}
Also used : SocialConfigDescriptor(org.openmrs.module.pihcore.config.registration.SocialConfigDescriptor) Section(org.openmrs.module.registrationapp.model.Section)

Example 2 with SocialConfigDescriptor

use of org.openmrs.module.pihcore.config.registration.SocialConfigDescriptor in project openmrs-module-pihcore by PIH.

the class SectionsSierraLeone method getSocialSection.

@Override
public Section getSocialSection() {
    Section s = new Section();
    s.setId("social");
    s.setLabel("zl.registration.patient.social.label");
    SocialConfigDescriptor socConfig = config.getRegistrationConfig().getSocial();
    s.addQuestion(getOccupationQuestion());
    return s;
}
Also used : SocialConfigDescriptor(org.openmrs.module.pihcore.config.registration.SocialConfigDescriptor) Section(org.openmrs.module.registrationapp.model.Section)

Aggregations

SocialConfigDescriptor (org.openmrs.module.pihcore.config.registration.SocialConfigDescriptor)2 Section (org.openmrs.module.registrationapp.model.Section)2