Medication Request FHIR API

MedicationRequest

OpenMRS Column/Field

Current Mapped FHIR Field

Updated Mapping

Notes

OpenMRS Column/Field

Current Mapped FHIR Field

Updated Mapping

Notes

order.concept_id

medication.code.coding.code





order.orderer

requestor



No Change

order.encounter

encounter



No Change

order.instructions

 



Maybe not needed or N/A for Phase 1?

order.date_activated

order.auto_expire_date

order.date_stopped

status



https://build.fhir.org/valueset-medicationrequest-status.html

If active, status=ACTIVE

If discontinued = CANCELLED

otherwise, unknown

see:

https://github.com/openmrs/openmrs-module-fhir2/blob/master/api/src/main/java/org/openmrs/module/fhir2/api/translators/impl/MedicationRequestStatusTranslatorImpl.java

https://github.com/openmrs/openmrs-module-fhir2/blob/master/api/src/main/java/org/openmrs/module/fhir2/api/translators/impl/MedicationRequestStatusTranslatorImpl.java

order.order_reason

reasonCode.coding.code



No Change

order.order_reason_non_coded



Maybe not needed or N/A for Phase

order.urgency

priority



No Change

drug_order.drug_inventory_id

Mapped to FHIR using drug.dosageForm & drug ingredient table





drug_order.dose

dosage.dosageInstructions.doseAndRate.dose.doseQuantity.value

Error rendering macro 'jira' : Unable to locate Jira server for this macro. It may be due to Application Link configuration.

drug_order.dose_units

dosage.dosageInstructions.doseAndRate.dose.doseQuantity.unit

and/or

dosage.dosageInstructions.doseAndRate.dose.doseQuantity.code

Not currently mapped; dose_units is a concept... thoughts on how this should be mapped?  "unit" is supposed to be human-readable, while "code" is supposed to be a machine-readable code?

Error rendering macro 'jira' : Unable to locate Jira server for this macro. It may be due to Application Link configuration.

drug_order.frequency

DosageInstructions.timing.repeat.frequency

DosageInstructions.timing.repeat.period

DosageInstructions.timing.repeat.periodUnit



https://build.fhir.org/datatypes.html#Timing



drug_order.as_needed

dosage.dosageInstructions.asNeededBoolean



No change

drug_order.quantity

dispenseRequest.quantity.value

Error rendering macro 'jira' : Unable to locate Jira server for this macro. It may be due to Application Link configuration.

drug_order.quantity_units

dispenseRequest.quantity.code or dispenseRequest.quantityUnits 

Error rendering macro 'jira' : Unable to locate Jira server for this macro. It may be due to Application Link configuration.

drug_order.duration

dosageInstructions.timing.repeat.duration



No change.

drug_order.duration_units

dosageInstructions.timing.repeat.durationUnits



No change. (Requires fhir_durations_unit_map table to be properly configured)

drug_order.num_refills

dispenseRequest.numberOfRepeatsAllowed

Error rendering macro 'jira' : Unable to locate Jira server for this macro. It may be due to Application Link configuration.

drug_order.dosing_instructions

dosage.dosageInstructions.text





order.fulfiller_status





Not mapped, but let's see if we can hold on this for now, since it doesn't really belong

order.fulfiller_comment





Not mapped, but let's see if we can hold on this for now, since it doesn't really belong



Existing Search Parameters

TBD

Needed Search Parameters

TBD



Composite result with MedicationDispense