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

<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,

...

languagexml

...

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,

Code Block
languagexml
<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
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 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
languagexml
<elementDefaults class="properties">
            <property name="country" value="Kenya"/>
            ...
        </elementDefaults>

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

Code Block
languagexml
<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
languagexml
<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
languagexml
<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
languagexml
<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,

Anchor
General
General

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

...

org.openmrs.layout.web.address.AddressTemplate>

Anchor
Kenya
Kenya

Address Template for Kenya
Code Block
languagexml

<sizeMappings class="properties">
   <org.openmrs.layout.web.address.AddressTemplate>
        <property<nameMappings nameclass="postalCode" value="10"/properties">
            <property name="longitudepostalCode" value="10Location.postalCode"/>
	    ...
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>           <property  <string>address2</string>name="longitude" value="Location.longitude"/>
            <string>cityVillage stateProvince country postalCode</string><property name="address3" value="Location.estateNearestCentre"/>
            <property <string>latitude longitude</string>name="address2" value="Location.sectionHomestead"/>
            <string>startDate endDate</string>
	</lineByLineFormat>

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

Code Block
languagexml

<elementDefaults><property name="address1" value="Location.address1"/>
             <property name="country" value="KenyaLocation.country"/>
            <property name="stateProvince" ...value="Location.province"/>
             </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
languagexml

<elementRegex><property name="latitude" value="Location.latitude"/>
            <property name="address6" value="Location.location"/>
            <property name="longitudeaddress5" value="^(\\d{1,3}\\s)\\d\\d.(\\d{2,3})\\s*$Location.sublocation"/>
            <property name="latitudecityVillage" value="^(\\d{1,3}\\s)\\d\\d.(\\d{2,3})\\s*$Location.townVillage"/>
            ...<property name="countyDistrict" value="Location.district"/>
             </elementRegex>

Input suggestions;

Code Block
languagexml

<elementRegexFormats><property name="address4" value="Location.division"/>
        </nameMappings>
       <property name="longitude" value="123 45.000"/<sizeMappings class="properties">
            <property name="latitudepostalCode" value="123 45.0006"/>
            ...
        </elementRegexFormats>

Finally bundle all the above XMLs as shown below,

Code Block
languagexml

<org.openmrs.layout.web.address.AddressTemplate><property name="longitude" value="10"/>
            <nameMappings class<property name="address3" value="properties24"/>
   
            <property name="postalCodeaddress2" value="Location.postalCode55"/>
	        ...    <property name="address1" value="55"/>
      </nameMappings>      <property       <sizeMappings class="properties"name="country" value="10"/>
                <property name="postalCodetownshipDivision" value="1024"/>
            <property name="stateProvince" value="24"/>
    ...        <property     </sizeMappings>name="subregion" value="24"/>
            <lineByLineFormat><property name="latitude" value="10"/>
            <property  <string>address1</string>name="region" value="24"/>
            <property    <string>address2</string>name="cityVillage" value="24"/>
            <property    ...
  name="countyDistrict" value="24"/>
         </lineByLineFormat>sizeMappings>
        <elementDefaults class="properties">
  ...          <property   ...
 name="country" value="Kenya"/>
      </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>  </elementDefaults>
        <nameMappings<elementRegex class="properties">
            <property name="postalCodelongitude" value="Location.postalCode^(\\d{1,3}\\s)\\d\\d.(\\d{2,3})\\s*$"/>
            <property name="longitudelatitude" value="Location.longitude"/>="^(\\d{1,3}\\s)\\d\\d.(\\d{2,3})\\s*$"/>
        </elementRegex>
       <property name="address2" value<elementRegexFormats class="Location.address2properties"/>
            <property name="address1longitude" value="Location123 45.address1000"/>
            <property name="startDatelatitude" value="PersonAddress123 45.startDate000"/>
            <property name="country" value="Location.country"/></elementRegexFormats>
         <lineByLineFormat>
  <property name="endDate" value="personAddress.endDate"/>          <string>address1</string>
  <property name="stateProvince" value="Location.stateProvince"/>        <string>address2</string>
    <property name="latitude" value="Location.latitude"/>      <string>address3 cityVillage</string>
     <property name="cityVillage" value="Location.cityVillage"/>     <string>address5 address6</string>
  </nameMappings>         <sizeMappings class="properties">
 <string>address4 countyDistrict</string>
           <property name="postalCode" value="10"/><string>stateProvince postalCode</string>
            <property name="longitude" value="10"/><string>latitude longitude</string>
            <property name="address2" value="40"/><string>country</string>
        </lineByLineFormat>
   <property name="address1" value="40"/>
 </org.openmrs.layout.web.address.AddressTemplate>

