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

18.8.176 TQ1 - Timing/Quantity Segment (4.5.4)

The TQ1 segment is used to specify the complex timing of events and actions such as those that occur in order management and scheduling systems. This segment determines the quantity, frequency, priority and timing of a service. By allowing the segment to repeat, it is possible to have service requests that vary the quantity, frequency and priority of a service request over time.

Use cases showing when TQ1 may need to repeat:

HL7 Attribute Table - TQ1 - Timing/Quantity

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

Sequence ID

201628Quantity MAY[0..1] 
CQ

Composite Quantity with Units

301629Repeat Pattern MAY[0..*] 
RPT

Repeat Pattern

401630Explicit Time MAY[0..*] 
TM

Time

501631Relative Time and Units MAY[0..*] 
CQ

Composite Quantity with Units

601632Service Duration MAY[0..1] 
CQ

Composite Quantity with Units

701633Start date/time MAY[0..1] 
DTM

Date/Time

801634End date/time MAY[0..1] 
DTM

Date/Time

901635Priority MAY[0..*] ex.:ExtendedPriorityCodes (CD)
CWE

Coded with Exceptions

1001636Condition text
=

Truncation not allowed!

MAY[0..1] 250
TX

Text Data

1101637Text instruction
=

Truncation not allowed!

MAY[0..1] 250
TX

Text Data


1201638Conjunction
C

Condition defined for this element

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

Coded Value for HL7 Defined Tables

1301639Occurrence duration MAY[0..1] 
CQ

Composite Quantity with Units

1401640Total occurrences
=

Truncation not allowed!

MAY[0..1] 10
NM

Numeric

Conditions/Invariants

The root for the expression is on the segment.

Seq. Referenced Elements Introduction Invariant Comment
1 ?

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

Sequence ID

201628Quantity MAY[0..1] 
CQ

Composite Quantity with Units

301629Repeat Pattern MAY[0..*] 
RPT

Repeat Pattern

401630Explicit Time MAY[0..*] 
TM

Time

501631Relative Time and Units MAY[0..*] 
CQ

Composite Quantity with Units

601632Service Duration MAY[0..1] 
CQ

Composite Quantity with Units

701633Start date/time MAY[0..1] 
DTM

Date/Time

801634End date/time MAY[0..1] 
DTM

Date/Time

901635Priority MAY[0..*] ex.:ExtendedPriorityCodes (CD) hl7VS-extendedPriorityCodes (VS) extendedPriorityCodes (CS)
CWE

Coded with Exceptions

1001636Condition text
=

Truncation not allowed!

MAY[0..1] 250
TX

Text Data

1101637Text instruction
=

Truncation not allowed!

MAY[0..1] 250
TX

Text Data


1201638Conjunction
C

Condition defined for this element

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

Coded Value for HL7 Defined Tables

1301639Occurrence duration MAY[0..1] 
CQ

Composite Quantity with Units

1401640Total occurrences
=

Truncation not allowed!

MAY[0..1] 10
NM

Numeric

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

Sequence ID

MAY
201628Quantity MAY[0..1] 
CQ

Composite Quantity with Units

MAY
301629Repeat Pattern MAY[0..*] 
RPT

Repeat Pattern

MAY
401630Explicit Time MAY[0..*] 
TM

Time

MAY
501631Relative Time and Units MAY[0..*] 
CQ

Composite Quantity with Units

MAY
601632Service Duration MAY[0..1] 
CQ

Composite Quantity with Units

MAY
701633Start date/time MAY[0..1] 
DTM

Date/Time

MAY
801634End date/time MAY[0..1] 
DTM

Date/Time

MAY
901635Priority MAY[0..*] ex.:ExtendedPriorityCodes (CD)
CWE

Coded with Exceptions

MAYhl7VS-extendedPriorityCodes (VS) extendedPriorityCodes (CS)
1001636Condition text
=

Truncation not allowed!

MAY[0..1] 250
TX

Text Data

MAY
1101637Text instruction
=

Truncation not allowed!

MAY[0..1] 250
TX

Text Data

MAY

1201638Conjunction
C

Condition defined for this element

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

Coded Value for HL7 Defined Tables

MAY 
1301639Occurrence duration MAY[0..1] 
CQ

Composite Quantity with Units

MAY
1401640Total occurrences
=

Truncation not allowed!

