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 Data Type Usage Vocabulary Length C.LEN Flags
SRT
1 Sort-by Field ST R [6..12]    
2 Sequencing ID O [1..2]    

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:

|LastName^A~FirstName^A|

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:

|PID.3.1^A~PID.3.2|

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