QVR: Query for previous events
This page lists the structures and trigger events QVR defines, taken from the standard. The written commentary that theADT page carries has not been written for QVR.
Recognising QVR messages
QVR announces itself in MSH-9 like this:
MSH-9
QVR^Q17^QVR_Q17- MSH-9.1
QVRmessage code: what kind of message this is - MSH-9.2
Q17trigger event: what happened in the real world: query for previous events - MSH-9.3
QVR_Q17message structure: which segments to expect, and in what order
How to use these specifications explains MSH-9 in full, with a worked example.
Message structures
QVR takes 1 structure.
QVR_Q17: query for previous events
Sent when one thing happens: Q17: query for previous events.
You must always send: MSH, QPD, RCP. Everything else is optional, or required only inside a group you chose to send.
| Segment | Name | OPT | Cardinality |
|---|---|---|---|
| MSH | R | 1..1 | |
| SFT | O | 0..* | |
| QPD | R | 1..1 | |
| QBP | a group of 1 segments, repeated together | O | 0..1 |
| anyHL7Segmentin QBP | R | 1..1 | |
| RCP | R | 1..1 | |
| DSC | O | 0..1 |
R inside a group means required of that group. Send the group and you must include that segment; leave the group out and it never appears. This structure has 1 such group: QBP.
Trigger events
The trigger event is the real-world thing that made the message get sent. QVR defines 1.
| Event | Name | Structure |
|---|---|---|
| Q17 | query for previous events | QVR_Q17 |