Search in sources :

Example 1 with DemographicsConfigDescriptor

use of org.openmrs.module.pihcore.config.registration.DemographicsConfigDescriptor 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)

Aggregations

DemographicsConfigDescriptor (org.openmrs.module.pihcore.config.registration.DemographicsConfigDescriptor)1 Section (org.openmrs.module.registrationapp.model.Section)1