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-example40" /> <meta> <versionId value="1" /> <lastUpdated value="2016-09-08T11:58:36.26+00:00" /> </meta> <text> <status value="generated" /> --- We have skipped the narrative for better readability of the resource --- </text> <identifier> <use value="usual" /> <type> <coding> <system value="http://hl7.org/fhir/v2/0203" /> <code value="MR" /> </coding> </type> <system value="urn:oid:1.2.36.146.595.217.0.1" /> <value value="12345" /> <period> <start value="2001-05-06" /> </period> <assigner> <display value="Acme Healthcare" /> </assigner> </identifier> <active value="true" /> <name> <use value="official" /> <family value="Chalmers" /> <given value="Peter" /> <given value="James" /> </name> <name> <use value="usual" /> <given value="Jim" /> </name> <telecom> <use value="home" /> </telecom> <telecom> <system value="phone" /> <value value="(03) 5555 6473" /> <use value="work" /> </telecom> <gender value="male" /> <birthDate value="1974-12-25"> <extension url="http://hl7.org/fhir/StructureDefinition/patient-birthTime"> <valueDateTime value="1974-12-25T14:35:45-05:00" /> </extension> </birthDate> <deceasedBoolean value="false" /> <address> <use value="home" /> <type value="both" /> <line value="534 Erewhon St" /> <city value="PleasantVille" /> <district value="Rainbow" /> <state value="Vic" /> <postalCode value="3999" /> <period> <start value="1974-12-25" /> </period> </address> <contact> <relationship> <coding> <system value="http://hl7.org/fhir/patient-contact-relationship" /> <code value="partner" /> </coding> </relationship> <name> <family value="du"> <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> <valueCode value="VV" /> </extension> </family> <family value="Marché" /> <given value="Bénédicte" /> </name> <telecom> <system value="phone" /> <value value="+33 (237) 998327" /> </telecom> <gender value="female" /> <period> <start value="2012" /> </period> </contact> <managingOrganization> <reference value="Organization/1" /> </managingOrganization> </Patient>