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.
<DiagnosticOrder xmlns="http://hl7.org/fhir"> <id value="core-examples-DiagnosticOrder-example5" /> <meta> <versionId value="1" /> <lastUpdated value="2016-09-08T11:58:21.241+00:00" /> </meta> <text> <status value="generated" /> --- We have skipped the narrative for better readability of the resource --- </text> <subject> <reference value="Patient/patient-uslab-example1" /> <display value="Todd Lerr" /> </subject> <orderer> <reference value="Practitioner/pract-uslab-example1" /> <display value="Dr Leonard T Bloodraw Jr" /> </orderer> <identifier> <use value="official" /> <system value="urn:oid:2.16.840.1.113883.3.72.5.24" /> <value value="ORD000123A" /> </identifier> <reason> <coding> <system value="http://www.icd10data.com/icd10pcs" /> <code value="R78.71" /> <display value="Abnormal lead level in blood" /> </coding> <text value="Abnormal lead level in blood" /> </reason> <supportingInformation> <reference value="Observation/obs-uslab-example1" /> <display value="Prior Results Observation" /> </supportingInformation> <supportingInformation> <reference value="Condition/cond-uslab-example1" /> <display value="Lead Exposure" /> </supportingInformation> <status value="requested" /> <priority value="routine" /> <event> <status value="requested" /> <description> <coding> <code value="new-request" /> </coding> </description> <dateTime value="2014-12-04T15:42:15-08:00" /> </event> <item> <code> <coding> <system value="http://loinc.org/" /> <code value="5671-3" /> <display value="Lead [Mass/volume] in Blood" /> </coding> <coding> <system value="urn:oid:2.16.840.1.113883.3.72.5.24" /> <code value="BLDLD" /> <display value="Blood Lead" /> </coding> <text value="Blood Lead" /> </code> <specimen> <reference value="Specimen/spec-uslab-example1" /> <display value="Whole blood" /> </specimen> <status value="requested" /> </item> <note> <text value="patient is afraid of needles" /> </note> </DiagnosticOrder>