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="<uuid>" /> <meta> <tag> <display value="FTimed administration with period at day and dose in intervals '1-2+3-4+0+0'" /> </tag> <tag> <display value="Timed administration with period at day and dose in intervals, 1-2 tablet in the morning, 3-4 tablets at lunch" /> </tag> <tag> <display value="dosage-example-9" /> </tag> </meta> <text> <status value="generated" /> --- We have skipped the narrative for better readability of the resource --- </text> <status value="unknown" /> <intent value="order" /> <medicationCodeableConcept> <text value="This order has no medication" /> </medicationCodeableConcept> <subject> <reference value="Patient/<uuid>" /> </subject> <dosageInstruction> <extension url="http://electronichealth.se/fhir/StructureDefinition/NLLAdministeringInstruction"> <valueString value="sväljes" /> </extension> <sequence value="1" /> <patientInstruction value="1-2 tabletter på morgonen, 3-4 tabletter till lunch" /> <timing> <repeat> <when value="MORN" /> </repeat> </timing> <asNeededBoolean value="false" /> <method> <coding> <code value="738995006" /> </coding> </method> <doseAndRate> <doseRange> <low> <value value="1" /> <code value="{tbl}" /> </low> <high> <value value="2" /> <code value="{tbl}" /> </high> </doseRange> </doseAndRate> </dosageInstruction> <dosageInstruction> <extension url="http://electronichealth.se/fhir/StructureDefinition/NLLAdministeringInstruction"> <valueString value="sväljes" /> </extension> <sequence value="1" /> <patientInstruction value="1-2 tabletter på morgonen, 3-4 tabletter till lunch" /> <timing> <repeat> <when value="NOON" /> </repeat> </timing> <asNeededBoolean value="false" /> <method> <coding> <code value="738995006" /> </coding> </method> <doseAndRate> <doseRange> <low> <value value="3" /> <code value="{tbl}" /> </low> <high> <value value="4" /> <code value="{tbl}" /> </high> </doseRange> </doseAndRate> </dosageInstruction> </MedicationRequest>