Skip to end of metadata
Go to start of metadata

Here is how the patient address fields mapped for AMPATH:  Please also see Identifying the Different Address Fields in AMRS for more information.  Please reference to https://github.com/openmrs/openmrs-core/tree/1.8.x.

<bean id="addressTemplateKenya" class="org.openmrs.layout.web.address.AddressTemplate">
		<property name="displayName"><value>Kenyan Address Format</value></property>
		<property name="codeName"><value>ka</value></property>
		<property name="country"><value>Kenya</value></property>
		<property name="nameMappings">
			<props>

				<prop key="address1">Location.address1</prop>

				<prop key="address2">Location.sectionHomestead</prop>

				<prop key="neighborhoodCell">Location.estateNearestCentre</prop>
				<prop key="cityVillage">Location.townVillage</prop>

				<prop key="subregion">Location.sublocation</prop>
				<prop key="region">Location.location</prop>

				<prop key="townshipDivision">Location.division</prop>
				<prop key="countyDistrict">Location.district</prop>

				<prop key="stateProvince">Location.province</prop>
				<prop key="postalCode">Location.postalCode</prop>
				<prop key="longitude">Location.longitude</prop>
				<prop key="latitude">Location.latitude</prop>
				<prop key="country">Location.country</prop>
			</props>
		</property>
		<property name="sizeMappings">
			<props>
				<prop key="address1">55</prop>

				<prop key="address2">55</prop>

				<prop key="neighborhoodCell">24</prop>
				<prop key="cityVillage">24</prop>

				<prop key="subregion">24</prop>
				<prop key="region">24</prop>

				<prop key="townshipDivision">24</prop>
				<prop key="countyDistrict">24</prop>

				<prop key="stateProvince">24</prop>
				<prop key="postalCode">6</prop>
				<prop key="longitude">10</prop>
				<prop key="latitude">10</prop>
				<prop key="country">10</prop>

			</props>
		</property>
		<property name="elementDefaults">
			<props>
				<prop key="country">Kenya</prop>
			</props>
		</property>
        <property name="elementRegex">
            <props>
                <prop key="latitude">^(\\d{1,3}\\s)\\d\\d.(\\d{2,3})\\s*$</prop>
                <prop key="longitude">^(\\d{1,3}\\s)\\d\\d.(\\d{2,3})\\s*$</prop>
            </props>
        </property>
        <property name="elementRegexFormats">
            <props>
                 <prop key="latitude">123 45.000</prop>
                 <prop key="longitude">123 45.000</prop>
            </props>
        </property>
		<property name="lineByLineFormat">
			<list>
				<value>address1</value>
				<value>address2</value>
				<value>neighborhoodCell cityVillage</value>
				<value>subregion region</value>
				<value>townshipDivision countyDistrict</value>
				<value>stateProvince postalCode</value>
				<value>latitude longitude</value>
                                <value>country</value>
			</list>
		</property>
	</bean>
  • No labels