HL7 Version 2 to FHIR
1.0.0 - STU 1

HL7 Version 2 to FHIR - Downloaded Version 1.0.0 See the Directory of published versions

## ConceptMap: Datatype HD [endpoint] to MessageHeader.source Map (Experimental)

Official URL: http://hl7.org/fhir/uv/v2mappings/ConceptMap/datatype-hd-endpoint-to-messageheader-source | Version: 1.0.0
Standards status: Informative | Computable Name: DatatypeHDEndpointToMessageHeaderSource
Copyright/Legal: Copyright (c) 2025, HL7 International, Inc., All Rights Reserved.

This ConceptMap represents a mapping from the HL7 V2 Datatype HD to the FHIR MessageHeader.source Data Type.

This ConceptMap represents the mapping from the HL7 V2 HD Data Type to the FHIR MessageHeader.source Data Type. See also the FHIR Shorthand or the CSV Source.

HL7 v2 | Condition (IF True, args) | HL7 FHIR | Comments
--- | --- | --- | ---
Sort Order | Identifier | Name | Data Type | Cardinality - Min | Cardinality - Max | Computable ANTLR | Computable FHIRPath | Narrative | FHIR Attribute | Proposed Extension | Data Type | Cardinality - Min | Cardinality - Max | Data Type Mapping | Vocabulary Mapping (IS, ID, CE, CEN, CWE) | Assignment
1 | HD.1 | Namespace ID | IS | 0 | 1 | IF HD.2 NOT VALUED AND (HD-3 NOT IN ("ISO", "UUID", "DNS", "URI")) |  |  | MessageHeader.source.name |  | string |  |  |  |  |  |
2 | HD.2 | Universal ID | ST | 0 | 1 | IF HD-3 = "ISO" |  |  | MessageHeader.source.endpoint |  | uri | 1 | 1 |  |  | "urn:oid:"+HD.2 |
2 | HD.2 | Universal ID | ST | 0 | 1 | IF HD-3 = "UUID" |  |  | MessageHeader.source.endpoint |  | uri | 1 | 1 |  |  | "urn:uuid:"+HD.2 |
2 | HD.2 | Universal ID | ST | 0 | 1 | IF HD-3 = "DNS" |  |  | MessageHeader.source.endpoint |  | uri | 1 | 1 |  |  | "urn:dns:"+HD.2 |
2 | HD.2 | Universal ID | ST | 0 | 1 | IF HD-3 = "URI" |  |  | MessageHeader.source.endpoint |  | uri | 1 | 1 |  |  | "urn:uri:"+HD.2 |
2 | HD.2 | Universal ID | ST | 0 | 1 | IF HD-3 NOT IN ("ISO", "UUID", "DNS", "URI") |  |  | MessageHeader.source.name |  |  |  |  |  |  | HD.1+" - "+HD.3+":"+HD.2 |
3 | HD.3 | Univeral ID Type | ST | 0 | 1 | IF NOT VALUED OR NOT IN ("ISO", "UUID", "DNS", "URI") |  |  | MessageHeader.source.endpoint.extension.url |  |  |  |  |  |  | "http://hl7.org/fhir/R4/extension-data-absent-reason.html" |
3 | HD.3 | Univeral ID Type | ST | 0 | 1 | IF NOT VALUED OR NOT IN ("ISO", "UUID", "DNS", "URI") |  |  | MessageHeader.source.endpoint.extension.valueCode |  |  |  |  |  |  | "unknown" |

Mapping from (not specified) to (not specified)

Group 1 Mapping from `unspecified code system` to `unspecified code system`

Source Concept Details | Relationship | Target Concept Details
Codes from | ComputableANTLR |  | Codes from
HD.1 | Namespace ID | IF HD.2 NOT VALUED AND (HD-3 NOT IN ("ISO", "UUID", "DNS", "URI")) | is equivalent to | name | name
HD.2 | Universal ID | IF HD-3 = "ISO" | is equivalent to | endpoint | endpoint
HD.2 | Universal ID | IF HD-3 = "UUID" | is equivalent to | endpoint | endpoint
HD.2 | Universal ID | IF HD-3 = "DNS" | is equivalent to | endpoint | endpoint
HD.2 | Universal ID | IF HD-3 = "URI" | is equivalent to | endpoint | endpoint
HD.2 | Universal ID | IF HD-3 NOT IN ("ISO", "UUID", "DNS", "URI") | is equivalent to | name | name
HD.3 | Univeral ID Type | IF NOT VALUED OR NOT IN ("ISO", "UUID", "DNS", "URI") | is equivalent to | endpoint.extension[1].url | endpoint.extension[1].url
HD.3 | Univeral ID Type | IF NOT VALUED OR NOT IN ("ISO", "UUID", "DNS", "URI") | is equivalent to | endpoint.extension[1].valueCode | endpoint.extension[1].valueCode

### Notes: