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="demo-medstat-1-2" /> <status value="active" /> <medicationReference> <reference value="Medication/demo-medication-2" /> </medicationReference> <subject> <reference value="Patient/demo-patient-1" /> </subject> <taken value="na" /> <dosage> <text value="6-8 puff 3 per day in case of Wheezing" /> <timing> <repeat> <period value="3" /> <periodUnit value="d" /> </repeat> </timing> <asNeededCodeableConcept> <coding> <system value="http://snomed.info/sct" /> <code value="56018004" /> <display value="Wheezing (finding)" /> </coding> </asNeededCodeableConcept> <doseRange> <low> <value value="6" /> <unit value="puff" /> <system value="http://unitsofmeasure.org" /> <code value="1" /> </low> <high> <value value="8" /> <unit value="puff" /> <system value="http://unitsofmeasure.org" /> <code value="1" /> </high> </doseRange> </dosage> </MedicationStatement>