HL7 v2.5.1 Specificationsv2.5.1

to moveEnter to openTry PID-5, ADT, 0004

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-9QVR^Q17^QVR_Q17
  1. MSH-9.1QVRmessage code: what kind of message this is
  2. MSH-9.2Q17trigger event: what happened in the real world: query for previous events
  3. MSH-9.3QVR_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.

SegmentNameOPTCardinality
MSHR1..1
SFTO0..*
QPDR1..1
QBPa group of 1 segments, repeated togetherO0..1
anyHL7Segmentin QBPR1..1
RCPR1..1
DSCO0..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.

EventNameStructure
Q17query for previous eventsQVR_Q17