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.
Invocations
URL: [base]/StructureDefinition/$questionnaire
URL: [base]/StructureDefinition/[id]/$questionnaire
Parameters (In)
Name | Cardinality | Type | Documentation |
identifier | 0..1 | Uri | A logical profile identifier (i.e. 'StructureDefinition.identifier''). The server must know the profile or be able to retrieve it from other known repositories. |
profile | 0..1 | String | The StructureDefinition is provided directly as part of the request. Servers may choose not to accept profiles in this fashion |
url | 0..1 | Uri | The profile's official URL (i.e. 'StructureDefinition.url'). The server must know the profile or be able to retrieve it from other known repositories. |
supportedOnly | 0..1 | Boolean | If true, the questionnaire will only include those elements marked as "mustSupport='true'" in the StructureDefinition. |
Return Values (Out)
Name | Cardinality | Type | Documentation |
return | 1..1 | Questionnaire | The questionnaire form generated based on the StructureDefinition. |
Open Issue: Ideally, extensions should be populated in the generated Questionnaire that will support taking QuestionnaireResponse resources generated from the Questionnaire and turning them back into the appropriate resources.