What Is HL7 v2 MSH-4? Sending Facility, Explained for Testers
A single sending application can serve multiple hospitals or clinics at once, and MSH-4 is the only field in the header telling a receiving system which one a given message actually came from — miss that distinction and multi-site deployments quietly mix up facility-scoped data.
MSH-4 is the fourth field of the MSH segment — an identifier naming the physical facility or site that sent the message, distinct from the application that generated it.
What this field contains
Example
The 4th field, HOSP, identifies the sending facility as the main hospital campus. Synthetic message — not a real transmission.
Where this trips people up
Health systems that stand up a shared instance of an application across multiple facilities sometimes configure every site to send the same MSH-4 value out of convenience, which works fine until a downstream system tries to scope billing, reporting, or record retention by facility and finds every message indistinguishable from every other one.