OpenMRS Core FHIR Implementation Guide
0.1.0 - ci-build

OpenMRS Core FHIR Implementation Guide - Local Development build (v0.1.0) built by the FHIR (HL7® FHIR® Standard) Build Tools. See the Directory of published versions

Resource Profile: OMRSMedicationDispense - Mappings

Active as of 2024-12-11

Mappings for the omrsmedication-dispense resource profile.

Mappings for FHIR HL7 vs OMRS FHIR2 (MedicationDispense)

MedicationDispense is a FHIR resource that represents a description of the medication product (supply) provided and the instructions for administering the medication and these are mapped to OpenMRS MedicationDispense objects between HL7 FHIR

OMRSMedicationDispense
MedicationDispense
   idMedicationDispense.uuid
   statusMedicationDispense.status
   statusReason[x] (statusReasonCodeableConcept)Concept.code
   medication[x]MedicationDispense.Medication
   subjectMedicationDispense.subject
   contextMedicationDispense.encounter
   performer
      actorMedicationDispense.Practitioner
   locationMedicationDispense.location
   authorizingPrescriptionMedicationDispense.DrugOrder
   typeConcept.code
   quantityMedicationDispense.Quantity
   whenPreparedMedicationDispense.DatePrepared
   whenHandedOverMedicationDispense.DateHandedOver
   dosageInstructionMedicationDispense.DosageInstruction
   substitution
      wasSubstitutedMedicationDispense.WasSubstituted
      typeConcept.code
      reasonConcept.code

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

OMRSMedicationDispense
MedicationDispenseEvent
   statusEvent.status
   statusReason[x]Event.statusReason
   statusReason[x] (statusReasonCodeableConcept)Event.statusReason
   medication[x]Event.code
   subjectEvent.subject
   contextEvent.context
   performerEvent.performer
      actorEvent.performer.actor
   authorizingPrescriptionEvent.basedOn
   whenHandedOverEvent.occurrence[x]

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

OMRSMedicationDispense
MedicationDispenseEntity. Role, or Act, Supply[moodCode=EVN]
   textAct.text?
   containedN/A
   extensionN/A
   modifierExtensionN/A
   status.statusCode
   statusReason[x].outboundRelationship[typeCode=RSON]/target[classCode=OBS,moodCode=EVN, code="not done reason"].value
   statusReason[x] (statusReasonCodeableConcept).outboundRelationship[typeCode=RSON]/target[classCode=OBS,moodCode=EVN, code="not done reason"].value
   medication[x].participation[typeCode=PRD].role
   subject.participation[typeCode=SBJ].role[classCode=PAT]
   context.inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN, code="type of encounter or episode"]
   performer.participation[typeCode=PRF]
      idn/a
      extensionn/a
      modifierExtensionN/A
      functionparticipation[typeCode=PRF].functionCode
      actor.role
   location.participation[typeCode=LOC].role
   authorizingPrescription.outboundRelationship[typeCode=FLFS].target[moodCode=RQO]
   type.code
   quantity.quantity
   whenPrepared.effectiveTime[xmi:type=IVL_TS].low
   whenHandedOver.effectiveTime[xmi:type=IVL_TS].high
   dosageInstruction.outboundRelationship[typeCode=COMP].target[classCode=SBADM, moodCode=INT]
   substitution.outboundRelationship[typeCode=COMP].target[classCode=SUBST, moodCode=EVN]
      idn/a
      extensionn/a
      modifierExtensionN/A
      wasSubstituted.actionNegationInd
      type.code
      reason.reasonCode

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

OMRSMedicationDispense
MedicationDispense
   statusFiveWs.status
   medication[x]FiveWs.what[x]
   subjectFiveWs.subject[x], FiveWs.subject

Mappings for V3 Pharmacy Dispense RMIM (http://www.hl7.org/v3/PORX_RM020070UV)

OMRSMedicationDispense
MedicationDispense
   statusCombinedMedicationDispense.SupplyEvent.statusCode
   medication[x]CombinedMedicationRequest.component1.AdministrationRequest.consumable
   authorizingPrescriptionCombinedMedicationDispense.inFulfillmentOf
   typeCombinedMedicationDispense.SupplyEvent.code
   quantityCombinedMedicationDispense.SupplyEvent.quantity
   whenPreparedCombinedMedicationDispense.SupplyEvent.effectiveTime
   whenHandedOverCombinedMedicationDispense.SupplyEvent.effectiveTime
   substitutionCombinedMedicationDispense.substitutionMade
      typeCombinedMedicationDispense.substitutionMade.code
      reasonCombinedMedicationDispense.substitutionMade.reasonCode

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

OMRSMedicationDispense
MedicationDispense
   medication[x]RXD-2-Dispense/Give Code
   subjectPID-3-Patient ID List
   authorizingPrescriptionORC-2 Placer Order Number
   typeRXD-33-Dispense Type
   quantityRXD-4-Actual Dispense Amount / RXD-5.1-Actual Dispense Units.code / RXD-5.3-Actual Dispense Units.name of coding system
   whenPreparedRXD-3-Date/Time Dispensed
   whenHandedOverRXD-3-Date/Time Dispensed
   substitution
      typeRXO-9-Allow Substitutions / RXE-9-Substitution Status