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 Element | Description | Flags | Implement | Cardinality | Length | C.LEN | Vocabulary | Data Type | |
TQ2 | ||||||||||
1 | 01648 | Set ID - TQ2 | MAY | [0..1] | [1..4] | SI Sequence ID | ||||
2 | 01649 | Sequence/Results Flag | MAY | [0..1] | [1..1] | univ: Sequence_ResultsFlag (CD) hl7VS-sequenceResultsFlag (VS) sequenceResultsFlag (CS) | ID Coded Value for HL7 Defined Tables | |||
3 | 01650 | Related Placer Number | C Condition defined for this element | MAY | [0..*] | EI Entity Identifier | ||||
4 | 01651 | Related Filler Number | C Condition defined for this element | MAY | [0..*] | EI Entity Identifier | ||||
5 | 01652 | Related Placer Group Number | C Condition defined for this element | MAY | [0..*] | EI Entity Identifier | ||||
6 | 01653 | Sequence 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 | ||
7 | 01654 | Cyclic 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 | ||
8 | 01655 | Sequence Condition Time Interval | MAY | [0..1] | CQ Composite Quantity with Units | |||||
9 | 01656 | Cyclic Group Maximum Number of Repeats | = Truncation not allowed! | MAY | [0..1] | 10 | NM Numeric | |||
10 | 01657 | Special 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 |
The root for the expression is on the segment.
Seq. | Referenced Elements | Introduction | Invariant | Comment |
---|---|---|---|---|
1 | ? |
Seq# | Data Element | Description | Flags | Implement | Cardinality | Length | C.LEN | Vocabulary | Data Type | |
---|---|---|---|---|---|---|---|---|---|---|
TQ2 | ||||||||||
1 | 01648 | Set ID - TQ2 | MAY | [0..1] | [1..4] | SI Sequence ID | ||||
2 | 01649 | Sequence/Results Flag | MAY | [0..1] | [1..1] | univ: Sequence_ResultsFlag (CD) hl7VS-sequenceResultsFlag (VS) sequenceResultsFlag (CS) | ID Coded Value for HL7 Defined Tables | |||
3 | 01650 | Related Placer Number | C Condition defined for this element | MAY | [0..*] | EI Entity Identifier | ||||
4 | 01651 | Related Filler Number | C Condition defined for this element | MAY | [0..*] | EI Entity Identifier | ||||
5 | 01652 | Related Placer Group Number | C Condition defined for this element | MAY | [0..*] | EI Entity Identifier | ||||
6 | 01653 | Sequence 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 | ||
7 | 01654 | Cyclic 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 | ||
8 | 01655 | Sequence Condition Time Interval | MAY | [0..1] | CQ Composite Quantity with Units | |||||
9 | 01656 | Cyclic Group Maximum Number of Repeats | = Truncation not allowed! | MAY | [0..1] | 10 | NM Numeric | |||
10 | 01657 | Special 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 Framework | Base Standard Profile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Seq# | Data Element | Description | Flags | Implement | Cardinality | Length | C.LEN | Vocabulary | Data Type | Implement | Vocabulary | |
TQ2 | ||||||||||||
1 | 01648 | Set ID - TQ2 | MAY | [0..1] | [1..4] | SI Sequence ID | MAY | |||||
2 | 01649 | Sequence/Results Flag | MAY | [0..1] | [1..1] | univ: Sequence_ResultsFlag (CD) hl7VS-sequenceResultsFlag (VS) sequenceResultsFlag (CS) | ID Coded Value for HL7 Defined Tables | MAY | ||||
3 | 01650 | Related Placer Number | C Condition defined for this element | MAY | [0..*] | EI Entity Identifier | MAY | |||||
4 | 01651 | Related Filler Number | C Condition defined for this element | MAY | [0..*] | EI Entity Identifier | MAY | |||||
5 | 01652 | Related Placer Group Number | C Condition defined for this element | MAY | [0..*] | EI Entity Identifier | MAY | |||||
6 | 01653 | Sequence 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 | |||
7 | 01654 | Cyclic 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 | |||
8 | 01655 | Sequence Condition Time Interval | MAY | [0..1] | CQ Composite Quantity with Units | MAY | ||||||
9 | 01656 | Cyclic Group Maximum Number of Repeats | = Truncation not allowed! | MAY | [0..1] | 10 | NM Numeric | MAY | ||||
10 | 01657 | Special 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:
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.
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.
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.
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.
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.
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.
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 |
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. |
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).
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.
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.