visit the hl7 website The Demo site for our new HL7 Version 2+ (plus) Standard

18.8.177 TQ2 - Timing/Quantity Relationship (4.5.5)

The TQ2 segment is used to form a relationship between the service request the TQ1/TQ2 segments are associated with, and other service requests. The TQ2 segment will link the current service request with one or more other service requests.

There are many situations, such as the creation of a service request for a group of intravenous (IV) solutions, where the sequence of the individual intravenous solutions (each a service in itself) needs to be specified, e.g., hyperalimentation with multi-vitamins in every third bottle.

There are other situations where part of the service request's instructions contains a results condition of some type, such as "PRN pain." There is currently a free text "condition" field of TQ1-10 - Condition text which allows any condition to be specified. However, to support a fully encoded version of service request sequencing, or results condition, the TQ2, Timing/Quantity Relationship segment has been defined.

HL7 Attribute Table - TQ2 - Timing/Quantity Relationship

Base Framework
Seq#Data ElementDescriptionFlagsImplementCardinalityLengthC.LENVocabularyData Type
TQ2
101648Set ID - TQ2 MAY[0..1][1..4]
SI

Sequence ID

201649Sequence/Results Flag MAY[0..1][1..1]univ: Sequence_ResultsFlag (CD) hl7VS-sequenceResultsFlag (VS) sequenceResultsFlag (CS)
ID

Coded Value for HL7 Defined Tables


301650Related Placer Number
C

Condition defined for this element

MAY[0..*] 
EI

Entity Identifier


401651Related Filler Number
C

Condition defined for this element

MAY[0..*] 
EI

Entity Identifier


501652Related Placer Group Number
C

Condition defined for this element

MAY[0..*] 
EI

Entity Identifier


601653Sequence Condition Code
C

Condition defined for this element

MAY[0..1][2..]univ: SequenceConditionCode (CD) hl7VS-sequenceConditionCode (VS) sequenceCondition (CS)
ID

Coded Value for HL7 Defined Tables


701654Cyclic Entry/Exit Indicator
C

Condition defined for this element

MAY[0..1][1..1]univ: CyclicEntry_ExitIndicator (CD) hl7VS-cyclicEntryExitIndicator (VS) cyclicEntryExitIndicator (CS)
ID

Coded Value for HL7 Defined Tables

801655Sequence Condition Time Interval MAY[0..1] 
CQ

Composite Quantity with Units

901656Cyclic Group Maximum Number of Repeats
=

Truncation not allowed!

MAY[0..1] 10
NM

Numeric

1001657Special Service Request Relationship
C

Condition defined for this element

MAY[0..1][1..1]univ: ServiceRequestRelationship (CD) hl7VS-serviceRequestRelationship (VS) serviceRequestRelationship (CS)
ID

Coded Value for HL7 Defined Tables

Conditions/Invariants

The root for the expression is on the segment.

Seq. Referenced Elements Introduction Invariant Comment
1 ?

Seq#Data ElementDescriptionFlagsImplementCardinalityLengthC.LENVocabularyData Type
TQ2
101648Set ID - TQ2 MAY[0..1][1..4]
SI

Sequence ID

201649Sequence/Results Flag MAY[0..1][1..1]univ: Sequence_ResultsFlag (CD) hl7VS-sequenceResultsFlag (VS) sequenceResultsFlag (CS)
ID

Coded Value for HL7 Defined Tables


301650Related Placer Number
C

Condition defined for this element

MAY[0..*] 
EI

Entity Identifier


401651Related Filler Number
C

Condition defined for this element

MAY[0..*] 
EI

Entity Identifier


501652Related Placer Group Number
C

Condition defined for this element

MAY[0..*] 
EI

Entity Identifier


601653Sequence Condition Code
C

Condition defined for this element

MAY[0..1][2..]univ: SequenceConditionCode (CD) hl7VS-sequenceConditionCode (VS) sequenceCondition (CS)
ID

Coded Value for HL7 Defined Tables


701654Cyclic Entry/Exit Indicator
C

Condition defined for this element

MAY[0..1][1..1]univ: CyclicEntry_ExitIndicator (CD) hl7VS-cyclicEntryExitIndicator (VS) cyclicEntryExitIndicator (CS)
ID

Coded Value for HL7 Defined Tables

801655Sequence Condition Time Interval MAY[0..1] 
CQ

Composite Quantity with Units

901656Cyclic Group Maximum Number of Repeats
=

Truncation not allowed!

MAY[0..1] 10
NM

Numeric

1001657Special Service Request Relationship
C

Condition defined for this element

MAY[0..1][1..1]univ: ServiceRequestRelationship (CD) hl7VS-serviceRequestRelationship (VS) serviceRequestRelationship (CS)
ID

Coded Value for HL7 Defined Tables

