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

18.3.25 SRT - sort order (2A.3.75)

HL7 Component Table - SRT - Sort Order

Core Framework Base Standard Profile
Seq# Description Interpretation Flags Cardinality Length C.LEN Vocabulary Data Type Implement Cardinality Vocabulary
SRT
1 Sort-by Field [1..1]     ST SHALL    
2 Sequencing [0..1]   sequencing (CD VS) ID     (CS)

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|

18.3.25.1 Sort-by Field (ST) (2A.3.75.0)

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.

18.3.25.2 Sequencing (ID) (2A.3.75.1)

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