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-example5" /> <meta> <versionId value="1" /> <lastUpdated value="2016-09-08T11:37:50.6+00:00" /> </meta> <text> <status value="generated" /> --- We have skipped the narrative for better readability of the resource --- </text> <identifier> <use value="temp" /> <value value="Encounter_Roel_20130404" /> </identifier> <status value="finished" /> <class value="outpatient" /> <type> <coding> <system value="http://snomed.info/sct" /> <code value="11429006" /> <display value="Consultation" /> </coding> </type> <priority> <coding> <system value="http://snomed.info/sct" /> <code value="17621005" /> <display value="Normal" /> </coding> </priority> <patient> <reference value="Patient/f201" /> <display value="Roel" /> </patient> <participant> <individual> <reference value="Practitioner/f201" /> </individual> </participant> <reason> <text value="The patient had fever peaks over the last couple of days. He is worried about these peaks." /> </reason> <serviceProvider> <reference value="Organization/f201" /> </serviceProvider> </Encounter>