Skip to content

sdc/query-syntax ​

error Reports an x-fhir-query that is not a FHIR search.

What it checks ​

Each x-fhir-query expression with text, at a catalogued location or found elsewhere in the Questionnaire, must start like a FHIR search: a resource type, a {{…}} fragment, ?, $, _, or an absolute http:// or https:// URL. Every {{ must have a closing }}.

Example ​

This x-fhir-query is not a FHIR search, so the form's request fails and the fields it fills stay empty.

fsh
Instance: query-syntax-not-a-search
InstanceOf: Questionnaire
Usage: #example
* status = #draft
* item[0].linkId = "a"
* item[=].type = #string
* item[=].extension.url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-itemPopulationContext"
* item[=].extension.valueExpression.language = #application/x-fhir-query
* item[=].extension.valueExpression.expression = "observation?code=x"