java.lang.Object
org.openehealth.ipf.commons.ihe.xds.core.metadata.Hl7v2Based<XAD>
org.openehealth.ipf.commons.ihe.xds.core.metadata.Address
All Implemented Interfaces:
Serializable

public class Address extends Hl7v2Based<XAD>
Represents the address of a patient.

This class contains a subset of the fields from the HL7v2.5 XAD data type.

All members of this class are allowed to be null. When transforming to HL7 this indicates that the values are empty. Trailing empty values are removed from the HL7 string.

Author:
Jens Riemschneider, Dmytro Rud
See Also:
  • Constructor Details

    • Address

      public Address()
    • Address

      public Address(XAD xad)
  • Method Details

    • getStreetAddress

      public String getStreetAddress()
      Returns:
      the street address (XAD.1).
    • setStreetAddress

      public void setStreetAddress(String streetAddress)
      Parameters:
      streetAddress - the street address (XAD.1).
    • getOtherDesignation

      public String getOtherDesignation()
      Returns:
      the other designation (XAD.2).
    • setOtherDesignation

      public void setOtherDesignation(String otherDesignation)
      Parameters:
      otherDesignation - the other designation (XAD.2).
    • getCity

      public String getCity()
      Returns:
      the city (XAD.3).
    • setCity

      public void setCity(String city)
      Parameters:
      city - the city (XAD.3).
    • getStateOrProvince

      public String getStateOrProvince()
      Returns:
      the state or province (XAD.4).
    • setStateOrProvince

      public void setStateOrProvince(String stateOrProvince)
      Parameters:
      stateOrProvince - the state or province (XAD.4).
    • getZipOrPostalCode

      public String getZipOrPostalCode()
      Returns:
      the zip or postal code (XAD.5).
    • setZipOrPostalCode

      public void setZipOrPostalCode(String zipOrPostalCode)
      Parameters:
      zipOrPostalCode - the zip or postal code (XAD.5).
    • getCountry

      public String getCountry()
      Returns:
      the country (XAD.6).
    • setCountry

      public void setCountry(String country)
      Parameters:
      country - the country (XAD.6).
    • getCountyParishCode

      public String getCountyParishCode()
      Returns:
      the county parish code (XAD.9).
    • setCountyParishCode

      public void setCountyParishCode(String countyParishCode)
      Parameters:
      countyParishCode - the county parish code (XAD.9).
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object