The MSH segment defines the intent, source, destination, and some specifics of the syntax of a message.
25
C.LenElementv2.6FHIR
11-STR1-00001MSH-1Field SeparatorMin Length-
24..5-STR1-00002MSH-2Encoding Characters2-
3--HDO1036100003MSH-3Sending ApplicationLength4 mappings
4--HDO1036200004MSH-4Sending FacilityLength5 mappings
5--HDO1036100005MSH-5Receiving ApplicationLength3 mappings
6--HDO1036200006MSH-6Receiving FacilityLengthdestination[1].receiver(Organization)
7--DTMR1-00007MSH-7Date/Time of MessageLength3 mappings
8-40=STO1-00008MSH-8Security2meta.security
9--MSGR1-00009MSH-9Message TypeLength3 mappings
101..199-STR1-00010MSH-10Message Control ID22 mappings
11--PTR1-00011MSH-11Processing IDLengthmeta
12--VIDR1-00012MSH-12Version IDLength-
13--NMO1-00013MSH-13Sequence NumberLength-
14-180=STO1-00014MSH-14Continuation Pointer2-
152-IDO1015500015MSH-15Accept Acknowledgment TypeMin Length-
162-IDO1015500016MSH-16Application Acknowledgment TypeMin Length-
173-IDO1039900017MSH-17Country CodeMin Lengthsender(Organization.address.country)
185..15-IDO*021100692MSH-18Character Set2-
19--CWEO1-00693MSH-19Principal Language Of MessageLengthlanguage
203..13-IDO1035601317MSH-20Alternate Character Set Handling Scheme2-
21--EIO*-01598MSH-21Message Profile IdentifierLength-
22--XONO1-01823MSH-22Sending Responsible OrganizationLength5 mappings
23--XONO1-01824MSH-23Receiving Responsible OrganizationLengthdestination[1].receiver(Organization)
24--HDO1-01825MSH-24Sending Network AddressLength3 mappings
25--HDO1-01826MSH-25Receiving Network AddressLength3 mappings
192