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="acme-product-observation-VALID" /> <meta> <versionId value="1189" /> <lastUpdated value="2016-03-09T15:29:58.419+00:00" /> <profile value="https://fake-acme.org/fhir/StructureDefinition/ACME-product-observation-lab" /> </meta> <status value="final" /> <category> <coding> <system value="http://terminology.hl7.org/CodeSystem/observation-category" /> <code value="laboratory" /> <display value="Laboratory" /> </coding> <text value="Laboratory" /> </category> <code> <coding> <system value="http://loinc.org" /> <code value="789-8" /> <display value="RBC # Bld Auto" /> </coding> <text value="RBC # Bld Auto" /> </code> <subject> <reference value="Patient/example" /> <display value="Amy Shaw" /> </subject> <effectiveDateTime value="2005-07-05" /> <valueQuantity> <value value="4.58" /> <unit value="10*6/uL" /> <system value="http://unitsofmeasure.org" /> </valueQuantity> <referenceRange> <low> <value value="4.1" /> <unit value="10*6/uL" /> <system value="http://unitsofmeasure.org" /> <code value="10*6/uL" /> </low> <high> <value value="6.1" /> <unit value="10*6/uL" /> <system value="http://unitsofmeasure.org" /> <code value="10*6/uL" /> </high> <appliesTo> <coding> <system value="http://terminology.hl7.org/CodeSystem/referencerange-meaning" /> <code value="normal" /> <display value="Normal Range" /> </coding> <text value="Normal Range" /> </appliesTo> </referenceRange> </Observation>