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.
<Encounter xmlns="http://hl7.org/fhir"> <id value="core-examples-Encounter-example13" /> <meta> <versionId value="4" /> <lastUpdated value="2016-09-08T12:21:52.63+00:00" /> </meta> <text> <status value="generated" /> --- We have skipped the narrative for better readability of the resource --- </text> <identifier> <value value="S100" /> </identifier> <status value="finished" /> <class value="inpatient" /> <type> <text value="Orthopedic Admission" /> </type> <patient> <reference value="Patient/d1" /> </patient> <period> <start value="2013-01-20T12:30:02Z" /> <end value="2013-02-01T12:30:02Z" /> </period> <hospitalization> <dischargeDisposition> <text value="Discharged to care of GP" /> </dischargeDisposition> </hospitalization> </Encounter>