All Implemented Interfaces:
Composite, Type, Visitable, Serializable

public class TQ extends AbstractComposite

Represents an HL7 TQ (timing quantity) data type. This type consists of the following components:

  • Quantity (CQ_QUANTITY)
  • interval (CM_RI)
  • duration (ST)
  • start date/time (TS)
  • end date/time (TS)
  • priority (ID)
  • condition (ST)
  • text (TX) (TX)
  • conjunction (ID)
  • order sequencing (ST)
See Also:
  • Constructor Details

    • TQ

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

      Returns Quantity (component 1). This is a convenience method that saves you from casting and handling an exception.
    • getTq1_Quantity

      Returns Quantity (component 1). This is a convenience method that saves you from casting and handling an exception.
    • getInterval

      public CM_RI getInterval()
      Returns interval (component 2). This is a convenience method that saves you from casting and handling an exception.
    • getTq2_Interval

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

      public ST getDuration()
      Returns duration (component 3). This is a convenience method that saves you from casting and handling an exception.
    • getTq3_Duration

      public ST getTq3_Duration()
      Returns duration (component 3). This is a convenience method that saves you from casting and handling an exception.
    • getStartDateTime

      public TS getStartDateTime()
      Returns start date/time (component 4). This is a convenience method that saves you from casting and handling an exception.
    • getTq4_StartDateTime

      Returns start date/time (component 4). This is a convenience method that saves you from casting and handling an exception.
    • getEndDateTime

      public TS getEndDateTime()
      Returns end date/time (component 5). This is a convenience method that saves you from casting and handling an exception.
    • getTq5_EndDateTime

      Returns end date/time (component 5). This is a convenience method that saves you from casting and handling an exception.
    • getPriority

      public ID getPriority()
      Returns priority (component 6). This is a convenience method that saves you from casting and handling an exception.
    • getTq6_Priority

      public ID getTq6_Priority()
      Returns priority (component 6). This is a convenience method that saves you from casting and handling an exception.
    • getCondition

      public ST getCondition()
      Returns condition (component 7). This is a convenience method that saves you from casting and handling an exception.
    • getTq7_Condition

      public ST getTq7_Condition()
      Returns condition (component 7). This is a convenience method that saves you from casting and handling an exception.
    • getText

      public TX getText()
      Returns text (TX) (component 8). This is a convenience method that saves you from casting and handling an exception.
    • getTq8_Text

      public TX getTq8_Text()
      Returns text (TX) (component 8). This is a convenience method that saves you from casting and handling an exception.
    • getConjunction

      public ID getConjunction()
      Returns conjunction (component 9). This is a convenience method that saves you from casting and handling an exception.
    • getTq9_Conjunction

      Returns conjunction (component 9). This is a convenience method that saves you from casting and handling an exception.
    • getOrderSequencing

      Returns order sequencing (component 10). This is a convenience method that saves you from casting and handling an exception.
    • getTq10_OrderSequencing

      Returns order sequencing (component 10). This is a convenience method that saves you from casting and handling an exception.