HL7 Version 2 to FHIR, published by HL7 International / Orders and Observations. This guide is not an authorized publication; it is the continuous build for version 1.0.0-ballot built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/HL7/v2-to-fhir/ and changes regularly. See the Directory of published versions
Official URL: http://hl7.org/fhir/uv/v2mappings/segment-msh-to-messageheader | Version: 1.0.0-ballot | |||
Active as of 2024-10-30 | Computable Name: SegmentMSHToMessageHeader | |||
Copyright/Legal: Copyright (c) 2020, HL7 International, Inc., All Rights Reserved. |
This ConceptMap represents a mapping from the HL7 V2 Segment MSH to the FHIR MessageHeader Resource.
This ConceptMap represents the mapping from the HL7 V2 MSH Segment to the FHIR MessageHeader Resource. See also the FHIR Shorthand or the CSV Source.
HL7 v2 | Condition (IF True, args) | HL7 FHIR | Comments | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Sort Order | Identifier | Syntax | Name | Cardinality - Min | Cardinality - Max | Computable ANTLR | Computable FHIRPath | Narrative | Primary Target | Segment Map | References | |
1 | MSH-1 | Field Separator | ST | 1 | 1 | |||||||
2 | MSH-2 | Encoding Characters | ST | 1 | 1 | |||||||
3 | MSH-3 | Sending Application | HD | 0 | 1 | MessageHeader.source | 1 | |||||
3 | MSH-3 | Sending Application | HD | 0 | 1 | IF MSH-24 NOT VALUED | MessageHeader.source.endpoint | uri | 1 | |||
4 | MSH-4 | Sending Facility | HD | 0 | 1 | MessageHeader.sender(MessageHeader.Organization) | Reference(Organization) | 1 | ||||
5 | MSH-5 | Receiving Application | HD | 0 | 1 | MessageHeader.destination.target(MessageHeader.Device) | Reference(Device) | 1 | ||||
5 | MSH-5 | Receiving Application | HD | 0 | 1 | IF MSH-25 VALUED | MessageHeader.destination.name | |||||
5 | MSH-5 | Receiving Application | HD | 0 | 1 | IF MSH-25 NOT VALUED | MessageHeader.destination.endpoint | |||||
6 | MSH-6 | Receiving Facility | HD | 0 | -1 | IF MSH-23 NOT VALUED | MessageHeader.destination.receiver(MessageHeader.Organization) | Reference(Organization) | 1 | |||
7 | MSH-7 | Date/Time of Message | DTM | 1 | 1 | |||||||
7 | MSH-7 | Date/Time of Message | DTM | 1 | 1 | |||||||
8 | MSH-8 | Security | ST | 0 | 1 | meta.security | string | -1 | ||||
9 | MSH-9 | Message Type | MSG | 1 | 1 | MessageHeader.eventCoding | Coding | 1 | ||||
10 | MSH-10 | Message Control ID | ST | 1 | 1 | |||||||
11 | MSH-11 | Processing ID | PT | 1 | 1 | MessageHeader.meta | meta | -1 | ||||
12 | MSH-12 | Version ID | VID | 1 | 1 | |||||||
13 | MSH-13 | Sequence Number | NM | 0 | 1 | |||||||
14 | MSH-14 | Continuation Pointer | ST | 0 | 1 | |||||||
15 | MSH-15 | Accept Acknowledgment Type | ID | 0 | 1 | |||||||
16 | MSH-16 | Application Acknowledgment Type | ID | 0 | 1 | |||||||
17 | MSH-17 | Country Code | ID | 0 | 1 | MessageHeader.sender(MessageHeader.Organization.address.country) | string | 1 | ||||
18 | MSH-18 | Character Set | ID | 0 | -1 | extension??-characterSet | ||||||
19 | MSH-19 | Principal Language Of Message | CWE | 0 | 1 | MessageHeader.language | code | 1 | ||||
20 | MSH-20 | Alternate Character Set Handling Scheme | ID | 0 | 1 | |||||||
21 | MSH-21 | Message Profile Identifier | EI | 0 | -1 | extension??-v2ProfileID.uri | uri | 1 | ||||
21 | MSH-21 | Message Profile Identifier | EI | 0 | -1 | extension??-v2ProfileID.valueString | string | 1 | ||||
22 | MSH-22 | Sending Responsible Organization | XON | 0 | 1 | MessageHeader.responsible(MessageHeader.Organization) | Reference(Organization) | 1 | ||||
23 | MSH-23 | Receiving Responsible Organization | XON | 0 | 1 | MessageHeader.destination.receiver(MessageHeader.Organization) | Reference(Organization) | -1 | ||||
24 | MSH-24 | Sending Network Address | HD | 0 | 1 | MessageHeader.source | string | 1 | ||||
24 | MSH-24 | Sending Network Address | HD | 0 | 1 | IF MSH-24 NOT VALUED AND MSH-3 NOT VALUED | MessageHeader.source.endpoint.extension.url | uri | 1 | |||
24 | MSH-24 | Sending Network Address | HD | 0 | 1 | IF MSH-24 NOT VALUED AND MSH-3 NOT VALUED | MessageHeader.source.endpoint.extension.valueCode | code | 1 | |||
25 | MSH-25 | Receiving Network Address | HD | 0 | 1 | MessageHeader.destination | uri | -1 | ||||
25 | MSH-25 | Receiving Network Address | HD | 0 | 1 | IF MSH-25 NOT VALUED AND MSH-5 NOT VALUED | MessageHeader.destination.endpoint.extension.url | uri | -1 | |||
25 | MSH-25 | Receiving Network Address | HD | 0 | 1 | IF MSH-25 NOT VALUED AND MSH-5 NOT VALUED | MessageHeader.destination.endpoint.extension.valueCode | code | -1 | |||
26 | MSH-26 | Security Classification Tag | CWE | 0 | 1 | meta.security | Coding | -1 | ||||
27 | MSH-27 | Security Handling Instructions | CWE | 0 | -1 | meta.security | Coding | -1 | ||||
28 | MSH-28 | Special Access Restriction Instructions | ST | 0 | -1 |
Generated Narrative: ConceptMap segment-msh-to-messageheader
Mapping from MSH to MessageHeader
Group 1 Mapping from unspecified code system
to unspecified code system
Source Code | Relationship | Target Code | Comment |
MSH-3 (HD) | is equivalent to | source[1] | 1 |
MSH-3 (HD) | is equivalent to | source[1].endpoint | 1 |
MSH-4 (HD) | is equivalent to | sender(Organization) | 1 |
MSH-5 (HD) | is equivalent to | destination[1].target(Device) | 1 |
MSH-5 (HD) | is equivalent to | destination[1].name | |
MSH-5 (HD) | is equivalent to | destination[1].endpoint | |
MSH-6 (HD) | is equivalent to | destination[1].receiver(Organization) | 1 |
MSH-8 (ST) | is equivalent to | meta.security | -1 |
MSH-9 (MSG) | is equivalent to | eventCoding | 1 |
MSH-11 (PT) | is equivalent to | meta | -1 |
MSH-17 (ID) | is equivalent to | sender(Organization.address.country) | 1 |
MSH-19 (CWE) | is equivalent to | language | 1 |
MSH-22 (XON) | is equivalent to | responsible(Organization) | 1 |
MSH-23 (XON) | is equivalent to | destination[1].receiver(Organization) | -1 |
MSH-24 (HD) | is equivalent to | source | 1 |
MSH-24 (HD) | is equivalent to | source.endpoint.extension.url | 1 |
MSH-24 (HD) | is equivalent to | source.endpoint.extension.valueCode | 1 |
MSH-25 (HD) | is equivalent to | destination[1] | -1 |
MSH-25 (HD) | is equivalent to | destination[1].endpoint.extension.url | -1 |
MSH-25 (HD) | is equivalent to | destination[1].endpoint.extension.valueCode | -1 |
MSH-26 (CWE) | is equivalent to | meta.security[2] | -1 |
MSH-27 (CWE) | is equivalent to | meta.security[2] | -1 |