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;
}
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;
}
Aggregations