Reference·ORC Segment·ORC-9
HL7 v2 Reference

Understanding HL7 v2 ORC-9: Date/Time of Transaction in Practice

Jul 27, 2026 · 4 min read
← ORC-5 ORC-12 →

ORC-9 records when this specific message's event happened, not when the order was first placed — and code that reuses it as the original order date quietly rewrites order history every time a status-change message comes through.

Quick answer

ORC-9 is the ninth field of the HL7 v2 ORC segment — a timestamp marking when the transaction described by this ORC segment occurred. On a new order it typically matches the order's placement time, but on a cancel, status-change, or other follow-up message it reflects that later event instead.

What this field contains

Format
YYYYMMDDHHMMSS, the standard HL7 v2 timestamp format
On a new order (NW)
usually equal to the original order placement time
On later transactions
reflects when that specific event — cancel, status change, hold — happened, which can be well after the original order date

Example

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

20260726090000 in ORC-9 marks when this transaction occurred: July 26, 2026 at 9:00:00 AM. Synthetic timestamp — not from a real order.

Where this trips people up

A test suite that only ever generates a single ORC message per order never has a reason to distinguish ORC-9 from the order's original creation timestamp, since on that first message they're identical. The gap only appears once a second message — a cancellation, a status update — comes in with a later ORC-9, and any code that was quietly treating ORC-9 as an immutable order-creation date starts overwriting the original order time with whatever the latest transaction happened to carry. Order history and audit views are the most common place this shows up, usually as an order that appears to have been placed at the moment it was canceled.

How to Test HL7 v2 ORC: A Field-by-Field Breakdown
Regression Testing for EHR Upgrades: A Complete Guide
How to Write EDI Test Cases That Actually Catch Go-Live Failures
Test multi-transaction order histories, not single messages
Synthibase generates full sequences of related order messages with realistic, progressing ORC-9 timestamps, so your audit trail and history views get tested against how orders actually evolve over time.
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.