Reference·MSH Segment·MSH-10
HL7 v2 Reference

MSH-10 in HL7 v2: A Field Guide to Message Control ID

Jul 27, 2026 · 4 min read
← MSH-9 MSH-11 →

MSH-10 is supposed to be unique across every message a sending system ever produces, and most of the time it is — until an interface engine restarts, a counter resets, and two completely different messages arrive carrying the same control ID.

Quick answer

MSH-10 is the tenth field of the MSH segment — a string meant to uniquely identify a given message, used by the receiving system to correlate acknowledgments and detect duplicate transmissions.

What this field contains

MSG00001458
Example sequential control ID incrementing per message
UUID-based values
Alternative approach some systems use to avoid collisions after restarts

Example

Synthetic example Generated by Synthibase
MSH|^~\&|ADTSYS|HOSP|BILLSYS|HOSP|20260727143000||ADT^A01|MSG00001458|P|2.5.1

The 10th field, MSG00001458, uniquely identifies this message for acknowledgment and duplicate-detection purposes. Synthetic message — not a real transmission.

Where this trips people up

Source systems that generate MSH-10 from an in-memory counter rather than a persisted sequence will restart that counter from its initial value after a service restart, which means a receiving system that treats MSH-10 as a reliable duplicate-detection key can start silently rejecting legitimate new messages because their control ID collides with one it already processed before the restart.

HL7 v2 MSH Explained: Structure, Fields, and Common Mistakes
How to Write EDI Test Cases That Actually Catch Go-Live Failures
Regression Testing for EHR Upgrades: A Complete Guide
Test duplicate-detection logic against ID collisions
Synthibase generates synthetic HL7 messages with configurable control IDs, so duplicate-handling bugs surface in testing instead of after an interface engine restart.
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.