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)
  • interval (RI)
  • duration (ST)
  • start date/time (TS)
  • end date/time (TS)
  • priority (ST)
  • condition (ST)
  • text (TX) (TX)
  • conjunction component (ID)
  • order sequencing (OSD)
  • occurrence duration (CE)
  • total occurences (NM)
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

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

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

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

      public RI 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 ST getPriority()
      Returns priority (component 6). This is a convenience method that saves you from casting and handling an exception.
    • getTq6_Priority

      public ST 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.
    • getConjunctionComponent

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

      Returns conjunction component (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.
    • getOccurrenceDuration

      Returns occurrence duration (component 11). This is a convenience method that saves you from casting and handling an exception.
    • getTq11_OccurrenceDuration

      Returns occurrence duration (component 11). This is a convenience method that saves you from casting and handling an exception.
    • getTotalOccurences

      Returns total occurences (component 12). This is a convenience method that saves you from casting and handling an exception.
    • getTq12_TotalOccurences

      Returns total occurences (component 12). This is a convenience method that saves you from casting and handling an exception.