Reference·ORC Segment·ORC-1
HL7 v2 Reference

HL7 v2 ORC-1 (Order Control): Format, Values, and Testing Notes

Jul 27, 2026 · 4 min read
ORC-2 →

Most order-handling code gets written and tested against NW (new order) and nothing else, so the first cancel or status-change message a system receives in production is often the first one it has ever actually parsed.

Quick answer

ORC-1 is the first field of the HL7 v2 ORC segment — a required coded value that identifies what kind of order event the message represents, such as a new order, a cancellation, or a status update.

Valid code values

NW
New order
CA
Cancel order request
OK
Order accepted and confirmed
UA
Unable to accept order
SC
Status changed
DC
Discontinue order request

Example

Synthetic example Generated by Synthibase
ORC|NW|ORD44219^SYNTHIB|FIL98831^SYNTHIB||IP||||20260726090000|||3021^HAYES^DEREK^A^^^MD

NW in the first field marks this as a brand-new order. Synthetic order — not from any real facility.

Where this trips people up

Test suites built around a single ORC-1 value (almost always NW) leave the cancel, discontinue, and status-change paths completely unexercised. In production, a CA or DC message that arrives at a system expecting only NW often gets treated as a brand-new order instead of a cancellation of an existing one — which is a far more dangerous failure than a dropped message, because it can leave a canceled order still active in a downstream queue.

How to Test HL7 v2 ORC: A Field-by-Field Breakdown
How to Write EDI Test Cases That Actually Catch Go-Live Failures
Regression Testing for EHR Upgrades: A Complete Guide
Generate every ORC-1 order control value automatically
Synthibase generates synthetic order messages covering the full range of order control codes, including cancel and status-change events most test suites never see until production.
Start free trial →
This page is written independently by Synthibase for testing and informational purposes. It is not an official publication of HL7 International or X12/Washington Publishing Company, and is not a substitute for reviewing the official standard or your trading partner's companion guide. See our Terms of Service for full legal terms.