OpenMRS FHIR2 Implementation Guide
0.1.0 - ci-build

OpenMRS FHIR2 Implementation Guide - Local Development build (v0.1.0). See the Directory of published versions

Resource Profile: OMRSMedicationRequest - Mappings

Active as of 2022-10-08

Mappings for the omrs-medication-request resource profile.

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

OMRSMedicationRequest
MedicationRequestRequest
   identifierRequest.identifier
   statusRequest.status
   statusReasonRequest.statusReason
   intentRequest.intent
   priorityRequest.priority
   medication[x]Request.code
   medication[x] (medicationCodeableConcept)Request.code
   subjectRequest.subject
   encounterRequest.context
   authoredOnRequest.authoredOn
   requesterRequest.requester
   reasonCodeRequest.reasonCode
   basedOnRequest.basedOn
   noteRequest.note
   dosageInstructionRequest.occurrence[x]
   priorPrescriptionRequest.replaces

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

OMRSMedicationRequest
MedicationRequestMessage/Body/NewRx
   identifierMessage/Header/PrescriberOrderNumber
   statusno mapping
   medication[x]Message/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
   medication[x] (medicationCodeableConcept)Message/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)
   encounterno mapping
   authoredOnMessage/Body/NewRx/MedicationPrescribed/WrittenDate
   reasonCodeMessage/Body/NewRx/MedicationPrescribed/Diagnosis/Primary/Value
   noteMessage/Body/NewRx/MedicationPrescribed/Note
   dispenseRequestMessage/Body/NewRx/MedicationPrescribed/ExpirationDate
      numberOfRepeatsAllowedMessage/Body/NewRx/MedicationPrescribed/Quantity
      quantityMessage/Body/NewRx/MedicationPrescribed/DaysSupply
   priorPrescriptionnot mapped

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

OMRSMedicationRequest
MedicationRequestEntity. Role, or Act, CombinedMedicationRequest
   textAct.text?
   containedN/A
   extensionN/A
   modifierExtensionN/A
   identifier.id
   status.statusCode
   statusReason.inboundRelationship[typeCode=SUBJ].source[classCode=CACT, moodCode=EVN].reasonCOde
   intent.moodCode (nuances beyond PRP/PLAN/RQO would need to be elsewhere)
   priority.priorityCode
   medication[x]consumable.administrableMedication
   medication[x] (medicationCodeableConcept)consumable.administrableMedication
   subject.participation[typeCode=AUT].role
   encounter.inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN, code="type of encounter or episode"]
   authoredOnauthor.time
   requester.participation[typeCode=AUT].role
   reasonCodereason.observation.reasonCode
   basedOn.outboundRelationship[typeCode=FLFS].target[classCode=SBADM or PROC or PCPR or OBS, moodCode=RQO orPLAN or PRP]
   note.inboundRelationship[typeCode=SUBJ]/source[classCode=OBS,moodCode=EVN,code="annotation"].value
   dosageInstructionsee dosageInstruction mapping
   dispenseRequestcomponent.supplyEvent
      idn/a
      extensionn/a
      modifierExtensionN/A
      numberOfRepeatsAllowedrepeatNumber
      quantityquantity
   priorPrescription.outboundRelationship[typeCode=?RPLC or ?SUCC]/target[classCode=SBADM,moodCode=RQO]

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

OMRSMedicationRequest
MedicationRequest
   identifierFiveWs.identifier
   statusFiveWs.status
   intentFiveWs.class
   priorityFiveWs.grade
   medication[x]FiveWs.what[x]
   medication[x] (medicationCodeableConcept)FiveWs.what[x]
   subjectFiveWs.subject[x], FiveWs.subject
   encounterFiveWs.context
   authoredOnFiveWs.recorded
   requesterFiveWs.author
   reasonCodeFiveWs.why[x]
   dispenseRequest

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

OMRSMedicationRequest
MedicationRequest
   identifierORC-2-Placer Order Number / ORC-3-Filler Order Number
   medication[x]RXE-2-Give Code / RXO-1-Requested Give Code / RXC-2-Component Code
   medication[x] (medicationCodeableConcept)RXE-2-Give Code / RXO-1-Requested Give Code / RXC-2-Component Code
   subjectPID-3-Patient ID List
   encounterPV1-19-Visit Number
   authoredOnRXE-32-Original Order Date/Time / ORC-9-Date/Time of Transaction
   reasonCodeORC-16-Order Control Code Reason /RXE-27-Give Indication/RXO-20-Indication / RXD-21-Indication / RXG-22-Indication / RXA-19-Indication
   dispenseRequest
      numberOfRepeatsAllowedRXE-12-Number of Refills
      quantityRXD-4-Actual Dispense Amount / RXD-5.1-Actual Dispense Units.code / RXD-5.3-Actual Dispense Units.name of coding system

Mappings for FHIR vs OMRS FHIR2 (http://hl7.org/fhir/3.0/StructureDefinition/MedicationRequest)

MedicationRequest mapping shows how attributes of the FHIR MedicationRequest Resource map to the attributes of the OpenMRS Drug Order object

OMRSMedicationRequest
MedicationRequestOMRS MedicationRequest
   idOrder.id
   intentMedicationRequestIntent.ORDER
   priorityOrder.Urgency
   subjectOrder.Patient
   encounterOrder.Encounter
   requesterOrder.Provider
   reasonCodeOrder.OrderReason
   basedOnOrder.PreviousOrder
   noteOrder.commentToFulfiller
   dispenseRequest
      numberOfRepeatsAllowednumRefills
      quantityquantity
   priorPrescriptionOrder.PreviousOrder