Anchor
Lesotho
Lesotho

Address Template for Lesotho
Code Block
languagexml
<org.openmrs.layout.web.address.AddressTemplate>
        <nameMappings   <property nameclass="startDate" value="10"/properties">
            <property name="countrycountyDistrict" value="10Location.district"/>
            <property name="endDatecityVillage" value="10Location.village"/>
        </nameMappings>
       <property name="stateProvince" value<sizeMappings class="10properties"/>
            <property name="latitudecountyDistrict" value="1040"/>
            <property name="cityVillage" value="1040"/>
        </sizeMappings>
        <lineByLineFormat>
<elementDefaults class="properties">
           <string>address1</string> <property            <string>address2</string>name="country" value="Lesotho"/>
        </elementDefaults>
     <string>cityVillage stateProvince country postalCode</string> <lineByLineFormat>
           <string>latitude longitude<<string>countyDistrict</string>
            <string>startDate endDate<<string>cityVillage</string>
        </lineByLineFormat>
    </org.openmrs.layout.web.address.AddressTemplate>

Anchor
Malawi
KenyaKenyaMalawi

Address Template for Malawi
true
Code Block
controls
title
languagexmlAddress Template for Kenya
<org.openmrs.layout.web.address.AddressTemplate>.AddressTemplate>
        <nameMappings class="properties">
            <property name="address3" value="Location.neighborhood"/>
            <property <nameMappings classname="stateProvince" value="propertiesLocation.district"/>
            <property name="postalCodeaddress1" value="Location.postalCodeaddress1"/>
            <property name="longitudecountyDistrict" value="Location.longitudetraditionalAuthority"/>
            <property name="address3cityVillage" value="Location.estateNearestCentrevillage"/>
        </nameMappings>
        <sizeMappings class="properties">
            <property name="address2address3" value="Location.sectionHomestead20"/>
            <property name="address1stateProvince" value="Location.address120"/>
            <property name="countryaddress1" value="Location.country40"/>
            <property name="stateProvincecountyDistrict" value="Location.province20"/>
            <property name="latitudecityVillage" value="Location.latitude20"/>
        </sizeMappings>
       <property name="address6" value<elementDefaults class="Location.locationproperties"/>
            <property name="address5country" value="Location.sublocationMalawi"/>
        </elementDefaults>
    <property name="cityVillage" value="Location.townVillage"/>  <lineByLineFormat>
          <property name="countyDistrict" value="Location.district"/> <string>address1</string>
            <property name="address4" value="Location.division"/><string>address3</string>
            <<string>cityVillage</nameMappings>string>
         <sizeMappings class="properties">  <string>countyDistrict</string>
          <property name="postalCode" value="6"/> <string>stateProvince</string>
        </lineByLineFormat>
   <property name="longitude" value="10"/> </org.openmrs.layout.web.address.AddressTemplate>

Anchor
Rwanda
Rwanda

