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/StructureDefinition/Extension-DM-PrescriptionType"> <valueCoding> <system value="https://fhir.nhs.uk/CodeSystem/prescription-type" /> <code value="0101" /> <display value="Primary Care Prescriber – Medical Prescriber" /> </valueCoding> </extension> <extension url="https://fhir.nhs.uk/StructureDefinition/Extension-DM-ResponsiblePractitioner"> <valueReference> <reference value="urn:uuid:1557E58E-3B1E-41DD-B3B5-D4D393DC5A3D" /> </valueReference> </extension> <identifier> <system value="https://fhir.nhs.uk/Id/prescription-order-item-number" /> <value value="1E34EE53-397A-2E70-E97C-67B1BD95014D" /> </identifier> <status value="active" /> <intent value="order" /> <medicationCodeableConcept> <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/StructureDefinition/Extension-DM-PrescriptionId"> <valueIdentifier> <system value="https://fhir.nhs.uk/Id/prescription" /> <value value="EDD2E9DD-DA0A-C266-A4E3-447C68239524" /> </valueIdentifier> </extension> <system value="https://fhir.nhs.uk/Id/prescription-order-number" /> <value value="83C40E-A23856-00123C" /> </groupIdentifier> <courseOfTherapyType> <coding> <system value="https://fhir.hl7.org.uk/CodeSystem/UKCore-PrescriptionType" /> <code value="acute" /> <display value="Short course (acute) therapy" /> </coding> </courseOfTherapyType> <dosageInstruction> <text value="2 Puffs when required" /> </dosageInstruction> <dispenseRequest> <extension url="https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType"> <valueCoding> <system value="https://fhir.nhs.uk/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> <performer> <identifier> <system value="https://not.correct.uri/Id/ods-organization-code" /> <value value="Y12345" /> </identifier> </performer> </dispenseRequest> <substitution> <allowedBoolean value="false" /> </substitution> </MedicationRequest>