MSH - Message Header (HL7 v2.4)
Versions: v2.3 v2.3.1 v2.4 v2.5.1 v2.6 v2.7.1
The MSH segment (Message Header) has 21 fields in HL7 v2.4. Fields are addressed as
MSH-n; composite fields break into components MSH-n.m. Paste a message into the
parser to see every field annotated with this table.
| # | Name | Type | Len | Opt | Repeats | Table |
|---|---|---|---|---|---|---|
| 1 | Field Separator | ST | 1 | Required | No | |
| 2 | Encoding Characters | ST | 4 | Required | No | |
| 3 | Sending Application | HD | 180 | Optional | No | |
| 4 | Sending Facility | HD | 180 | Optional | No | |
| 5 | Receiving Application | HD | 180 | Optional | No | |
| 6 | Receiving Facility | HD | 180 | Optional | No | |
| 7 | Date/Time Of Message | TS | 26 | Required | No | |
| 8 | Security | ST | 40 | Optional | No | |
| 9 | Message Type | MSG | 15 | Required | No | |
| 10 | Message Control ID | ST | 20 | Required | No | |
| 11 | Processing ID | PT | 3 | Required | No | |
| 12 | Version ID | VID | 60 | Required | No | |
| 13 | Sequence Number | NM | 15 | Optional | No | |
| 14 | Continuation Pointer | ST | 180 | Optional | No | |
| 15 | Accept Acknowledgment Type | ID | 2 | Optional | No | 0155 |
| 16 | Application Acknowledgment Type | ID | 2 | Optional | No | 0155 |
| 17 | Country Code | ID | 3 | Optional | No | 0399 |
| 18 | Character Set | ID | 16 | Optional | Yes | 0211 |
| 19 | Principal Language Of Message | CE | 250 | Optional | No | |
| 20 | Alternate Character Set Handling Scheme | ID | 20 | Optional | No | 0356 |
| 21 | Conformance Statement ID | ID | 10 | Optional | Yes | 0449 |
Synthetic example
MSH|^~\&|PAS|NORTHSIDE|INTAKE|BASAL|20260823093000+1000||ADT^A01^ADT_A01|NS20260823093000001|P|2.5.1|||AL|NE|AU
Open in parser