HL7 QRY^A19 (Patient query)
QRY^A19 is the HL7v2 patient query message, defined in HL7v2 from v2.1 through v2.6, and withdrawn from the standard after v2.6. Its v2.6 structure carries 5 segments and groups, 2 of them required.
Full message structure (v2.6)
Every segment and group the standard defines for QRY^A19, in order, straight from the machine-readable specification. Indented rows sit inside the repeating group above them. R is required, O optional, C conditional; ∞ means the group or segment may repeat without a defined limit.
| Segment / group | Usage | Repeats |
|---|---|---|
| MSH | R | 1 |
| SFT | O | ∞ |
| UAC | O | 1 |
| QRD | R | 1 |
| QRF | O | 1 |
Which HL7v2 versions changed QRY^A19?
QRY^A19 was defined from v2.1 and withdrawn from the standard after v2.6. Systems still running it are on an older version, which is precisely why it is documented here.
| Versions | What changed |
|---|---|
| v2.1 | First defined, with 2 segments and groups. |
| v2.2 - v2.4 | Added QRF. |
| v2.5 - v2.5.1 | Added SFT. |
| v2.6 | Added UAC. |