MAY[0..1] 10
NM

Numeric

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

Sequence ID

   
2 01628 Quantity   O      
CQ

Composite Quantity with Units

   
3 01629 Repeat Pattern   O Y    
RPT

Repeat Pattern

   
4 01630 Explicit Time   O Y    
TM

Time

   
5 01631 Relative Time and Units   O Y    
CQ

Composite Quantity with Units

   
6 01632 Service Duration   O      
CQ

Composite Quantity with Units

   
7 01633 Start date/time   O      
DTM

Date/Time

   
8 01634 End date/time   O      
DTM

Date/Time

   
9 01635 Priority   O Y    
CWE

Coded with Exceptions

  (0485)
10 01636 Condition text   O     250=  
TX

Text Data

   
11 01637 Text instruction   O     250=  
TX

Text Data

   

12 01638 Conjunction
C

Condition defined for this element

O   [1..1]  
ID

Coded Value for HL7 Defined Tables

  (0472)
13 01639 Occurrence duration   O      
CQ

Composite Quantity with Units

   
14 01640 Total occurrences   O     10=  
NM

Numeric

   
Seq# Data Element Description Optionality Repetition Length C.LEN Table Data Type
TQ1
1 01627 Set ID - TQ1 O   [1..4]  
SI

Sequence ID

2 01628 Quantity O      
CQ

Composite Quantity with Units

3 01629 Repeat Pattern O Y    
RPT

Repeat Pattern

4 01630 Explicit Time O Y    
TM

Time

5 01631 Relative Time and Units O Y    
CQ

Composite Quantity with Units

6 01632 Service Duration O      
CQ

Composite Quantity with Units

7 01633 Start date/time O      
DTM

Date/Time

8 01634 End date/time O      
DTM

Date/Time

9 01635 Priority O Y   (0485)
CWE

Coded with Exceptions

10 01636 Condition text O     250=  
TX

Text Data

11 01637 Text instruction O     250=  
TX

Text Data

12 01638 Conjunction C   [1..1] (0472)
ID

Coded Value for HL7 Defined Tables

13 01639 Occurrence duration O      
CQ

Composite Quantity with Units

14 01640 Total occurrences O     10=  
NM

Numeric

18.8.176.1 TQ1 field definitions (4.5.4.0)

