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.
<MedicationDispense xmlns="http://hl7.org/fhir"> <id value="core-examples-MedicationDispense-example2" /> <meta> <versionId value="1" /> <lastUpdated value="2016-09-08T11:37:57.299+00:00" /> </meta> <text> <status value="generated" /> --- We have skipped the narrative for better readability of the resource --- </text> <status value="completed" /> <patient> <reference value="Patient/example" /> </patient> <dispenser> <reference value="Practitioner/example" /> </dispenser> <authorizingPrescription> <reference value="MedicationOrder/medrx006" /> </authorizingPrescription> <medicationReference> <reference value="Medication/f001" /> </medicationReference> <dosageInstruction> <timing> <repeat> <frequency value="2" /> <period value="21" /> <periodUnits value="d" /> </repeat> </timing> <route> <coding> <system value="http://snomed.info/sct" /> <code value="394899003" /> <display value="oral administration of treatment" /> </coding> </route> <doseQuantity> <value value="1000" /> <unit value="mg/m^2" /> <system value="http://unitsofmeasure.org/" /> <code value="ml" /> </doseQuantity> </dosageInstruction> </MedicationDispense>