Address Template for Rwanda
Code Block
languagexml
<org.openmrs.layout.web.address.AddressTemplate>
            <property name<nameMappings class="address3" value="24"/properties">
            <property name="address2address3" value="55Location.cell"/>
            <property name="address1stateProvince" value="55Location.province"/>
            <property name="countryaddress1" value="10Location.rwandanNeighborhood"/>
            <property name="townshipDivisioncountyDistrict" value="24Location.district"/>
            <property name="stateProvincecityVillage" value="24Location.sector"/>
            <property name="subregion" value="24"/></nameMappings>
            <property name="latitude" value="10"/<sizeMappings class="properties">
            <property name="regionaddress3" value="2440"/>
            <property name="cityVillagestateProvince" value="2440"/>
            <property name="countyDistrictaddress1" value="2440"/>
        </sizeMappings>    <property     <elementDefaults classname="countyDistrict" value="properties40"/>
            <property name="countrycityVillage" value="Kenya40"/>
        </elementDefaults>sizeMappings>
        <elementRegex<elementDefaults class="properties">
            <property name="longitudecountry" value="^(\\d{1,3}\\s)\\d\\d.(\\d{2,3})\\s*$"/>
  Rwanda"/>
        </elementDefaults>
        <lineByLineFormat>
         <property  name="latitude" value="^(\\d{1,3}\\s)\\d\\d.(\\d{2,3})\\s*$"/> <string>stateProvince</string>
        </elementRegex>    <string>countyDistrict</string>
    <elementRegexFormats class="properties">       <string>cityVillage</string>
     <property name="longitude" value="123 45.000"/>      <string>address3</string>
         <property name="latitude" value="123 45.000"/> <string>address1</string>
        </elementRegexFormats>lineByLineFormat>
    </org.openmrs.layout.web.address.AddressTemplate>

Anchor
Spain
Spain

Address Template for Spain
Code Block
languagexml
<org.openmrs.layout.web.address.AddressTemplate>
   <lineByLineFormat>     <nameMappings class="properties">
          <string>address1</string>  <property name="address2" value="Location.address2"/>
        <string>address2</string>    <property name="stateProvince" value="Location.stateProvince"/>
      <string>address3 cityVillage</string>     <property name="address1" value="Location.address1"/>
     <string>address5 address6</string>      <property name="longitude" value="Location.longitude"/>
    <string>address4 countyDistrict</string>             <string>stateProvince postalCode</string><property name="postalCode" value="Location.postalCode"/>
            <property name="cityVillage"  <string>latitude longitude</string>value="Location.cityVillage"/>
            <property  <string>country</string>name="country" value="Location.country"/>
        </lineByLineFormat>     </org.openmrs.layout.web.address.AddressTemplate>

...

Code Block
controlstrue
languagexml
titleAddress Template for Lesotho
<org.openmrs.layout.web.address.AddressTemplate><property name="latitude" value="Location.latitude"/>
        </nameMappings>
        <nameMappings<sizeMappings class="properties">
            <property name="countyDistrictaddress2" value="Location.district40"/>
            <property name="cityVillagestateProvince" value="Location.village10"/>

       </nameMappings>     <property    <sizeMappings classname="address1" value="properties40"/>
            <property name="countyDistrictlongitude" value="4010"/>
            <property name="cityVillagepostalCode" value="4010"/>
 
      </sizeMappings>        <property <elementDefaults classname="cityVillage" value="properties10"/>
            <property name="country" value="Lesotho10"/>
        </elementDefaults>    <property name="latitude" value="10"/>
    <lineByLineFormat>    </sizeMappings>
        <string>countyDistrict</string><lineByLineFormat>
            <string>cityVillage<<string>address1</string>
        </lineByLineFormat>
    </org.openmrs.layout.web.address.AddressTemplate>

...

Code Block
controlstrue
languagexml
titleAddress Template for Malawi
<org.openmrs.layout.web.address.AddressTemplate>    <string>address2</string>
            <string>cityVillage <nameMappings class="properties">
stateProvince country postalCode</string>
           <property name="address3" value="Location.neighborhood"/><string>latitude longitude</string>
        </lineByLineFormat>
     <property name="stateProvince" value="Location.district"/></org.openmrs.layout.web.address.AddressTemplate>

Anchor
Tanzania
Tanzania

