HL7 v2.5.1 Specificationsv2.5.1

to moveEnter to openTry PID-5, ADT, 0004

SQM: Schedule query message

This page lists the structures and trigger events SQM defines, taken from the standard. The written commentary that theADT page carries has not been written for SQM.

Recognising SQM messages

SQM announces itself in MSH-9 like this:

MSH-9SQM^S25^SQM_S25
  1. MSH-9.1SQMmessage code: what kind of message this is
  2. MSH-9.2S25trigger event: what happened in the real world: schedule query message and response
  3. MSH-9.3SQM_S25message 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

SQM takes 1 structure.

SQM_S25: Schedule Query Message and Response

Sent when one thing happens: S25: Schedule Query Message and Response.

You must always send: MSH, QRD. Everything else is optional, or required only inside a group you chose to send.

SegmentNameOPTCardinality
MSHR1..1
QRDR1..1
QRFO0..1
REQUESTa group of 4 segments, repeated togetherO0..1
ARQin REQUESTR1..1
APRin REQUESTO0..1
PIDin REQUESTO0..1
RESOURCESin REQUESTa group of 5 segments, repeated togetherR1..*
RGSin RESOURCESR1..1
SERVICEin RESOURCESa group of 2 segments, repeated togetherO0..*
AISin SERVICER1..1
APRin SERVICEO0..1
GENERAL_RESOURCEin RESOURCESa group of 2 segments, repeated togetherO0..*
AIGin GENERAL_RESOURCER1..1
APRin GENERAL_RESOURCEO0..1
PERSONNEL_RESOURCEin RESOURCESa group of 2 segments, repeated togetherO0..*
AIPin PERSONNEL_RESOURCER1..1
APRin PERSONNEL_RESOURCEO0..1
LOCATION_RESOURCEin RESOURCESa group of 2 segments, repeated togetherO0..*
AILin LOCATION_RESOURCER1..1
APRin LOCATION_RESOURCEO0..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 6 such groups: REQUEST, RESOURCES, SERVICE, GENERAL_RESOURCE, PERSONNEL_RESOURCE, LOCATION_RESOURCE.

Trigger events

The trigger event is the real-world thing that made the message get sent. SQM defines 1.

EventNameStructure
S25Schedule Query Message and ResponseSQM_S25