use of org.openmrs.module.pihcore.deploy.bundle.AddressComponent in project openmrs-module-pihcore by PIH.
the class SierraLeoneAddressBundle method getAddressComponents.
@Override
public List<AddressComponent> getAddressComponents() {
List<AddressComponent> l = new ArrayList<AddressComponent>();
l.add(new AddressComponent(AddressField.COUNTRY, "Country", 40, "Sierra Leone", true));
l.add(new AddressComponent(AddressField.STATE_PROVINCE, "Province/Area", 40, null, true));
l.add(new AddressComponent(AddressField.COUNTY_DISTRICT, "District", 40, null, false));
l.add(new AddressComponent(AddressField.CITY_VILLAGE, "Chiefdom", 40, null, false));
l.add(new AddressComponent(AddressField.ADDRESS_1, "Address", 80, null, false));
return l;
}
use of org.openmrs.module.pihcore.deploy.bundle.AddressComponent in project openmrs-module-pihcore by PIH.
the class BaseReportTest method address.
protected PatientBuilder address(PatientBuilder pb, List<AddressComponent> addressComponents, String... values) {
PersonAddress a = new PersonAddress();
int index = 0;
for (AddressComponent property : addressComponents) {
ReflectionUtil.setPropertyValue(a, property.getField().getName(), values[index]);
index++;
}
return pb.address(a);
}
use of org.openmrs.module.pihcore.deploy.bundle.AddressComponent in project openmrs-module-pihcore by PIH.
the class LiberiaAddressBundle method getAddressComponents.
@Override
public List<AddressComponent> getAddressComponents() {
List<AddressComponent> l = new ArrayList<AddressComponent>();
l.add(new AddressComponent(AddressField.COUNTRY, "Country", 40, "Liberia", true));
l.add(new AddressComponent(AddressField.STATE_PROVINCE, "County", 40, null, false));
l.add(new AddressComponent(AddressField.COUNTY_DISTRICT, "District", 40, null, false));
l.add(new AddressComponent(AddressField.CITY_VILLAGE, "Settlement", 40, null, false));
l.add(new AddressComponent(AddressField.ADDRESS_1, "Address", 80, null, false));
return l;
}
use of org.openmrs.module.pihcore.deploy.bundle.AddressComponent in project openmrs-module-pihcore by PIH.
the class TestAddressBundle method getAddressComponents.
@Override
public List<AddressComponent> getAddressComponents() {
List<AddressComponent> l = new ArrayList<AddressComponent>();
l.add(new AddressComponent(AddressField.COUNTRY, "haiticore.address.country", 40, "Haiti", true));
l.add(new AddressComponent(AddressField.STATE_PROVINCE, "haiticore.address.stateProvince", 40, null, true));
l.add(new AddressComponent(AddressField.CITY_VILLAGE, "haiticore.address.cityVillage", 40, null, true));
l.add(new AddressComponent(AddressField.ADDRESS_3, "haiticore.address.neighborhoodCell", 60, null, true));
l.add(new AddressComponent(AddressField.ADDRESS_1, "haiticore.address.address1", 60, null, false));
l.add(new AddressComponent(AddressField.ADDRESS_2, "haiticore.address.address2", 60, null, false));
return l;
}
Aggregations