Note: This functionality will change in OpenMRS 1.9+. Please see the documentation on Address Templates.
There are certain address layouts that come with OpenMRS right now, they are: general, kenya, lestho, malawi, rwanda, tanzania, usa .
You can modify the layout.address.format setting (formerly global property from platform 1.8 downwards) to one of those values or to the "codeName" of a new custom layout (instructions below) to see a different address/location layout on the new patient screen and location editor.
Adding a new address layout
Address layouts are stored in the openmrs-servlet.xml file. You can find this file in tomcathome/webapps/openmrs/WEB-INF/lib/openmrs-web...jar/openmrs-servlet.xml .
In the <bean id="addressSupport" element, add <ref bean="addressTemplateCustomized" /> .
Now after the next </bean> tag, add:
Change the nameMappings, sizeMappings, and lineByLineFormat elements however you like. Restart Tomcat to use the new address.
e.g. if you want to rename the "cityVillage" field, you change <prop key="cityVillage">Location.cityVillage</prop> to <prop key="cityVillage">Location.city</prop> or even to <prop key="cityVillage">What's your city:</prop>. (see messages.properties file for available translation elements)
e.g. if you want to not show latitude/longitude, you delete the lineByLineFormat line: <value>latitude longitude</value>
e.g. if you want to have a longer address1 line, you modify <prop key="address1">40</prop> to be <prop key="address1">80</prop>
These changes will be persisted across restarts, but will NOT be persisted across upgrades. You will have to redo this every time you upgrade openmrs to a new version