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="ecr-patient-eve-everywoman" /> <meta> <versionId value="1" /> <lastUpdated value="2018-09-29T16:45:08.719-04:00" /> <profile value="http://hl7.org/fhir/us/ecr/StructureDefinition/ecr-patient" /> </meta> <text> <status value="generated" /> --- We have skipped the narrative for better readability of the resource --- </text> <extension url="http://hl7.org/fhir/us/core/StructureDefinition/us-core-race"> <extension url="ombCategory"> <valueCoding> <system value="urn:oid:2.16.840.1.113883.6.238" /> <code value="2106-3" /> <display value="White" /> </valueCoding> </extension> <extension url="text"> <valueString value="White" /> </extension> </extension> <extension url="http://hl7.org/fhir/us/core/StructureDefinition/us-core-ethnicity"> <extension url="ombCategory"> <valueCoding> <system value="urn:oid:2.16.840.1.113883.6.238" /> <code value="2186-5" /> <display value="Not Hispanic or Latino" /> </valueCoding> </extension> <extension url="text"> <valueString value="Not Hispanic or Latino" /> </extension> </extension> <extension url="http://hl7.org/fhir/us/core/StructureDefinition/us-core-birthsex"> <valueCode value="F" /> </extension> <identifier> <use value="usual" /> <type> <coding> <system value="http://hl7.org/fhir/v2/0203" /> <code value="MR" /> <display value="Medical Record Number" /> </coding> <text value="Medical Record Number" /> </type> <system value="http://hospital.smarthealthit.org" /> <value value="1032702" /> </identifier> <identifier> <use value="usual" /> <type> <coding> <system value="http://hl7.org/fhir/identifier-type" /> <code value="SB" /> <display value="Social Beneficiary Identifier" /> </coding> <text value="SSN" /> </type> <system value="http://hl7.org/fhir/sid/us-ssn" /> <value value="11-00-1234" /> </identifier> <active value="true" /> <name> <family value="Everywoman" /> <given value="Eve" /> <given value="L" /> </name> <telecom> <system value="phone" /> <value value="1-(404)555-1212" /> <use value="home" /> </telecom> <telecom> <system value="email" /> <value value="eve.everywoman@example.com" /> </telecom> <gender value="female" /> <birthDate value="1974-11-24" /> <address> <line value="5101 Peachtree St NE" /> <city value="Atlanta" /> <state value="GA" /> <postalCode value="30302" /> <country value="US" /> </address> </Patient>