MSH
Message Header
The MSH segment defines the intent, source, destination, and some specifics of the syntax of a message.
2.24.1.0 MSH field definitions
RRequiredOOptionalCConditionalWWithdrawn|#Date/Time*Backward compat.+Filler
19
| C.Len | Element | v2.2 | FHIR | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | ..1 | - | ST | R | 1 | - | 00001 | MSH-1 | Field Separator | Name | - |
| 2 | ..4 | - | ST | R | 1 | - | 00002 | MSH-2 | Encoding Characters | Name | - |
| 3 | ..180 | - | HD | O | 1 | - | 00003 | MSH-3 | Sending Application | 4 | 4 mappings |
| 4 | ..180 | - | HD | O | 1 | - | 00004 | MSH-4 | Sending Facility | 4 | 5 mappings |
| 5 | ..180 | - | HD | O | 1 | - | 00005 | MSH-5 | Receiving Application | 4 | 3 mappings |
| 6 | ..180 | - | HD | O | 1 | - | 00006 | MSH-6 | Receiving Facility | 4 | destination[1].receiver(Organization) |
| 7 | ..26 | - | TS | O | 1 | - | 00007 | MSH-7 | Date / Time of Message | Name | 3 mappings |
| 8 | ..40 | - | ST | O | 1 | - | 00008 | MSH-8 | Security | Optionality | meta.security |
| 9 | ..7 | - | CM_MSG | R | 1 | - | 00009 | MSH-9 | Message Type | 2 | 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 | 3 | meta |
| 12 | ..8 | - | ID | R | 1 | 0104 | 00012 | MSH-12 | Version ID | - | |
| 13 | ..15 | - | NM | O | 1 | - | 00013 | MSH-13 | Sequence Number | 2 | - |
| 14 | ..180 | - | ST | O | 1 | - | 00014 | MSH-14 | Continuation Pointer | 2 | - |
| 15 | ..2 | - | ID | O | 1 | 0155 | 00015 | MSH-15 | Accept Acknowledgement Type | 2 | - |
| 16 | ..2 | - | ID | O | 1 | 0155 | 00016 | MSH-16 | Application Acknowledgement Type | 2 | - |
| 17 | ..2 | - | ID | O | 1 | - | 00017 | MSH-17 | Country Code | 2 | sender(Organization.address.country) |
| 18 | ..6 | - | ID | O | 1 | 0211 | 00692 | MSH-18 | Character Set | NEW | - |
| 19 | ..3 | - | CE | O | 1 | - | 00693 | MSH-19 | Principal Language of Message | NEW | language |
335