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.
<MedicationStatement xmlns="http://hl7.org/fhir"> <id value="medplan-plus-de-med-statement-example-1" /> <meta> <profile value="http://fhir.smart4health.eu/StructureDefinition/s4h-medicationstatement" /> </meta> <status value="active" /> <medicationReference> <identifier> <system value="http://example.com/mymedcodes" /> <value value="medplanplus-med-1" /> </identifier> </medicationReference> <subject> <display value="Marie Lux-Brennard" /> </subject> <effectivePeriod> <start value="2017-08-08" /> </effectivePeriod> <reasonCode> <text value="Aua!" /> </reasonCode> <dosage> <timing> <code> <coding> <system value="http://terminology.hl7.org/CodeSystem/v3-TimingEvent" /> <code value="CV" /> </coding> </code> </timing> <doseAndRate> <doseQuantity> <value value="1" /> <system value="http://fhir.de/CodeSystem/kbv/s-bmp-dosiereinheit" /> <code value="1" /> </doseQuantity> </doseAndRate> </dosage> </MedicationStatement>