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.
<QuestionnaireResponse xmlns="http://hl7.org/fhir"> <id value="03/31/2021-000000000" /> <contained> <Patient> <id value="Paciente" /> <telecom> <system value="phone" /> <value value="000000000" /> <use value="mobile" /> </telecom> </Patient> </contained> <contained> <Observation> <id value="Observacion" /> <status value="final" /> <code> <coding> <system value="https://www.example.org" /> <code value="3" /> </coding> <text value="score" /> </code> </Observation> </contained> <contained> <Organization> <id value="Organizacion" /> <name value="IID Araia" /> </Organization> </contained> <identifier> <value value="BASDAI-000000000-31/03/2021" /> </identifier> <partOf> <reference value="#Observacion" /> <type value="Observation" /> </partOf> <status value="completed" /> <subject> <reference value="#Paciente" /> </subject> <authored value="2021-03-31T14:20:20Z" /> <author> <reference value="#Organizacion" /> <type value="Organization" /> </author> <item> <linkId value="BASDAI_Q01" /> <answer> <valueInteger value="1" /> </answer> </item> <item> <linkId value="BASDAI_Q02" /> <answer> <valueInteger value="2" /> </answer> </item> <item> <linkId value="BASDAI_Q03" /> <answer> <valueInteger value="3" /> </answer> </item> <item> <linkId value="BASDAI_Q04" /> <answer> <valueInteger value="4" /> </answer> </item> <item> <linkId value="BASDAI_Q05" /> <answer> <valueInteger value="5" /> </answer> </item> <item> <linkId value="BASDAI_Q06" /> <answer> <valueInteger value="6" /> </answer> </item> </QuestionnaireResponse>