Tipo de datos HD en FHIR

Cómo los componentes del tipo de datos HD (Hierarchic Designator) se convierten en elementos FHIR R4, según la guía HL7 Version 2 to FHIR.

Definición HL7 v2
Definición de HD en HL7 v2 2.8
Mapas
MessageHeaderDestination (Endpoint)MessageHeaderSource (Endpoint)MessageHeaderDestination (Name)MessageHeaderSource (Name)DeviceIdentifierLocationOrganizationUri

A MessageHeaderDestinationEndpoint6 filas

Origen HL7 v2Tipo v2Elemento FHIRTipo FHIRCondiciones y notas
HD.1Namespace Id
ISnamestring
HD.2Universal Id
STendpointuri
Si IF HD-3 = "ISO"Valor "urn:oid:"+HD.2
HD.2Universal Id
STendpointuri
Si IF HD-3 = "UUID"Valor "urn:uuid:"+HD.2
HD.2Universal Id
STendpointuri
Si IF HD-3 NOT IN ("ISO", "UUID")
HD.3Universal Id Type
STendpoint.extension.urluri
Si IF NOT VALUEDValor "http://hl7.org/fhir/StructureDefinition/data-absent-reason"
HD.3Universal Id Type
STendpoint.extension.valueCodecode
Si IF NOT VALUEDValor "unknown"

A MessageHeaderSourceEndpoint8 filas

Origen HL7 v2Tipo v2Elemento FHIRTipo FHIRCondiciones y notas
HD.1Namespace Id
ISnamestring
Si IF HD.2 NOT VALUED AND (HD-3 NOT IN ("ISO", "UUID", "DNS", "URI"))
HD.2Universal Id
STendpointuri
Si IF HD-3 = "ISO"Valor "urn:oid:"+HD.2
HD.2Universal Id
STendpointuri
Si IF HD-3 = "UUID"Valor "urn:uuid:"+HD.2
HD.2Universal Id
STendpointuri
Si IF HD-3 = "DNS"Valor "urn:dns:"+HD.2
HD.2Universal Id
STendpointuri
Si IF HD-3 = "URI"Valor "urn:uri:"+HD.2
HD.2Universal Id
STname
Si IF HD-3 NOT IN ("ISO", "UUID", "DNS", "URI")Valor HD.1+" - "+HD.3+":"+HD.2
HD.3Universal Id Type
STendpoint.extension[1].url
Si IF NOT VALUED OR NOT IN ("ISO", "UUID", "DNS", "URI")Valor "http://hl7.org/fhir/R4/extension-data-absent-reason.html"
HD.3Universal Id Type
STendpoint.extension[1].valueCode
Si IF NOT VALUED OR NOT IN ("ISO", "UUID", "DNS", "URI")Valor "unknown"

A MessageHeaderDestinationName1 filas

Origen HL7 v2Tipo v2Elemento FHIRTipo FHIRCondiciones y notas
HD.2Universal Id
STnamestring

A MessageHeaderSourceName2 filas

Origen HL7 v2Tipo v2Elemento FHIRTipo FHIRCondiciones y notas
HD.1Namespace Id
ISnamestring
HD.2Universal Id
STsoftwarestring

A Device4 filas

Origen HL7 v2Tipo v2Elemento FHIRTipo FHIRCondiciones y notas
HD.1Namespace Id
ISidentifier[1].valuestring
HD.2Universal Id
STidentifier[2].valuestring
HD.3Universal Id Type
IDidentifier[2].typeCodeableConcept
Mapa de códigos v2-0301
HD.3Universal Id Type
IDidentifier[2].systemuri
Si IF HD.3 IN ("ISO", "UUID")Valor "urn:ietf:rfc:3986"

A Identifier3 filas

Origen HL7 v2Tipo v2Elemento FHIRTipo FHIRCondiciones y notas
HD.1Namespace Id
ISvalue[1]string
HD.2Universal Id
STvalue[2]string
HD.3Universal Id Type
IDtype[2]CodeableConcept

A Location4 filas

Origen HL7 v2Tipo v2Elemento FHIRTipo FHIRCondiciones y notas
HD.1Namespace Id
ISnamestring
HD.2Universal Id
STidentifier.valuestring
Si IF HD.3 IN ("ISO", "UUID")
HD.2Universal Id
STphysicalType.coding.codecode
Valor "si"
HD.2Universal Id
STphysicalType.coding.systemuri
Valor "http://terminology.hl7.org/CodeSystem/location-physical-type"

A Organization4 filas

Origen HL7 v2Tipo v2Elemento FHIRTipo FHIRCondiciones y notas
HD.1Namespace Id
ISidentifier[1].valuestring
HD.2Universal Id
STidentifier[2].valuestring
HD.3Universal Id Type
IDidentifier[2].typeCodeableConcept
Mapa de códigos v2-0301
HD.3Universal Id Type
IDidentifier[2].systemuri
Si IF HD.3 IN ("ISO", "UUID")Valor "urn:ietf:rfc:3986"

A Uri4 filas

Origen HL7 v2Tipo v2Elemento FHIRTipo FHIRCondiciones y notas
HD.1Namespace Id
IS$valueurl
HD.2Universal Id
ST$valueurl
Si IF HD.1 NOT VALUED AND IF HD-3 = "ISO"Valor "urn:oid:"+HD.2
HD.2Universal Id
ST$valueurl
Si IF HD.1 NOT VALUED AND IF HD-3 = "UUID"Valor "urn:uuid:"+HD.2
HD.2Universal Id
ST$valueurl
Si IF HD.1 NOT VALUED AND IF HD-3 NOT IN ("ISO", "UUID")