All Implemented Interfaces:
Composite, Type, Visitable, Serializable

public class DR extends AbstractComposite

Represents an HL7 DR (Date/Time Range) data type. This type consists of the following components:

  • Range Start Date/Time (TS)
  • Range End Date/Time (TS)
See Also:
  • Constructor Details

    • DR

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

      Returns Range Start Date/Time (component 1). This is a convenience method that saves you from casting and handling an exception.
    • getDr1_RangeStartDateTime

      Returns Range Start Date/Time (component 1). This is a convenience method that saves you from casting and handling an exception.
    • getRangeEndDateTime

      Returns Range End Date/Time (component 2). This is a convenience method that saves you from casting and handling an exception.
    • getDr2_RangeEndDateTime

      Returns Range End Date/Time (component 2). This is a convenience method that saves you from casting and handling an exception.