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.
<Patient xmlns="http://hl7.org/fhir"> <id value="core-examples-Patient-example24" /> <meta> <versionId value="1" /> <lastUpdated value="2016-09-08T11:38:15.337+00:00" /> </meta> <text> <status value="generated" /> --- We have skipped the narrative for better readability of the resource --- </text> <extension url="http://example.org/StructureDefinition/trials"> <valueCode value="renal" /> </extension> <identifier> <use value="usual" /> <type> <coding> <system value="http://hl7.org/fhir/v2/0203" /> <code value="MR" /> </coding> </type> <system value="http://www.goodhealth.org/identifiers/mrn" /> <value value="123456" /> </identifier> <active value="true" /> <name> <family value="Levin" /> <given value="Henry" /> <suffix value="The 7th" /> </name> <gender value="male" /> <birthDate value="1932-09-24" /> <careProvider> <reference value="Organization/2" /> <display value="Good Health Clinic" /> </careProvider> </Patient>