Class CM_DTN

All Implemented Interfaces:
Composite, Type, Visitable, Serializable

public class CM_DTN extends AbstractComposite

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

  • day type (ID)
  • number of days (NM)
See Also:
  • Constructor Details

    • CM_DTN

      public CM_DTN(Message message)
      Creates a new CM_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 ID getDayType()
      Returns day type (component 1). This is a convenience method that saves you from casting and handling an exception.
    • getCm_dtn1_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.
    • getCm_dtn2_NumberOfDays

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