Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

FHIR Mapping

...

OpenMRS Order documentation - Order Entry API.


OpenMRS class DrugOrder extends Order and is mapped to FHIR's MedicationRequest

OpenMRS classOpenMRS fieldDB fieldFHIR fieldDetails
DrugOrderdose : Doubledrug_order.dosedosageInstruction : DosageSee table FHIR Dosage class
DrugOrderdoseUnits : Conceptdrug_order.unitsdosageInstruction : DosageSee table FHIR Dosage class
DrugOrderfrequency : OrderFrequencydrug_order.frequencydosageInstruction : DosageSee table FHIR Dosage class
DrugOrderasNeeded : Booleandrug_order.prndosageInstruction : Dosage

PRN = "As Needed",

See table FHIR Dosage class

DrugOrderquantity : Doubledrug_order.quantitydispenseRequest.quantity : SimpleQuantitySee table FHIR SimpleQuantity class
DrugOrderquantityUnits : Concept-dispenseRequest.quantity : SimpleQuantitySee table FHIR SimpleQuantity class
DrugOrderdrug : Drugdrug_order.drug_inventory_idmedicationCodeableConcept : CodeableConcept-
DrugOrderasNeededCondition : String-dosageInstruction : DosageSee table FHIR Dosage class
DrugOrderdosingType: DosingInstructions-extension-
DrugOrdernumRefills : Integer-extension-
DrugOrderdosingInstructions : Stringorder.instructionsdosageInstruction : DosageSee table FHIR Dosage class
DrugOrderduration : String-dosageInstruction : DosageSee table FHIR Dosage class
DrugOrderdurationUnits : Concept-dosageInstruction : DosageSee table FHIR Dosage class
DrugOrderroute : Concept-dosageInstruction : DosageSee table FHIR Dosage class
DrugOrderbrandName : String-extension-
DrugOrderdispenseAsWritten : Boolean-extension-
DrugOrderdrugNonCoded : String-extension-

...

OpenMRS class

OpenMRS field

DB field

FHIR field

Details

DrugOrderfrequency : OrderFrequencydrug_order.frequency

repeat.frequency : integer,

repeat.period : decimal,

repeat.periodUnit : UnitsOfTime

frequencyPerDay = frequency / (period * periodUnit), where period=1, periodUnit=d;

if there's a period, periodUnit is required

DrugOrder

duration : String,

durationUnits : Concept

-

-

repeat.duration : decimal,

repeat.durationUnit : code

if there's a duration, durationUnit is required