Versions Compared

Key

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

FHIR Mapping

This is a suggestion on how to map OpenMRS TestOrder object into FHIR TBD ProcedureRequest.

Fields which didn't match into FHIR representation are marked on red. Keyword extension means that FHIR Extension has to be used to synchronize this field.
Fields which partially match into FHIR representation are marked on orange.Fields from parent classes are omitted.

OpenMRS Order documentation - Order Entry API.


OpenMRS TestOrder class extends Order class.

OpenMRS

...

OpenMRS class

OpenMRS field

DB field

FHIR field

Details

OrderFrequencyfrequencyPerDay : Doubleorder.instructions

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

TestOrdernumberOfRepeats : Integerorder.instructionsrepeat.count : integer-
OpenMRS classOpenMRS fieldDB fieldFHIR fieldDetails
TestOrderspecimenSource : Concepttest_order.specimen_sourcespecimen : Reference(Specimen)-
TestOrderlaterality : Lateralitytest_order.laterality

bodySite : CodeableConcept

FHIR: "Codes describing anatomical locations. May include laterality."

OpenMRS: "Has to be one of: LEFT, RIGHT, BILATERAL"
TestOrderclinicalHistory : Stringtest_order.clinical_historyrelevantHistory : Reference(Provenance)-
TestOrder

frequency : OrderFrequency,

numberOfRepeats : Integer

order.instructions

occurenceTiming : TimingSee table FHIR Timing class

FHIR Timing class - description

test_order.frequency

Order Frequency Extension


OrdercareSetting
CareSetting FHIR Extension
Orderconcept : Conceptorders.concept_id : integerOrder Concept Extension
TestOrderlaterality : Lateralitytest_order.lateralityLaterality Extension
TestOrderclinicalHistory : Stringtest_order.clinical_historyClinical History Extension
TestOrderpatient : Patientorders.patient_idsubject : Reference
Orderencounter : Encounterorders.encounter_idcontext : ReferenceEncounter
Orderorderer : Providerorders.ordererrecorder : ReferencePractitioner
Orderurgency : Urgencyorders.urgencypriority : ProcedureRequestPriority
Orderaction : Actionorders.order_actionstatus : ProcedureRequestStatus