All Implemented Interfaces:
Composite, Type, Visitable, Serializable

public class HD extends AbstractComposite

Represents an HL7 HD (Hierarchic Designator) data type. This type consists of the following components:

  • Namespace ID (IS)
  • Universal ID (ST)
  • Universal ID Type (ID)
See Also:
  • Constructor Details

    • HD

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

      public IS getNamespaceID()
      Returns Namespace ID (component 1). This is a convenience method that saves you from casting and handling an exception.
    • getHd1_NamespaceID

      Returns Namespace ID (component 1). This is a convenience method that saves you from casting and handling an exception.
    • getUniversalID

      public ST getUniversalID()
      Returns Universal ID (component 2). This is a convenience method that saves you from casting and handling an exception.
    • getHd2_UniversalID

      Returns Universal ID (component 2). This is a convenience method that saves you from casting and handling an exception.
    • getUniversalIDType

      Returns Universal ID Type (component 3). This is a convenience method that saves you from casting and handling an exception.
    • getHd3_UniversalIDType

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