use of org.openmrs.module.registrationapp.model.Question in project openmrs-module-pihcore by PIH.
the class SectionsHaiti method getHivDossierNumber.
private Question getHivDossierNumber() {
Question q = new Question();
q.setId("hivemr-dossier-id");
q.setLegend("HIV Dossier");
q.setHeader("ui.i18n.PatientIdentifierType.name." + ZlConfigConstants.PATIENTIDENTIFIERTYPE_HIVDOSSIERNUMBER_UUID);
Field f = new Field();
f.setFormFieldName("patientIdentifier" + ZlConfigConstants.PATIENTIDENTIFIERTYPE_HIVDOSSIERNUMBER_UUID);
f.setUuid(ZlConfigConstants.PATIENTIDENTIFIERTYPE_HIVDOSSIERNUMBER_UUID);
f.setType("patientIdentifier");
f.setWidget(getTextFieldWidget(16));
q.addField(f);
return q;
}
use of org.openmrs.module.registrationapp.model.Question in project openmrs-module-pihcore by PIH.
the class SectionsMexico method getMexicoInsurance.
private Question getMexicoInsurance() {
Question q = new Question();
q.setId("insuranceLabel");
q.setLegend("zl.registration.patient.insurance.insuranceName.label");
{
Field f = new Field();
f.setFormFieldName("obsgroup.PIH:Insurance CONSTRUCT.obs.PIH:Mexico Insurance Coded");
f.setLabel("zl.registration.patient.insurance.insuranceName.question");
f.setType("obsgroup");
f.setWidget(getTextFieldWidget(30));
DropdownWidget w = new DropdownWidget();
w.getConfig().setExpanded(true);
w.getConfig().addOption("PIH:Seguro Popular", "zl.registration.patient.insurance.seguro_popular.label");
w.getConfig().addOption("PIH:Mexican Social Security Institute", "zl.registration.patient.insurance.imss.label");
w.getConfig().addOption("PIH:Institute of Social Security of Workers of the State of Chiapas", "zl.registration.patient.insurance.isstech.label");
w.getConfig().addOption("PIH:OTHER", "zl.registration.patient.insurance.other.label");
w.getConfig().addOption("PIH:NONE", "zl.registration.patient.insurance.none.label");
f.setWidget(toObjectNode(w));
q.addField(f);
}
{
Field f = new Field();
f.setFormFieldName("obsgroup.PIH:Insurance CONSTRUCT.obs.PIH:Insurance policy number");
f.setLabel("zl.registration.patient.insurance.insuranceNumber.label");
f.setType("obsgroup");
f.setWidget(getTextFieldWidget(30));
q.addField(f);
}
{
Field f = new Field();
f.setFormFieldName("obsgroup.PIH:Insurance CONSTRUCT.obs.PIH:Insurance company name (text)");
f.setLabel("zl.registration.patient.insurance.insuranceNameOther.label");
f.setType("obsgroup");
f.setWidget(getTextFieldWidget(30));
q.addField(f);
}
return q;
}
use of org.openmrs.module.registrationapp.model.Question in project openmrs-module-pihcore by PIH.
the class SectionsSierraLeone method geWellbodyEmrId.
private Question geWellbodyEmrId() {
Question q = new Question();
q.setId("wellbody-emr-id");
q.setLegend("Wellbody EMR ID");
q.setHeader("ui.i18n.PatientIdentifierType.name." + SierraLeoneConfigConstants.PATIENTIDENTIFIERTYPE_WELLBODYEMRID_UUID);
Field f = new Field();
f.setFormFieldName("patientIdentifier" + SierraLeoneConfigConstants.PATIENTIDENTIFIERTYPE_WELLBODYEMRID_UUID);
f.setUuid(SierraLeoneConfigConstants.PATIENTIDENTIFIERTYPE_WELLBODYEMRID_UUID);
f.setType("patientIdentifier");
f.setWidget(getTextFieldWidget(16));
q.addField(f);
return q;
}
use of org.openmrs.module.registrationapp.model.Question in project openmrs-module-pihcore by PIH.
the class SectionsSierraLeone method geKghEmrId.
private Question geKghEmrId() {
Question q = new Question();
q.setId("kgh-emr-id");
q.setLegend("KGH EMR ID");
q.setHeader("ui.i18n.PatientIdentifierType.name." + SierraLeoneConfigConstants.PATIENTIDENTIFIERTYPE_KGHEMRID_UUID);
Field f = new Field();
f.setFormFieldName("patientIdentifier" + SierraLeoneConfigConstants.PATIENTIDENTIFIERTYPE_KGHEMRID_UUID);
f.setUuid(SierraLeoneConfigConstants.PATIENTIDENTIFIERTYPE_KGHEMRID_UUID);
f.setType("patientIdentifier");
f.setWidget(getTextFieldWidget(16));
q.addField(f);
return q;
}
use of org.openmrs.module.registrationapp.model.Question in project openmrs-module-pihcore by PIH.
the class SectionsDefault method getCanReadQuestion.
public Question getCanReadQuestion() {
Question q = new Question();
q.setId("canReadLabel");
q.setLegend("zl.registration.patient.canRead.label");
q.setHeader("zl.registration.patient.canRead.question");
Field f = new Field();
f.setFormFieldName("obs.CIEL:159400");
f.setType("obs");
f.setWidget(getYesNoDropdownWidget());
if (config.getRegistrationConfig().getSocial().getCanRead().getRequired()) {
f.setCssClasses(Arrays.asList("required"));
}
q.addField(f);
return q;
}
Aggregations