MSH
MESSAGE HEADER
The MSH segment defines the intent, source, destination, and some specifics of the syntax of a message.
Figure 2-9 MSH attributes
RRequiredOOptionalCConditionalWWithdrawn|#Date/Time*Backward compat.+Filler
17
| C.Len | Element | v2.1 | FHIR | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | ..1 | - | ST | R | 1 | - | 00001 | MSH-1 | Field separator | Name | - |
| 2 | ..4 | - | ST | R | 1 | - | 00002 | MSH-2 | Encoding characters | Name | - |
| 3 | ..15 | - | ST | O | 1 | - | 00003 | MSH-3 | Sending application | 2 | 4 mappings |
| 4 | ..20 | - | ST | O | 1 | - | 00004 | MSH-4 | Sending facility | 2 | 5 mappings |
| 5 | ..30 | - | ST | O | 1 | - | 00005 | MSH-5 | Receiving application | 3 | 3 mappings |
| 6 | ..30 | - | ST | O | 1 | - | 00006 | MSH-6 | Receiving facility | 2 | destination[1].receiver(Organization) |
| 7 | ..26 | - | TS | O | 1 | - | 00007 | MSH-7 | Date / Time of message | 3 | 3 mappings |
| 8 | ..40 | - | ST | O | 1 | - | 00008 | MSH-8 | Security | Optionality | meta.security |
| 9 | ..7 | - | CM_MSG | R | 1 | 0076 | 00009 | MSH-9 | Message type | 2 | 3 mappings |
| 10 | ..20 | - | ST | R | 1 | - | 00010 | MSH-10 | Message Control ID | Name | 2 mappings |
| 11 | ..1 | - | ID | R | 1 | 0103 | 00011 | MSH-11 | Processing ID | Name | meta |
| 12 | ..8 | - | ID | R | 1 | 0104 | 00012 | MSH-12 | Version ID | 2 | - |
| 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 | NEW | - |
| 16 | ..2 | - | ID | O | 1 | 0155 | 00016 | MSH-16 | Application acknowledgement type | NEW | - |
| 17 | ..2 | - | ID | O | 1 | - | 00017 | MSH-17 | Country code | NEW | sender(Organization.address.country) |
126
Editorial Comments for MSH5
Field 11
--> 2.10.1.11, Tabelle 103
BSW
Field 5
--> 2.10.1.5, 1.6.5.1
BSW
Field 6
--> 2.10.1.6, 1.6.5.1
BSW
Field 4
--> 2.10.1.4, 1.6.5.1
BSW
Field 3
--> 2.10.1.3, 1.6.5.1
BSW