Base FrameworkBase Standard Profile
Seq#Data ElementDescriptionFlagsImplementCardinalityLengthC.LENVocabularyData TypeImplementVocabulary
TQ2 
101648Set ID - TQ2 MAY[0..1][1..4]
SI

Sequence ID

MAY
201649Sequence/Results Flag MAY[0..1][1..1]univ: Sequence_ResultsFlag (CD) hl7VS-sequenceResultsFlag (VS) sequenceResultsFlag (CS)
ID

Coded Value for HL7 Defined Tables

MAY 

301650Related Placer Number
C

Condition defined for this element

MAY[0..*] 
EI

Entity Identifier

MAY

401651Related Filler Number
C

Condition defined for this element

MAY[0..*] 
EI

Entity Identifier

MAY

501652Related Placer Group Number
C

Condition defined for this element

MAY[0..*] 
EI

Entity Identifier

MAY

601653Sequence Condition Code
C

Condition defined for this element

MAY[0..1][2..]univ: SequenceConditionCode (CD) hl7VS-sequenceConditionCode (VS) sequenceCondition (CS)
ID

Coded Value for HL7 Defined Tables

MAY 

701654Cyclic Entry/Exit Indicator
C

Condition defined for this element

MAY[0..1][1..1]univ: CyclicEntry_ExitIndicator (CD) hl7VS-cyclicEntryExitIndicator (VS) cyclicEntryExitIndicator (CS)
ID

Coded Value for HL7 Defined Tables

MAY 
801655Sequence Condition Time Interval MAY[0..1] 
CQ

Composite Quantity with Units

MAY
901656Cyclic Group Maximum Number of Repeats
=

Truncation not allowed!

MAY[0..1] 10
NM

Numeric

MAY
1001657Special Service Request Relationship
C

Condition defined for this element

MAY[0..1][1..1]univ: ServiceRequestRelationship (CD) hl7VS-serviceRequestRelationship (VS) serviceRequestRelationship (CS)
ID

Coded Value for HL7 Defined Tables

MAY 
Base Framework Base Standard Profile
Seq# Data Element Description Flags Optionality Repetition Length C.LEN Table Data Type Optionality Table
TQ2  
1 01648 Set ID - TQ2   O   [1..4]  
SI

Sequence ID

   
2 01649 Sequence/Results Flag   O   [1..1]  
ID

Coded Value for HL7 Defined Tables

  (0503)

3 01650 Related Placer Number
C

Condition defined for this element

O Y    
EI

Entity Identifier

   

4 01651 Related Filler Number
C

Condition defined for this element

O Y    
EI

Entity Identifier

   

5 01652 Related Placer Group Number
C

Condition defined for this element

O Y    
EI

Entity Identifier

   

6 01653 Sequence Condition Code
C

Condition defined for this element

O   [2..]  
ID

Coded Value for HL7 Defined Tables

  (0504)

7 01654 Cyclic Entry/Exit Indicator
C

Condition defined for this element

O   [1..1]  
ID

Coded Value for HL7 Defined Tables

  (0505)
8 01655 Sequence Condition Time Interval   O      
CQ

Composite Quantity with Units

   
9 01656 Cyclic Group Maximum Number of Repeats   O     10=  
NM

Numeric

   
10 01657 Special Service Request Relationship
C

Condition defined for this element

O   [1..1]  
ID

Coded Value for HL7 Defined Tables

  (0506)
Seq# Data Element Description Optionality Repetition Length C.LEN Table Data Type
TQ2
1 01648 Set ID - TQ2 O   [1..4]  
SI

Sequence ID

2 01649 Sequence/Results Flag O   [1..1] (0503)
ID

Coded Value for HL7 Defined Tables

3 01650 Related Placer Number C Y    
EI

Entity Identifier

4 01651 Related Filler Number C Y    
EI

Entity Identifier

5 01652 Related Placer Group Number C Y    
EI

Entity Identifier

6 01653 Sequence Condition Code C   [2..] (0504)
ID

Coded Value for HL7 Defined Tables

7 01654 Cyclic Entry/Exit Indicator C   [1..1] (0505)
ID

Coded Value for HL7 Defined Tables

8 01655 Sequence Condition Time Interval O      
CQ

Composite Quantity with Units

9 01656 Cyclic Group Maximum Number of Repeats O     10=  
NM

Numeric

10 01657 Special Service Request Relationship C   [1..1] (0506)
ID

Coded Value for HL7 Defined Tables

TQ2 Usage notes:

To implement a cyclic group of four IV service requests using the parent/child paradigm, the parent specifies a custom group of IVs, and the following occurs:

To repeat the group of four child service requests in a cyclic manner, the following occurs:

This scheme allows the following to be tracked:

Separate Service requests example:

Cancellation/discontinuation/hold service request control events:

18.8.177.1 TQ2 field definitions (4.5.5.0)

