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="f201" /> <text> <status value="generated" /> --- We have skipped the narrative for better readability of the resource --- </text> <identifier> <use value="official" /> <type> <text value="BSN" /> </type> <system value="urn:oid:2.16.840.1.113883.2.4.6.3" /> <value value="123456789" /> </identifier> <identifier> <use value="official" /> <type> <text value="BSN" /> </type> <system value="urn:oid:2.16.840.1.113883.2.4.6.3" /> <value value="123456789" /> </identifier> <active value="true" /> <name> <use value="official" /> <text value="Roel" /> <family value="Bor" /> <given value="Roelof Olaf" /> <prefix value="Drs." /> <suffix value="PDEng." /> </name> <telecom> <system value="phone" /> <value value="+31612345678" /> <use value="mobile" /> </telecom> <telecom> <system value="phone" /> <value value="+31201234567" /> <use value="home" /> </telecom> <gender value="male" /> <birthDate value="1960-03-13" /> <deceasedBoolean value="false" /> <address> <use value="home" /> <line value="Bos en Lommerplein 280" /> <city value="Amsterdam" /> <postalCode value="1055RW" /> <country value="NLD" /> </address> <maritalStatus> <coding> <system value="http://snomed.info/sct" /> <code value="36629006" /> <display value="Legally married" /> </coding> <coding> <system value="http://hl7.org/fhir/v3/MaritalStatus" /> <code value="M" /> </coding> </maritalStatus> <multipleBirthBoolean value="false" /> <photo> <contentType value="image/jpeg" /> <url value="Binary/f006" /> </photo> <contact> <relationship> <coding> <system value="http://snomed.info/sct" /> <code value="127850001" /> <display value="Wife" /> </coding> <coding> <system value="http://hl7.org/fhir/v2/0131" /> <code value="N" /> </coding> <coding> <system value="http://hl7.org/fhir/v3/RoleCode" /> <code value="WIFE" /> </coding> </relationship> <name> <use value="usual" /> <text value="Ariadne Bor-Jansma" /> </name> <telecom> <system value="phone" /> <value value="+31201234567" /> <use value="home" /> </telecom> </contact> <communication> <language> <coding> <system value="urn:ietf:bcp:47" /> <code value="nl-NL" /> <display value="Dutch" /> </coding> </language> <preferred value="true" /> </communication> <managingOrganization> <reference value="Organization/f201" /> <display value="AUMC" /> </managingOrganization> </Patient>