Data type HD in FHIR
How the components of data type HD (Hierarchic Designator) become FHIR R4 elements, from the HL7 Version 2 to FHIR guide.
- HL7 v2 definition
- Definition of HD in HL7 v2 2.8
- Maps
- MessageHeaderDestination (Endpoint)MessageHeaderSource (Endpoint)MessageHeaderDestination (Name)MessageHeaderSource (Name)DeviceIdentifierLocationOrganizationUri
To MessageHeaderDestinationEndpoint6 rows
| HL7 v2 source | v2 type | FHIR element | FHIR type | Conditions and notes |
|---|---|---|---|---|
HD.1Namespace Id | IS | name | string | |
HD.2Universal Id | ST | endpoint | uri | If IF HD-3 = "ISO"Value "urn:oid:"+HD.2 |
HD.2Universal Id | ST | endpoint | uri | If IF HD-3 = "UUID"Value "urn:uuid:"+HD.2 |
HD.2Universal Id | ST | endpoint | uri | If IF HD-3 NOT IN ("ISO", "UUID") |
HD.3Universal Id Type | ST | endpoint.extension.url | uri | If IF NOT VALUEDValue "http://hl7.org/fhir/StructureDefinition/data-absent-reason" |
HD.3Universal Id Type | ST | endpoint.extension.valueCode | code | If IF NOT VALUEDValue "unknown" |
To MessageHeaderSourceEndpoint8 rows
| HL7 v2 source | v2 type | FHIR element | FHIR type | Conditions and notes |
|---|---|---|---|---|
HD.1Namespace Id | IS | name | string | If IF HD.2 NOT VALUED AND (HD-3 NOT IN ("ISO", "UUID", "DNS", "URI")) |
HD.2Universal Id | ST | endpoint | uri | If IF HD-3 = "ISO"Value "urn:oid:"+HD.2 |
HD.2Universal Id | ST | endpoint | uri | If IF HD-3 = "UUID"Value "urn:uuid:"+HD.2 |
HD.2Universal Id | ST | endpoint | uri | If IF HD-3 = "DNS"Value "urn:dns:"+HD.2 |
HD.2Universal Id | ST | endpoint | uri | If IF HD-3 = "URI"Value "urn:uri:"+HD.2 |
HD.2Universal Id | ST | name | If IF HD-3 NOT IN ("ISO", "UUID", "DNS", "URI")Value HD.1+" - "+HD.3+":"+HD.2 | |
HD.3Universal Id Type | ST | endpoint.extension[1].url | If IF NOT VALUED OR NOT IN ("ISO", "UUID", "DNS", "URI")Value "http://hl7.org/fhir/R4/extension-data-absent-reason.html" | |
HD.3Universal Id Type | ST | endpoint.extension[1].valueCode | If IF NOT VALUED OR NOT IN ("ISO", "UUID", "DNS", "URI")Value "unknown" |
To MessageHeaderDestinationName1 rows
To MessageHeaderSourceName2 rows
To Device4 rows
| HL7 v2 source | v2 type | FHIR element | FHIR type | Conditions and notes |
|---|---|---|---|---|
HD.1Namespace Id | IS | identifier[1].value | string | |
HD.2Universal Id | ST | identifier[2].value | string | |
HD.3Universal Id Type | ID | identifier[2].type | CodeableConcept | Code map v2-0301 |
HD.3Universal Id Type | ID | identifier[2].system | uri | If IF HD.3 IN ("ISO", "UUID")Value "urn:ietf:rfc:3986" |
To Identifier3 rows
To Location4 rows
| HL7 v2 source | v2 type | FHIR element | FHIR type | Conditions and notes |
|---|---|---|---|---|
HD.1Namespace Id | IS | name | string | |
HD.2Universal Id | ST | identifier.value | string | If IF HD.3 IN ("ISO", "UUID") |
HD.2Universal Id | ST | physicalType.coding.code | code | Value "si" |
HD.2Universal Id | ST | physicalType.coding.system | uri | Value "http://terminology.hl7.org/CodeSystem/location-physical-type" |
To Organization4 rows
| HL7 v2 source | v2 type | FHIR element | FHIR type | Conditions and notes |
|---|---|---|---|---|
HD.1Namespace Id | IS | identifier[1].value | string | |
HD.2Universal Id | ST | identifier[2].value | string | |
HD.3Universal Id Type | ID | identifier[2].type | CodeableConcept | Code map v2-0301 |
HD.3Universal Id Type | ID | identifier[2].system | uri | If IF HD.3 IN ("ISO", "UUID")Value "urn:ietf:rfc:3986" |
To Uri4 rows
| HL7 v2 source | v2 type | FHIR element | FHIR type | Conditions and notes |
|---|---|---|---|---|
HD.1Namespace Id | IS | $value | url | |
HD.2Universal Id | ST | $value | url | If IF HD.1 NOT VALUED AND IF HD-3 = "ISO"Value "urn:oid:"+HD.2 |
HD.2Universal Id | ST | $value | url | If IF HD.1 NOT VALUED AND IF HD-3 = "UUID"Value "urn:uuid:"+HD.2 |
HD.2Universal Id | ST | $value | url | If IF HD.1 NOT VALUED AND IF HD-3 NOT IN ("ISO", "UUID") |
