Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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

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="

address1

countyDistrict" value="Location.

address1

district"/>

address2

stateProvince

<property name="

address2

stateProvince" value="Location.

address2

stateProvince"/>

address3

country

<property name="

address3

country" value="Location.

neighborhood

country"/>

address4

latitude

<property name="

address4

latitude" value="Location.

division

latitude"/>

address5

longitude

<property name="

address5

longitude" value="Location.

sublocation

longitude"/>

address6

postalCode

<property name="

address6

postalCode" value="Location.

location

postalCode"/>

cityVillage

startDate

<property name="

cityVillage

startDate" value="

Location

PersonAddress.

cityVillage

startDate"/>

countyDistrict

endDate

<property name="

countyDistrict

endDate" value="

Location

personAddress.

district"/>

stateProvince

<property name="stateProvince"

endDate"/>

Add these attributes XML in the following format,

Code Block
languagexml
<nameMappings class="properties">
            <property name="postalCode" value="Location.

...

postalCode"/>

...

country

...


            <property name="

...

longitude" value="Location.

...

longitude"/>

...

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,

Code Block
languagexml
<nameMappings class="properties">
	    ... 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
languagexml
<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
languagexml
<lineByLineFormat>
            <string>address1</string>
            <string>address2</string>
            <string>cityVillage <property name="postalCode" value="Location.postalCode"/>stateProvince country postalCode</string>
            <string>latitude longitude</string>
<property name="longitude" value="Location.longitude"/>
	         ... others  <string>startDate endDate</string>
	</nameMappings>

...

lineByLineFormat>

(Optional) You can add default values to the attributes as below,
E.g.

Code Block
languagexml
<sizeMappings<elementDefaults class="properties">
            <property name="postalCodecountry" value="10Kenya"/>
            ...
         <property name="longitude" value="10"/>
	</elementDefaults>

(Optional) You can define which fields are required (since Platform 2.0)

Code Block
languagexml
<requiredElements>
            <string>address1</string>
            ... others
	
        </sizeMappings>requiredElements>

Next, design the layout for your Address Template.
This defines the relative positions of the address attributes to one another

