use of org.openmrs.module.registrationapp.model.Field in project openmrs-module-pihcore by PIH.
the class SectionsDefault 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");
f.setWidget(getYesNoDropdownWidget("PIH:YES"));
q.addField(f);
return q;
}
use of org.openmrs.module.registrationapp.model.Field in project openmrs-module-pihcore by PIH.
the class SectionsDefault method getOccupationQuestion.
public Question getOccupationQuestion() {
Question q = new Question();
q.setId("occupationLabel");
q.setLegend("zl.registration.patient.occupation.label");
q.setHeader("zl.registration.patient.occupation.question");
Field f = new Field();
f.setFormFieldName("obs.PIH:Occupation");
f.setType("obs");
DropdownWidget w = new DropdownWidget();
// ordered alphabetically in English, with Unemployed and Other last
w.getConfig().addOption("PIH:BREWER", "zl.registration.patient.occupation.brewer.label");
w.getConfig().addOption("CIEL:162944", "zl.registration.patient.occupation.civilServant.label");
w.getConfig().addOption("PIH:COMMERCE", "zl.registration.patient.occupation.commerce.label");
w.getConfig().addOption("PIH:DRIVER", "zl.registration.patient.occupation.driver.label");
w.getConfig().addOption("PIH:FACTORY WORKER", "zl.registration.patient.occupation.factoryWorker.label");
w.getConfig().addOption("PIH:FARMER", "zl.registration.patient.occupation.farmer.label");
w.getConfig().addOption("CIEL:159674", "zl.registration.patient.occupation.fisherman.label");
w.getConfig().addOption("PIH:FRUIT OR VEGETABLE SELLER", "zl.registration.patient.occupation.fruitOrVegetableVendor.label");
w.getConfig().addOption("PIH:HEALTH CARE WORKER", "zl.registration.patient.occupation.healthCareWorker.label");
w.getConfig().addOption("PIH:1404", "zl.registration.patient.occupation.housework.label");
w.getConfig().addOption("PIH:HOUSEWORK/FIELDWORK", "zl.registration.patient.occupation.houseworkFieldwork.label");
w.getConfig().addOption("PIH:MANUAL LABORER", "zl.registration.patient.occupation.manualLaborer.label");
w.getConfig().addOption("CIEL:162945", "zl.registration.patient.occupation.marketVendor.label");
w.getConfig().addOption("PIH:MINER", "zl.registration.patient.occupation.miner.label");
w.getConfig().addOption("PIH:PROFESSIONAL", "zl.registration.patient.occupation.professional.label");
w.getConfig().addOption("PIH:RETIRED", "zl.registration.patient.occupation.retired.label");
w.getConfig().addOption("PIH:SHEPHERD", "zl.registration.patient.occupation.shepherd.label");
w.getConfig().addOption("PIH:SHOP OWNER", "zl.registration.patient.occupation.shopOwner.label");
w.getConfig().addOption("PIH:STUDENT", "zl.registration.patient.occupation.student.label");
w.getConfig().addOption("PIH:Teacher", "zl.registration.patient.occupation.teacher.label");
w.getConfig().addOption("PIH:UNEMPLOYED", "zl.registration.patient.occupation.unemployed.label");
w.getConfig().addOption("PIH:OTHER NON-CODED", "zl.registration.patient.occupation.other.label");
w.getConfig().setExpanded(true);
f.setWidget(toObjectNode(w));
q.addField(f);
return q;
}
use of org.openmrs.module.registrationapp.model.Field in project openmrs-module-pihcore by PIH.
the class SectionsPeru method getOccupationQuestion.
@Override
public Question getOccupationQuestion() {
Question q = new Question();
q.setId("occupationLabel");
q.setLegend("zl.registration.patient.occupation.label");
q.setHeader("zl.registration.patient.occupation.question");
{
Field f = new Field();
f.setFormFieldName("obs.PIH:Occupation");
f.setType("obs");
DropdownWidget w = new DropdownWidget();
// ordered alphabetically in Spanish, with Unemployed and Other last
// Abogado
w.getConfig().addOption("PIH:Lawyer", "zl.registration.patient.occupation.lawyer.label");
// Agricultor
w.getConfig().addOption("PIH:FARMER", "zl.registration.patient.occupation.farmer.label");
// Chofer
w.getConfig().addOption("PIH:DRIVER", "zl.registration.patient.occupation.driver.label");
// Commercial
w.getConfig().addOption("PIH:COMMERCE", "Comerciante");
// Contador
w.getConfig().addOption("PIH:Accountant", "zl.registration.patient.occupation.accountant.label");
// Economista
w.getConfig().addOption("PIH:Economist", "Economista");
// Empleado(a)
w.getConfig().addOption("PIH:HOUSEWORK/FIELDWORK", "Empleado(a)");
// Enfermero
w.getConfig().addOption("PIH:NURSE", "zl.registration.patient.occupation.nurse.label");
// Estudiante
w.getConfig().addOption("PIH:STUDENT", "zl.registration.patient.occupation.student.label");
// Ingeniero
w.getConfig().addOption("PIH:Engineer", "Ingeniero");
// Medico
w.getConfig().addOption("PIH:DOCTOR", "Médico");
// Militar
w.getConfig().addOption("PIH:Military", "zl.registration.patient.occupation.military.label");
// Obrero
w.getConfig().addOption("PIH:FACTORY WORKER", "zl.registration.patient.occupation.factoryWorker.label");
// Obstetra
w.getConfig().addOption("PIH:Obstetrician", "Obstetra");
// Odontólogo
w.getConfig().addOption("PIH:Dentist", "Odontólogo");
// Periodista
w.getConfig().addOption("PIH:Journalist", "zl.registration.patient.occupation.journalist.label");
// Policia
w.getConfig().addOption("PIH:Police", "zl.registration.patient.occupation.police.label");
// Maestro
w.getConfig().addOption("PIH:Teacher", "Profesor(a)");
// Taxista
w.getConfig().addOption("PIH:Taxi driver", "Taxista");
// Tecnico de la salud
w.getConfig().addOption("PIH:Health technician", "Técnico de la salud");
w.getConfig().addOption("PIH:RETIRED", "zl.registration.patient.occupation.retired.label");
w.getConfig().addOption("PIH:OTHER NON-CODED", "zl.registration.patient.occupation.other.label");
w.getConfig().setExpanded(true);
f.setWidget(toObjectNode(w));
q.addField(f);
}
{
Field f = new Field();
f.setFormFieldName("obs.PIH:2452");
f.setLabel("zl.ifOtherSpecify");
f.setType("obs");
f.setWidget(getTextFieldWidget(30));
q.addField(f);
}
return q;
}
use of org.openmrs.module.registrationapp.model.Field in project openmrs-module-pihcore by PIH.
the class SectionsPeru method getInmigrationCard.
private Question getInmigrationCard() {
Question q = new Question();
q.setId("inmigration-id");
q.setLegend("zl.registration.patient.documenttype.inmigrationCard.label");
q.setHeader("zl.registration.patient.documenttype.inmigrationCard.label");
Field f = new Field();
f.setFormFieldName("patientIdentifier" + SesConfigConstants.PATIENTIDENTIFIERTYPE_INMIGRATIONCARD_UUID);
f.setUuid(SesConfigConstants.PATIENTIDENTIFIERTYPE_INMIGRATIONCARD_UUID);
f.setType("patientIdentifier");
f.setWidget(getTextFieldWidget(12));
q.addField(f);
return q;
}
use of org.openmrs.module.registrationapp.model.Field in project openmrs-module-pihcore by PIH.
the class SectionsPeru method getEmailQuestion.
public Question getEmailQuestion() {
Question q = new Question();
q.setId("emailLabel");
q.setLegend("zl.registration.patient.email.label");
q.setHeader("zl.registration.patient.email.question");
Field f = new Field();
f.setFormFieldName("personAttributeType" + SesConfigConstants.PERSONATTRIBUTETYPE_ELECTRONIC_EMAIL_UUID);
f.setUuid(SesConfigConstants.PERSONATTRIBUTETYPE_ELECTRONIC_EMAIL_UUID);
f.setType("personAttribute");
f.setWidget(getTextFieldWidget(254));
q.addField(f);
return q;
}
Aggregations