Segmento MSH en FHIR

Cómo el segmento MSH (Message Header) se convierte en recursos FHIR R4, según la guía HL7 Version 2 to FHIR.

Definición HL7 v2
Definición de MSH en HL7 v2 2.8
Mapas
Provenance (Operator)Provenance (Source)BundleEncounterMessageHeaderProvenance (Transformation)
Usado en los mensajes
ADT_A01ADT_A02ADT_A05ADT_A06ADT_A09ADT_A11ADT_A17MDM_T02OML_O21ORM_O01ORU_R01SIU_S12VXU_V04

A ProvenanceOperator2 filas

Origen HL7 v2Tipo v2Elemento FHIRTipo FHIRCondiciones y notas
MSH-4Sending Facility
HDagent.who(Organization)Reference(Organization)
Si IF MSH-22 NOT VALUED
MSH-22Sending Responsible Organization
XONagent.who(Organization)Reference(Organization)

A ProvenanceSource15 filas

Origen HL7 v2Tipo v2Elemento FHIRTipo FHIRCondiciones y notas
MSHsegmento completo
entity[1].what(DocumentReference.content.attachment.url)
when you hold on to/persist the v2 message in a data store
MSHsegmento completo
entity[1].what(DocumentReference.content.attachment.data)
when you do not hold on to/persist the v2 message in a data storeValor /v2.txt or v2.xml into base 64/
MSHsegmento completo
entity[1].what(DocumentReference.status)
when you do not hold on to/persist the v2 message in a data storeValor "current"
MSHsegmento completo
entity[1].role
Valor "source"
MSH-3Sending Application
HDentity[2].what(Device.identifier)Reference(Device)
Si IF MSH-3 AND MSH-24 VALUED
MSH-3Sending Application
HDentity[2].rolecode
Si IF MSH-3 AND MSH-24 VALUEDValor "source"
MSH-4Sending Facility
HDagent[1].who(Organization)Reference(Organization)
Si IF MSH-22 NOT VALUED
MSH-4Sending Facility
HDagent[1].type.coding.codecode
Si IF MSH-22 NOT VALUEDValor "author"
MSH-4Sending Facility
HDagent[1].type.coding.systemuri
Si IF MSH-22 NOT VALUEDValor "http://terminology.hl7.org/CodeSystem/provenance-participant-type"
MSH-7Date/Time Of Message
DTMrecorded
MSH-7Date/Time Of Message
DTMoccurred
MSH-9Message Type
MSGactivity.coding.displaystring
Valor "message - "+MSG.1+"^"+MSG.2+"^"+MSG.3
MSH-22Sending Responsible Organization
XONagent[2].who(Organization)Reference(Organization)
MSH-22Sending Responsible Organization
XONagent[2].type.coding.codecode
Valor "author"
MSH-22Sending Responsible Organization
XONagent[2].type.coding.systemuri
Valor "http://terminology.hl7.org/CodeSystem/provenance-participant-type"

A Bundle4 filas

Origen HL7 v2Tipo v2Elemento FHIRTipo FHIRCondiciones y notas
MSHsegmento completo
typecode
Valor "message"
MSH-7Date/Time Of Message
DTMtimestampinstant
MSH-10Message Control Id
STidentifier.valuestring
MSH-10Message Control Id
STidentifier.systemuri
Valor /to be determined by the implementer/

A Encounter1 filas

Origen HL7 v2Tipo v2Elemento FHIRTipo FHIRCondiciones y notas
MSH-9Message Type
MSGstatuscode
Mapa de códigos encounter-status

A MessageHeader22 filas

Origen HL7 v2Tipo v2Elemento FHIRTipo FHIRCondiciones y notas
MSH-3Sending Application
HDsource[1]
MSH-3Sending Application
HDsource[1].endpointuri
Si IF MSH-24 NOT VALUED
MSH-4Sending Facility
HDsender(Organization)Reference(Organization)
MSH-5Receiving Application
HDdestination[1].target(Device)Reference(Device)
MSH-5Receiving Application
HDdestination[1].namename
Si IF MSH-25 VALUED
MSH-5Receiving Application
HDdestination[1].endpointurl
Si IF MSH-25 NOT VALUED
MSH-6Receiving Facility
HDdestination[1].receiver(Organization)Reference(Organization)
Si IF MSH-23 NOT VALUED
MSH-8Security
STmeta.securitystring
MSH-9Message Type
MSGeventCodingCoding
MSH-11Processing Id
PTmetameta
MSH-17Country Code
IDsender(Organization.address.country)string
Mapa de códigos iso-3166-1
MSH-19Principal Language Of Message
CWElanguagecode
Mapa de códigos unspecified_mapping
MSH-22Sending Responsible Organization
XONresponsible(Organization)Reference(Organization)
MSH-23Receiving Responsible Organization
XONdestination[1].receiver(Organization)Reference(Organization)
MSH-24Sending Network Address
HDsourcestring
MSH-24Sending Network Address
HDsource.endpoint.extension.urluri
Si IF MSH-24 NOT VALUED AND MSH-3 NOT VALUEDValor "http://hl7.org/fhir/R4/extension-data-absent-reason.html"
MSH-24Sending Network Address
HDsource.endpoint.extension.valueCodecode
Si IF MSH-24 NOT VALUED AND MSH-3 NOT VALUEDValor "unknown"
MSH-25Receiving Network Address
HDdestination[1]uri
MSH-25Receiving Network Address
HDdestination[1].endpoint.extension.urluri
Si IF MSH-25 NOT VALUED AND MSH-5 NOT VALUEDValor "http://hl7.org/fhir/R4/extension-data-absent-reason.html"
MSH-25Receiving Network Address
HDdestination[1].endpoint.extension.valueCodecode
Si IF MSH-25 NOT VALUED AND MSH-5 NOT VALUEDValor "unknown"
MSH-26
CWEmeta.security[2]Coding
Mapa de códigos unspecified_mapping
MSH-27
CWEmeta.security[2]Coding
Mapa de códigos unspecified_mapping

A ProvenanceTransformation11 filas

Origen HL7 v2Tipo v2Elemento FHIRTipo FHIRCondiciones y notas
MSHsegmento completo
activity.coding.code
Valor "v2-fhir-transformation"
MSHsegmento completo
activity.coding.system
Valor "http://hl7.org/fhir/uv/v2mappings/CodeSystem/provenance-activity-type-v2-to-fhir"
MSHsegmento completo
recorded
Valor /timestamp of tranformation/
MSHsegmento completo
policy
Valor /uri of the policy governing transformation of the v2 to FHIR/
MSHsegmento completo
agent[1].type.coding.codestring
Valor "assembler"
MSHsegmento completo
agent[1].type.coding.systemurl
Valor "http://terminology.hl7.org/CodeSystem/provenance-participant-type"
MSHsegmento completo
agent[1].who(Organization|Device)Reference(Organization|Device)
Valor /the organization owning or device performing the transformation by the mapping tool/
MSHsegmento completo
entity[1].what(DocumentReference.content.attachment.url)
when you hold on to/persist the v2 message in a data store
MSHsegmento completo
entity[1].what(DocumentReference.content.attachment.data)
when you do not hold on to/persist the v2 message in a data storeValor /v2.txt or v2.xml into base 64/
MSHsegmento completo
entity[1].what(DocumentReference.status)
Valor "current"
MSHsegmento completo
entity[1].role
Valor "source"