FQL is a query language that allows you to retrieve, filter and project data from any data source containing FHIR Resources. It brings the power of three existing languages together: SQL, JSON and FhirPath. It allows you to create tables and is useful for gaining insight and perform quality control.
<MedicationOrder xmlns="http://hl7.org/fhir"> <id value="core-examples-MedicationOrder-example7" /> <meta> <versionId value="1" /> <lastUpdated value="2016-09-08T11:38:01.336+00:00" /> </meta> <text> <status value="generated" /> --- We have skipped the narrative for better readability of the resource --- </text> <status value="active" /> <medicationReference> <reference value="Medication/medicationexample17" /> </medicationReference> <dosageInstruction> <text value="Gentamicin 80mg IV over one hour" /> <timing> <repeat> <frequency value="3" /> <period value="1" /> <periodUnits value="d" /> </repeat> </timing> <route> <coding> <system value="http://snomed.info/sct" /> <code value="47625008" /> <display value="Intravenous route" /> </coding> </route> <doseQuantity> <value value="80" /> <unit value="mg" /> <system value="http://unitsofmeasure.org/" /> <code value="mg" /> </doseQuantity> <rateRatio> <numerator> <value value="80" /> <unit value="mg" /> <system value="http://unitsofmeasure.org/" /> <code value="mg" /> </numerator> <denominator> <value value="60" /> <unit value="minutes" /> <system value="http://snomed.info/sct" /> <code value="258702006" /> </denominator> </rateRatio> </dosageInstruction> </MedicationOrder>