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
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
OpenMRS class | OpenMRS field | DB field | FHIR field | Details |
---|---|---|---|---|
TestOrder | specimenSource : Concept | test_order.specimen_source | specimen : Reference(Specimen) | - |
TestOrder | laterality : Laterality | test_order.laterality | bodySite : CodeableConcept | FHIR: "Codes describing anatomical locations. May include laterality." OpenMRS: "Has to be one of: LEFT, RIGHT, BILATERAL" |
TestOrder | clinicalHistory : String | test_order.clinical_history | relevantHistory : Reference(Provenance) | - |
TestOrder | frequency : OrderFrequency, numberOfRepeats : Integer | order.instructions | occurenceTiming : Timing | See table FHIR Timing class |
FHIR Timing class - description
test_order.frequency | Order Frequency Extension | |||
Order | careSetting | CareSetting FHIR Extension | ||
Order | concept : Concept | orders.concept_id : integer | Order Concept Extension | |
TestOrder | laterality : Laterality | test_order.laterality | Laterality Extension | |
TestOrder | clinicalHistory : String | test_order.clinical_history | Clinical History Extension | |
TestOrder | patient : Patient | orders.patient_id | subject : Reference | |
Order | encounter : Encounter | orders.encounter_id | context : ReferenceEncounter | |
Order | orderer : Provider | orders.orderer | recorder : ReferencePractitioner | |
Order | urgency : Urgency | orders.urgency | priority : ProcedureRequestPriority | |
Order | action : Action | orders.order_action | status : ProcedureRequestStatus |