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.