18.8.177.2 TQ2-1 Set ID – TQ2 (SI) 01648 (4.5.5.1)

Definition: For the first timing specification transmitted, the sequence number shall be 1; for the second timing specification, it shall be 2; and so on.

18.8.177.3 TQ2-2 Sequence/Results Flag (ID) 01649 (4.5.5.2)

Definition: This flag defines the sequencing relationship between the current service request, and the related service request(s) specified in this TQ2 segment. See HL7 Table 0503 - Sequence/Results Flag in Chapter 2C, Code Tables, for values. If not value is present, the S - Sequential is the default value.

18.8.177.4 TQ2-3 Related Placer Number (EI) 01650 (4.5.5.3)

Definition: The placer numbers of the service request(s) to which this TQ2 segment links the current service request. This field should be populated with the appropriate "Placer number" from the current service request. For orders, the Placer Order Number from ORC-2 is the appropriate "Placer number". Repeats of this field indicate the current service request is related to multiple service requests.

Conditional Rule: At least one of TQ2-3, TQ2-4, TQ2-5 must contain a value.

18.8.177.5 TQ2-4 Related Filler Number (EI) 01651 (4.5.5.4)

Definition: The filler numbers of the service request(s) to which this TQ2 segment links the current service request. This field should be populated with the appropriate "Filler number" from the current service request. For orders, the Filler Order Number from ORC-3 is the appropriate "Filler number". Repeats of this field indicate the current service request is related to multiple service requests.

Conditional Rule: At least one of TQ2-3, TQ2-4, TQ2-5 must contain a value.

18.8.177.6 TQ2-5 Related Placer Group Number (EI) 01652 (4.5.5.5)

Definition: The placer group numbers of the service request(s) to which this TQ2 segment links the current service request. This field should be populated with the appropriate "Placer group number" from the current service request. For orders, the Placer Group Number from ORC-4 is the appropriate "Placer group number". Repeats of this field indicate that the current service request is related to multiple groups of service requests.

Conditional Rule: At least one of TQ2-3, TQ2-4, TQ2-5 must contain a value.

18.8.177.7 TQ2-6 Sequence Condition Code (ID) 01653 (4.5.5.6)

Definition: Defines the relationship between the start/end of the related service request(s) (from TQ2-3, TQ2-4, or TQ2-5) and the current service request from ORC-2, 3 or 4. See HL7 Table 0504 - Sequence Condition Code in Chapter 2C Code Tables, for allowed values.

Conditional Rule: Either this field or TQ2-10 must be present.

18.8.177.8 TQ2-7 Cyclic Entry/Exit Indicator (ID) 01654 (4.5.5.7)

Definition: Indicates if this service request is the first, last, service request in a cyclic series of service requests. If null or not present, this field indicates that the current service request is neither the first or last service request in a cyclic series of service requests. Refer to HL7 Table 0505 - Cyclic Entry/Exit Indicator in Chapter 2C, Code Tables, for allowed values.

Conditional Rule: Should not be populated when TQ2-2 (Sequence/Results Flag) is not equal to a 'C' (cyclic service request).

Example of TQ2 - 6, 7, & 8 Usage:

Example

Translation

...|ES|*|+10^min|...

translates to: execute this service request the first time without evaluating the condition specified in the TQ2 segment; but repeat only its execution when the specified external service request's start or finish date/time has met this condition. This specification generates a repetition of the service request for each iteration of the cycle.

Note: This requires that the requesting application be able to specify the placer/filler/placer group number of the last service request in the cycle in the first service request's quantity/timing specification.

18.8.177.9 TQ2-8 Sequence Condition Time Interval (CQ) 01655 (4.5.5.8)

Definition: Defines the interval of time between the start/end of the related service request(s) and the start/end of the current service request. The unit's component is constrained to units of time. If this field is not populated, then there should be no interruption between start/ending the current service request, and the related service request(s).

18.8.177.10 TQ2-9 Cyclic Group Maximum Number of Repeats (NM) 01656 (4.5.5.9)

Definition: The maximum number of repeats for a cyclic group.

The total number of repeats is constrained by the end date/time of the last repeat or the end date/time of the parent, whichever is first. For example, if the total number or repeats is valued at 10 and the group has already repeated 5 times, the current order will not be repeated again if either the current order, or the prior order in the cycle, has reached its end date/time.

This field is meaningful only when TQ2-2 Sequence/Results Flag is valued with 'C'. However, even in this case this field is optional.

18.8.177.11 TQ2-10 Special Service Request Relationship (ID) 01657 (4.5.5.10)

Definition: This defines an additional or alternate relationship between this service request and other service requests. Its primary intended use is for Pharmacy administration service requests, but it may be useful for other domains. See HL7 Table 0506 - Service Request Relationship in Chapter 2C, Code Tables, for allowed values.

Conditional Rule: Either this field or TQ2-6 must be present.