UPTIS FHIR PoC Test Implementation Guide
1.0.0 - draft Estonia flag

UPTIS FHIR PoC Test Implementation Guide, published by TEHIK. This guide is not an authorized publication; it is the continuous build for version 1.0.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/TEHIK-EE/FHIR-PoC/ and changes regularly. See the Directory of published versions

Resource Profile: EETISMedicationRequest - Mappings

Draft as of 2023-11-09

Mappings for the ee-tis-medication-request resource profile.

Mappings for Workflow Pattern (http://hl7.org/fhir/workflow)

EETISMedicationRequest
MedicationRequestRequest
   identifierRequest.identifier
   basedOnRequest.basedOn
   groupIdentifierRequest.groupIdentifier
   statusRequest.status
   statusReasonRequest.statusReason
   intentRequest.intent
   medicationRequest.code
   subjectRequest.subject
   supportingInformationRequest.supportingInfo
   authoredOnRequest.authoredOn
   requesterRequest.requester
   reasonRequest.reason
   noteRequest.note

Mappings for Mapping to NCPDP SCRIPT 10.6 (http://ncpdp.org/SCRIPT10_6)

EETISMedicationRequest
MedicationRequestMessage/Body/NewRx
   identifierMessage/Header/PrescriberOrderNumber
   statusno mapping
   categoryMessage/Body/NewRx/MedicationPrescribed/Directions or Message/Body/NewRx/MedicationPrescribed/StructuredSIG
   category (prescriptionCategory)Message/Body/NewRx/MedicationPrescribed/Directions or Message/Body/NewRx/MedicationPrescribed/StructuredSIG
   category (repeatCategory)Message/Body/NewRx/MedicationPrescribed/Directions or Message/Body/NewRx/MedicationPrescribed/StructuredSIG
   medicationMessage/Body/NewRx/MedicationPrescribed Medication.code.coding.code = Message/Body/NewRx/MedicationPrescribed/DrugCoded/ProductCode Medication.code.coding.system = Message/Body/NewRx/MedicationPrescribed/DrugCoded/ProductCodeQualifier Medication.code.coding.display = Message/Body/NewRx/MedicationPrescribed/DrugDescription
   subjectMessage/Body/NewRx/Patient (need detail to link to specific patient … Patient.Identification in SCRIPT)
   authoredOnMessage/Body/NewRx/MedicationPrescribed/WrittenDate
   reasonMessage/Body/NewRx/MedicationPrescribed/Diagnosis/Primary/Value
   noteMessage/Body/NewRx/MedicationPrescribed/Note
   dispenseRequestMessage/Body/NewRx/MedicationPrescribed/ExpirationDate
      validityPeriodMessage/Body/NewRx/MedicationPrescribed/Refills
   substitutionspecific values within Message/Body/NewRx/MedicationPrescribed/Substitutions
      allowed[x]specific values within Message/Body/NewRx/MedicationPrescribed/Substitutions
      reasonnot mapped

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

EETISMedicationRequest
MedicationRequestclinical.medication
   identifierFiveWs.identifier
   statusFiveWs.status
   intentFiveWs.class
   categoryFiveWs.class
   category (prescriptionCategory)FiveWs.class
   category (repeatCategory)FiveWs.class
   medicationFiveWs.what[x]
   subjectFiveWs.subject[x]
   supportingInformationFiveWs.context
   authoredOnFiveWs.recorded
   requesterFiveWs.author
   reasonFiveWs.why[x]
   dispenseRequest
      dispenserFiveWs.who

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

EETISMedicationRequest
MedicationRequestEntity, Role, or Act,CombinedMedicationRequest
   meta
      idn/a
      extensionn/a
   textAct.text?
   modifierExtensionN/A
   identifier.id
      idn/a
      extensionn/a
      useRole.code or implied by context
      typeRole.code or implied by context
      systemII.root or Role.id.root
      valueII.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)
      periodRole.effectiveTime or implied by context
      assignerII.assigningAuthorityName but note that this is an improper use by the definition of the field. Also Role.scoper
   basedOn.outboundRelationship[typeCode=FLFS].target[classCode=SBADM or PROC or PCPR or OBS, moodCode=RQO orPLAN or PRP]
   groupIdentifier.outboundRelationship(typeCode=COMP].target[classCode=SBADM, moodCode=INT].id
   status.statusCode
   statusReason.inboundRelationship[typeCode=SUBJ].source[classCode=CACT, moodCode=EVN].reasonCOde
   statusChangedsubjectOf Observation[code = statusChange].value = date
   intent.moodCode (nuances beyond PRP/PLAN/RQO would need to be elsewhere)
   category.inboundRelationship[typeCode=COMP].source[classCode=OBS, moodCode=EVN, code="type of medication usage"].value
   category (prescriptionCategory).inboundRelationship[typeCode=COMP].source[classCode=OBS, moodCode=EVN, code="type of medication usage"].value
   category (repeatCategory).inboundRelationship[typeCode=COMP].source[classCode=OBS, moodCode=EVN, code="type of medication usage"].value
   medicationconsumable.administrableMedication
      idn/a
      extensionn/a
      referenceN/A
   subject.participation[typeCode=AUT].role
   informationSource.participation[typeCode=INF].role[classCode=PAT, or codes for Practitioner or Related Person or Practitioner Role or Organization
   supportingInformation.outboundRelationship[typeCode=PERT].target[A_SupportingClinicalStatement CMET minimal with many different choices of classCodes(ORG, ENC, PROC, SPLY, SBADM, OBS) and each of the act class codes draws from one or more of the following moodCodes (EVN, DEF, INT PRMS, RQO, PRP, APT, ARQ, GOL)]
   authoredOnauthor.time
   requester.participation[typeCode=AUT].role
   reasonreason.observation.reasonCode | reason.observation[code=ASSERTION].value
      idn/a
      extensionn/a
      conceptN/A
   courseOfTherapyTypeAct.code where classCode = LIST and moodCode = EVN
      idn/a
      extensionn/a
      codingunion(., ./translation)
      text./originalText[mediaType/code="text/plain"]/data
   note.inboundRelationship[typeCode=SUBJ]/source[classCode=OBS,moodCode=EVN,code="annotation"].value
      idn/a
      extensionn/a
      textAct.text
   dosageInstructionn/a,.outboundRelationship[typeCode=COMP].target[classCode=SBADM, moodCode=INT]
      idn/a
      extensionn/a
      modifierExtensionN/A
      text.text
      patientInstruction.text
      timing.effectiveTime
         idn/a
         extensionn/a
         modifierExtensionN/A
         repeatImplies PIVL or EIVL
            idn/a
            extensionn/a
            bounds[x]IVL(TS) used in a QSI
            countPIVL.count
            durationUnitPIVL.phase.unit
            frequencyPIVL.phase
            periodPIVL.phase
            periodUnitPIVL.phase.unit
            timeOfDayn/a
      asNeededFor.outboundRelationship[typeCode=PRCN].target[classCode=OBS, moodCode=EVN, code="as needed"].value=boolean or codable concept
      doseAndRateSubstanceAdministration.doseQuantity; SubstanceAdministration.RateQuantity
         idn/a
         extensionn/a
         dose[x].doseQuantity
         dose[x] (doseQuantity).doseQuantity
            idn/a
            extensionn/a
            valuePQ.value, CO.value, MO.value, IVL.high or IVL.low depending on the value
            comparatorIVL properties
            systemCO.codeSystem, PQ.translation.codeSystem
            codePQ.code, MO.currency, PQ.translation.code
   dispenseRequestcomponent.supplyEvent
      extensionn/a
      modifierExtensionN/A
      validityPeriodeffectiveTime
      dispenser.outboundRelationship[typeCode=COMP].target[classCode=SPLY, moodCode=RQO] .participation[typeCode=PRF].role[scoper.determinerCode=INSTANCE]
   substitutionsubjectOf.substitutionPersmission
      idn/a
      extensionn/a
      modifierExtensionN/A
      allowed[x]code
      reasonreasonCode

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

EETISMedicationRequest
MedicationRequest
   identifierORC-2-Placer Order Number / ORC-3-Filler Order Number
      useN/A
      typeCX.5
      systemCX.4 / EI-2-4
      valueCX.1 / EI.1
      periodCX.7 + CX.8
      assignerCX.4 / (CX.4,CX.9,CX.10)
   medicationRXE-2-Give Code / RXO-1 Requested Give Code / RXC-2 Component Code
   subjectPID-3 Patient ID List
   authoredOnRXE-32 Original Order Date/Time / ORC-9-Date Time of Transaction
   reasonORC-16 Order Control Code Reason /RXE-27 Give Indication/RXO-20-Indication / RXD-21 Indication / RXG-22 Indication / RXA-19 Indication
   courseOfTherapyType
      codingC*E.1-8, C*E.10-22
      textC*E.9. But note many systems use C*E.2 for this
   note
      textN/A
   dosageInstruction
      textRXO-6; RXE-21
      patientInstructionRXO-7
      asNeededForTQ1-9
      doseAndRateTQ1-2
         dose[x]RXO-2, RXE-3
         dose[x] (doseQuantity)RXO-2, RXE-3
            valueSN.2 / CQ - N/A
            comparatorSN.1 / CQ.1
            system(see OBX.6 etc.) / CQ.2
            code(see OBX.6 etc.) / CQ.2
   dispenseRequest
   substitution
      allowed[x]RXO-9 Allow Substitutions / RXE-9 Substitution Status
      reasonRXE-9 Substition status