The Path
Module 3 · Message types·12 min
Orders
ORM and OML, ORC and OBR: the life of an order, from request to cancellation.
Before the night at the sleep lab, there is an order. The pulmonologist requests a polysomnography in the patient record, and the sleep lab has to receive it, accept it, schedule it, and one day answer it. In HL7, an order is a request for a test, a treatment or a drug.
Here is the polysomnography order for Marie Dubois, sent on the morning of Monday, June 15.
The patient record sends the sleep lab Dr Martin’s order for Marie Dubois.
Two roles: placer and filler
Every order puts two applications face to face:
- the placer: the one placing the order. Here the patient record (
HIS). - the filler: the one carrying it out. Here the sleep lab (
SLEEPLAB).
Each gives the order its own number. That is the key point of the whole lesson.
ORC: what to do with the order
The ORC segment (common order) does not describe the test. It says what to do with the order: create it, accept it, cancel it, change it. The standard describes it as the trigger event of orders.
| Field | Content | In our order |
|---|---|---|
ORC-1 |
order control code (required, table 0119) | NW, new order |
ORC-2 |
placer order number | PLACER-7781 |
ORC-3 |
filler order number | empty, not assigned yet |
ORC-5 |
order status (table 0038) | empty |
ORC-9 |
date and time of the action | June 15, 10:30 am |
ORC-12 |
ordering provider | 1234^MARTIN^Thomas |
ORC-3 is empty, and that is expected: the sleep lab has not seen the order yet. It is the lab that will assign this number.
OBR: which test
OBR (observation request) describes the test itself.
| Field | Content | In our order |
|---|---|---|
OBR-2 |
placer order number, same as ORC-2 |
PLACER-7781 |
OBR-3 |
filler order number, same as ORC-3 |
empty |
OBR-4 |
requested test (required) | 90568-7^Polysomnography panel^LN |
OBR-13 |
relevant clinical information | snoring, sleepiness |
OBR-16 |
ordering provider | 1234^MARTIN^Thomas |
The rule is simple: the numbers in ORC and OBR are the same. If one is missing from the ORC, it must be in the OBR. On result day, the ORU will often have no ORC at all: OBR-2 and OBR-3 are what tie the report back to this order.
OBR-4 uses the LOINC code for the polysomnography panel here, 90568-7, with LN as the coding system. You will find the same code in the result. Plenty of departments use a local code instead (for example PSG with L): then the interface handles the mapping.
The life of an order, message by message
Follow Marie’s order from June 15 to the result. Each step is a new code in ORC-1.
1. Monday, June 15, 10:30 am. The patient record sends NW. That is the message above.
2. Two seconds later. The lab answers OK. The application reply to an ORM is an ORR^O02. It carries an MSA and an ORC holding the number the lab has just assigned.
The sleep lab accepts the order and sends back its own number, PSG-2026-0042. Click ORC-3.
From now on the order has two numbers: PLACER-7781 on the patient record side, PSG-2026-0042 on the lab side.
3. Half an hour later. The lab sends SC. The lab secretary has booked the night of Friday, June 26. The lab announces the appointment itself with a SIU^S12 (see the scheduling lesson) and updates the order status. The lab reports a status change, with ORC-5 = SC, “in process, scheduled”. A control message like this one does not even need an OBR.
The sleep lab tells the patient record that the polysomnography is scheduled.
4. Late June. The result. The night takes place, then the report goes out as an ORU^R01, with both numbers in OBR-2 and OBR-3. That is the next lesson.
What if things change? The other codes
| Code | Meaning | Sent by |
|---|---|---|
NW |
new order | placer |
OK |
order accepted | filler |
UA |
unable to accept the order | filler |
CA |
cancel request | placer |
CR |
canceled as requested | filler |
OC |
canceled on the filler’s own initiative | filler |
XO |
change request | placer |
XR |
changed as requested | filler |
DC |
request to stop an ongoing service | placer |
SC |
status changed | either |
To swap one test for another, XO is not enough: many fillers reject it (reply UX). The standard provides a replace mechanism (RP for the old order, followed by RO for the new one). Many sites keep it simpler: CA, then NW.
A pattern emerges. The placer requests (NW, CA, XO). The filler replies (OK, CR, XR) or notifies on its own (OC). If Marie cancels her appointment, the patient record sends CA and waits for CR.
Try it: here is that CA, the way a badly configured patient record sends it. Add the missing number in ORC-3 so the lab can find the order.
Hypothetical scenario: the patient record asks for a cancel but leaves out the lab’s number.
ORM or OML?
In v2.5.1, ORM^O01 is kept for backward compatibility only. The standard recommends more specialized messages, and ORM was withdrawn in v2.7. Yet you will still meet it everywhere: many interfaces were built before.
For the lab, the recommended message is OML^O21. It follows the same ORC then OBR logic, and it can also describe specimens and tubes: that is the job of the SPM segment, which ORM does not have. Its reply is ORL^O22. On the same Monday, Dr Martin orders a ferritin test from the lab. Look at the last line: SPM-4 says the specimen is serum, SPM-17 when it was collected.
The same day, the patient record sends the clinical lab a test order for Marie Dubois.
For general clinical orders, 2.5.1 also offers OMG^O19.
And in FHIR?
The v2-to-FHIR guide turns ORC and OBR into a ServiceRequest resource. ORC-2 and ORC-3 become two identifiers, tagged “placer” and “filler”. The control code and the status are split between ServiceRequest.status and ServiceRequest.intent.
Check your understanding
1 of 5Which code goes in ORC-1 to send a new order?
+50 XPPass the quiz (4 correct answers) to complete the lesson.
Reviewed and checked on 27 September 2026