Skip to main content

Choice

Question with a Coding drawn from a list of possible answers (specified in either the answerOption property, or via the valueset referenced in the answerValueSet property) as an answer (valueCoding).

Basic usage

Answer Option

Questionnaire-only

With Response

note

The current answerOption drop-down component doesn't allow the field to be cleared. There are plans to migrate to the same component used for answerValueSet.

Answer Value Set

Questionnaire-only

With Response

Advanced usage

Answer Option - Calculations (Radio button)

Answer Value Set - Calculations

There are SDC advanced form rendering usages in the SDC Question Rendering section.

If there are any advanced usage scenarios you'd like to see, feel free to let us know.

note

The above calculation examples uses valueCoding.code1 as the FHIRPath expression result.

SDC Supported extensions

CodeUsage
variablehttp://hl7.org/fhir/StructureDefinition/variable
answerExpressionhttp://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-answerExpression
- Only tested with answerValueSet.
initialExpressionhttp://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression
- InitialExpression should evaluate to a coding value.
calculatedExpressionhttp://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-calculatedExpression
- CalculatedExpression should evaluate to a coding or valueCoding.code1 value.
enableWhenExpressionhttp://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression
hiddenhttp://hl7.org/fhir/StructureDefinition/questionnaire-hidden
itemControlhttp://hl7.org/fhir/StructureDefinition/questionnaire-itemControl
Supports:
- autocomplete
- drop-down
- check-box
- radio-button
choiceOrientationhttp://hl7.org/fhir/StructureDefinition/questionnaire-choiceOrientation
- ChoiceOrientation is only supported on itemControl "radio-button" and "check-box" extensions
requireditem.required
repeatsitem.repeats
readOnlyitem.readOnly
answerOptionitem.answerOption
answerValueSetitem.answerValueSet
initialitem.initial
enableWhenitem.enableWhen
enableBehavioritem.enableBehavior
textitem.text

Footnotes

  1. For calculated expressions, valueCoding.code as a fhirpath result is also permitted, as FHIRPath cannot dynamically generated a valueCoding object. 2