Search in sources :

Example 21 with Section

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

the class SectionsHaiti method getIdentifierSection.

@Override
public Section getIdentifierSection() {
    Section s = new Section();
    s.setId("patient-identification-section");
    s.setLabel("registrationapp.patient.identifiers.label");
    if (ConfigDescriptor.Specialty.HIV.equals(config.getSpecialty())) {
        s.addQuestion(getHivDossierNumber());
        s.addQuestion(getNumeroIdentificationFiscal());
        s.addQuestion(getCarteDIdentificationNationale());
    }
    return s;
}
Also used : Section(org.openmrs.module.registrationapp.model.Section)

Example 22 with Section

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

the class SectionsHaiti method getInsuranceSection.

private Section getInsuranceSection() {
    Section s = new Section();
    s.setId("insurance");
    s.setLabel("zl.registration.patient.insurance.label");
    // hide in COVID locations (because of tablet entry)
    s.setRequire(RequireUtil.sessionLocationDoesNotHaveTag("Tablet Entry Location"));
    s.addQuestion(getInsuranceNameAndNumber());
    return s;
}
Also used : Section(org.openmrs.module.registrationapp.model.Section)

Example 23 with Section

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

the class SectionsMexico method getIdentifierSection.

@Override
public Section getIdentifierSection() {
    Section s = new Section();
    s.setId("patient-identification-section");
    s.setLabel("registrationapp.patient.identifiers.label");
    s.addQuestion(getNationalIDNumber());
    return s;
}
Also used : Section(org.openmrs.module.registrationapp.model.Section)

Example 24 with Section

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

the class SectionsMexico method getRelationshipsSection.

private Section getRelationshipsSection() {
    Section s = new Section();
    s.setId("relationshipsInfo");
    s.setLabel("registrationapp.person.relationship");
    Question q = new Question();
    q.setId("relationshipsInfoQuestion");
    q.setLegend("registrationapp.person.relationship.label");
    q.setHeader("registrationapp.person.relationship.question");
    Field f = new Field();
    f.setType("personRelationships");
    Map<String, String> m = new HashMap<String, String>();
    m.put("providerName", "registrationapp");
    m.put("fragmentId", "field/personRelationship");
    f.setWidget(toObjectNode(m));
    q.addField(f);
    s.addQuestion(q);
    return s;
}
Also used : Field(org.openmrs.module.registrationapp.model.Field) HashMap(java.util.HashMap) Question(org.openmrs.module.registrationapp.model.Question) Section(org.openmrs.module.registrationapp.model.Section)

Example 25 with Section

use of org.openmrs.module.registrationapp.model.Section 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

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