// todo link to source
This documentation covers files located at: Questionnaire Item Boolean
Questionnaire Item Boolean Component
The Questionnaire Item Boolean Component primarily utilizes the methods and values provided by the Questionnaire Base Component.
Supported Item Features
| Feature | Config Key | Logic |
|---|---|---|
| Label Text | item.text | This component |
| Enable When | item.enableWhen | Item Renderer |
| Enable When Behaviour | item.enableWhenBehaviour | Item Renderer |
| Required | item.required | Item Renderer |
| Initial Value | item.initialValue | Item Base Component |
Extension Features
| Feature | Extension URL | Key / Value Type |
|---|---|---|
| Translation | http://hl7.org/fhir/StructureDefinition/translation | Complex Type |
| Min Occurrences | http://hl7.org/fhir/StructureDefinition/questionnaire-minOccurs | valueInteger |
| Max Occurrences | http://hl7.org/fhir/StructureDefinition/questionnaire-maxOccurs | valueInteger |
| SDC Enable When | http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression | valueExpression |
| Item Control | http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl | valueCodeableConcept: toggle | checkbox |
Constraints & Limitations
- Boolean Type & Repeats: The
repeatsattribute is not supported for boolean item types.
Rationale: The repeats property allows a single item to have multiple distinct answer values. In the context of a boolean (true/false) data type, providing multiple values for the same question is logically inconsistent and technically invalid within this renderer's implementation.
Technical Implementation Details
For detailed information regarding technical implementation, please refer to the following:
- Questionnaire Base Component
- Questionnaire Item Renderer
- Questionnaire-Enable-When Service