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="spark2" /> <meta> <versionId value="spark2" /> <lastUpdated value="2015-10-02T13:06:00.908+00:00" /> </meta> <text> <status value="generated" /> --- We have skipped the narrative for better readability of the resource --- </text> <extension url="http://hl7.org/fhir/StructureDefinition/us-core-race"> <valueCodeableConcept> <coding> <code value="2106-3" /> </coding> </valueCodeableConcept> </extension> <extension url="http://hl7.org/fhir/StructureDefinition/us-core-ethnicity"> <valueCodeableConcept> <coding> <code value="2135-2" /> </coding> </valueCodeableConcept> </extension> <identifier> <use value="usual" /> <system value="urn:oid:2.16.840.1.113883.3.72.5.30.2" /> <value value="18547545" /> </identifier> <name> <use value="official" /> <family value="Lerr" /> <given value="Todd" /> <given value="G." /> <suffix value="Jr" /> </name> <telecom> <system value="phone" /> <value value="(555)7259890" /> <use value="home" /> </telecom> <telecom> <system value="phone" /> <value value="(555)7256030" /> <use value="work" /> </telecom> <gender value="male" /> <birthDate value="2012-06-07" /> <deceasedBoolean value="false" /> <address> <extension url="http://example.org/us-core-county"> <extension url="http://example.org//iso21090-SC-coding"> <valueCoding> <system value="https://www.census.gov/geo/reference" /> <code value="42043" /> </valueCoding> </extension> </extension> <use value="home" /> <line value="123 North 102nd Street" /> <line value="Apt 4d" /> <city value="Harrisburg" /> <state value="PA" /> <postalCode value="17102" /> <country value="USA" /> </address> <contact> <relationship> <coding> <code value="guardian" /> </coding> </relationship> <name> <family value="Smith" /> <given value="Bea" /> <given value="G" /> </name> <telecom> <system value="phone" /> <value value="(555)7259890" /> </telecom> <address> <extension url="http://example.org/us-core-county"> <extension url="http://example.org//iso21090-SC-coding"> <valueCoding> <system value="https://www.census.gov/geo/reference" /> <code value="42043" /> </valueCoding> </extension> </extension> <use value="home" /> <line value="123 North 102nd Street" /> <line value="Apt 4d" /> <city value="Harrisburg" /> <state value="PA" /> <postalCode value="17102" /> <country value="USA" /> </address> </contact> </Patient>