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.
<Composition xmlns="http://hl7.org/fhir"> <id value="eicr-composition-zika" /> <meta> <versionId value="1" /> <lastUpdated value="2018-09-29T16:45:08.719-04:00" /> <profile value="http://hl7.org/fhir/us/ecr/StructureDefinition/eicr-composition" /> </meta> <language value="en-US" /> <text> <status value="generated" /> --- We have skipped the narrative for better readability of the resource --- </text> <date value="2018-01-02T22:13:23Z" /> <type> <coding> <system value="http://loinc.org" /> <code value="55751-2" /> <display value="Public Health Case Report" /> </coding> </type> <title value="Initial Public Health Case Report" /> <status value="final" /> <subject> <reference value="Patient/ecr-patient-eve-everywoman" /> <display value="Eve Everywoman" /> </subject> <author> <reference value="Practitioner/ecr-practitioner-henry-seven" /> <display value="Henry Seven, MD" /> </author> <encounter> <reference value="Encounter/eicr-encounter-eve-everywoman-20180401" /> <display value="Ambulatory Office Visit, Apr 1, 2018, 10:00am" /> </encounter> <section> <code> <coding> <system value="http://loinc.org" /> <code value="46240-8" /> <display value="Encounters" /> </coding> </code> <text> <status value="generated" /> <div xmlns="http://www.w3.org/1999/xhtml"><table><thead><tr><th>Encounter</th><th>Date(s)</th><th>Location</th></tr></thead><tbody><tr><td>Office outpatient visit 15 minutes</td><td>MAR 7, 2018</td><td><ul><li>Urgent Care Center</li></ul></td></tr><tr><td colspan="20"><ul><li><table><thead><tr><th>Encounter Diagnosis Type</th></tr></thead><tbody><tr><td>Diagnosis</td></tr><tr><td colspan="20"><ul><li><table><thead><tr><th>Initial Case Report Trigger Code Problem Observation </th><th>Problem</th><th>Trigger Code</th><th>Trigger Code codeSystem</th><th>RCTC OID</th><th>RCTC Version</th><th>Date(s)</th></tr></thead><tbody><tr><td>Diagnosis</td><td>Pertussis (disorder)</td><td>27836007</td><td>SNOMED CT</td><td>2.16.840.1.114222.4.11.7508</td><td>19/03/2018</td><td>MAR 7, 2018</td></tr></tbody></table><table><thead><tr><th>Encounter Diagnosis Type</th></tr></thead><tbody><tr><td>Diagnosis</td></tr><tr><td colspan="20"><ul><li><table><thead><tr><th>Problem Type</th><th>Problem</th><th>Date(s)</th></tr></thead><tbody><tr><td>Diagnosis</td><td>A non-trigger code diagnosis (disorder)</td><td>MAR 7, 2018</td></tr></tbody></table></li></ul></td></tr></tbody></table></li></ul></td></tr></tbody></table></li></ul></td></tr></tbody></table></div> </text> <entry> <reference value="Encounter/eicr-encounter-diagnosis-eve-everywoman-20180401" /> <display value="eICR Encounter Diagnosis: Eve Everywoman 20180401" /> </entry> </section> <section> <code> <coding> <system value="http://loinc.org" /> <code value="10164-2" /> <display value="History of Present illness Narrative" /> </coding> </code> <text> <status value="generated" /> <div xmlns="http://www.w3.org/1999/xhtml">Persistent Cough REPORTED starting on 2018/03/05<br/> Whooping Respiration not reported<br/> Paroxysms Of Coughing REPORTED starting on 2018/03/06<br/> Post-tussive vomiting not reported<br/></div> </text> </section> <section> <code> <coding> <system value="http://loinc.org" /> <code value="29299-5" /> <display value="Reason for visit Narrative" /> </coding> </code> <text> <status value="generated" /> <div xmlns="http://www.w3.org/1999/xhtml">Bad cough<br/></div> </text> </section> <section> <title value="Social History Section" /> <code> <coding> <system value="http://loinc.org" /> <code value="29762-2" /> <display value="Social history Narrative" /> </coding> </code> <text> <status value="generated" /> <div xmlns="http://www.w3.org/1999/xhtml"><table><thead><tr><th>Travel History: Date(s)</th><th>Location</th></tr></thead><tbody><tr><td>APR 29, 2016 to OCT 30, 2016</td><td>Nadi, Fiji</td></tr></tbody></table><table><thead><tr><th>Pregnancy Status</th><th>Date(s)</th></tr></thead><tbody><tr><td>Not Pregnant</td><td>JAN 1, 2016 to MAR 7, 2018</td></tr></tbody></table><table><thead><tr><th>Occupation</th><th>Date(s)</th></tr></thead><tbody><tr><td>Human Resource Manager</td><td>JAN 1, 2016 to NOV 7, 2018</td></tr></tbody></table></div> </text> <entry> <reference value="Observation/eicr-travel-history-eve-everywoman-201801" /> <display value="eICR Travel History: Eve Everywoman 2018-01" /> </entry> <entry> <reference value="Observation/eicr-pregnancy-status-eve-everywoman" /> <display value="eICR Pregnancy Status Example 1" /> </entry> <entry> <reference value="Observation/eicr-occupation-history-eve-everywoman" /> <display value="eICR Occupation History: Eve Everywoman" /> </entry> </section> <section> <title value="Problems Section" /> <code> <coding> <system value="http://loinc.org" /> <code value="11450-4" /> <display value="Problem list - Reported" /> </coding> </code> <text> <status value="generated" /> <div xmlns="http://www.w3.org/1999/xhtml"><table><thead><tr><th>Condition</th><th>id</th><th>Trigger Condition</th><th>Condition Category</th><th>Condition Code/Code System</th><th>Date(s)</th><th>Asserter</th></tr></thead><tbody><tr><td>Common cold (disorder)</td><td>16</td><td>FALSE</td><td>Encounter Diagnosis</td><td>82272006 / SNOMED CT</td><td>MAR 6, 2018</td><td>Henry Seven, MD</td></tr></tbody></table></div> </text> <entry> <reference value="Condition/eicr-condition-eve-everywoman-common-cold" /> <display value="Common cold (disorder)" /> </entry> </section> <section> <title value="Medications Administered Section" /> <code> <coding> <system value="http://loinc.org" /> <code value="29549-3" /> <display value="Medication administered Narrative" /> </coding> </code> <text> <status value="generated" /> <div xmlns="http://www.w3.org/1999/xhtml"><table><thead><tr><th>id</th><th>Medication</th><th>Dose</th><th>Duration</th><th>Route</th></tr></thead><tbody><tr><td>MedicationStatement-us-core-medicationstatement-eve-everywoman-azithromycin</td><td>Azithromycin 500 MG Oral Tablet</td><td>1 TAB</td><td>MAR 7, 2018 11:25</td><td>ORALLY</td></tr></tbody></table></div> </text> <entry> <reference value="MedicationStatement/us-core-medicationstatement-eve-everywoman-azithromycin" /> <display value="Azithromycin 500 MG Oral Tablet" /> </entry> </section> <section> <title value="Results Section" /> <code> <coding> <system value="http://loinc.org" /> <code value="30954-2" /> <display value="Relevant diagnostic tests/laboratory data Narrative" /> </coding> </code> <text> <status value="generated" /> <div xmlns="http://www.w3.org/1999/xhtml"><p><b>Generated Narrative with Details</b></p><p><b>id</b>: us-core-observation-results-eve-everywoman-lymphocytes</p><p><b>meta</b>: </p><p><b>status</b>: final</p><p><b>category</b>: Laboratory <span style="background: LightGoldenRodYellow">(Details : {http://hl7.org/fhir/observation-category code 'laboratory' = 'Laboratory', given as 'Laboratory'})</span></p><p><b>code</b>: Lymphocytes [#/volume] in Blood by Automated count <span style="background: LightGoldenRodYellow">(Details : {LOINC code '731-0' = 'Lymphocytes [#/volume] in Blood by Automated count'})</span></p><p><b>trigger result</b>: FALSE</p><p><b>effective</b>: Mar 6, 2018</p><p><b>value</b>: 5.2 10*3/uL<span style="background: LightGoldenRodYellow"> (Details: UCUM code 10*3/uL')</span></p><p><b>interpretation</b>: High<span style="background: LightGoldenRodYellow"> (Details: http://hl7.org/fhir/v2/0078 code 'H' = 'High')</span></p><h3>ReferenceRanges</h3><table class="grid"><tr><td>-</td><td><b>Low</b><b>High</b></td></tr><tr><td>*</td><td>1.0 10*3/uL<span style="background: LightGoldenRodYellow"> (Details: UCUM code 10*3/uL')</span></td><td>4.8 10*3/uL<span style="background: LightGoldenRodYellow"> (Details: UCUM code 10*3/uL')</span></td></tr></table></div> </text> <entry> <reference value="Observation/us-core-observation-results-eve-everywoman-lymphocytes" /> <display value="Lymphocytes [#/volume] in Blood by Automated count - Interpretation: High" /> </entry> </section> <section> <title value="Plan of Treatment Section" /> <code> <coding> <system value="http://loinc.org" /> <code value="18776-5" /> <display value="Plan of Treatment" /> </coding> </code> <text> <status value="generated" /> <div xmlns="http://www.w3.org/1999/xhtml"><p><b>id</b>: 5</p><p><b>status</b>: completed</p><p><b>intent</b>: order</p><p><b>priority</b>: asap</p><p><b>category</b>: Diagnostics Procedure <span style="background: LightGoldenRodYellow">(Details : {SNOMED CT code '103693007' = 'Diagnostic procedure', given as 'Diagnostic procedure (procedure)'})</span></p><p><b>code</b>: Zika RT-PCR <span style="background: LightGoldenRodYellow">(Details : {LOINC code '80825-3' = 'Zika virus envelope (E) gene [Presence] in Serum by Probe and target amplification method', given as 'Zika virus envelope (E) gene [Presence] in Serum by Probe and target amplification method'})</span></p><p><b>trigger lab order</b>: TRUE</p><p><b>trigger value set/version</b>: urn:oid:2.16.840.1.114222.4.11.7508 / 19/05/2018</p><p><b>performer</b>: <a href="Organization/acme-labs">Acme Labs</a></p></div> </text> <entry> <extension url="http://hl7.org/fhir/us/ecr/StructureDefinition/extension-eicr-trigger-code-flag"> <extension url="triggerCodeValueSet"> <valueOid value="urn:oid:2.16.840.1.114222.4.11.7508" /> </extension> <extension url="triggerCodeValueSetVersion"> <valueString value="19/05/2018" /> </extension> </extension> <reference value="ProcedureRequest/eicr-procedurerequest-zika" /> <display value="Request for Zika virus envelope (E) gene [Presence] in Serum by Probe and target amplification method" /> </entry> </section> </Composition>