...
This is a feature in OpenMRS 1.9+
It is possible to configure the fields that appear in the UI and their names, the text box sizes as well as the order they appear in. The configuration instructions on this page tell how to do it.
Managing Address Templates
Some recommended OpenMRS address templates are provided here;
Please copy past your preferred Address Template to the "Address Template" textbox under Administration, Manage Layout (/admin/locations/addressTemplate.form)
...
To get to the address configuration page in OpenMRS you can go to Administration (or System Administration --> Advanced Administration in the Reference Application) --> Manage Address Template.
...
Templates/Examples
Some example OpenMRS address templates are provided here. You can copy a preferred Address Template from this page and paste into the "Manage Address Template" text box. Feel free to customize to your liking as seen in the screenshot above.
Customizing Templates
You can also build your own templates.
First according to your need, select some address attribute from the table below,
Attribute type | XML Snippet |
---|
address1 | <property name="address1" value="Location.address1"/> |
address2 | <property name="address2" value="Location.address2"/> |
address3 | <property name="address3" value="Location.neighborhood"/> |
address4 | <property name="address4" value="Location.division"/> |
address5 | <property name="address5" value="Location.sublocation"/> |
address6 | <property name="address6" value="Location.location"/> |
cityVillage | <property name="cityVillage" value="Location.cityVillage"/> |
countyDistrict | <property name="countyDistrict" value="Location.district"/> |
stateProvince | <property name="stateProvince" value="Location.stateProvince"/> |
country | <property name="country" value="Location.country"/> |
latitude | <property name="latitude" value="Location.latitude"/> |
longitude | <property name="longitude" value="Location.longitude"/> |
postalCode | <property name="postalCode" value="Location.postalCode"/> |
startDate | <property name="startDate" value="PersonAddress |
.startDate"/>endDate | <property name="endDate" value="personAddress.endDate"/> |
Add these attributes XML in the following format,
...
...
.startDate"/> |
endDate | <property name="endDate" value="personAddress.endDate"/> |
Add these attributes XML in the following format,
Code Block |
---|
|
<nameMappings class="properties">
<property name="postalCode" value="Location.postalCode"/>
<property name="longitude" value="Location.longitude"/>
... others
</nameMappings>
|
Now define the character size for each of the attribute you selected. This is the visible width, in characters, of the input element.
name = Attribute name
value = Number of characters
E.g.
Code Block |
---|
|
<sizeMappings class="properties">
<property name="postalCode" value="10"/>
<property name="longitude" value="10"/>
... others
</sizeMappings>
|
Next, design the layout for your Address Template.
This defines the relative positions of the address attributes to one another
E.g.
Code Block |
---|
|
<lineByLineFormat>
<string>address1</string>
<string>address2</string>
<string>cityVillage stateProvince country postalCode</string>
<string>latitude longitude</string>
<string>startDate endDate</string>
</lineByLineFormat>
|
(Optional) You can add default values to the attributes as below,
E.g.
Code Block |
---|
|
<elementDefaults class="properties">
<property name="country" value="Kenya"/>
...
</elementDefaults>
|
(Optional) You can define which fields are required (since Platform 2.0)
Code Block |
---|
|
<requiredElements>
<string>address1</string>
...
</requiredElements>
|
(Optional) You can define regular expressions to validate input, and also help the user by giving input suggestions
E.g.
Regular expressions for validation;
Code Block |
---|
|
<elementRegex class="properties">
<property name="longitude" value="^(\d{1,3}\s)\d\d\.(\d{2,3})\s*$"/>
<property name="latitude" value="^(\d{1,3}\\s)\d\d\.(\d{2,3})\s*$"/>
...
</elementRegex>
|
Input suggestions; These can be used to display an example format that an element should look like.
Code Block |
---|
|
<elementRegexFormats class="properties">
<property name="longitude" value="123 45.000"/>
<property name="latitude" value="123 45.000"/>
...
</elementRegexFormats>
|
Finally bundle all the above XMLs as shown below,
Code Block |
---|
|
<org.openmrs.layout.web.address.AddressTemplate>
<nameMappings class="properties">
<property name="postalCode" value="Location.postalCode"/>
...
</nameMappings>
<sizeMappings class="properties">
<property name="postalCode" value="10"/>
...
</sizeMappings>
<lineByLineFormat>
<string>address1</string>
<string>address2</string>
...
</lineByLineFormat>
...
...
</org.openmrs.layout.web.address.AddressTemplate>
|
For further clarification please go through the samples below,
General Address Template
Code Block |
---|
|
<org.openmrs.layout.web.address.AddressTemplate>
<property name="postalCode" value="Location.postalCode"/<nameMappings class="properties">
<property name="longitudepostalCode" value="Location.longitudepostalCode"/>
... others </nameMappings>
|
Now define the character size for each of the attribute you selected,
name = Attribute name
value = Number of characters
E.g.
Code Block |
---|
|
<sizeMappings class="properties"<property name="longitude" value="Location.longitude"/>
<property name="postalCodeaddress2" value="10Location.address2"/>
<property name="longitudeaddress1" value="10"/>
... others
</sizeMappings>
|
Next, design the layout for your Address Template.
This defines the relative positions of the address attributes to one another
E.g.
Code Block |
---|
|
<lineByLineFormat>Location.address1"/>
<string>address1</string><property name="startDate" value="PersonAddress.startDate"/>
<string>address2</string><property name="country" value="Location.country"/>
<string>cityVillage stateProvince country postalCode</string><property name="endDate" value="personAddress.endDate"/>
<property <string>latitude longitude</string>name="stateProvince" value="Location.stateProvince"/>
<string>startDate endDate</string>
</lineByLineFormat>
|
(Optional) You can add default values to the attributes as below,
E.g.
Code Block |
---|
|
<elementDefaults><property name="latitude" value="Location.latitude"/>
<property name="countrycityVillage" value="KenyaLocation.cityVillage"/>
...</nameMappings>
</elementDefaults>
|
(Optional) You can define regular expressions to validate input, and also help the user by giving input suggestions
E.g.
Regular expressions for validation;
Code Block |
---|
|
<elementRegex><sizeMappings class="properties">
<property name="longitudepostalCode" value="^(\\d{1,3}\\s)\\d\\d.(\\d{2,3})\\s*$10"/>
<property name="latitudelongitude" value="^(\\d{1,3}\\s)\\d\\d.(\\d{2,3})\\s*$10"/>
...<property name="address2" value="40"/>
</elementRegex>
|
Input suggestions;
Code Block |
---|
|
<elementRegexFormats><property name="address1" value="40"/>
<property name="longitudestartDate" value="123 45.00010"/>
<property name="latitudecountry" value="123 45.00010"/>
...
</elementRegexFormats>
|
Finally bundle all the above XMLs as shown below,
Code Block |
---|
|
<org.openmrs.layout.web.address.AddressTemplate><property name="endDate" value="10"/>
<property <nameMappings classname="stateProvince" value="properties">
10"/>
<property name="postalCodelatitude" value="Location.postalCode10"/>
... <property name="cityVillage" value="10"/>
</nameMappings>sizeMappings>
<lineByLineFormat>
<sizeMappings class="properties"> <string>address1</string>
<property name="postalCode" value="10"/> <string>address2</string>
<string>cityVillage stateProvince country postalCode</string>
... <string>latitude <longitude</sizeMappings>string>
<lineByLineFormat><string>startDate endDate</string>
<string>address1</string>
</lineByLineFormat>
</org.openmrs.layout.web.address.AddressTemplate> |
Address Template for Kenya
Code Block |
---|
|
<org.openmrs.layout.web.address.AddressTemplate>
<string>address2</string>
<nameMappings class="properties">
<property ...name="postalCode" value="Location.postalCode"/>
</lineByLineFormat>
<property name="longitude" value="Location.longitude"/>
... <property name="address3" value="Location.estateNearestCentre"/>
... <property </org.openmrs.layout.web.address.AddressTemplate>
|
For further clarification please go through the samples below,
...
Code Block |
---|
controls | true |
---|
language | xml |
---|
title | General Address Template |
---|
|
<org.openmrs.layout.web.address.AddressTemplate>name="address2" value="Location.sectionHomestead"/>
<property <nameMappings classname="address1" value="propertiesLocation.address1"/>
<property name="postalCodecountry" value="Location.postalCodecountry"/>
<property name="longitudestateProvince" value="Location.longitudeprovince"/>
<property name="address2latitude" value="Location.address2latitude"/>
<property name="address1address6" value="Location.address1location"/>
<property name="startDateaddress5" value="PersonAddressLocation.startDatesublocation"/>
<property name="countrycityVillage" value="Location.countrytownVillage"/>
<property name="endDatecountyDistrict" value="personAddressLocation.endDatedistrict"/>
<property name="stateProvince" value="Location.stateProvince"/="address4" value="Location.division"/>
</nameMappings>
<sizeMappings class="properties">
<property name="latitudepostalCode" value="Location.latitude6"/>
<property name="cityVillagelongitude" value="Location.cityVillage10"/>
</nameMappings> <property <sizeMappings classname="address3" value="properties24"/>
<property name="postalCodeaddress2" value="1055"/>
<property name="longitudeaddress1" value="1055"/>
<property name="address2country" value="4010"/>
<property name="address1townshipDivision" value="4024"/>
<property name="startDatestateProvince" value="1024"/>
<property name="countrysubregion" value="1024"/>
<property name="endDatelatitude" value="10"/>
<property name="stateProvinceregion" value="1024"/>
<property name="latitudecityVillage" value="1024"/>
<property name="cityVillagecountyDistrict" value="1024"/>
</sizeMappings>
<elementDefaults class="properties">
<lineByLineFormat> <property <string>address1</string>name="country" value="Kenya"/>
<string>address2</string></elementDefaults>
<elementRegex class="properties">
<string>cityVillage stateProvince country postalCode</string> <property <string>latitude longitude</string>name="longitude" value="^(\\d{1,3}\\s)\\d\\d.(\\d{2,3})\\s*$"/>
<string>startDate endDate</string>
</lineByLineFormat>
</org.openmrs.layout.web.address.AddressTemplate> |
...
Code Block |
---|
controls | true |
---|
language | xml |
---|
title | Address Template for Kenya |
---|
|
<org.openmrs.layout.web.address.AddressTemplate><property name="latitude" value="^(\\d{1,3}\\s)\\d\\d.(\\d{2,3})\\s*$"/>
</elementRegex>
<nameMappings<elementRegexFormats class="properties">
<property name="postalCodelongitude" value="Location123 45.postalCode000"/>
<property name="longitudelatitude" value="Location123 45.longitude000"/>
</elementRegexFormats>
<lineByLineFormat>
<property name="address3" value="Location.estateNearestCentre"/>
<string>address1</string>
<property name="address2" value="Location.sectionHomestead"/> <string>address2</string>
<property name="address1" value="Location.address1"/><string>address3 cityVillage</string>
<property name="country" value="Location.country"/><string>address5 address6</string>
<property name="stateProvince" value="Location.province"/><string>address4 countyDistrict</string>
<property name="latitude" value="Location.latitude"/><string>stateProvince postalCode</string>
<string>latitude longitude</string>
<property name="address6" value="Location.location"/> <string>country</string>
<property name="address5" value="Location.sublocation"/> </lineByLineFormat>
</org.openmrs.layout.web.address.AddressTemplate> |
Address Template for Lesotho
Code Block |
---|
|
<org.openmrs.layout.web.address.AddressTemplate>
<property<nameMappings nameclass="cityVillage" value="Location.townVillage"/properties">
<property name="countyDistrict" value="Location.district"/>
<property name="address4cityVillage" value="Location.divisionvillage"/>
</nameMappings>
<sizeMappings class="properties">
<property name="postalCodecountyDistrict" value="640"/>
<property name="longitudecityVillage" value="1040"/>
</sizeMappings>
<property name="address3" value<elementDefaults class="24properties"/>
<property name="address2country" value="55Lesotho"/>
</elementDefaults>
<property name="address1" value="55"/> <lineByLineFormat>
<property name="country" value="10"/> <string>countyDistrict</string>
<string>cityVillage</string>
<property name="townshipDivision" value="24"/> </lineByLineFormat>
</org.openmrs.layout.web.address.AddressTemplate> |
Address Template for Malawi
Code Block |
---|
|
<org.openmrs.layout.web.address.AddressTemplate>
<property name="stateProvince" value<nameMappings class="24properties"/>
<property name="subregionaddress3" value="24Location.neighborhood"/>
<property name="latitudestateProvince" value="10Location.district"/>
<property name="regionaddress1" value="24"Location.address1"/>
<property name="cityVillagecountyDistrict" value="24Location.traditionalAuthority"/>
<property name="countyDistrictcityVillage" value="24Location.village"/>
</sizeMappings>nameMappings>
<elementDefaults<sizeMappings class="properties">
<property name="countryaddress3" value="Kenya20"/>
</elementDefaults>
<elementRegex class="properties"> <property name="longitude" value="^(\\d{1,3}\\s)\\d\\d.(\\d{2,3})\\s*$stateProvince" value="20"/>
<property name="latitudeaddress1" value="^(\\d{1,3}\\s)\\d\\d.(\\d{2,3})\\s*$40"/>
</elementRegex> <property name="countyDistrict" value="20"/>
<property name="cityVillage" value="20"/>
<elementRegexFormats class="properties"> </sizeMappings>
<property name="longitude" value="123 45.000"/<elementDefaults class="properties">
<property name="latitudecountry" value="123 45.000Malawi"/>
</elementRegexFormats>elementDefaults>
<lineByLineFormat>
<string>address1</string>
<string>address2<<string>address3</string>
<string>address3 cityVillage<<string>cityVillage</string>
<string>address5 address6<<string>countyDistrict</string>
<string>address4 countyDistrict<<string>stateProvince</string>
</lineByLineFormat>
<string>stateProvince postalCode</string> </org.openmrs.layout.web.address.AddressTemplate> |
Address Template for Rwanda
Code Block |
---|
|
<org.openmrs.layout.web.address.AddressTemplate>
<nameMappings class="properties">
<string>latitude longitude</string> <property <string>country</string>name="address3" value="Location.cell"/>
</lineByLineFormat> </org.openmrs.layout.web.address.AddressTemplate> |
...
Code Block |
---|
controls | true |
---|
language | xml |
---|
title | Address Template for Lesotho |
---|
|
<org.openmrs.layout.web.address.AddressTemplate><property name="stateProvince" value="Location.province"/>
<property <nameMappings classname="address1" value="propertiesLocation.rwandanNeighborhood"/>
<property name="countyDistrict" value="Location.district"/>
<property name="cityVillage" value="Location.villagesector"/>
</nameMappings>
<sizeMappings class="properties">
<property name="countyDistrictaddress3" value="40"/>
<property name="cityVillagestateProvince" value="40"/>
</sizeMappings> <property <elementDefaults classname="address1" value="properties40"/>
<property name="countrycountyDistrict" value="Lesotho40"/>
</elementDefaults> <property <lineByLineFormat>
name="cityVillage" value="40"/>
<string>countyDistrict<</string>sizeMappings>
<elementDefaults class="properties">
<string>cityVillage</string> </lineByLineFormat> <property </org.openmrs.layout.web.address.AddressTemplate> |
...
Code Block |
---|
controls | true |
---|
language | xml |
---|
title | Address Template for Malawi |
---|
|
<org.openmrs.layout.web.address.AddressTemplate>
name="country" value="Rwanda"/>
<nameMappings class="properties"> </elementDefaults>
<lineByLineFormat>
<property name="address3" value="Location.neighborhood"/> <string>stateProvince</string>
<property name="stateProvince" value="Location.district"/> <string>countyDistrict</string>
<property name="address1" value="Location.address1"/> <string>cityVillage</string>
<property name="countyDistrict" value="Location.traditionalAuthority"/> <string>address3</string>
<property name="cityVillage" value="Location.village"/> <string>address1</string>
</nameMappings>lineByLineFormat>
</org.openmrs.layout.web.address.AddressTemplate> |
Address Template for Spain
Code Block |
---|
|
<org.openmrs.layout.web.address.AddressTemplate>
<sizeMappings<nameMappings class="properties">
<property name="address3address2" value="20Location.address2"/>
<property name="stateProvince" value="20Location.stateProvince"/>
<property name="address1" value="40Location.address1"/>
<property name="countyDistrictlongitude" value="20Location.longitude"/>
<property name="cityVillagepostalCode" value="20Location.postalCode"/>
</sizeMappings> <property <elementDefaults classname="cityVillage" value="propertiesLocation.cityVillage"/>
<property name="country" value="MalawiLocation.country"/>
</elementDefaults> <property name="latitude" value="Location.latitude"/>
<lineByLineFormat> </nameMappings>
<string>address1</string>
<sizeMappings class="properties">
<string>address3</string> <property name="address2" value="40"/>
<string>cityVillage</string> <property name="stateProvince" value="10"/>
<string>countyDistrict</string> <property name="address1" value="40"/>
<string>stateProvince</string> <property </lineByLineFormat>name="longitude" value="10"/>
</org.openmrs.layout.web.address.AddressTemplate> |
...
Code Block |
---|
controls | true |
---|
language | xml |
---|
title | Address Template for Rwanda |
---|
|
<org.openmrs.layout.web.address.AddressTemplate> <property <nameMappings classname="postalCode" value="properties10"/>
<property name="address3cityVillage" value="Location.cell10"/>
<property name="stateProvincecountry" value="Location.province10"/>
<property name="address1latitude" value="Location.rwandanNeighborhood10"/>
</sizeMappings>
<property name="countyDistrict" value="Location.district"/> <lineByLineFormat>
<string>address1</string>
<string>address2</string>
<property name="cityVillage" value="Location.sector"/><string>cityVillage stateProvince country postalCode</string>
<string>latitude <longitude</nameMappings>string>
<sizeMappings class="properties"></lineByLineFormat>
</org.openmrs.layout.web.address.AddressTemplate> |
Address Template for Tanzania
Code Block |
---|
|
<org.openmrs.layout.web.address.AddressTemplate>
<property<nameMappings nameclass="address3" value="40"/properties">
<property name="stateProvinceaddress6" value="40Location.region"/>
<property name="address1address5" value="40Location.ward"/>
<property name="countyDistrict" value="40Location.district"/>
<property name="cityVillage" value="40Location.villageStreet"/>
</sizeMappings>nameMappings>
<elementDefaults<sizeMappings class="properties">
<property name="countryaddress6" value="Rwanda14"/>
</elementDefaults> <property name="address5" value="22"/>
<lineByLineFormat> <property <string>stateProvince</string>name="countyDistrict" value="17"/>
<string>countyDistrict</string>
<string>cityVillage</string>
<string>address3</string><property name="cityVillage" value="50"/>
<string>address1</string></sizeMappings>
</lineByLineFormat><lineByLineFormat>
</org.openmrs.layout.web.address.AddressTemplate> |
...
Code Block |
---|
controls | true |
---|
language | xml |
---|
title | Address Template for Spain |
---|
|
<org.openmrs.layout.web.address.AddressTemplate> <nameMappings class="properties"><string>cityVillage</string>
<property name="address2" value="Location.address2"/> <string>address5</string>
<string>countyDistrict</string>
<property name="stateProvince" value="Location.stateProvince"/> <string>address6</string>
<property name="address1" value="Location.address1"/> </lineByLineFormat>
</org.openmrs.layout.web.address.AddressTemplate> |
Address Template for USA
Code Block |
---|
|
<org.openmrs.layout.web.address.AddressTemplate>
<property<nameMappings nameclass="longitude" value="Location.longitude"/properties">
<property name="postalCodeaddress2" value="Location.postalCodeaddress2"/>
<property name="cityVillagestateProvince" value="Location.cityVillagestate"/>
<property name="countryaddress1" value="Location.countryaddress1"/>
<property name="latitudepostalCode" value="Location.latitudezipCode"/>
</nameMappings> <sizeMappings class="properties">
<property name="address2cityVillage" value="40Location.city"/>
<property name="stateProvince" value="10"/> </nameMappings>
<property name="address1" value<sizeMappings class="40properties"/>
<property name="longitudeaddress2" value="1050"/>
<property name="postalCodestateProvince" value="102"/>
<property name="cityVillageaddress1" value="1050"/>
<property name="countrypostalCode" value="10"/>
<property name="latitudecityVillage" value="1020"/>
</sizeMappings>
<lineByLineFormat>
<elementDefaults class="properties">
<string>address1</string> <string>address2</string>
<string>cityVillage stateProvince country postalCode</string><property name="country" value="USA"/>
</elementDefaults>
<string>latitude longitude</string> <lineByLineFormat>
</lineByLineFormat> </org.openmrs.layout.web.address.AddressTemplate> |
...
Code Block |
---|
controls | true |
---|
language | xml |
---|
title | Address Template for Tanzania |
---|
|
<org.openmrs.layout.web.address.AddressTemplate> <string>address1</string>
<nameMappings class="properties"> <string>address2</string>
<property name="address6" value="Location.region"/> <string>cityVillage stateProvince postalCode</string>
<property name="address5" value="Location.ward"/> </lineByLineFormat>
</org.openmrs.layout.web.address.AddressTemplate> |
Address Template for Chile
Code Block |
---|
|
<org.openmrs.layout.web.address.AddressTemplate>
<property name="countyDistrict" value<nameMappings class="Location.districtproperties"/>
<property name="cityVillageaddress3" value="Location.villageStreetaddress3"/>
>
</nameMappings> <property <sizeMappings class="properties"name="address2" value="Location.address2"/>
<property name="address6stateProvince" value="14Location.state"/>
<property name="address5address1" value="22Location.address1"/>
<property name="countyDistrictpostalCode" value="17Location.zipCode"/>
<property name="cityVillage" value="50Location.city"/>
<property name="countyDistrict" </sizeMappings>value="Location.district"/>
</nameMappings>
<lineByLineFormat>
<sizeMappings class="properties">
<string>cityVillage</string> <property name="address3" value="10"/>
<string>address5</string> <property name="address2" value="10"/>
<string>countyDistrict</string> <property name="stateProvince" value="2"/>
<string>address6</string> </lineByLineFormat> <property </org.openmrs.layout.web.address.AddressTemplate> |
...
Code Block |
---|
controls | true |
---|
language | xml |
---|
title | Address Template for USA |
---|
|
<org.openmrs.layout.web.address.AddressTemplate>name="address1" value="50"/>
<property <nameMappings classname="postalCode" value="properties10"/>
<property name="postalCodecityVillage" value="Location.postalCode20"/>
<property name="longitudecountyDistrict" value="Location.longitude"/20"/>
</sizeMappings>
<elementDefaults class="properties">
<property name="address3country" value="Location.address3Chile"/>
</elementDefaults>
<lineByLineFormat>
<property name="address2" value="Location.address2"/>
<string>address1 address2 address3</string>
<string>cityVillage countyDistrict stateProvince country postalCode</string>
<property name="address1" value="Location.address1"/> </lineByLineFormat>
</org.openmrs.layout.web.address.AddressTemplate> |
Address Template for Nepal
Code Block |
---|
|
<org.openmrs.layout.web.address.AddressTemplate>
<property name="startDate" value="PersonAddress.startDate"/<nameMappings class="properties">
<property name="countryaddress3" value="Location.countryWard Number"/>
><!--Ward Number-->
<property name="endDateaddress4" value="personAddress.endDateTole"/><!--Tole-->
<property name="stateProvinceaddress5" value="Location.stateProvinceLandmark"/>
><!--Landmarks-->
<property name="latitudestartDate" value="LocationPersonAddress.latitudestartDate"/>
<property name="cityVillagecountry" value="Location.cityVillagecountry"/>
<property name="countyDistrictendDate" value="LocationpersonAddress.districtendDate"/>
<property </nameMappings>
<sizeMappings class="properties">
name="countyDistrict" value="Location.district"/><!--District-->
<property name="postalCodecityVillage" value="10"/>
VDC/Municipality"/><!--VDC/Municipality-->
<property name="longitudestateProvince" value="10Zone"/>
</nameMappings>
<sizeMappings class="properties">
<property name="address3" value="10"/>
<property name="address2address3" value="1040"/>
<property name="address1address4" value="40"/>
<property name="startDateaddress5" value="1040"/>
<property name="countrystartDate" value="10"/>
<property name="endDatecountry" value="10"/>
<property name="stateProvinceendDate" value="10"/>
<property name="latitudecountyDistrict" value="1040"/>
<property name="cityVillage" value="1040"/>
<property </sizeMappings>name="stateProvince" value="40"/>
</sizeMappings>
<elementDefaults class="properties">
<lineByLineFormat> <property <string>address1 address2 address3</string>
<string>cityVillage countyDistrict stateProvince country postalCode</string>name="country" value="Nepal"/>
</elementDefaults>
<lineByLineFormat>
<string>stateProvince <string>latitude longitude<countyDistrict</string>
<string>cityVillage address3</string>
<string>address4 address5</string>
<string>startDate endDate<<string>country</string>
</lineByLineFormat>
</org.openmrs.layout.web.address.AddressTemplate> |
Address Template for Haiti
Code Block |
---|
controls | true |
---|
language | xml |
---|
title | Address Template for USA |
---|
|
<org.openmrs.layout.web.address.AddressTemplate>
<nameMappings class="properties">
<property name="address2" value="Ri / Nimewo Kay"/>
<property name="address2address1" value="Location.address2Lokalite"/>
>
<property name="stateProvincecountry" value="Location.statePeyi"/>
<property name="address1stateProvince" value="Location.address1Depatman"/>
<property name="postalCodecityVillage" value="Location.zipCodeKomin"/>
<property name="cityVillagecountyDistrict" value="Location.citySeksyon Riral"/>
</nameMappings>
<sizeMappings class="properties">
<property name="address2" value="50"/>
<property name="stateProvince" value="2"/>
40"/>
<property name="address1" value="5040"/>
<property name="postalCodecountry" value="1040"/>
<property name="cityVillagestateProvince" value="2040"/>
</sizeMappings>
<elementDefaults class="properties"<property name="cityVillage" value="40"/>
<property name="countrycountyDistrict" value="USA40"/>
</elementDefaults>sizeMappings>
<lineByLineFormat>
<lineByLineFormat> <string>country</string>
<string>address1<<string>stateProvince</string>
<string>cityVillage</string>
<string>address2<<string>countyDistrict</string>
<string>address1</string>
<string>cityVillage stateProvince postalCode<<string>address2</string>
</lineByLineFormat>
</org.openmrs.layout.web.address.AddressTemplate> |
...