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