Segment MSH w FHIR

Jak segment MSH (Message Header) staje się zasobami FHIR R4 według przewodnika HL7 Version 2 to FHIR.

Definicja HL7 v2
Definicja MSH w HL7 v2 2.8
Mapy
Provenance (Operator)Provenance (Source)BundleEncounterMessageHeaderProvenance (Transformation)
Używany w wiadomościach
ADT_A01ADT_A02ADT_A05ADT_A06ADT_A09ADT_A11ADT_A17MDM_T02OML_O21ORM_O01ORU_R01SIU_S12VXU_V04

Do ProvenanceOperatorWiersze: 2

Źródło HL7 v2Typ v2Element FHIRTyp FHIRWarunki i uwagi
MSH-4Sending Facility
HDagent.who(Organization)Reference(Organization)
Jeśli IF MSH-22 NOT VALUED
MSH-22Sending Responsible Organization
XONagent.who(Organization)Reference(Organization)

Do ProvenanceSourceWiersze: 15

Źródło HL7 v2Typ v2Element FHIRTyp FHIRWarunki i uwagi
MSHcały segment
entity[1].what(DocumentReference.content.attachment.url)
when you hold on to/persist the v2 message in a data store
MSHcały segment
entity[1].what(DocumentReference.content.attachment.data)
when you do not hold on to/persist the v2 message in a data storeWartość /v2.txt or v2.xml into base 64/
MSHcały segment
entity[1].what(DocumentReference.status)
when you do not hold on to/persist the v2 message in a data storeWartość "current"
MSHcały segment
entity[1].role
Wartość "source"
MSH-3Sending Application
HDentity[2].what(Device.identifier)Reference(Device)
Jeśli IF MSH-3 AND MSH-24 VALUED
MSH-3Sending Application
HDentity[2].rolecode
Jeśli IF MSH-3 AND MSH-24 VALUEDWartość "source"
MSH-4Sending Facility
HDagent[1].who(Organization)Reference(Organization)
Jeśli IF MSH-22 NOT VALUED
MSH-4Sending Facility
HDagent[1].type.coding.codecode
Jeśli IF MSH-22 NOT VALUEDWartość "author"
MSH-4Sending Facility
HDagent[1].type.coding.systemuri
Jeśli IF MSH-22 NOT VALUEDWartość "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
Wartość "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
Wartość "author"
MSH-22Sending Responsible Organization
XONagent[2].type.coding.systemuri
Wartość "http://terminology.hl7.org/CodeSystem/provenance-participant-type"

Do BundleWiersze: 4

Źródło HL7 v2Typ v2Element FHIRTyp FHIRWarunki i uwagi
MSHcały segment
typecode
Wartość "message"
MSH-7Date/Time Of Message
DTMtimestampinstant
MSH-10Message Control Id
STidentifier.valuestring
MSH-10Message Control Id
STidentifier.systemuri
Wartość /to be determined by the implementer/

Do EncounterWiersze: 1

Źródło HL7 v2Typ v2Element FHIRTyp FHIRWarunki i uwagi
MSH-9Message Type
MSGstatuscode
Mapa kodów encounter-status

Do MessageHeaderWiersze: 22

Źródło HL7 v2Typ v2Element FHIRTyp FHIRWarunki i uwagi
MSH-3Sending Application
HDsource[1]
MSH-3Sending Application
HDsource[1].endpointuri
Jeśli 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
Jeśli IF MSH-25 VALUED
MSH-5Receiving Application
HDdestination[1].endpointurl
Jeśli IF MSH-25 NOT VALUED
MSH-6Receiving Facility
HDdestination[1].receiver(Organization)Reference(Organization)
Jeśli 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 kodów iso-3166-1
MSH-19Principal Language Of Message
CWElanguagecode
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
Jeśli IF MSH-24 NOT VALUED AND MSH-3 NOT VALUEDWartość "http://hl7.org/fhir/R4/extension-data-absent-reason.html"
MSH-24Sending Network Address
HDsource.endpoint.extension.valueCodecode
Jeśli IF MSH-24 NOT VALUED AND MSH-3 NOT VALUEDWartość "unknown"
MSH-25Receiving Network Address
HDdestination[1]uri
MSH-25Receiving Network Address
HDdestination[1].endpoint.extension.urluri
Jeśli IF MSH-25 NOT VALUED AND MSH-5 NOT VALUEDWartość "http://hl7.org/fhir/R4/extension-data-absent-reason.html"
MSH-25Receiving Network Address
HDdestination[1].endpoint.extension.valueCodecode
Jeśli IF MSH-25 NOT VALUED AND MSH-5 NOT VALUEDWartość "unknown"
MSH-26
CWEmeta.security[2]Coding
MSH-27
CWEmeta.security[2]Coding

Do ProvenanceTransformationWiersze: 11

Źródło HL7 v2Typ v2Element FHIRTyp FHIRWarunki i uwagi
MSHcały segment
activity.coding.code
Wartość "v2-fhir-transformation"
MSHcały segment
activity.coding.system
Wartość "http://hl7.org/fhir/uv/v2mappings/CodeSystem/provenance-activity-type-v2-to-fhir"
MSHcały segment
recorded
Wartość /timestamp of tranformation/
MSHcały segment
policy
Wartość /uri of the policy governing transformation of the v2 to FHIR/
MSHcały segment
agent[1].type.coding.codestring
Wartość "assembler"
MSHcały segment
agent[1].type.coding.systemurl
Wartość "http://terminology.hl7.org/CodeSystem/provenance-participant-type"
MSHcały segment
agent[1].who(Organization|Device)Reference(Organization|Device)
Wartość /the organization owning or device performing the transformation by the mapping tool/
MSHcały segment
entity[1].what(DocumentReference.content.attachment.url)
when you hold on to/persist the v2 message in a data store
MSHcały segment
entity[1].what(DocumentReference.content.attachment.data)
when you do not hold on to/persist the v2 message in a data storeWartość /v2.txt or v2.xml into base 64/
MSHcały segment
entity[1].what(DocumentReference.status)
Wartość "current"
MSHcały segment
entity[1].role
Wartość "source"