Mapping openEHR Medication Orders to FHIR: AQL In, Transaction Bundle Out
A medication order has no status field in openEHR: its state lives in separate ACTION entries. This article builds a table-driven mapper, in Python and C#, that reads AQL result sets of medication orders and writes an idempotent FHIR transaction Bundle of MedicationRequest resources, with a report of every row rejected or degraded.