All Implemented Interfaces:
Composite, Type, Visitable, Serializable

public class SAD extends AbstractComposite

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

  • Street or Mailing Address (ST)
  • Street Name (ST)
  • Dwelling Number (ST)
See Also:
  • Constructor Details

    • SAD

      public SAD(Message message)
      Creates a new SAD 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.
    • getStreetOrMailingAddress

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

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

      public ST getStreetName()
      Returns Street Name (component 2). This is a convenience method that saves you from casting and handling an exception.
    • getSad2_StreetName

      Returns Street Name (component 2). This is a convenience method that saves you from casting and handling an exception.
    • getDwellingNumber

      Returns Dwelling Number (component 3). This is a convenience method that saves you from casting and handling an exception.
    • getSad3_DwellingNumber

      Returns Dwelling Number (component 3). This is a convenience method that saves you from casting and handling an exception.