Choice
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
Code | Usage |
---|---|
variable | http://hl7.org/fhir/StructureDefinition/variable |
answerExpression | http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-answerExpression - Only tested with answerValueSet. |
initialExpression | http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression - InitialExpression should evaluate to a coding value. |
calculatedExpression | http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-calculatedExpression - CalculatedExpression should evaluate to a coding or valueCoding.code1 value. |
enableWhenExpression | http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression |
hidden | http://hl7.org/fhir/StructureDefinition/questionnaire-hidden |
itemControl | http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl Supports: - autocomplete - drop-down - check-box - radio-button |
choiceOrientation | http://hl7.org/fhir/StructureDefinition/questionnaire-choiceOrientation - ChoiceOrientation is only supported on itemControl "radio-button" and "check-box" extensions |
required | item.required |
repeats | item.repeats |
readOnly | item.readOnly |
answerOption | item.answerOption |
answerValueSet | item.answerValueSet |
initial | item.initial |
enableWhen | item.enableWhen |
enableBehavior | item.enableBehavior |
text | item.text |