Some recommended OpenMRS address templates are provided here;
Please copy past your preferred Address Template to the "Address Template xml" textbox in the /admin/locations/addressTemplate.form
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
<addressTemplate> <displayName>General Address Format</displayName> <codeName>general</codeName> <country></country> <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 stateProvince country postalCode</string> <string>latitude longitude</string> <string>startDate endDate</string> </lineByLineFormat> </addressTemplate> |
...