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.
<Observation xmlns="http://hl7.org/fhir"> <id value="spark4" /> <meta> <versionId value="spark4" /> <lastUpdated value="2015-10-02T13:05:34.347+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/uslab-observationkind"> <valueCode value="result" /> </extension> <identifier> <use value="official" /> <type> <text value="lab test result ID" /> </type> <system value="http://lis.acmelabs.org/identifiers/labtestresult" /> <value value="4567" /> </identifier> <status value="final" /> <code> <coding> <system value="http://loinc.org/" /> <code value="6812-2" /> <display value="Dengue virus IgM Ab [Titer] in Serum" /> </coding> <coding> <system value="urn:oid:2.16.840.1.113883.3.72.5.24" /> <code value="DGIGM" /> <display value="Dengue IgM QN" /> </coding> <text value="Dengue IgM Titer" /> </code> <subject> <reference value="Patient/patient-uslab-example1" /> <display value="Todd Lerr" /> </subject> <effectiveDateTime value="2014-12-05" /> <issued value="2014-12-06T15:42:15-08:00" /> <performer> <reference value="Practitioner/pract-uslab-example1" /> <display value="Dr Leonard T Bloodraw Jr" /> </performer> <valueRatio> <numerator> <value value="1" /> </numerator> <denominator> <value value="256" /> </denominator> </valueRatio> <interpretation> <coding> <system value="http://hl7.org/fhir/v2/0078" /> <code value="H" /> </coding> </interpretation> <specimen> <reference value="Specimen/spec-uslab-example1" /> <display value="Bloo sample" /> </specimen> <referenceRange> <text value="<1:64" /> </referenceRange> </Observation>