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.
<!-- Sample XML file generated by XMLSpy v2013 sp1 (http://www.altova.com) --> <ImagingStudy xmlns="http://hl7.org/fhir"> <id value="TII-ImagingStudy-1" /> <uid value="urn:oid:1.2.840.113674.514.212.200" /> <patient> <!-- revise the URL if needed --> <reference value="Patient/GE0514" /> </patient> <procedureCode> <coding> <system value="http://loinc.org/" /> <code value="79103-8" /> <display value="CT Abdomen W contrast IV" /> </coding> </procedureCode> <reason> <text value="Patient is a 45 year old male with abnormal liver function test. Ultrasound evaluation demonstrated a 3 cm lesion in the medial aspect of the right lobe of the liver. The question was raised regarding potential hemangioma." /> </reason> <series> <uid value="urn:oid:1.2.840.113674.514.212.82.300" /> <modality> <system value="http://dicom.nema.org/resources/ontology/DCM" /> <code value="CT" /> <display value="Computed Tomography" /> </modality> <instance> <uid value="urn:oid:1.2.840.113674.950809132337081.100" /> <sopClass value="urn:oid:1.2.840.10008.5.1.4.1.1.2" /> </instance> <!-- Removed by this set of examples <bodySite> <system value="http://snomed.info/sct"/> <code value="R-FAB55"/> <display value="Chest and Abdomen"/> </bodySite> --> </series> <series> <uid value="urn:oid:1.2.276.0.7230010.3.1.4.2139363186.8948.974458937.73" /> <modality> <system value="http://dicom.nema.org/resources/ontology/DCM" /> <code value="SR" /> <display value="SR Document" /> </modality> <instance> <uid value="urn:oid:1.2.276.0.7230010.3.1.4.2139363186.8948.974458937.72" /> <sopClass value="urn:oid:1.2.840.10008.5.1.4.1.1.88.11" /> </instance> </series> </ImagingStudy>