Z77
Tabular Patient List
To find patient records that closely (as specified by the Client) match a set of input criteria using a specified algorithm.
The same query as described above could be sent as a pure Query by Parameter query, without the "query by example" variant, as follows.
Notice that the query uses only a single QPD segment to carry all the parameters. The response to the query is the same as for the "query by example" variant above.
Query/Response Flow
Input Fields
QPD
Message Structures
7 segments
R RequiredO Optional Choice
MSH
R1SFT
O*UAC
O1QPD
R1RDF
O1RCP
R1DSC
O110 segments
R RequiredO Optional Choice
MSH
R1SFT
O*UAC
O1MSA
R1ERR
O1QAK
R1QPD
R1ROW_DEFINITION
O1RDF
R1RDT
O*DSC
O1Query Properties
Query Mode
BothQuery Type
QueryQuery Characteristics
Query By Example: passes algorithm data via QBP segment and patient match information via PID segment.
Response Characteristics
Response returns requested columns from the Virtual Table. If no columns were requested, all columns are returned.
Response Control Parameters (RCP)
| Seq | Name | Component | Type | Len | Description |
|---|---|---|---|---|---|
| 1 | Query Priority | - | ID | 1 | (D)eferred or (I)mmediate. Default is I. |
| 2 | Quantity Limited Request | - | CQ | 10 | - |
| ↳Quantity | NM | - | Number of units (specified by the following component) that will be returned in each increment of the response. If no value is given, the entire response will be returned in a single increment. | ||
| ↳Units | CWE | - | CHaracters, LInes, PaGes, or RecorDs. Default is LI. | ||
| 5 | Response Modality | - | CWE | 60 | Real time or Batch. Default is R. |
| 6 | Sort-by Field | - | SRT | 256 | - |
| ↳Sort-by Field | ST | - | Segment field name of an output column by which the response may be sorted. Must contain a Y in the Sort column of the output specification table. | ||
| ↳Sequencing | ID | - | As specified in HL7 Table 0397- Sequencing. Default is Ascending. |