Address Template for Tanzania
Code Block
languagexml
<org.openmrs.layout.web.address.AddressTemplate>
            <property name<nameMappings class="address1" value="Location.address1"/properties">
            <property name="countyDistrictaddress6" value="Location.traditionalAuthorityregion"/>
            <property name="cityVillageaddress5" value="Location.villageward"/>

       </nameMappings>         <sizeMappings class="properties">
            <property name="address3countyDistrict" value="20Location.district"/>
            <property name="stateProvincecityVillage" value="20Location.villageStreet"/>
        </nameMappings>
      <property name="address1" value  <sizeMappings class="40properties"/>
            <property name="countyDistrictaddress6" value="2014"/>
            <property name="cityVillageaddress5" value="2022"/>
        </sizeMappings>    <property     <elementDefaults classname="countyDistrict" value="properties17"/>
            <property name="countrycityVillage" value="Malawi50"/>
        </elementDefaults>sizeMappings>
        <lineByLineFormat>
            <string>address1<<string>cityVillage</string>
            <string>address3<<string>address5</string>
 
          <string>cityVillage</string>             <string>countyDistrict</string>
            <string>stateProvince<<string>address6</string>
        </lineByLineFormat>
    </org.openmrs.layout.web.address.AddressTemplate>

Anchor
USA
RwandaRwandaUSA

Address Template for USA
true
Code Block
controls
title
languagexmlAddress Template for Rwanda
<org.openmrs.layout.web.address.AddressTemplate>
        <nameMappings class="properties">
            <property name="address3address2" value="Location.celladdress2"/>
            <property name="stateProvince" value="Location.provincestate"/>
            <property name="address1" value="Location.rwandanNeighborhoodaddress1"/>
            <property name="countyDistrictpostalCode" value="Location.districtzipCode"/>
            <property name="cityVillage" value="Location.sectorcity"/>
        </nameMappings>
        <sizeMappings class="properties">
            <property name="address3address2" value="4050"/>
            <property name="stateProvince" value="402"/>
            <property name="address1" value="4050"/>
            <property name="countyDistrictpostalCode" value="4010"/>
            <property name="cityVillage" value="4020"/>
        </sizeMappings>
        <elementDefaults class="properties">
            <property name="country" value="RwandaUSA"/>
        </elementDefaults>
        <lineByLineFormat>
            <string>stateProvince<<string>address1</string>
            <string>countyDistrict<<string>address2</string>
            <string>cityVillage</string><string>cityVillage             <string>address3<stateProvince postalCode</string>
            <string>address1</string>
        </lineByLineFormat>
    </org.openmrs.layout.web.address.AddressTemplate>

Anchor
Chile
SpainSpainChile

Address Template for Chile
true
Code Block
controls
title
languagehtml/xmlAddress Template for Spain
<org.openmrs.layout.web.address.AddressTemplate>
        <nameMappings class="properties">
            <property name="address2address3" value="Location.address2address3"/>
            <property name="stateProvinceaddress2" value="Location.stateProvinceaddress2"/>
            <property name="address1stateProvince" value="Location.address1state"/>
            <property name="longitudeaddress1" value="Location.longitudeaddress1"/>
            <property name="postalCode" value="Location.postalCodezipCode"/>
            <property name="cityVillage" value="Location.cityVillage"/city"/>
			<property name="countyDistrict" value="Location.district"/>
	 	</nameMappings>
        <sizeMappings class="properties">
            <property name="countryaddress3" value="Location.country10"/>
            <property name="latitudeaddress2" value="Location.latitude10"/>
        </nameMappings>    <property     <sizeMappings classname="stateProvince" value="properties2"/>
            <property name="address2address1" value="4050"/>
            <property name="stateProvincepostalCode" value="10"/>
            <property name="address1cityVillage" value="4020"/>
            <property name="longitudecountyDistrict" value="1020"/>
        </sizeMappings>
    <property name="postalCode" value="10"/    <elementDefaults class="properties">
            <property name="cityVillagecountry" value="10Chile"/>
            <property name="country" value="10"/></elementDefaults>
        <lineByLineFormat>
			<string>address1 address2 address3</string>
			<string>cityVillage countyDistrict <property name="latitude" value="10"/>stateProvince country postalCode</string>
        </sizeMappings>lineByLineFormat>
    </org.openmrs.layout.web.address.AddressTemplate>