18.8.176.2 TQ1-1 Set ID - TQ1 (SI) 01627 (4.5.4.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.176.3 TQ1-2 Quantity (CQ) 01628 (4.5.4.2)

Definition: This field specifies the numeric quantity of the service that should be provided at each service interval. For example, if two blood cultures are to be obtained every 4 hours, the quantity would be '2', or if three units of blood are to be typed and cross-matched, the quantity would be '3'. The default value for this field is '1'.

If multiple identical services are to be requested, it is strongly recommended that multiple service requests be placed, giving each service request its own unique placer/filler number.

18.8.176.4 TQ1-3 Repeat Pattern (RPT) 01629 (4.5.4.3)

Definition: The repeating frequency with which the treatment is to be administered. It is similar to the frequency and SIG code tables used in order entry systems.

This field may be repeated to build up more complex repeat patterns. For example, daily at bedtime can be represent as "|QD~HS|".

When the quantity timing specification must change to a different repeat pattern after some period of time, a new TQ1 segment must be used to show the new repeat pattern. Note that the end date of the current TQ1 will show when the current timing specification ends, and the start date of the next TQ1 shows when the new timing specification begins. The Conjunction field, TQ1-12 determines if the next TQ1 segment is to be performed sequentially or in parallel.

18.8.176.5 TQ1-4 Explicit Time (TM) 01630 (4.5.4.4)

Definition: This field explicitly lists the actual times referenced by the code in TQ1-3. This field will be used to clarify the TQ1-3 in cases where the actual administration times vary within an institution. If the time of the service request spans more than a single day, this field is only practical if the same times of administration occur for each day of the service request. If the actual start time of the service request (as given by TQ1-7) is after the first explicit time, the first administration is taken to be the first explicit time after the start time. In the case where the patient moves to a location having a different set of explicit times, the existing service request may be updated with a new quantity/timing segment showing the changed explicit times.

Usage Note: This field is not valued if a Repeat Pattern is not present.

18.8.176.6 TQ1-5 Relative Time and Units (CQ) 01631 (4.5.4.5)

Definition: This field is used to define the interval between schedules for service request or bottle records. If this field contains a value, it overrides any value in the explicit time interval field. The units component of the CQ data type is constrained to units of time.

Examples:

TQ1|1|1|Q1H||60^min&&ANS+ - Q1H is defined with an interval between services of 60 minutes

TQ1|1|1|Q6H||6^hr&&ANS+ - Q6H is defined with an interval between services of 6 hours

TQ1|1|1|QD||1^d&&ANS+ - QD is defined with an interval between services of 1 day

18.8.176.7 TQ1-6 Service Duration (CQ) 01632 (4.5.4.6)

Definition: This field contains the duration for which the service is requested.

The quantity component of this field must be a positive, non-zero number. The unit's portion of this field is constrained to units of time.

Example: Whirlpool twenty minutes three times per day for 3 days. Three days is the service duration.

TQ1|1||TID|||3^d&&ANS+||||||20^min&&ANS+|9

18.8.176.8 TQ1-7 Start Date/Time (DTM) 01633 (4.5.4.7)

Definition: This field may be specified by the requester, in which case it indicates the earliest date/time at which the services should be started. In many cases, however, the start date/time will be implied or will be defined by other fields in the service request record (e.g., urgency - STAT). In such a case, this field will be empty.

The filling service will often record a value in this field after receipt of the service request, however, and compute an end time on the basis of the start date/time for the filling service's internal use.

18.8.176.9 TQ1-8 End Date/Time (DTM) 01634 (4.5.4.8)

Definition: When filled in by the requester of the service, this field should contain the latest date/time that the service should be performed. If it has not been performed by the specified time, it should not be performed at all. The requester may not always fill in this value, yet the filling service may fill it in on the basis of the instruction it receives and the actual start time.

Regardless of the value of the end date/time, the service should be stopped at the earliest of the date/times specified by either the duration or the end date/time.

18.8.176.10 TQ1-9 Priority (CWE) 01635 (4.5.4.9)

Definition: This field describes the urgency of the request. If this field is blank, the default is R. Refer to User-Defined Table 0485 - Extended Priority Codes in Chapter 2C, Code Tables, for suggested values.

18.8.176.11 TQ1-10 Condition Text (TX) 01636 (4.5.4.10)

Definition: This is a free text field that describes the conditions under which the drug is to be given. For example, "PRN pain," or "to keep blood pressure below 110."

The presence of text in this field should be taken to mean that human review is needed to determine the how and/or when this drug should be given.

For complex codified conditions see the TQ2 segment below.

18.8.176.12 TQ1-11 Text Instruction (TX) 01637 (4.5.4.11)

Definition: This field is a full text version of the instruction (optional).

18.8.176.13 TQ1-12 Conjunction (ID) 01638 (4.5.4.12)

Definition: This field indicates that a second TQ1 segment is to follow. Refer To HL7 Table 0472 - TQ Conjunction ID in Chapter 2C, Code Tables, for allowed values.

For continuous or periodic services, the point at which the service is actually stopped is determined by the field TQ1-8 end date/time and TQ1-6 duration, whichever indicates an earlier stopping time. Ordinarily, only one of these fields would be present.

Condition Rule: If the TQ1 segment is repeated in the message, this field must be populated with the appropriate Conjunction code indicating the sequencing of the following TQ1 segment.

18.8.176.14 TQ1-13 Occurrence Duration (CQ) 01639 (4.5.4.13)

Definition: This field contains the duration for which a single performance of a service is requested. The quantity component of this field must be a positive, non-zero number when populated. The units component is constrained to be units of time.

Example: Whirlpool twenty minutes three times per day for three days. Twenty minutes is the occurrence duration.

TQ1|1||TID|||3^d&&ANS+||||||20^min&&ANS+|9

18.8.176.15 TQ1-14 Total Occurrences (NM) 01640 (4.5.4.14)

Definition: This field contains the total number of occurrences of a service that should result from this service request. If both the end date/time (TQ1-8) and the total occurrences are valued and the occurrences would extend beyond the end date/time, then the end date/time takes precedence. Otherwise the number of occurrences takes precedence.

Example: Whirlpool twenty minutes three times per day for three days. The total occurrences would be 9.

TQ1|1||TID|||3^d&&ANS+||||||20^min&&ANS+|9