Reference·OBR Segment·OBR-7
HL7 v2 Reference

Understanding HL7 v2 OBR-7: Observation Date/Time in Practice

Jul 27, 2026 · 4 min read
← OBR-4 OBR-16 →

OBR-7 marks when the specimen was collected or the observation actually happened — not when the order was placed and not when the result was filed. Dashboards that plot turnaround time using the wrong timestamp will report numbers that look plausible but are quietly wrong.

Quick answer

OBR-7 is the seventh field of the HL7 v2 OBR segment — the Observation Date/Time, typically representing the collection or observation time for the study, distinct from order time and result time.

What this field contains

format
Timestamp — YYYYMMDDHHMMSS, optionally with timezone offset
meaning
Collection/observation time — when the specimen was drawn or the study performed, not when it was ordered
precision
Truncated forms — date-only or date-hour-minute values are technically valid and show up in the wild

Example

Synthetic example Generated by Synthibase
OBR|1|ORD44219^SYNTHIB|FIL98831^SYNTHIB|CBC^Complete Blood Count^L|||20260726090000|||||||||3021^HAYES^DEREK^A^^^MD||||||||CH|F||||||R/O anemia

OBR-7 carries 20260726090000 — the specimen collection time for this order. Synthetic order — not a real patient.

Where this trips people up

Turnaround-time reporting built on the assumption that OBR-7 always arrives with full second-level precision breaks the moment a sending system truncates the timestamp to date-hour-minute or, in older feeds, date only. Parsing code that blindly slices fixed character positions out of the string then reads garbage seconds or shifts the whole value. Parse HL7 timestamps by declared length, not fixed offsets.

HL7 v2 OBR Segment Guide: Fields, Format, and Testing Gotchas
HL7 ADT Messages: A01 through A08 Explained
Regression Testing for EHR Upgrades: A Complete Guide
Generate orders with realistic, varied timestamps
Synthibase generates synthetic OBR segments with a realistic mix of timestamp precisions, so parsing gaps show up in testing, not 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.