MSH
Message Header
The MSH segment defines the intent, source, destination, and some specifics of the syntax of a message.
RRequiredOOptionalCConditionalWWithdrawn|#Date/Time*Backward compat.+Filler
21
| C.Len | Element | FHIR | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| 1 | ..1 | - | ST | R | 1 | - | 00001 | MSH-1 | Field Separator | - |
| 2 | ..4 | - | ST | R | 1 | - | 00002 | MSH-2 | Encoding Characters | - |
| 3 | ..227 | - | HD | O | 1 | 0361 | 00003 | MSH-3 | Sending Application | 4 mappings |
| 4 | ..227 | - | HD | O | 1 | 0362 | 00004 | MSH-4 | Sending Facility | 5 mappings |
| 5 | ..227 | - | HD | O | 1 | 0361 | 00005 | MSH-5 | Receiving Application | 3 mappings |
| 6 | ..227 | - | HD | O | 1 | 0362 | 00006 | MSH-6 | Receiving Facility | destination[1].receiver(Organization) |
| 7 | ..26 | - | TS | R | 1 | - | 00007 | MSH-7 | Date/Time Of Message | 3 mappings |
| 8 | ..40 | - | ST | O | 1 | - | 00008 | MSH-8 | Security | meta.security |
| 9 | ..15 | - | MSG | R | 1 | - | 00009 | MSH-9 | Message Type | 3 mappings |
| 10 | ..20 | - | ST | R | 1 | - | 00010 | MSH-10 | Message Control ID | 2 mappings |
| 11 | ..3 | - | PT | R | 1 | - | 00011 | MSH-11 | Processing ID | meta |
| 12 | ..60 | - | VID | R | 1 | - | 00012 | MSH-12 | Version ID | - |
| 13 | ..15 | - | NM | O | 1 | - | 00013 | MSH-13 | Sequence Number | - |
| 14 | ..180 | - | ST | O | 1 | - | 00014 | MSH-14 | Continuation Pointer | - |
| 15 | ..2 | - | ID | O | 1 | 0155 | 00015 | MSH-15 | Accept Acknowledgment Type | - |
| 16 | ..2 | - | ID | O | 1 | 0155 | 00016 | MSH-16 | Application Acknowledgment Type | - |
| 17 | ..3 | - | ID | O | 1 | 0399 | 00017 | MSH-17 | Country Code | sender(Organization.address.country) |
| 18 | ..16 | - | ID | O | * | 0211 | 00692 | MSH-18 | Character Set | - |
| 19 | ..250 | - | CE | O | 1 | - | 00693 | MSH-19 | Principal Language Of Message | language |
| 20 | ..20 | - | ID | O | 1 | 0356 | 01317 | MSH-20 | Alternate Character Set Handling Scheme | - |
| 21 | ..427 | - | EI | O | * | - | 01598 | MSH-21 | Message Profile Identifier | - |
201