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.
<MedicationStatement xmlns="http://hl7.org/fhir"> <id value="eufmh-39-07-2" /> <status value="active" /> <medicationReference> <reference value="Medication/eufmh-39-07-2" /> <display value="simvastatin" /> </medicationReference> <effectivePeriod> <start value="2014" /> </effectivePeriod> <subject> <reference value="Patient/eufmh-39-07" /> <display value="ZMAJE 7 (Inject 39-07)" /> </subject> <taken value="na" /> <dosage> <text value="100 mg/day" /> <timing> <repeat> <frequency value="1" /> <period value="1" /> <periodUnit value="d" /> </repeat> </timing> <doseQuantity> <value value="100" /> <unit value="mg" /> <system value="http://unitsofmeasure.org" /> <code value="mg" /> </doseQuantity> </dosage> </MedicationStatement>