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

Draft Website - For Review Purposes Only

SRT - sort order

HL7 Component Table - SRT - sort order
Seq# Description Implement Flags Cardinality Length C.LEN Vocabulary Data Type
1 Sort-by Field SHALL [0..1] [6..12]     ST
2 Sequencing SHALL [0..1] [1..2]     0397 ID

Components: <Sort-by Field (ST)> & <Sequencing (ID)>

Definition: Specifies those parameters by which the response will be sorted and by what method.

Example: In a tabular response query, where the return data is known by column name, the SRT might look like:


Example: In a segment response query, where the return data is known by segment and offset, the SRT field would use segment field name notation:


SRT-1: Sort-by Field (ST)

Definition: Identifies the field by which the response will be sorted. In a tabular response, this will be the column name to sort by. In the Segment Pattern and the Display Response, this will be the segment field name to sort by. See QIP in Section 2.A.59.1, "Segment Field Name (ST)" for segment field name definition.

See Chapter 5, "Query", for a complete discussion of queries and their responses.

SRT-2: Sequencing (ID)

Definition: Identifies how the field or parameter will be sorted; and, if sorted, whether the sort will be case sensitive (the default) or not. Refer to HL7 Table 0397 – Sequencing for valid values