All Implemented Interfaces:
Composite, Type, Visitable, Serializable

public class DIN extends AbstractComposite

Represents an HL7 DIN (Date and Institution Name) data type. This type consists of the following components:

  • Date (TS)
  • Institution Name (CE)
See Also:
  • Constructor Details

    • DIN

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

      public TS getDate()
      Returns Date (component 1). This is a convenience method that saves you from casting and handling an exception.
    • getDin1_Date

      public TS getDin1_Date()
      Returns Date (component 1). This is a convenience method that saves you from casting and handling an exception.
    • getInstitutionName

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

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