description: 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. package_name: hl7.fhir.uv.sdc derivation: constraint name: AnswerOptionsToggleExpressionExtension type: Extension elements: extension: array: true min: 2 index: 0 slicing: slices: option: match: {} schema: short: Option(s) to toggle array: true min: 1 _required: true index: 1 extensions: {} elements: valueReference: {type: Reference, short: The option value to control, choiceOf: value, index: 15} valueUri: {type: uri, short: The option value to control, choiceOf: value, index: 12} valueTime: {type: time, short: The option value to control, choiceOf: value, index: 11} valueDecimal: {type: decimal, short: The option value to control, choiceOf: value, index: 8} valueQuantity: {type: Quantity, short: The option value to control, choiceOf: value, index: 14} value: short: The option value to control choices: [valueDate, valueDateTime, valueDecimal, valueInteger, valueString, valueTime, valueUri, valueCoding, valueQuantity, valueReference] index: 5 valueString: {type: string, short: The option value to control, choiceOf: value, index: 10} valueDateTime: {type: dateTime, short: The option value to control, choiceOf: value, index: 7} valueDate: {type: date, short: The option value to control, choiceOf: value, index: 6} valueCoding: {type: Coding, short: The option value to control, choiceOf: value, index: 13} extension: {index: 2} url: pattern: {type: Uri, value: option} index: 3 valueInteger: {type: integer, short: The option value to control, choiceOf: value, index: 9} required: [valueCoding, valueUri, valueString, valueReference, valueDecimal, valueDateTime, value, valueDate, valueTime, valueQuantity, valueInteger] expression: match: {} schema: short: The expression to toggle on _required: true index: 16 extensions: {} elements: extension: {index: 17} url: pattern: {type: Uri, value: expression} index: 18 value: short: Expression value choices: [valueExpression] index: 20 valueExpression: {type: Expression, short: Expression value, choiceOf: value, index: 21} required: [valueExpression, value] url: pattern: {type: Uri, value: 'http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-answerOptionsToggleExpression'} index: 22 value: choices: [] index: 24 package_version: 4.0.0 extensions: option: min: 1 short: Option(s) to toggle index: 1 array: true elements: valueReference: {type: Reference, short: The option value to control, choiceOf: value, index: 15} valueUri: {type: uri, short: The option value to control, choiceOf: value, index: 12} valueTime: {type: time, short: The option value to control, choiceOf: value, index: 11} valueDecimal: {type: decimal, short: The option value to control, choiceOf: value, index: 8} valueQuantity: {type: Quantity, short: The option value to control, choiceOf: value, index: 14} value: short: The option value to control choices: [valueDate, valueDateTime, valueDecimal, valueInteger, valueString, valueTime, valueUri, valueCoding, valueQuantity, valueReference] index: 5 valueString: {type: string, short: The option value to control, choiceOf: value, index: 10} valueDateTime: {type: dateTime, short: The option value to control, choiceOf: value, index: 7} valueDate: {type: date, short: The option value to control, choiceOf: value, index: 6} valueCoding: {type: Coding, short: The option value to control, choiceOf: value, index: 13} extension: {index: 2} url: pattern: {type: Uri, value: option} index: 3 valueInteger: {type: integer, short: The option value to control, choiceOf: value, index: 9} _required: true extensions: {} url: null required: [valueCoding, valueUri, valueString, valueReference, valueDecimal, valueDateTime, value, valueDate, valueTime, valueQuantity, valueInteger] expression: url: null short: The expression to toggle on _required: true index: 16 extensions: {} elements: extension: {index: 17} url: pattern: {type: Uri, value: expression} index: 18 value: short: Expression value choices: [valueExpression] index: 20 valueExpression: {type: Expression, short: Expression value, choiceOf: value, index: 21} required: [valueExpression, value] class: extension kind: complex-type url: http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-answerOptionsToggleExpression base: http://hl7.org/fhir/StructureDefinition/Extension version: 4.0.0