AnswerOptionsToggleExpressionExtension

Answer Options Toggle Expression

activeStructured Data Capture4.0.02 contexts

A complex expression that provides a list of the allowed options that should be enabled or disabled based on the evaluation of a provided expression. It allows toggling of allowed answers based on context, including the answers provided to other expressions. Any options not listed by one of the answerOptionsToggleExpression occurrences are presumed to be 'enabled'. This expression should evaluate to a boolean. If it evaluates to an empty set, it will be interpretted as 'false'. If it evaluates to something other than a boolean, it is considered an error in the design of the Questionnaire. Form renderer behavior is undefined. Systems SHOULD present a warning to the user if a non-boolean valued expression result does not trigger an all-out error.

Metadata

hl7.org/fhir
Canonical URL
http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-answerOptionsToggleExpression
ID
sdc-questionnaire-answerOptionsToggleExpression
Name
AnswerOptionsToggleExpressionExtension

Context (2)

This extension can be used on the following elements:

elementQuestionnaire.item
elementElementDefinition
PathCard.TypeFlagsDescription
Extension
Expression constraining allowed answers
extension
:option1..*
Option(s) to toggle
extension
url
fixed: option
value[x]
datedateTimedecimalintegerstringtimeuriCodingQuantityReference
The option value to control
:expression1..1
The expression to toggle on
extension
url
fixed: expression
value[x]
Expression
Expression value
url
fixed: http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-answerOptionsToggleExpression
value[x]