(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
languagexml
<lineByLineFormat>
            <string>address1</string><elementRegex class="properties">
            <string>address2</string>   <property name="longitude" value="^(\d{1,3}\s)\d\d\.(\d{2,3})\s*$"/>
       <string>cityVillage stateProvince country postalCode</string>  <property    name="latitude" value="^(\d{1,3}\\s)\d\d\.(\d{2,3})\s*$"/>
      <string>latitude longitude</string>     ...
       <string>startDate endDate</string>
	</lineByLineFormat>elementRegex>

(Optional) You can add default values to the attributes as below,
E.gInput suggestions;  These can be used to display an example format that an element should look like.

Code Block
languagexml
<elementDefaults<elementRegexFormats class="properties">
            <property name="country"longitude" value="123 45.000"/>
            <property name="latitude" value="Kenya123 45.000"/>
            ...
        </elementDefaults>

...

elementRegexFormats>

Finally bundle all the above XMLs as shown below,

Code Block
languagexml
<requiredElements><org.openmrs.layout.web.address.AddressTemplate>
            <nameMappings class="properties">
                 <string>address1</string>
<property name="postalCode" value="Location.postalCode"/>
	        ...
   ...         </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
languagexml
<elementRegex>nameMappings>
             <property name="longitude" value="^(\\d{1,3}\\s)\\d\\d.(\\d{2,3})\\s*$"/><sizeMappings class="properties">
                <property name="latitudepostalCode" value="^(\\d{1,3}\\s)\\d\\d.(\\d{2,3})\\s*$10"/>
                ...
            </elementRegex>

Input suggestions;

Code Block
languagexml
<elementRegexFormats>sizeMappings>
            <lineByLineFormat>
 <property name="longitude" value="123 45.000"/>            <string>address1</string>
<property name="latitude" value="123 45.000"/>             ...<string>address2</string>
        </elementRegexFormats> 

Finally bundle all the above XMLs as shown below,

Code Block
languagexml
<org.openmrs.layout.web.address.AddressTemplate>       ...
     <nameMappings class="properties">      </lineByLineFormat>
          <property name="postalCode" value="Location.postalCode"/>
	 ...
        ...    ...
        </nameMappings>
org.openmrs.layout.web.address.AddressTemplate>

For further clarification please go through the samples below,

Anchor
General
General

General Address Template
Code Block
languagexml
<org.openmrs.layout.web.address.AddressTemplate>
         <nameMappings  <sizeMappings class="properties">
  
             <property name="postalCode" value="10Location.postalCode"/>
            <property name="longitude" value="Location.longitude"/>
 ...           <property  </sizeMappings>name="address2" value="Location.address2"/>
            <lineByLineFormat><property name="address1" value="Location.address1"/>
            <property  <string>address1</string>name="startDate" value="PersonAddress.startDate"/>
            <property    <string>address2</string>name="country" value="Location.country"/>
            <property name="endDate" value="personAddress.endDate"/>
 ...           <property  </lineByLineFormat>name="stateProvince" value="Location.stateProvince"/>
            ...
 <property name="latitude" value="Location.latitude"/>
          ...   <property name="cityVillage"     </org.openmrs.layout.web.address.AddressTemplate>

For further clarification please go through the samples below,

...

Code Block
controlstrue
languagexml
titleGeneral Address Template
<org.openmrs.layout.web.address.AddressTemplate>value="Location.cityVillage"/>
        </nameMappings>
        <nameMappings<sizeMappings class="properties">
            <property name="postalCode" value="Location.postalCode10"/>
            <property name="longitude" value="Location.longitude10"/>
            <property name="address2" value="Location.address240"/>
            <property name="address1" value="Location.address140"/>
            <property name="startDate" value="PersonAddress.startDate10"/>
            <property name="country" value="Location.country10"/>
            <property name="endDate" value="personAddress.endDate10"/>
            <property name="stateProvince" value="Location.stateProvince10"/>
            <property name="latitude" value="Location.latitude10"/>
            <property name="cityVillage" value="Location.cityVillage10"/>
        </sizeMappings>
        <lineByLineFormat>
            <string>address1</string>
   </nameMappings>         <sizeMappings class="properties"><string>address2</string>
            <string>cityVillage <property name="postalCode" value="10"/>stateProvince country postalCode</string>
            <property name="longitude" value="10"/><string>latitude longitude</string>
            <property name="address2" value="40"/><string>startDate endDate</string>
        </lineByLineFormat>
    <property name="address1" value="40"/></org.openmrs.layout.web.address.AddressTemplate>

Anchor
Kenya
Kenya

Address Template for Kenya
Code Block
languagexml
<org.openmrs.layout.web.address.AddressTemplate>
            <property name<nameMappings class="startDate" value="10"/properties">
            <property name="countrypostalCode" value="10Location.postalCode"/>
            <property name="endDatelongitude" value="10Location.longitude"/>
            <property name="stateProvinceaddress3" value="10Location.estateNearestCentre"/>
            <property name="latitudeaddress2" value="10Location.sectionHomestead"/>
            <property name="cityVillageaddress1" value="10"/>
        </sizeMappings>Location.address1"/>
        <lineByLineFormat>    <property name="country" value="Location.country"/>
      <string>address1</string>      <property       <string>address2</string>name="stateProvince" value="Location.province"/>
            <string>cityVillage stateProvince country postalCode</string><property name="latitude" value="Location.latitude"/>
            <property <string>latitude longitude</string>
   name="address6" value="Location.location"/>
        <string>startDate endDate</string>       <property  </lineByLineFormat>name="address5" value="Location.sublocation"/>
    </org.openmrs.layout.web.address.AddressTemplate>

...

Code Block
controlstrue
languagexml
titleAddress Template for Kenya
<org.openmrs.layout.web.address.AddressTemplate>        <property <nameMappings classname="cityVillage" value="propertiesLocation.townVillage"/>
            <property name="postalCodecountyDistrict" value="Location.postalCodedistrict"/>
            <property name="longitudeaddress4" value="Location.longitudedivision"/>>
        </nameMappings>
       <property name="address3" value<sizeMappings class="Location.estateNearestCentreproperties"/>
            <property name="address2postalCode" value="Location.sectionHomestead6"/>
            <property name="address1longitude" value="Location.address110"/>
            <property name="countryaddress3" value="Location.country24"/>
            <property name="stateProvinceaddress2" value="Location.province55"/>
            <property name="latitudeaddress1" value="Location.latitude55"/>
            <property name="address6country" value="Location.location10"/>
            <property name="address5townshipDivision" value="Location.sublocation24"/>
            <property name="cityVillagestateProvince" value="Location.townVillage24"/>
            <property name="countyDistrictsubregion" value="Location.district24"/>
            <property name="address4latitude" value="Location.division10"/>

       </nameMappings>         <sizeMappings class="properties"<property name="region" value="24"/>
            <property name="postalCodecityVillage" value="624"/>
            <property name="longitudecountyDistrict" value="1024"/>
        </sizeMappings>
   <property name="address3" value="24"/     <elementDefaults class="properties">
            <property name="address2country" value="55Kenya"/>
        </elementDefaults>
   <property name="address1" value="55"/     <elementRegex class="properties">
            <property name="country" value="10"="longitude" value="^(\\d{1,3}\\s)\\d\\d.(\\d{2,3})\\s*$"/>
            <property name="townshipDivisionlatitude" value="24^(\\d{1,3}\\s)\\d\\d.(\\d{2,3})\\s*$"/>
            <property name="stateProvince" value="24"/></elementRegex>
            <property name="subregion" value<elementRegexFormats class="24properties"/>
            <property name="latitudelongitude" value="10123 45.000"/>
            <property name="regionlatitude" value="24123 45.000"/>
        </elementRegexFormats>
    <property name="cityVillage" value="24"/>  <lineByLineFormat>
          <property name="countyDistrict" value="24"/> <string>address1</string>
        </sizeMappings>    <string>address2</string>
    <elementDefaults class="properties">       <string>address3 cityVillage</string>
    <property  name="country" value="Kenya"/>     <string>address5 address6</string>
  </elementDefaults>         <elementRegex class="properties">
 <string>address4 countyDistrict</string>
           <property name="longitude" value="^(\\d{1,3}\\s)\\d\\d.(\\d{2,3})\\s*$"/><string>stateProvince postalCode</string>
            <property name="latitude" value="^(\\d{1,3}\\s)\\d\\d.(\\d{2,3})\\s*$"/><string>latitude longitude</string>
            <string>country</string>
        </elementRegex>lineByLineFormat>
    </org.openmrs.layout.web.address.AddressTemplate>

Anchor
Lesotho
Lesotho

Address Template for Lesotho
Code Block
languagexml
<org.openmrs.layout.web.address.AddressTemplate>
        <elementRegexFormats<nameMappings class="properties">
            <property name="longitudecountyDistrict" value="123 45Location.000district"/>
            <property name="latitudecityVillage" value="123 45Location.000village"/>
        </elementRegexFormats>nameMappings>
        <lineByLineFormat>
<sizeMappings class="properties">
           <string>address1</string> <property name="countyDistrict" value="40"/>
         <string>address2</string>   <property name="cityVillage" value="40"/>
       <string>address3 cityVillage<</string>sizeMappings>
        <elementDefaults class="properties">
  <string>address5  address6</string>        <property name="country" value="Lesotho"/>
  <string>address4 countyDistrict</string>     </elementDefaults>
       <string>stateProvince postalCode</string><lineByLineFormat>
            <string>latitude longitude<<string>countyDistrict</string>
            <string>country<<string>cityVillage</string>
        </lineByLineFormat>
    </org.openmrs.layout.web.address.AddressTemplate>

Anchor
LesothoLesothoMalawi
Malawi

Address Template for Malawi
true
Code Block
controls
languagexmltitleAddress Template for Lesotho
<org.openmrs.layout.web.address.AddressTemplate>
        <nameMappings class="properties">
            <property name="countyDistrictaddress3" value="Location.districtneighborhood"/>
            <property name="cityVillagestateProvince" value="Location.villagedistrict"/>
        </nameMappings>    <property     <sizeMappings class="properties"name="address1" value="Location.address1"/>
            <property name="countyDistrict" value="40Location.traditionalAuthority"/>
            <property name="cityVillage" value="40Location.village"/>
        </sizeMappings>nameMappings>
        <elementDefaults<sizeMappings class="properties">
            <property name="countryaddress3" value="Lesotho20"/>
             </elementDefaults><property name="stateProvince" value="20"/>
        <lineByLineFormat>    <property name="address1" value="40"/>
      <string>countyDistrict</string>      <property name="countyDistrict" value="20"/>
    <string>cityVillage</string>         </lineByLineFormat>
    </org.openmrs.layout.web.address.AddressTemplate>

...

Code Block
controlstrue
languagexml
titleAddress Template for Malawi
<org.openmrs.layout.web.address.AddressTemplate><property name="cityVillage" value="20"/>
        </sizeMappings>
        <nameMappings<elementDefaults class="properties">
            <property name="address3country" value="Location.neighborhoodMalawi"/>
        </elementDefaults>
      <property name="stateProvince" value="Location.district"/>  <lineByLineFormat>
            <string>address1</string>
            <string>address3</string>
            <string>cityVillage</string>
  <property name="address1" value="Location.address1"/>        <string>countyDistrict</string>
    <property name="countyDistrict" value="Location.traditionalAuthority"/>      <string>stateProvince</string>
      <property name="cityVillage" value="Location.village"/> </lineByLineFormat>
        </nameMappings></org.openmrs.layout.web.address.AddressTemplate>

Anchor
Rwanda
Rwanda

Address Template for Rwanda
Code Block
languagexml
<org.openmrs.layout.web.address.AddressTemplate>
        <sizeMappings<nameMappings class="properties">
            <property name="address3" value="20Location.cell"/>
            <property name="stateProvince" value="20Location.province"/>
            <property name="address1" value="40Location.rwandanNeighborhood"/>
            <property name="countyDistrict" value="20Location.district"/>
            <property name="cityVillage" value="20Location.sector"/>
        </sizeMappings>nameMappings>
        <elementDefaults<sizeMappings class="properties">
            <property name="countryaddress3" value="Malawi40"/>
        </elementDefaults>    <property     <lineByLineFormat>
            <string>address1</string>name="stateProvince" value="40"/>
            <string>address3</string>
            <string>cityVillage</string><property name="address1" value="40"/>
            <string>countyDistrict</string>
 <property name="countyDistrict" value="40"/>
          <string>stateProvince</string>  <property name="cityVillage" value="40"/>
    </lineByLineFormat>
    </org.openmrs.layout.web.address.AddressTemplate>

...

Code Block
controlstrue
languagexml
titleAddress Template for Rwanda
<org.openmrs.layout.web.address.AddressTemplate>    </sizeMappings>
        <nameMappings<elementDefaults class="properties">
            <property name="address3country" value="Location.cellRwanda"/>
        </elementDefaults>
        <lineByLineFormat>
       <property name="stateProvince" value="Location.province"/>     <string>stateProvince</string>
            <string>countyDistrict</string>
       <property name="address1" value="Location.rwandanNeighborhood"/>     <string>cityVillage</string>
            <string>address3</string>
    <property name="countyDistrict" value="Location.district"/>      <string>address1</string>
      <property name="cityVillage" value="Location.sector"/> </lineByLineFormat>
        </nameMappings></org.openmrs.layout.web.address.AddressTemplate>

Anchor
Spain
Spain

Address Template for Spain
Code Block
languagexml
<org.openmrs.layout.web.address.AddressTemplate>
        <sizeMappings<nameMappings class="properties">
            <property name="address3address2" value="40Location.address2"/>
            <property name="stateProvince" value="40Location.stateProvince"/>
            <property name="address1" value="40Location.address1"/>
            <property name="countyDistrictlongitude" value="40Location.longitude"/>
            <property name="cityVillagepostalCode" value="40Location.postalCode"/>
        </sizeMappings>    <property     <elementDefaults class="properties"name="cityVillage" value="Location.cityVillage"/>
            <property name="country" value="RwandaLocation.country"/>
        </elementDefaults>    <property name="latitude" value="Location.latitude"/>
  <lineByLineFormat>             <string>stateProvince</string></nameMappings>
        <sizeMappings class="properties">
  <string>countyDistrict</string>           <property  <string>cityVillage</string>name="address2" value="40"/>
            <string>address3</string>
   <property name="stateProvince" value="10"/>
        <string>address1</string>    <property     </lineByLineFormat>name="address1" value="40"/>
    </org.openmrs.layout.web.address.AddressTemplate>

...

Code Block
controlstrue
languagexml
titleAddress Template for Spain
<org.openmrs.layout.web.address.AddressTemplate>        <property <nameMappings classname="longitude" value="properties10"/>
            <property name="address2postalCode" value="Location.address210"/>
            <property name="stateProvincecityVillage" value="Location.stateProvince10"/>
            <property name="address1country" value="Location.address110"/>
            <property name="longitudelatitude" value="Location.longitude"/>10"/>
        </sizeMappings>
        <lineByLineFormat>
            <string>address1</string>
            <string>address2</string>
            <string>cityVillage <property name="postalCode" value="Location.postalCode"/>stateProvince country postalCode</string>
            <string>latitude longitude</string>
      <property name="cityVillage" value="Location.cityVillage"/> </lineByLineFormat>
    </org.openmrs.layout.web.address.AddressTemplate>

Anchor
Tanzania
Tanzania

Address Template for Tanzania
Code Block
languagexml
<org.openmrs.layout.web.address.AddressTemplate>
       <property name="country" value<nameMappings class="Location.countryproperties"/>
            <property name="latitudeaddress6" value="Location.latituderegion"/>
     
  </nameMappings>         <sizeMappings class="properties">             <property name="address2address5" value="40Location.ward"/>
            <property name="stateProvincecountyDistrict" value="10Location.district"/>
            <property name="address1cityVillage" value="40Location.villageStreet"/>
        </nameMappings>
   <property name="longitude" value="10"/     <sizeMappings class="properties">
            <property name="postalCodeaddress6" value="1014"/>
            <property name="cityVillageaddress5" value="1022"/>
            <property name="countrycountyDistrict" value="1017"/>
            <property name="latitudecityVillage" value="1050"/>
        </sizeMappings>
        <lineByLineFormat>
            <string>address1<<string>cityVillage</string>
            <string>address2<<string>address5</string>
            <string>cityVillage stateProvince country postalCode<<string>countyDistrict</string>
            <string>latitude longitude<<string>address6</string>
        </lineByLineFormat>
    </org.openmrs.layout.web.address.AddressTemplate>

Anchor
USA
TanzaniaTanzaniaUSA

Address Template for USA
Code Block
title
controlstrue
languagexmlAddress Template for Tanzania
<org.openmrs.layout.web.address.AddressTemplate>.address.AddressTemplate>
        <nameMappings class="properties">
            <property name="address2" value="Location.address2"/>
            <property name="stateProvince" value="Location.state"/>
            <nameMappings class="properties"<property name="address1" value="Location.address1"/>
            <property name="address6postalCode" value="Location.regionzipCode"/>
            <property name="address5cityVillage" value="Location.ward"/city"/>
        </nameMappings>
        <sizeMappings class="properties">
            <property name="countyDistrictaddress2" value="Location.district50"/>
            <property name="cityVillagestateProvince" value="Location.villageStreet2"/>
        </nameMappings>    <property     <sizeMappings classname="address1" value="properties50"/>
            <property name="address6postalCode" value="1410"/>
            <property name="address5cityVillage" value="2220"/>
        </sizeMappings>
   <property name="countyDistrict" value="17"/     <elementDefaults class="properties">
            <property name="cityVillagecountry" value="50USA"/>
        </sizeMappings>elementDefaults>
        <lineByLineFormat>
            <string>cityVillage<<string>address1</string>
            <string>address5<<string>address2</string>
            <string>countyDistrict</string><string>cityVillage             <string>address6<stateProvince postalCode</string>
        </lineByLineFormat>
    </org.openmrs.layout.web.address.AddressTemplate>

...

Anchor
USAUSAChile

...

Chile

Address Template for Chile
Code Block
languagehtml/xml
titleAddress Template for USA
<org.openmrs.layout.web.address.AddressTemplate>
        <nameMappings class="properties">
            <property name="address2address3" value="Location.address2address3"/>
            <property name="stateProvinceaddress2" value="Location.stateaddress2"/>
            <property name="address1stateProvince" value="Location.address1state"/>
            <property name="postalCodeaddress1" value="Location.zipCodeaddress1"/>
            <property name="cityVillagepostalCode" value="Location.cityzipCode"/>
        </nameMappings>    <property     <sizeMappings class="properties">
            name="cityVillage" value="Location.city"/>
			<property name="address2countyDistrict" value="50Location.district"/>
    	 	</nameMappings>
       <property name="stateProvince" value<sizeMappings class="2properties"/>
            <property name="address1address3" value="5010"/>
            <property name="postalCodeaddress2" value="10"/>
            <property name="cityVillagestateProvince" value="202"/>

       </sizeMappings>     <property    <elementDefaults classname="address1" value="properties50"/>
            <property name="countrypostalCode" value="USA10"/>
        </elementDefaults>    <property     <lineByLineFormat>
            <string>address1</string>
            <string>address2</string>name="cityVillage" value="20"/>
            <string>cityVillage stateProvince postalCode</string><property name="countyDistrict" value="20"/>
        </lineByLineFormat>sizeMappings>
    </org.openmrs.layout.web.address.AddressTemplate>
Code Block
controlstrue
languagehtml/xml
titleAddress Template for Chile
<org.openmrs.layout.web.address.AddressTemplate>    <elementDefaults     <nameMappings class="properties">
            <property name="address3country" value="Location.address3Chile"/>
    
       <property name="address2" value="Location.address2"/> </elementDefaults>
        <lineByLineFormat>
			<string>address1 address2  <property name="stateProvince" value="Location.state"/>address3</string>
			<string>cityVillage countyDistrict stateProvince country postalCode</string>
        </lineByLineFormat>
   <property name="address1" value="Location.address1"/> </org.openmrs.layout.web.address.AddressTemplate>

Anchor
Nepal
Nepal

Address Template for Nepal
Code Block
languagexml
<org.openmrs.layout.web.address.AddressTemplate>
    <nameMappings class="properties">
      <property name="postalCodeaddress3" value="Location.zipCodeWard Number"/><!--Ward Number-->
            <property name="cityVillageaddress4" value="Location.cityTole"/><!--Tole-->
			  <property name="countyDistrictaddress5" value="Location.districtLandmark"/><!--Landmarks-->
	 	</nameMappings>      <property   <sizeMappings class="properties"name="startDate" value="PersonAddress.startDate"/>
      <property name="country" value="Location.country"/>
      <property name="address3endDate" value="10personAddress.endDate"/>
    
       <property name="address2countyDistrict" value="10Location.district"/><!--District-->
            <property name="stateProvincecityVillage" value="2VDC/Municipality"/><!--VDC/Municipality-->
            <property name="address1stateProvince" value="50Zone"/>
    </nameMappings>
      <sizeMappings class="properties">
      <property name="postalCodeaddress3" value="1040"/>
  
         <property name="cityVillageaddress4" value="2040"/>
         	   <property name="countyDistrictaddress5" value="2040"/>
      <property  </sizeMappings>
        <elementDefaults class="properties"name="startDate" value="10"/>
            <property name="country" value="Chile10"/>
        </elementDefaults>
        <lineByLineFormat>
			<string>address1 address2 address3</string> 			<string>cityVillage countyDistrict stateProvince country postalCode</string><property name="endDate" value="10"/>
      <property  </lineByLineFormat>name="countyDistrict" value="40"/>
    </org.openmrs.layout.web.address.AddressTemplate>

...

 

Code Block
languagexml
titleAddress Template for Nepal
<org.openmrs.layout.web.address.AddressTemplate>
    <nameMappings class="properties"  <property name="cityVillage" value="40"/>
      <property name="address3stateProvince" value="Ward Number"/><!--Ward Number--"40"/>
    </sizeMappings>
	<elementDefaults class="properties">
      <property name="address4country" value="ToleNepal"/><!--Tole-->
	</elementDefaults>
     <property name="address5" value="Landmark"/><!--Landmarks--><lineByLineFormat>
      <string>stateProvince countyDistrict</string>
	  <string>cityVillage address3</string>
	  <string>address4 address5</string>
      <string>country</string>
  <property name="startDate" value="PersonAddress.startDate"/>
   </lineByLineFormat>
  </org.openmrs.layout.web.address.AddressTemplate>

Anchor
Haiti
Haiti

Address Template for Haiti
Code Block
languagexml
<org.openmrs.layout.web.address.AddressTemplate>
   <property name="country" value="Location.country"/>  <nameMappings class="properties">
       <property name="endDateaddress2" value="personAddress.endDateRi / Nimewo Kay"/>
       <property name="countyDistrictaddress1" value="Location.districtLokalite"/><!--District-->
       <property name="cityVillagecountry" value="VDC/MunicipalityPeyi"/><!--VDC/Municipality-->
       <property name="stateProvince" value="ZoneDepatman"/>
    </nameMappings>   <property  <sizeMappings classname="cityVillage" value="propertiesKomin"/>
       <property name="address3countyDistrict" value="40Seksyon Riral"/>
     </nameMappings>
<property name="address4" value="40"/> 	  <property name="address5" value<sizeMappings class="40properties"/>
       <property name="startDateaddress2" value="1040"/>
       <property name="countryaddress1" value="1040"/>
       <property name="endDatecountry" value="1040"/>
       <property name="countyDistrictstateProvince" value="40"/>
       <property name="cityVillage" value="40"/>
       <property name="stateProvincecountyDistrict" value="40"/>
     </sizeMappings>
   	<elementDefaults class="properties"> <lineByLineFormat>
     <property name="country" value="Nepal"/>
	</elementDefaults> <string>country</string>
       <lineByLineFormat><string>stateProvince</string>
      <string>stateProvince countyDistrict<<string>cityVillage</string>
	      <string>cityVillage address3<<string>countyDistrict</string>
    	  <string>address4 address5<<string>address1</string>
      <string>country< <string>address2</string>
     </lineByLineFormat>
 
</org.openmrs.layout.web.address.AddressTemplate>

...