Medication Scheme Implementation Guide
1.0.0 - draft Estonia flag

Medication Scheme 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/ig-ee-medication-scheme/ and changes regularly. See the Directory of published versions

Resource Profile: EETISPrescription - Mappings

Draft as of 2024-02-21

Mappings for the ee-tis-prescription resource profile.

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

EETISPrescription
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)

EETISPrescription
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)

EETISPrescription
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)

EETISPrescription
MedicationRequestEntity, Role, or Act,CombinedMedicationRequest
   meta
      idn/a
      extensionn/a
   textAct.text?
   containedN/A
   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
      idn/a
      extensionn/a
      codingunion(., ./translation)
         idn/a
         extensionn/a
         system./codeSystem
         version./codeSystemVersion
         code./code
         displayCV.displayName
         userSelectedCD.codingRationale
      text./originalText[mediaType/code="text/plain"]/data
   category (repeatCategory).inboundRelationship[typeCode=COMP].source[classCode=OBS, moodCode=EVN, code="type of medication usage"].value
      idn/a
      extensionn/a
      codingunion(., ./translation)
         idn/a
         extensionn/a
         system./codeSystem
         version./codeSystemVersion
         code./code
         displayCV.displayName
         userSelectedCD.codingRationale
      text./originalText[mediaType/code="text/plain"]/data
   medicationconsumable.administrableMedication
   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
   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]n/a,PQ, IVL<PQ>, MO, CO, depending on the values
   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
         idn/a
         extensionn/a
         codingunion(., ./translation)
         text./originalText[mediaType/code="text/plain"]/data

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

EETISPrescription
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)
   category
   category (prescriptionCategory)
      codingC*E.1-8, C*E.10-22
         systemC*E.3
         versionC*E.7
         codeC*E.1
         displayC*E.2 - but note this is not well followed
         userSelectedSometimes implied by being first
      textC*E.9. But note many systems use C*E.2 for this
   category (repeatCategory)
      codingC*E.1-8, C*E.10-22
         systemC*E.3
         versionC*E.7
         codeC*E.1
         displayC*E.2 - but note this is not well followed
         userSelectedSometimes implied by being first
      textC*E.9. But note many systems use C*E.2 for this
   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]SN (see also Range) or CQ
   dispenseRequest
   substitution
      allowed[x]RXO-9 Allow Substitutions / RXE-9 Substitution Status
      reasonRXE-9 Substition status
         codingC*E.1-8, C*E.10-22
         textC*E.9. But note many systems use C*E.2 for this