Reference·MSH Segment·MSH-6
HL7 v2 Reference

Understanding HL7 v2 MSH-6: Receiving Facility in Practice

Jul 27, 2026 · 4 min read
← MSH-5 MSH-7 →

MSH-6 is easy to treat as a formality, but in health systems that route messages between facilities — a shared lab serving several clinics, for example — it is the field that tells the receiving side which site a result or order is actually meant for.

Quick answer

MSH-6 is the sixth field of the MSH segment — an identifier naming the facility the message is intended to reach, paired with MSH-5 the way MSH-4 pairs with MSH-3.

What this field contains

HOSP
Example identifier for the main hospital campus as the intended recipient
CLINIC01
Example identifier for an affiliated clinic as the intended recipient

Example

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

The 6th field, HOSP, identifies the receiving facility as the main hospital campus. Synthetic message — not a real transmission.

Where this trips people up

When a shared application serves several facilities and downstream logic branches on MSH-6 to decide which chart or which billing entity a message belongs to, an interface built or tested against a single-facility deployment often leaves this field blank or hardcoded — a shortcut that works until the same interface gets reused for a second site and messages start landing in the wrong facility's queue.

HL7 v2 MSH Explained: Structure, Fields, and Common Mistakes
How to Build a Test Environment Strategy for a Multi-Hospital System
Healthcare System Cutover Planning: A Step-by-Step Guide
Test facility-to-facility routing before it ships
Synthibase generates synthetic HL7 messages spanning multiple sending and receiving facility pairs, so cross-facility routing bugs surface in testing.
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.