...
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" "/> |
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,
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>
<nameMappings class="properties">
<property name="postalCode" value="Location.postalCode"/> |
...
startDate
...
...
...
...
...
endDate
...
...
...
...
...
Add these attributes XML in the following format,
Code Block |
---|
|
<nameMappings class="properties">
<property name="postalCodeaddress1" value="Location.postalCodeaddress1"/>
<property name="longitudestartDate" value="LocationPersonAddress.longitudestartDate"/>
... 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="country" value="Location.country"/>
<property name="postalCodeendDate" value="10personAddress.endDate"/>
<property name="longitudestateProvince" value="10Location.stateProvince"/>
... 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>>
<property <string>address1</string>name="latitude" value="Location.latitude"/>
<string>address2</string><property name="cityVillage" value="Location.cityVillage"/>
</nameMappings>
<string>cityVillage stateProvince country postalCode</string><sizeMappings class="properties">
<property <string>latitude longitude</string>name="postalCode" value="10"/>
<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="longitude" value="10"/>
<property name="countryaddress2" value="Kenya40"/>
...
</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><property name="address1" value="40"/>
<property name="longitudestartDate" value="^(\\d{1,3}\\s)\\d\\d.(\\d{2,3})\\s*$"10"/>
<property name="latitudecountry" value="^(\\d{1,3}\\s)\\d\\d.(\\d{2,3})\\s*$10"/>
...
</elementRegex>
|
Input suggestions;
Code Block |
---|
|
<elementRegexFormats><property name="endDate" value="10"/>
<property name="longitudestateProvince" value="123 45.00010"/>
<property name="latitude" value="123 45.00010"/>
...<property name="cityVillage" value="10"/>
</elementRegexFormats>
|
Finally bundle all the above XMLs as shown below,
Code Block |
---|
|
<org.openmrs.layout.web.address.AddressTemplate>sizeMappings>
<lineByLineFormat>
<nameMappings class="properties"> <string>address1</string>
<property name="postalCode" value="Location.postalCode"/>
<string>address2</string>
... <string>cityVillage stateProvince country postalCode</string>
</nameMappings> <string>latitude longitude</string>
<sizeMappings class="properties"> <string>startDate endDate</string>
<property name="postalCode" value="10"/> </lineByLineFormat>
</org.openmrs.layout.web.address.AddressTemplate> |
Address Template for Kenya
Code Block |
---|
|
<org.openmrs.layout.web.address.AddressTemplate>
<nameMappings class="properties">
... <property </sizeMappings>name="postalCode" value="Location.postalCode"/>
<lineByLineFormat><property name="longitude" value="Location.longitude"/>
<property <string>address1</string>name="address3" value="Location.estateNearestCentre"/>
<property <string>address2</string>name="address2" value="Location.sectionHomestead"/>
<property ...
name="address1" value="Location.address1"/>
</lineByLineFormat> <property name="country" value="Location.country"/>
... <property name="stateProvince" value="Location.province"/>
... </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><property name="latitude" value="Location.latitude"/>
<property <nameMappings classname="address6" value="propertiesLocation.location"/>
<property name="postalCodeaddress5" value="Location.postalCodesublocation"/>
<property name="longitudecityVillage" value="Location.longitudetownVillage"/>
<property name="address2countyDistrict" value="Location.address2district"/>
<property name="address4" value="address1" value="Location.address1"/Location.division"/>
</nameMappings>
<sizeMappings class="properties">
<property name="startDatepostalCode" value="PersonAddress.startDate6"/>
<property name="countrylongitude" value="Location.country10"/>
<property name="endDateaddress3" value="personAddress.endDate24"/>
<property name="stateProvinceaddress2" value="Location.stateProvince55"/>
<property name="latitudeaddress1" value="Location.latitude55"/>
<property name="cityVillagecountry" value="Location.cityVillage10"/>
</nameMappings> <property <sizeMappings classname="townshipDivision" value="properties24"/>
<property name="postalCodestateProvince" value="1024"/>
<property name="longitudesubregion" value="1024"/>
<property name="address2latitude" value="4010"/>
<property name="address1region" value="4024"/>
<property name="startDatecityVillage" value="1024"/>
<property name="countrycountyDistrict" value="1024"/>
</sizeMappings>
<property name="endDate" value<elementDefaults class="10properties"/>
<property name="stateProvincecountry" value="10Kenya"/>
</elementDefaults>
<property name="latitude" value="10"/ <elementRegex class="properties">
<property name="cityVillagelongitude" value="10"/>
</sizeMappings>^(\\d{1,3}\\s)\\d\\d.(\\d{2,3})\\s*$"/>
<lineByLineFormat> <property name="latitude" value="^(\\d{1,3}\\s)\\d\\d.(\\d{2,3})\\s*$"/>
<string>address1</string> </elementRegex>
<string>address2</string><elementRegexFormats class="properties">
<string>cityVillage stateProvince country postalCode</string>
<property name="longitude" value="123 45.000"/>
<string>latitude longitude</string> <property name="latitude" value="123 45.000"/>
<string>startDate endDate<</string>elementRegexFormats>
</lineByLineFormat><lineByLineFormat>
</org.openmrs.layout.web.address.AddressTemplate> |
...
Code Block |
---|
controls | true |
---|
language | xml |
---|
title | Address Template for Kenya |
---|
|
<org.openmrs.layout.web.address.AddressTemplate>
<nameMappings class="properties"> <string>address1</string>
<property name="postalCode" value="Location.postalCode"/> <string>address2</string>
<property name="longitude" value="Location.longitude"/><string>address3 cityVillage</string>
<property name="address3" value="Location.estateNearestCentre"/><string>address5 address6</string>
<property name="address2" value="Location.sectionHomestead"/><string>address4 countyDistrict</string>
<property name="address1" value="Location.address1"/><string>stateProvince postalCode</string>
<string>latitude longitude</string>
<property name="country" value="Location.country"/> <string>country</string>
<property name="stateProvince" value="Location.province"/>
</lineByLineFormat>
</org.openmrs.layout.web.address.AddressTemplate> |
Address Template for Lesotho
Code Block |
---|
|
<org.openmrs.layout.web.address.AddressTemplate>
<nameMappings <property nameclass="latitude" value="Location.latitude"/properties">
<property name="address6countyDistrict" value="Location.locationdistrict"/>
<property name="address5cityVillage" value="Location.sublocationvillage"/>
</nameMappings>
<property name="cityVillage" value<sizeMappings class="Location.townVillageproperties"/>
<property name="countyDistrict" value="Location.district40"/>
<property name="address4cityVillage" value="Location.division40"/>
</nameMappings>sizeMappings>
<sizeMappings<elementDefaults class="properties">
<property name="country" value="postalCode" value="6"/>Lesotho"/>
</elementDefaults>
<lineByLineFormat>
<property name="longitude" value="10"/> <string>countyDistrict</string>
<property name="address3" value="24"/> <string>cityVillage</string>
</lineByLineFormat>
<property name="address2" value="55"/> </org.openmrs.layout.web.address.AddressTemplate> |
Address Template for Malawi
Code Block |
---|
|
<org.openmrs.layout.web.address.AddressTemplate>
<property name<nameMappings class="address1" value="55"/properties">
<property name="countryaddress3" value="10Location.neighborhood"/>
<property name="townshipDivisionstateProvince" value="24Location.district"/>
<property name="stateProvinceaddress1" value="24Location.address1"/>
<property name="subregioncountyDistrict" value="24Location.traditionalAuthority"/>
<property name="latitudecityVillage" value="10Location.village"/>
</nameMappings>
<property name="region" value<sizeMappings class="24properties"/>
<property name="cityVillageaddress3" value="2420"/>
<property name="countyDistrictstateProvince" value="2420"/>
</sizeMappings> <property <elementDefaults classname="address1" value="properties40"/>
<property name="countrycountyDistrict" value="Kenya20"/>
</elementDefaults> <property name="cityVillage" value="20"/>
<elementRegex class="properties"> </sizeMappings>
<property name="longitude" value="^(\\d{1,3}\\s)\\d\\d.(\\d{2,3})\\s*$"/<elementDefaults class="properties">
<property name="latitudecountry" value="^(\\d{1,3}\\s)\\d\\d.(\\d{2,3})\\s*$Malawi"/>
</elementRegex>elementDefaults>
<lineByLineFormat>
<string>address1</string>
<string>address3</string>
<elementRegexFormats class="properties"> <string>cityVillage</string>
<property name="longitude" value="123 45.000"/> <string>countyDistrict</string>
<property name="latitude" value="123 45.000"/> <string>stateProvince</string>
</elementRegexFormats>lineByLineFormat>
<lineByLineFormat>
</org.openmrs.layout.web.address.AddressTemplate> |
Address Template for Rwanda
Code Block |
---|
|
<org.openmrs.layout.web.address.AddressTemplate>
<nameMappings class="properties">
<string>address1</string> <property <string>address2</string>name="address3" value="Location.cell"/>
<string>address3 cityVillage</string>
<string>address5 address6</string><property name="stateProvince" value="Location.province"/>
<string>address4 countyDistrict</string>
<string>stateProvince postalCode</string><property name="address1" value="Location.rwandanNeighborhood"/>
<property <string>latitude longitude</string>name="countyDistrict" value="Location.district"/>
<string>country</string>
</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="cityVillage" value="Location.sector"/>
</nameMappings>
<nameMappings<sizeMappings class="properties">
<property name="countyDistrictaddress3" value="Location.district40"/>
<property name="cityVillagestateProvince" value="Location.village40"/>
</nameMappings> <property <sizeMappings classname="address1" value="properties40"/>
<property name="countyDistrict" value="40"/>
<property name="cityVillage" value="40"/>
</sizeMappings>
<elementDefaults class="properties">
<property name="country" value="Lesotho"/>"Rwanda"/>
</elementDefaults>
<lineByLineFormat>
<string>stateProvince</string>
</elementDefaults><string>countyDistrict</string>
<lineByLineFormat><string>cityVillage</string>
<string>countyDistrict<<string>address3</string>
<string>cityVillage<<string>address1</string>
</lineByLineFormat>
</org.openmrs.layout.web.address.AddressTemplate> |
Address Template for Spain
Code Block |
---|
controls | true |
---|
language | xml |
---|
title | Address Template for Malawi |
---|
|
<org.openmrs.layout.web.address.AddressTemplate>
<nameMappings class="properties">
<property name="address3" value="Location.neighborhood"/>layout.web.address.AddressTemplate>
<property name="stateProvince" value="Location.district"/<nameMappings class="properties">
<property name="address1address2" value="Location.address1address2"/>
<property name="countyDistrictstateProvince" value="Location.traditionalAuthoritystateProvince"/>
<property name="cityVillageaddress1" value="Location.village"/>
</nameMappings>
<sizeMappings class="properties"address1"/>
<property name="address3longitude" value="20Location.longitude"/>
<property name="stateProvincepostalCode" value="20Location.postalCode"/>
<property name="address1cityVillage" value="40Location.cityVillage"/>
<property name="countyDistrictcountry" value="20Location.country"/>
<property name="cityVillagelatitude" value="20Location.latitude"/>
</sizeMappings>nameMappings>
<elementDefaults<sizeMappings class="properties">
<property name="countryaddress2" value="Malawi40"/>
</elementDefaults> <property name="stateProvince" value="10"/>
<lineByLineFormat> <property <string>address1</string>name="address1" value="40"/>
<string>address3</string>
<string>cityVillage</string>
<property name="longitude" value="10"/>
<string>countyDistrict</string> <property name="postalCode" value="10"/>
<string>stateProvince</string> <property </lineByLineFormat>name="cityVillage" 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="country" value="properties10"/>
<property name="address3latitude" value="Location.cell10"/>
</sizeMappings>
<property name="stateProvince" value="Location.province"/> <lineByLineFormat>
<string>address1</string>
<string>address2</string>
<string>cityVillage <property name="address1" value="Location.rwandanNeighborhood"/>stateProvince country postalCode</string>
<string>latitude longitude</string>
<property name="countyDistrict" value="Location.district"/> </lineByLineFormat>
</org.openmrs.layout.web.address.AddressTemplate> |
Address Template for Tanzania
Code Block |
---|
|
<org.openmrs.layout.web.address.AddressTemplate>
<property name="cityVillage" value<nameMappings class="Location.sectorproperties"/>
</nameMappings> <sizeMappings class="properties"<property name="address6" value="Location.region"/>
<property name="address3address5" value="40Location.ward"/>
<property name="stateProvincecountyDistrict" value="40Location.district"/>
<property name="address1cityVillage" value="40Location.villageStreet"/>
</nameMappings>
<property name="countyDistrict" value<sizeMappings class="40properties"/>
<property name="cityVillageaddress6" value="4014"/>
</sizeMappings> <property <elementDefaults classname="address5" value="properties22"/>
<property name="countrycountyDistrict" value="Rwanda17"/>
</elementDefaults><property name="cityVillage" value="50"/>
<lineByLineFormat></sizeMappings>
<lineByLineFormat>
<string>stateProvince</string> <string>countyDistrict<<string>cityVillage</string>
<string>cityVillage<<string>address5</string>
<string>address3<<string>countyDistrict</string>
<string>address1<<string>address6</string>
</lineByLineFormat>
</org.openmrs.layout.web.address.AddressTemplate> |
Address Template for USA
Code Block |
---|
controls | true |
---|
language | xml | title | Address Template for Spain |
---|
|
<org.openmrs.layout.web.address.AddressTemplate><org.openmrs.layout.web.address.AddressTemplate>
<nameMappings class="properties">
<property name="address2" value="Location.address2"/>
<property <nameMappings classname="stateProvince" value="propertiesLocation.state"/>
<property name="address2address1" value="Location.address2address1"/>
<property name="stateProvincepostalCode" value="Location.stateProvincezipCode"/>
<property name="address1cityVillage" value="Location.address1"/city"/>
</nameMappings>
<sizeMappings class="properties">
<property name="longitudeaddress2" value="Location.longitude50"/>
<property name="postalCodestateProvince" value="Location.postalCode2"/>
<property name="cityVillageaddress1" value="Location.cityVillage50"/>
<property name="countrypostalCode" value="Location.country10"/>
<property name="latitudecityVillage" value="Location.latitude20"/>
</nameMappings>sizeMappings>
<sizeMappings<elementDefaults class="properties">
<property name="address2country" value="40USA"/>
</elementDefaults>
<property name="stateProvince" value="10"/> <lineByLineFormat>
<property name="address1" value="40"/> <string>address1</string>
<property name="longitude" value="10"/>
<string>address2</string>
<property name="postalCode" value="10"/> <string>cityVillage stateProvince postalCode</string>
<property name="cityVillage" value="10"/> </lineByLineFormat>
</org.openmrs.layout.web.address.AddressTemplate> |
Address Template for Chile
Code Block |
---|
|
<org.openmrs.layout.web.address.AddressTemplate>
<property name="country" value<nameMappings class="10properties"/>
<property name="latitudeaddress3" value="10"Location.address3"/>
</sizeMappings> <property name="address2" value="Location.address2"/>
<lineByLineFormat> <property <string>address1</string>name="stateProvince" value="Location.state"/>
<string>address2</string><property name="address1" value="Location.address1"/>
<string>cityVillage stateProvince country postalCode</string>
<property name="postalCode" value="Location.zipCode"/>
<string>latitude longitude</string> <property </lineByLineFormat>
</org.openmrs.layout.web.address.AddressTemplate> |
...
Code Block |
---|
controls | true |
---|
language | xml |
---|
title | Address Template for Tanzania |
---|
|
<org.openmrs.layout.web.address.AddressTemplate>name="cityVillage" value="Location.city"/>
<property name="countyDistrict" value="Location.district"/>
</nameMappings>
<nameMappings<sizeMappings class="properties">
<property name="address6address3" value="Location.region10"/>
<property name="address5address2" value="Location.ward10"/>
<property name="countyDistrictstateProvince" value="Location.district2"/>
<property name="cityVillageaddress1" value="Location.villageStreet50"/>
</nameMappings> <property <sizeMappings classname="postalCode" value="properties10"/>
<property name="address6cityVillage" value="1420"/>
<property name="address5countyDistrict" value="2220"/>
</sizeMappings>
<property name="countyDistrict" value<elementDefaults class="17properties"/>
<property name="cityVillagecountry" value="50Chile"/>
</sizeMappings>elementDefaults>
<lineByLineFormat>
<string>address1 <string>cityVillage<address2 address3</string>
<string>cityVillage countyDistrict stateProvince country postalCode</string>
<string>address5</string></lineByLineFormat>
</org.openmrs.layout.web.address.AddressTemplate> |
Address Template for Nepal
Code Block |
---|
|
<org.openmrs.layout.web.address.AddressTemplate>
<string>countyDistrict</string><nameMappings class="properties">
<property name="address3" <string>address6</string>value="Ward Number"/><!--Ward Number-->
<property </lineByLineFormat>
</org.openmrs.layout.web.address.AddressTemplate> |
...
Code Block |
---|
controls | true |
---|
language | xml |
---|
title | Address Template for USA |
---|
|
<org.openmrs.layout.web.address.AddressTemplate>name="address4" value="Tole"/><!--Tole-->
<property name="address5" value="Landmark"/><!--Landmarks-->
<property <nameMappings class="properties"name="startDate" value="PersonAddress.startDate"/>
<property name="address2country" value="Location.address2country"/>
<property name="endDate" value="personAddress.endDate"/>
<property name="stateProvincecountyDistrict" value="Location.statedistrict"/><!--District-->
<property name="cityVillage" value="VDC/Municipality"/><!--VDC/Municipality-->
<property name="address1stateProvince" value="Location.address1Zone"/>
</nameMappings>
<sizeMappings class="properties">
<property name="postalCodeaddress3" value="Location.zipCode40"/>
<property name="cityVillageaddress4" value="Location.city40"/>
<property </nameMappings>name="address5" value="40"/>
<property <sizeMappings classname="startDate" value="properties10"/>
<property name="address2country" value="5010"/>
<property name="stateProvinceendDate" value="210"/>
<property name="address1countyDistrict" value="5040"/>
<property name="postalCodecityVillage" value="1040"/>
<property name="cityVillagestateProvince" value="2040"/>
</sizeMappings>
<elementDefaults class="properties">
<property name="country" value="USANepal"/>
</elementDefaults>
<lineByLineFormat>
<string>address1</string>
<string>stateProvince <string>address2<countyDistrict</string>
<string>cityVillage address3</string>
<string>address4 address5</string>
<string>cityVillage stateProvince postalCode<<string>country</string>
</lineByLineFormat>
</org.openmrs.layout.web.address.AddressTemplate> |
Code Block |
---|
controls | true
Address Template for Haiti
Code Block |
---|
language | html/xml |
---|
title | Address Template for Chile |
---|
|
<org.openmrs.layout.web.address.AddressTemplate>
<nameMappings class="properties">
<property name="address3" value="Location.address3"/>web.address.AddressTemplate>
<property name="address2" value="Location.address2"/>
<nameMappings class="properties">
<property name="stateProvinceaddress2" value="Location.state"/>
<property name="address1" value="Location.address1"/>
Ri / Nimewo Kay"/>
<property name="postalCodeaddress1" value="Location.zipCodeLokalite"/>
<property name="cityVillagecountry" value="Location.cityPeyi"/>
<property name="countyDistrictstateProvince" value="Location.districtDepatman"/>
</nameMappings> <property <sizeMappings classname="cityVillage" value="propertiesKomin"/>
<property name="address3countyDistrict" value="10Seksyon Riral"/>
</nameMappings>
<sizeMappings class="properties">
<property name="address2" value="1040"/>
<property name="stateProvinceaddress1" value="240"/>
<property name="address1country" value="5040"/>
<property name="postalCodestateProvince" value="1040"/>
<property name="cityVillage" value="2040"/>
<property name="countyDistrict" value="2040"/>
</sizeMappings>
<lineByLineFormat>
<elementDefaults class="properties"> <string>country</string>
<string>stateProvince</string>
<property name="country" value="Chile"/> <string>cityVillage</string>
</elementDefaults> <string>countyDistrict</string>
<lineByLineFormat> <string>address1 address2 address3<<string>address1</string>
<string>cityVillage countyDistrict stateProvince country postalCode</string> <string>address2</string>
</lineByLineFormat>
</org.openmrs.layout.web.address.AddressTemplate> |
...