...
- General Address Template
- Address Template for Kenya
- Address Template for Lesotho
- Address Template for Malawi
- Address Template for Rwanda
- Address Template for Spain
- Address Template for Tanzania
- Address Template for USA
- Address Template for Chile
- Address Template for Nepal
Customizing Templates
You can also build your own templates.
...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
<org.openmrs.layout.web.address.AddressTemplate>
<nameMappings class="properties">
<property name="address3" value="Location.address3"/>
<property name="address2" value="Location.address2"/>
<property name="stateProvince" value="Location.state"/>
<property name="address1" value="Location.address1"/>
<property name="postalCode" value="Location.zipCode"/>
<property name="cityVillage" value="Location.city"/>
<property name="countyDistrict" value="Location.district"/>
</nameMappings>
<sizeMappings class="properties">
<property name="address3" value="10"/>
<property name="address2" value="10"/>
<property name="stateProvince" value="2"/>
<property name="address1" value="50"/>
<property name="postalCode" value="10"/>
<property name="cityVillage" value="20"/>
<property name="countyDistrict" value="20"/>
</sizeMappings>
<elementDefaults class="properties">
<property name="country" value="Chile"/>
</elementDefaults>
<lineByLineFormat>
<string>address1 address2 address3</string>
<string>cityVillage countyDistrict stateProvince country postalCode</string>
</lineByLineFormat>
</org.openmrs.layout.web.address.AddressTemplate> |
Anchor Nepal Nepal
Code Block | ||||
---|---|---|---|---|
| ||||
<org.openmrs.layout.web.address.AddressTemplate>
<nameMappings class="properties">
<property name="address3" value="Ward Number"/><!--Ward Number-->
<property name="address4" value="Tole"/><!--Tole-->
<property name="address5" value="Landmark"/><!--Landmarks-->
<property name="startDate" value="PersonAddress.startDate"/>
<property name="country" value="Location.country"/>
<property name="endDate" value="personAddress.endDate"/>
<property name="countyDistrict" value="Location.district"/><!--District-->
<property name="cityVillage" value="VDC/Municipality"/><!--VDC/Municipality-->
<property name="stateProvince" value="Zone"/>
</nameMappings>
<sizeMappings class="properties">
<property name="address3" value="40"/>
<property name="address4" value="40"/>
<property name="address5" value="40"/>
<property name="startDate" value="10"/>
<property name="country" value="10"/>
<property name="endDate" value="10"/>
<property name="countyDistrict" value="40"/>
<property name="cityVillage" value="40"/>
<property name="stateProvince" value="40"/>
</sizeMappings>
<elementDefaults class="properties">
<property name="country" value="Nepal"/>
</elementDefaults>
<lineByLineFormat>
<string>stateProvince countyDistrict</string>
<string>cityVillage address3</string>
<string>address4 address5</string>
<string>country</string>
</lineByLineFormat>
</org.openmrs.layout.web.address.AddressTemplate> |
...