Anchor
Nepal
Nepal

Address Template for Nepal
Code Block
languagexml
<org.openmrs.layout.web.address.AddressTemplate>
   <lineByLineFormat>   <nameMappings class="properties">
      <property name="address3"  <string>address1</string>
value="Ward Number"/><!--Ward Number-->
      <property     <string>address2</string>
    name="address4" value="Tole"/><!--Tole-->
	  <property name="address5" value="Landmark"/><!--Landmarks-->
      <property <string>cityVillage stateProvince country postalCode</string>name="startDate" value="PersonAddress.startDate"/>
      <property      <string>latitude longitude</string>name="country" value="Location.country"/>
      <property  </lineByLineFormat>
    </org.openmrs.layout.web.address.AddressTemplate>

...

Code Block
controlstrue
languagexml
titleAddress Template for Tanzania
<org.openmrs.layout.web.address.AddressTemplate>name="endDate" value="personAddress.endDate"/>
      <property  <nameMappings class="properties"name="countyDistrict" value="Location.district"/><!--District-->
      <property name="cityVillage" value="VDC/Municipality"/><!--VDC/Municipality-->
      <property name="address6stateProvince" value="Location.regionZone"/>
    </nameMappings>
    <sizeMappings class="properties">
      <property name="address5address3" value="Location.ward40"/>
     
      <property name="countyDistrictaddress4" value="Location.district40"/>
       	     <property name="cityVillageaddress5" value="Location.villageStreet40"/>
      <property  </nameMappings>name="startDate" value="10"/>
      <property  <sizeMappings classname="country" value="properties10"/>
    
       <property name="address6endDate" value="1410"/>
            <property name="address5countyDistrict" value="2240"/>
            <property name="countyDistrictcityVillage" value="1740"/>
    >
       <property name="cityVillagestateProvince" value="5040"/>
        </sizeMappings>
	<elementDefaults class="properties">
      <lineByLineFormat><property name="country"            <string>cityVillage</string>value="Nepal"/>
	</elementDefaults>
    <lineByLineFormat>
      <string>stateProvince <string>address5<countyDistrict</string>
	  <string>cityVillage address3</string>
	        <string>countyDistrict<<string>address4 address5</string>
            <string>address6<<string>country</string>
        </lineByLineFormat>
    </org.openmrs.layout.web.address.AddressTemplate>

Anchor
USAUSAHaiti
Haiti

Address Template for Haiti
true
Code Block
controls
languagexmltitleAddress Template for USA
<org.openmrs.layout.web.address.AddressTemplate>
  
     <nameMappings class="properties">
            <property name="address2" value="Location.address2"/>
            <property name="stateProvince" value="Location.state"/>
            <property name="address1" value="Location.address1"/>
   Ri / Nimewo Kay"/>
        <property name="postalCodeaddress1" value="Location.zipCodeLokalite"/>
   
        <property name="cityVillagecountry" value="Location.cityPeyi"/>
        </nameMappings><property name="stateProvince" value="Depatman"/>
       <property <sizeMappings classname="cityVillage" value="propertiesKomin"/>
 
          <property name="address2countyDistrict" value="50Seksyon Riral"/>
     </nameMappings>
     <sizeMappings <property nameclass="stateProvince" value="2"/properties">
            <property name="address1address2" value="5040"/>
    >
       <property name="postalCodeaddress1" value="1040"/>
    
       <property name="cityVillagecountry" value="2040"/>
        </sizeMappings><property name="stateProvince" value="40"/>
       <property <elementDefaults classname="cityVillage" value="properties40"/>
            <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>

...