...
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
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. |
stateProvince
endDate"/> |
Add these attributes XML in the following format,
Code Block | ||
---|---|---|
| ||
<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 | ||
---|---|---|
| ||
<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 | ||
---|---|---|
| ||
<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 <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 | ||
---|---|---|
| ||
<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 | ||
---|---|---|
| ||
<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 | ||
---|---|---|
| ||
<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 | ||
---|---|---|
| ||
<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 | ||
---|---|---|
| ||
<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 | ||
---|---|---|
| ||
<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 | ||
---|---|---|
| ||
<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 | ||
---|---|---|
| ||
<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 Address Template
Code Block | ||
---|---|---|
| ||
<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 | ||||||
---|---|---|---|---|---|---|
| ||||||
<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 | ||||
---|---|---|---|---|
|
Address Template for Kenya
Code Block | ||
---|---|---|
| ||
<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 | ||||||
---|---|---|---|---|---|---|
| ||||||
<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 | ||||
---|---|---|---|---|
|
Address Template for Lesotho
Code Block | ||
---|---|---|
| ||
<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 | |||||
---|---|---|---|---|---|
|
Address Template for Malawi
Code Block | controls | true|||
---|---|---|---|---|
| ||||
<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 | ||||||
---|---|---|---|---|---|---|
| ||||||
<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 | ||||
---|---|---|---|---|
|
Address Template for Rwanda
Code Block | ||
---|---|---|
| ||
<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 | ||||||
---|---|---|---|---|---|---|
| ||||||
<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 | ||||
---|---|---|---|---|
|
Address Template for Spain
Code Block | ||
---|---|---|
| ||
<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 | ||||||
---|---|---|---|---|---|---|
| ||||||
<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 | ||||
---|---|---|---|---|
|
Address Template for Tanzania
Code Block | ||
---|---|---|
| ||
<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 | |||||
---|---|---|---|---|---|
|
Address Template for USA
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
<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 | |||
---|---|---|---|
|
...
|
Address Template for Chile
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
<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 | ||||||
| ||||||
<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 | ||||
---|---|---|---|---|
|
Address Template for Nepal
Code Block | ||
---|---|---|
| ||
<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 | ||||
---|---|---|---|---|
| ||||
<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 | ||||
---|---|---|---|---|
|
Address Template for Haiti
Code Block | ||
---|---|---|
| ||
<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> |
...