Specialty Medication Enrollment
2.1.0 - CI Build United States of America flag

Specialty Medication Enrollment, published by HL7 International - Pharmacy. This is not an authorized publication; it is the continuous build for version 2.1.0). This version is based on the current content of https://github.com/HL7/fhir-specialty-rx/ and changes regularly. See the Directory of published versions

Resource Profile: SpecialtyRxMessageHeaderError - Mappings

Active as of 2020-07-31

Mappings for the specialty-rx-messageheader-error resource profile.

Mappings for HL7 v2 Mapping (http://hl7.org/v2)

SpecialtyRxMessageHeaderError
MessageHeaderMSH / MSA / ERR
   event[x]MSH-9.2
   event[x] (eventCoding)MSH-9.2
      systemC*E.3
      versionC*E.7
      codeC*E.1
      displayC*E.2 - but note this is not well followed
      userSelectedSometimes implied by being first
   destination
      nameMSH-5
      endpointMSH-25 (or MSH-6)
      receiverPRT-5:PRT-4='WAYR' / PRT-8:PRT-4='WAYR'
   senderPRT-5:PRT-4='WAYR' / PRT-8:PRT-4='WAYR'
   entererEVN-5 / ORC-10 / PRT-5:PRT-4='EP' / ROL where ROL.3 is EP or ORC.10
   authorORC-19 / PRT-5:PRT-4='AUT' / ROL where ROL.3 is IP or ORC.12
   source
      nameMSH-3
      softwareSFT-3 ( +SFT-1)
      versionSFT-2
      contact(MSH-22?)
      endpointMSH-24
   responsibleORC-12 / PRT-5:PRT-4='OP' / PRT-8:PRT-4='OP' / ROL where ROL.3 is RO or ORC.11
   reasonEVN.4 / ORC.16 / OBR-31-reason for study / BPO-13-BP indication for use / RXO-20-indication / RXE-27-give indication / RXD-21-indication / RXG-22-indication / RXA-19-indication
   responseMSA
      identifierMSA-2
      codeMSA-1
      detailsERR

Mappings for RIM Mapping (http://hl7.org/v3)

SpecialtyRxMessageHeaderError
MessageHeaderEntity. Role, or Act, Message
   textAct.text?
   containedN/A
   extensionN/A
   modifierExtensionN/A
   event[x]./payload[classCode="CACT" and moodCode="EVN" and isNormalAct()]/code[isNormalDatatype()]/code
   event[x] (eventCoding)./payload[classCode="CACT" and moodCode="EVN" and isNormalAct()]/code[isNormalDatatype()]/code
      idn/a
      extensionn/a
      system./codeSystem
      version./codeSystemVersion
      code./code
      displayCV.displayName
      userSelectedCD.codingRationale
   destination./communicationFunction[typeCode="RCV"]
      idn/a
      extensionn/a
      modifierExtensionN/A
      nameunique(./entity[determinerCode="INST" and (classCode=("DEV", "PSN", "ORG"]/name[type='ST' and isNormalDatatype()])
      targetunique(./entity[determinerCode="INST" and (classCode=("DEV", "PSN", "ORG"]
      endpoint./telecom
      receiverNot directly supported. Could be shared using attentionLine.value with an appropriate keyWordText
   senderNot directly supported. Could be shared using attentionLine.value with an appropriate keyWordText
   entererunique(./controlAct[classCode="CACT" and classCode="EVN" and isNormalAct()]/participation[typeCode="ENT" and isNormalParticipation]/role[classCode="ASSIGNED" and isNormalRole()]/player[isNormalEntity() and classCode=("DEV", "PSN") and determinerCode="INST"])
   authorunique(./controlAct[classCode="CACT" and classCode="EVN" and isNormalAct()]/participation[isHighest(priorityCode) and typeCode="AUT" and isNormalParticipation]/role[classCode="ASSIGNED" and isNormalRole()]/player[isNormalEntity() and classCode=("DEV", "PSN") and determinerCode="INST"])
   sourceunique(./communicationFunction[typeCode="SND"])
      idn/a
      extensionn/a
      modifierExtensionN/A
      nameunique(./entity[determinerCode="INST" and classCode="DEV"]/name[type='ST' and isNormalDatatype()])
      softwareunique(./entity[determinerCode="INST" and classCode="DEV"]/softwareName[isNormalDatatype()])
      version(Not supported)
      contactunique(./entity[determinerCode="INST" and classCode="DEV"]/scopesRole[normalRole() and classCode="CON" and layer[classCode="PSN"]/telecom[isNormalDatatype()])
      endpoint./telecom[isNormalDatatype()]
   responsibleunique(./controlAct[classCode="CACT" and classCode="EVN" and isNormalAct()]/participation[isHighest(priorityCode) and typeCode="RESP" and isNormalParticipation]/role[classCode="ASSIGNED" and isNormalRole()]/player[isNormalEntity() and classCode="PSN" and determinerCode="INST"] or ./controlAct[classCode="CACT" and classCode="EVN" and isNormalAct()]/participation[isHighest(priorityCode) and typeCode="RESP" and isNormalParticipation]/role[classCode="ASSIGNED" and isNormalRole()]/scoper[isNormalEntity() and classCode="ORG" and determinerCode="INST"])
   reasonunique(./controlAct[classCode="CACT" and classCode="EVN" and isNormalAct()]/reasonCode[isNormalDatatype()])
   response./conveyedAcknowledgement
      idn/a
      extensionn/a
      modifierExtensionN/A
      identifier./acknowledges.id[isNormalDatatype()]
      code./typeCode[isNormalDatatype()]
      detailsAcknowledgementDetail or Observation[classCode="ALRT" and moodCode="EVN"]
   focusunique(./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)
   definitionNot directly supported.

Mappings for FiveWs Pattern Mapping (http://hl7.org/fhir/fivews)

SpecialtyRxMessageHeaderError
MessageHeader
   event[x]FiveWs.what[x]
   event[x] (eventCoding)FiveWs.what[x]
   destinationFiveWs.subject[x], FiveWs.subject
      receiverFiveWs.subject[x], FiveWs.subject
   senderFiveWs.subject[x], FiveWs.subject
   entererFiveWs.author
   authorFiveWs.author
   sourceFiveWs.actor
   responsibleFiveWs.witness
   reasonFiveWs.why[x]