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.
<MedicationRequest xmlns="http://hl7.org/fhir"> <id value="missingSNOMED-fail" /> <extension url="https://fhir.nhs.uk/R4/StructureDefinition/Extension-eps-prescriptionType"> <valueCoding> <system value="https://fhir.nhs.uk/R4/CodeSystem/itk-prescription-type" /> <code value="0001" /> <display value="General Practitioner Prescribing" /> </valueCoding> </extension> <extension url="https://fhir.nhs.uk/R4/StructureDefinition/Extension-tokenIssued"> <valueBoolean value="true" /> </extension> <identifier> <system value="https://fhir.nhs.uk/Id/prescription-line-id" /> <value value="1E34EE53-397A-2E70-E97C-67B1BD95014D" /> </identifier> <status value="active" /> <intent value="order" /> <medicationCodeableConcept> <coding> <system value="http://snomed.info/sct" /> <code value="320176004" /> <display value="Salbutamol 100micrograms inhaler (product)" /> </coding> <coding> <system value="https://fhir.hl7.org.uk/Id/multilex-drug-codes" /> <code value="ABCDE" /> <display value="Salbutamol 100micrograms inhaler (product)" /> </coding> </medicationCodeableConcept> <subject> <reference value="urn:uuid:C6750CAA-3CA9-4F29-A282-6EE1AA5D7D4C" /> </subject> <authoredOn value="2004-09-20T10:30:00.000+00:00" /> <requester> <reference value="urn:uuid:1557E58E-3B1E-41DD-B3B5-D4D393DC5A3D" /> <display value="Dr Smith" /> </requester> <groupIdentifier> <extension url="https://fhir.nhs.uk/R4/StructureDefinition/Extension-eps-parentPrescriptionId"> <valueIdentifier> <system value="https://fhir.nhs.uk/Id/prescription-parent-id" /> <value value="EDD2E9DD-DA0A-C266-A4E3-447C68239524" /> </valueIdentifier> </extension> <system value="https://fhir.nhs.uk/Id/prescription-short-form" /> <value value="83C40E-A23856-00123C" /> </groupIdentifier> <courseOfTherapyType> <coding> <system value="https://fhir.nhs.uk/R4/CodeSystem/CareConnect-PrescriptionType" /> <code value="acute" /> <display value="Acute" /> </coding> </courseOfTherapyType> <dosageInstruction> <text value="2 Puffs when required" /> </dosageInstruction> <dispenseRequest> <extension url="https://fhir.nhs.uk/R4/StructureDefinition/Extension-performerType"> <valueCoding> <system value="https://fhir.nhs.uk/R4/CodeSystem/dispensing-site-preference" /> <code value="0004" /> </valueCoding> </extension> <quantity> <value value="200" /> <unit value="actuation(s)" /> <system value="http://snomed.info/sct" /> <code value="732981002" /> </quantity> </dispenseRequest> <substitution> <allowedBoolean value="false" /> </substitution> </MedicationRequest>