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)
  • Conjunction (ID)
  • Order Sequencing (OSD)
  • Occurrence Duration (CE)
  • Total Occurrences (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 (component 8). This is a convenience method that saves you from casting and handling an exception.
    • getTq8_Text

      public TX getTq8_Text()
      Returns Text (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.
    • 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.
    • getTotalOccurrences

      Returns Total Occurrences (component 12). This is a convenience method that saves you from casting and handling an exception.
    • getTq12_TotalOccurrences

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