Class XAD

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) (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)
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 (SAD) (component 1). This is a convenience method that saves you from casting and handling an exception.
    • getXad1_StreetAddress

      Returns street address (SAD) (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.