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.
<Patient xmlns="http://hl7.org/fhir"> <extension url="http://hl7.org/fhir/StructureDefinition/us-core-ethnicity"> <valueCodeableConcept> <coding> <system value="http://hl7.org/fhir/v3/Ethnicity" /> <code value="2135-2" /> </coding> </valueCodeableConcept> </extension> <extension url="http://www.test.com/test-extension"> <valueCode value="550550550" /> </extension> <extension url="http://hl7.org/fhir/StructureDefinition/us-core-race"> <valueCodeableConcept> <coding> <system value="http://hl7.org/fhir/v3/Race" /> <code value="2108-9" /> </coding> </valueCodeableConcept> </extension> <identifier> <use value="usual" /> <type> <coding> <system value="http://hl7.org/fhir/v2/0203" /> <code value="SS" /> </coding> </type> <system value="http://hl7.org/fhir/sid/us-ssn" /> <value value="000000233" /> </identifier> <active value="true" /> <name> <use value="official" /> <family value="Hanson" /> <given value="Adam" /> <given value="Testpatient" /> <suffix value="Sr" /> </name> <name> <use value="usual" /> <given value="Test Patient" /> </name> <telecom> <system value="phone" /> <value value="122.108.2548" /> <use value="mobile" /> <rank value="1" /> </telecom> <telecom> <system value="email" /> <value value="mauris@molestiein.edu" /> <rank value="1" /> </telecom> <gender value="male" /> <birthDate value="1942-10-06" /> <address> <use value="home" /> <line value="P.O. Box 158, 9242 Nam Street" /> <line value="Building 149, flat 167" /> <city value="Fresno" /> <district value="Forest County" /> <state value="TN" /> <postalCode value="18036" /> </address> <maritalStatus> <coding> <system value="http://hl7.org/fhir/v3/MaritalStatus" /> <code value="M" /> <display value="Married" /> </coding> <text value="Married" /> </maritalStatus> <contact> <relationship> <coding> <system value="http://hl7.org/fhir/v2/0131" /> <code value="e" /> <display value="Employer" /> </coding> <text value="Employer / School" /> </relationship> <organization> <display value="Lukoil Corp." /> </organization> </contact> <communication> <language> <coding> <system value="urn:ietf:bcp:47" /> <code value="en" /> </coding> </language> <preferred value="true" /> </communication> </Patient>