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="s4h-24h-average-heart-rate-example" /> <meta> <profile value="http://fhir.smart4health.eu/StructureDefinition/s4h-observation-base" /> </meta> <status value="final" /> <category> <coding> <system value="http://terminology.hl7.org/CodeSystem/observation-category" /> <code value="activity" /> </coding> <text value="Activity" /> </category> <code> <coding> <system value="http://loinc.org" /> <code value="41924-2" /> <display value="Heart rate 24 hour mean" /> </coding> <text value="Heart rate 24 hour mean" /> </code> <subject> <identifier> <system value="http://fhir.data4life.care/CodeSystem/user-id" /> <value value="c7382336-e704-4c6b-a4e9-190a3695aa23" /> </identifier> </subject> <effectiveDateTime value="2021-05-27" /> <valueQuantity> <value value="70" /> <unit value="beats per minute" /> <system value="http://unitsofmeasure.org" /> <code value="{beats}/min" /> </valueQuantity> <device> <identifier> <system value="http://example.com/custom-device-id-namespace" /> <value value="g639d0821535fd6553fa8764" /> </identifier> </device> </Observation>