All Implemented Interfaces:
Composite, Type, Visitable, Serializable

public class DTN extends AbstractComposite

Represents an HL7 DTN (Day Type and Number) data type. This type consists of the following components:

  • Day Type (IS)
  • Number of Days (NM)
See Also:
  • Constructor Details

    • DTN

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

      public IS getDayType()
      Returns Day Type (component 1). This is a convenience method that saves you from casting and handling an exception.
    • getDtn1_DayType

      public IS getDtn1_DayType()
      Returns Day Type (component 1). This is a convenience method that saves you from casting and handling an exception.
    • getNumberOfDays

      public NM getNumberOfDays()
      Returns Number of Days (component 2). This is a convenience method that saves you from casting and handling an exception.
    • getDtn2_NumberOfDays

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