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

Draft Website - For Review Purposes Only

TQ2 - Timing/Quantity Relationship Segment

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 Segment
Seq# DataElement Description Must Implement Flags Cardinality Length C.LEN Vocabulary DataType
TQ2
1 01648 Set ID - TQ2 [0..1] [1..4] SI
2 01649 Sequence/Results Flag [0..1] [1..1] ID
3

01650 Related Placer Number MAY
True:
False:
C
[1..1]
[0..1]
EI
4

01651 Related Filler Number MAY
True:
False:
C
[1..1]
[0..1]
EI
5

01652 Related Placer Group Number MAY
True:
False:
C
[1..1]
[0..1]
EI
6

01653 Sequence Condition Code MAY
True:
False:
C
[1..1]
[0..1]
[2..*] ID
7

01654 Cyclic Entry/Exit Indicator MAY
True:
False:
C
[1..1]
[0..1]
[1..1] ID
8 01655 Sequence Condition Time Interval [0..1] CQ
9 01656 Cyclic Group Maximum Number of Repeats = [0..1] 10 NM
10 01657 Special Service Request Relationship MAY
True:
False:
C
[1..1]
[0..1]
[1..1] ID

TQ2 Usage notes:

  1. Cyclic placer service request groups

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:

TQ2-1: Set ID - TQ2 (SI) 01648

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.

TQ2-2: Sequence/Results Flag (ID) 01649

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.

TQ2-3: Related Placer Number (EI) 01650

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.

TQ2-4: Related Filler Number (EI) 01651

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.

TQ2-5: Related Placer Group Number (EI) 01652

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.

TQ2-6: Sequence Condition Code (ID) 01653

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.

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

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.


TQ2-8: Sequence Condition Time Interval (CQ) 01655

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).

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

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.

TQ2-10: Special Service Request Relationship (ID) 01657

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.