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.
<List xmlns="http://hl7.org/fhir"> <contained> <Patient> <name> <text value="Vittoria" /> </name> </Patient> </contained> <contained> <Observation> <status value="final" /> <category> <text value="walking" /> </category> <code> <text value="activity logged by user" /> </code> <effectiveDateTime value="2021-08-19T00:00:00Z" /> <valuePeriod> <start value="2021-08-19T00:00:00Z" /> <end value="2021-08-19T00:10:10Z" /> </valuePeriod> </Observation> </contained> <contained> <Observation> <status value="final" /> <category> <text value="cleaning the house" /> </category> <code> <text value="activity logged by user" /> </code> <effectiveDateTime value="2021-08-18T00:00:00Z" /> <valuePeriod> <start value="2021-08-18T00:00:00Z" /> <end value="2021-08-18T00:10:10Z" /> </valuePeriod> </Observation> </contained> <contained> <Observation> <status value="final" /> <code> <coding> <system value="http://loinc.org" /> <code value="41653-7" /> <display value="Glucose [Mass/volume] in Capillary blood by Glucometer" /> </coding> </code> <effectiveDateTime value="2021-08-20T00:00:00Z" /> <valueQuantity> <value value="360.36036" /> <unit value="mg/dL" /> </valueQuantity> </Observation> </contained> <contained> <Observation> <status value="final" /> <code> <coding> <system value="http://loinc.org" /> <code value="LP16413-4" /> <display value="Hemoglobin A1c" /> </coding> </code> <effectiveDateTime value="2021-08-10T00:00:00Z" /> <valueQuantity> <value value="10" /> <unit value="mmol/mol" /> </valueQuantity> </Observation> </contained> <contained> <Observation> <status value="final" /> <category> <coding> <system value="http://hl7.org/fhir/ValueSet/observation-category" /> <code value="social-history" /> <display value="Social History" /> </coding> <text value="note from a user" /> </category> <code> <text value="note" /> </code> <effectiveDateTime value="2021-08-17T00:00:00Z" /> <valueString value="today was a good day!" /> </Observation> </contained> <contained> <Observation> <status value="final" /> <code> <coding> <system value="http://loinc.org" /> <code value="29463-7" /> <display value="Body Weight" /> </coding> </code> <effectiveDateTime value="2021-08-11T00:00:00Z" /> <valueQuantity> <value value="70" /> <unit value="kg" /> </valueQuantity> </Observation> </contained> <status value="current" /> <mode value="snapshot" /> </List>