use of org.openmrs.module.registrationapp.model.DropdownWidget in project openmrs-module-mirebalais by PIH.
the class PatientRegistrationApp method getInsuranceNameAndNumber.
private Question getInsuranceNameAndNumber(Config config) {
Question q = new Question();
q.setId("insuranceNameLabel");
q.setLegend("zl.registration.patient.insurance.insuranceName.question");
q.setHeader("zl.registration.patient.insurance.insuranceName.label");
{
Field f = new Field();
f.setFormFieldName("obsgroup.PIH:Insurance CONSTRUCT.obs.PIH:Haiti insurance company name");
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:NONE", "zl.registration.patient.insurance.none.label");
w.getConfig().addOption("PIH:AIC", "zl.registration.patient.insurance.aic.label");
w.getConfig().addOption("PIH:INASSA", "zl.registration.patient.insurance.inassa.label");
w.getConfig().addOption("PIH:CAH", "zl.registration.patient.insurance.cah.label");
w.getConfig().addOption("PIH:CONAM", "zl.registration.patient.insurance.conam.label");
w.getConfig().addOption("PIH:Sogebank Assurance", "zl.registration.patient.insurance.sogebank.label");
w.getConfig().addOption("PIH:UniAssurances", "zl.registration.patient.insurance.uniAssurances.label");
w.getConfig().addOption("PIH:GMC Henner", "zl.registration.patient.insurance.gmcHenner.label");
w.getConfig().addOption("PIH:CIGNA (Vanbreda)", "zl.registration.patient.insurance.cigna.label");
w.getConfig().addOption("PIH:UNKNOWN", "zl.registration.patient.insurance.unknown.label");
w.getConfig().addOption("PIH:OTHER", "zl.registration.patient.insurance.other.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.DropdownWidget in project openmrs-module-mirebalais by PIH.
the class PatientRegistrationApp method getIdCardPrintQuestion.
public Question getIdCardPrintQuestion() {
Question q = new Question();
q.setId("idcardLabel");
q.setLegend("zl.registration.patient.idcard.label");
q.setHeader("zl.registration.patient.idcard.question");
Field f = new Field();
f.setFormFieldName("obs.PIH:ID Card Printing Requested");
f.setType("obs");
DropdownWidget w = new DropdownWidget();
w.getConfig().setExpanded(true);
w.getConfig().setHideEmptyLabel(true);
w.getConfig().setInitialValue("PIH:YES");
w.getConfig().addOption("PIH:YES", "emr.yes");
w.getConfig().addOption("PIH:NO", "emr.no");
f.setWidget(toObjectNode(w));
q.addField(f);
return q;
}
use of org.openmrs.module.registrationapp.model.DropdownWidget in project openmrs-module-pihcore by PIH.
the class SectionsHaiti method getInsuranceNameAndNumber.
private Question getInsuranceNameAndNumber() {
Question q = new Question();
q.setId("insuranceNameLabel");
q.setLegend("zl.registration.patient.insurance.insuranceName.question");
q.setHeader("zl.registration.patient.insurance.insuranceName.label");
{
Field f = new Field();
f.setFormFieldName("obsgroup.PIH:Insurance CONSTRUCT.obs.PIH:Haiti insurance company name");
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:NONE", "zl.registration.patient.insurance.none.label");
w.getConfig().addOption("PIH:AIC", "zl.registration.patient.insurance.aic.label");
w.getConfig().addOption("PIH:INASSA", "zl.registration.patient.insurance.inassa.label");
w.getConfig().addOption("PIH:CAH", "zl.registration.patient.insurance.cah.label");
w.getConfig().addOption("PIH:CONAM", "zl.registration.patient.insurance.conam.label");
w.getConfig().addOption("PIH:Sogebank Assurance", "zl.registration.patient.insurance.sogebank.label");
w.getConfig().addOption("PIH:UniAssurances", "zl.registration.patient.insurance.uniAssurances.label");
w.getConfig().addOption("PIH:GMC Henner", "zl.registration.patient.insurance.gmcHenner.label");
w.getConfig().addOption("PIH:CIGNA (Vanbreda)", "zl.registration.patient.insurance.cigna.label");
w.getConfig().addOption("PIH:UNKNOWN", "zl.registration.patient.insurance.unknown.label");
w.getConfig().addOption("PIH:OTHER", "zl.registration.patient.insurance.other.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.DropdownWidget 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.DropdownWidget in project openmrs-module-pihcore by PIH.
the class SectionsDefault method getCivilStatusQuestion.
public Question getCivilStatusQuestion() {
Question q = new Question();
q.setId("civilStatusLabel");
q.setHeader("zl.registration.patient.civilStatus.question");
q.setLegend("zl.registration.patient.civilStatus.label");
Field f = new Field();
f.setFormFieldName("obs.PIH:CIVIL STATUS");
f.setType("obs");
DropdownWidget w = new DropdownWidget();
w.getConfig().setExpanded(true);
w.getConfig().addOption("PIH:SINGLE OR A CHILD", "zl.registration.patient.civilStatus.single.label");
w.getConfig().addOption("PIH:MARRIED", "zl.registration.patient.civilStatus.married.label");
w.getConfig().addOption("PIH:LIVING WITH PARTNER", "zl.registration.patient.civilStatus.livingWithPartner.label");
w.getConfig().addOption("PIH:SEPARATED", "zl.registration.patient.civilStatus.separated.label");
w.getConfig().addOption("PIH:DIVORCED", "zl.registration.patient.civilStatus.divorced.label");
w.getConfig().addOption("PIH:WIDOWED", "zl.registration.patient.civilStatus.widowed.label");
f.setWidget(toObjectNode(w));
q.addField(f);
return q;
}
Aggregations