Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
controlstrue
languagexml
titleAddress Template for USA
<org.openmrs.layout.web.address.AddressTemplate>
        <nameMappings class="properties">
            <property name="postalCodeaddress2" value="Location.postalCodeaddress2"/>
            <property name="longitudestateProvince" value="Location.longitudestate"/>
            <property name="address3address1" value="Location.address3address1"/>
            <property name="address2postalCode" value="Location.address2zipCode"/>
            <property name="address1cityVillage" value="Location.address1city"/>
        </nameMappings>
      <property name="startDate" value="PersonAddress.startDate"/  <sizeMappings class="properties">
            <property name="countryaddress2" value="Location.country50"/>
            <property name="endDatestateProvince" value="personAddress.endDate2"/>
            <property name="stateProvinceaddress1" value="Location.stateProvince50"/>
            <property name="latitudepostalCode" value="Location.latitude10"/>
            <property name="cityVillage" value="Location.cityVillage20"/>
        </sizeMappings>
   <property name     <elementDefaults class="countyDistrictproperties" value="Location.district"/>
        </nameMappings>
        <sizeMappings class="properties">
            <property name="postalCode" value="10"/>
            <property name="longitude" value="10"/>
            <property name="address3" value="10"/>
			<property name="address2" value="10"/>
            <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="cityVillagecountry" value="10USA"/>
        </sizeMappings>elementDefaults>
        <lineByLineFormat>
            <string>address1 address2 address3<<string>address1</string>
            <string>cityVillage countyDistrict stateProvince country postalCode<<string>address2</string>
            <string>latitude<string>cityVillage longitude</string>
            <string>startDate endDate<stateProvince postalCode</string>
        </lineByLineFormat>
    </org.openmrs.layout.web.address.AddressTemplate>

...

Code Block
controlstrue
titleAddress Template for Chile
<org.openmrs.layout.web.address.AddressTemplate>.AddressTemplate>
        <nameMappings class="properties">
            <property <nameMappings classname="address3" value="propertiesLocation.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">
        </nameMappings>    <property name="address3" value="10"/>
            <property <sizeMappings classname="address2" value="properties10"/>
            <property name="address2stateProvince" value="502"/>
            <property name="stateProvinceaddress1" value="250"/>
            <property name="address1postalCode" value="5010"/>
            <property name="postalCodecityVillage" value="1020"/>
            <property name="cityVillagecountyDistrict" value="20"/>
        </sizeMappings>
        <elementDefaults class="properties">
            <property name="country" value="USAChile"/>
        </elementDefaults>
        <lineByLineFormat>
			<string>address1            <string>address1<address2 address3</string>
			<string>cityVillage countyDistrict           <string>address2</string>
            <string>cityVillage stateProvincestateProvince country postalCode</string>
        </lineByLineFormat>
    </org.openmrs.layout.web.address.AddressTemplate>

...