HL7 ADR^A19 (Patient query)
ADR^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 36 segments and groups, 8 of them required.
Full message structure (v2.6)
Every segment and group the standard defines for ADR^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 |
| MSA | R | 1 |
| ERR | O | 1 |
| QAK | O | 1 |
| QRD | R | 1 |
| QRF | O | 1 |
| QUERY_RESPONSE (group) | R | ∞ |
| EVN | O | 1 |
| PID | R | 1 |
| PD1 | O | 1 |
| ARV | O | ∞ |
| ROL | O | ∞ |
| NK1 | O | ∞ |
| PV1 | R | 1 |
| PV2 | O | 1 |
| ARV | O | ∞ |
| ROL | O | ∞ |
| DB1 | O | ∞ |
| OBX | O | ∞ |
| AL1 | O | ∞ |
| DG1 | O | ∞ |
| DRG | O | 1 |
| PROCEDURE (group) | O | ∞ |
| PR1 | R | 1 |
| ROL | O | ∞ |
| GT1 | O | ∞ |
| INSURANCE (group) | O | ∞ |
| IN1 | R | 1 |
| IN2 | O | 1 |
| IN3 | O | ∞ |
| ROL | O | ∞ |
| ACC | O | 1 |
| UB1 | O | 1 |
| UB2 | O | 1 |
Which HL7v2 versions changed ADR^A19?
ADR^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 8 segments and groups. |
| v2.2 | Added ACC, AL1, DG1, ERR, GT1, IN1, IN2, IN3, NK1, OBX, PR1, PV2, UB1, UB2. |
| v2.3 | Added DB1, DRG, PD1, QRF, ROL. |
| v2.3.1 | Added QAK. |
| v2.4 | Same segments, but usage or repeat counts changed. |
| v2.5 - v2.5.1 | Added SFT. |
| v2.6 | Added ARV, UAC. Removed DSC. |