Appearance
sdc/language-not-allowed
error Reports an expression language that SDC does not allow at its location.What it checks
SDC allows only FHIRPath or CQL in an enableWhenExpression and in the expression of an answerOptionsToggleExpression. Any other language there is reported, including either x-fhir-query code, except application/x-fhir-query on an enableWhenExpression, which the FHIR Validator already rejects. Other locations allow any language.
Example
This enableWhenExpression is written in text/x-fhir-query, but SDC allows only FHIRPath or CQL here, so the form may ignore it.
fsh
Instance: language-not-allowed-enable-when-query
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-enableWhenExpression"
* item[=].extension.valueExpression.language = #text/x-fhir-query
* item[=].extension.valueExpression.expression = "Observation?code=x"