All Implemented Interfaces:
Composite, Type, Visitable, Serializable

public class XAD extends AbstractComposite

Represents an HL7 XAD (Extended Address) data type. This type consists of the following components:

  • Street Address (SAD)
  • Other Designation (ST)
  • City (ST)
  • State or Province (ST)
  • Zip or Postal Code (ST)
  • Country (ID)
  • Address Type (ID)
  • Other Geographic Designation (ST)
  • County/Parish Code (IS)
  • Census Tract (IS)
  • Address Representation Code (ID)
  • Address Validity Range (DR)
  • Effective Date (TS)
  • Expiration Date (TS)
See Also:
  • Constructor Details

    • XAD

      public XAD(Message message)
      Creates a new XAD type
  • Method Details

    • getComponents

      public Type[] getComponents()
      Returns an array containing the data elements.
    • getComponent

      public Type getComponent(int number) throws DataTypeException
      Returns an individual data component.
      Parameters:
      number - The component number (0-indexed)
      Throws:
      DataTypeException - if the given element number is out of range.
    • getStreetAddress

      Returns Street Address (component 1). This is a convenience method that saves you from casting and handling an exception.
    • getXad1_StreetAddress

      Returns Street Address (component 1). This is a convenience method that saves you from casting and handling an exception.
    • getOtherDesignation

      Returns Other Designation (component 2). This is a convenience method that saves you from casting and handling an exception.
    • getXad2_OtherDesignation

      Returns Other Designation (component 2). This is a convenience method that saves you from casting and handling an exception.
    • getCity

      public ST getCity()
      Returns City (component 3). This is a convenience method that saves you from casting and handling an exception.
    • getXad3_City

      public ST getXad3_City()
      Returns City (component 3). This is a convenience method that saves you from casting and handling an exception.
    • getStateOrProvince

      Returns State or Province (component 4). This is a convenience method that saves you from casting and handling an exception.
    • getXad4_StateOrProvince

      Returns State or Province (component 4). This is a convenience method that saves you from casting and handling an exception.
    • getZipOrPostalCode

      Returns Zip or Postal Code (component 5). This is a convenience method that saves you from casting and handling an exception.
    • getXad5_ZipOrPostalCode

      Returns Zip or Postal Code (component 5). This is a convenience method that saves you from casting and handling an exception.
    • getCountry

      public ID getCountry()
      Returns Country (component 6). This is a convenience method that saves you from casting and handling an exception.
    • getXad6_Country

      public ID getXad6_Country()
      Returns Country (component 6). This is a convenience method that saves you from casting and handling an exception.
    • getAddressType

      public ID getAddressType()
      Returns Address Type (component 7). This is a convenience method that saves you from casting and handling an exception.
    • getXad7_AddressType

      Returns Address Type (component 7). This is a convenience method that saves you from casting and handling an exception.
    • getOtherGeographicDesignation

      Returns Other Geographic Designation (component 8). This is a convenience method that saves you from casting and handling an exception.
    • getXad8_OtherGeographicDesignation

      Returns Other Geographic Designation (component 8). This is a convenience method that saves you from casting and handling an exception.
    • getCountyParishCode

      Returns County/Parish Code (component 9). This is a convenience method that saves you from casting and handling an exception.
    • getXad9_CountyParishCode

      Returns County/Parish Code (component 9). This is a convenience method that saves you from casting and handling an exception.
    • getCensusTract

      public IS getCensusTract()
      Returns Census Tract (component 10). This is a convenience method that saves you from casting and handling an exception.
    • getXad10_CensusTract

      Returns Census Tract (component 10). This is a convenience method that saves you from casting and handling an exception.
    • getAddressRepresentationCode

      Returns Address Representation Code (component 11). This is a convenience method that saves you from casting and handling an exception.
    • getXad11_AddressRepresentationCode

      Returns Address Representation Code (component 11). This is a convenience method that saves you from casting and handling an exception.
    • getAddressValidityRange

      Returns Address Validity Range (component 12). This is a convenience method that saves you from casting and handling an exception.
    • getXad12_AddressValidityRange

      Returns Address Validity Range (component 12). This is a convenience method that saves you from casting and handling an exception.
    • getEffectiveDate

      public TS getEffectiveDate()
      Returns Effective Date (component 13). This is a convenience method that saves you from casting and handling an exception.
    • getXad13_EffectiveDate

      Returns Effective Date (component 13). This is a convenience method that saves you from casting and handling an exception.
    • getExpirationDate

      Returns Expiration Date (component 14). This is a convenience method that saves you from casting and handling an exception.
    • getXad14_ExpirationDate

      Returns Expiration Date (component 14). This is a convenience method that saves you from casting and handling an exception.