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"> <id value="00004-11091" /> <identifier> <type> <coding> <system value="http://hl7.org/fhir/v2/0203" /> <code value="JHN" /> </coding> <text value="Ontario, Canada Personal Health Number" /> </type> <system value="https://fhir.infoway-inforoute.ca/NamingSystem/ca-on-patient-hcn" /> <value value="1111001111" /> </identifier> <name> <use value="official" /> <family value="Arby" /> <given value="Arby" /> </name> <telecom> <system value="phone" /> <value value="416-654-4236" /> <use value="home" /> </telecom> <telecom> <system value="phone" /> <value value="416-654-4236" /> <use value="work" /> </telecom> <gender value="female" /> <birthDate value="1968-01-01" /> <deceasedDateTime value="2013-02-01" /> <address> <use value="home" /> <type value="physical" /> <line value="1 elm st" /> <city value="Ottawa" /> <state value="Ontario" /> <postalCode value="K1A0N2" /> <country value="CAN" /> </address> <contact> <relationship> <coding> <system value="http://hl7.org/fhir/v2/0131" /> <code value="C" /> </coding> </relationship> <name> <text value="Bob Marley" /> </name> <telecom> <system value="phone" /> <value value="819-666-7777" /> </telecom> </contact> <communication> <language> <coding> <system value="urn:ietf:bcp:47" /> <code value="en" /> </coding> </language> <preferred value="true" /> </communication> </Patient>