--- type: "mappings" title: "MessageHeader Mappings" resource: "MessageHeader" --- # MessageHeader Mappings - **MessageHeader**: workflow=Event; v2=MSH / MSA / ERR; rim=Message; w5=infrastructure.exchange - **MessageHeader.event[x]**: workflow=Event.code; w5=FiveWs.what[x]; v2=MSH-9.2; rim=./payload[classCode="CACT" and moodCode="EVN" and isNormalAct()]/code[isNormalDatatype()]/code - **MessageHeader.destination**: w5=FiveWs.subject; rim=./communicationFunction[typeCode="RCV"] - **MessageHeader.destination.name**: v2=MSH-5; rim=unique(./entity[determinerCode="INST" and (classCode=("DEV", "PSN", "ORG"]/name[type='ST' and isNormalDatatype()]) - **MessageHeader.destination.receiver**: w5=FiveWs.subject; v2=PRT-5:PRT-4='WAYR' / PRT-8:PRT-4='WAYR'; rim=Not directly supported. Could be shared using attentionLine.value with an appropriate keyWordText - **MessageHeader.source**: w5=FiveWs.actor; rim=unique(./communicationFunction[typeCode="SND"]) - **MessageHeader.source.name**: v2=MSH-3; rim=unique(./entity[determinerCode="INST" and classCode="DEV"]/name[type='ST' and isNormalDatatype()]) - **MessageHeader.source.software**: v2=SFT-3 ( +SFT-1); rim=unique(./entity[determinerCode="INST" and classCode="DEV"]/softwareName[isNormalDatatype()]) - **MessageHeader.source.version**: v2=SFT-2; rim=(Not supported) - **MessageHeader.source.contact**: v2=(MSH-22?); rim=unique(./entity[determinerCode="INST" and classCode="DEV"]/scopesRole[normalRole() and classCode="CON" and layer[classCode="PSN"]/telecom[isNormalDatatype()]) - **MessageHeader.reason**: w5=FiveWs.why[x]; workflow=Event.reason; v2=EVN-4 / ORC-16 / OBR-31 / BPO-13 / RXO-20 / RXE-27 / RXD-21 / RXG-22 / RXA-19; rim=unique(./controlAct[classCode="CACT" and classCode="EVN" and isNormalAct()]/reasonCode[isNormalDatatype()]) - **MessageHeader.response**: v2=MSA; rim=./conveyedAcknowledgement - **MessageHeader.response.identifier**: v2=MSA-2; rim=./acknowledges.id[isNormalDatatype()] - **MessageHeader.response.code**: v2=MSA-1; rim=./typeCode[isNormalDatatype()] - **MessageHeader.response.details**: v2=ERR; rim=AcknowledgementDetail or Observation[classCode="ALRT" and moodCode="EVN"] - **MessageHeader.focus**: rim=unique(./controlAct[classCode="CACT" and classCode="EVN" and isNormalAct()]/participation[typeCode="SUBJ" and isNormalParticipation]/role or ./controlAct[classCode="CACT" and classCode="EVN" and isNormalAct()]/outboundRelationship[typeCode="SBJ" and isNormalActRelatoinship]/target) - **MessageHeader.definition**: rim=Not directly supported.