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-body-weight-in-grams-example-observation" /> <meta> <profile value="http://hl7.org/fhir/StructureDefinition/bodyweight" /> </meta> <status value="final" /> <category> <coding> <system value="http://terminology.hl7.org/CodeSystem/observation-category" /> <code value="vital-signs" /> <display value="Vital Signs" /> </coding> <text value="Vital Signs" /> </category> <code> <coding> <system value="http://loinc.org" /> <code value="29463-7" /> <display value="Body Weight" /> </coding> <coding> <system value="http://loinc.org" /> <code value="3141-9" /> <display value="Body weight Measured" /> </coding> </code> <subject> <display value="Marie Lux-Brennard" /> </subject> <effectiveDateTime value="2012-07-21" /> <performer> <identifier> <use value="official" /> <system value="http://fhir.de/NamingSystem/kbv/lanr" /> <value value="123456701" /> </identifier> <display value="Dr. Schmidt" /> </performer> <valueQuantity> <value value="3350" /> <unit value="g" /> <system value="http://unitsofmeasure.org" /> <code value="g" /> </valueQuantity> </Observation>