Structured Data Capture, published by HL7 International / FHIR Infrastructure. This guide is not an authorized publication; it is the continuous build for version 4.0.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/HL7/sdc/ and changes regularly. See the Directory of published versions
| Official URL: http://hl7.org/fhir/uv/sdc/Questionnaire/questionnaire-sdc-test-enableWhen | Version: 4.0.0 | |||
| Standards status: Informative Active as of 2025-10-22 | Computable Name: EnableWhenTests | |||
| Other Identifiers: OID:2.16.840.1.113883.4.642.40.17.35.20 | ||||
A test form that has a variety of enable when scenarios for testing
Profile: Advanced Behavior Questionnaire
| LinkID | Text | Cardinality | Type | Description & Constraints![]() |
|---|---|---|---|---|
![]() |
A test form that has a variety of enable when scenarios for testing | Questionnaire | http://hl7.org/fhir/uv/sdc/Questionnaire/questionnaire-sdc-test-enableWhen#4.0.0 | |
![]() ![]() |
Scenario 1 | 0..1 | group | |
![]() ![]() ![]() |
Question 1 Check | 0..1 | boolean | |
![]() ![]() ![]() |
Question 2 Check | 0..1 | boolean | |
![]() ![]() ![]() |
Question 3 Radio ( 1 2 3 ) | 0..1 | choice | Options: 3 options |
![]() ![]() ![]() |
Question 4 Radio ( 7 8 9 ) | 0..1 | choice | Options: 3 options |
![]() ![]() ![]() |
Question 3 - enables the question | 0..1 | choice | Options: 3 options |
![]() ![]() ![]() |
Question hidden until Q1 checked | 0..1 | string | Enable When: 83d5c1a6-5dc3-44d0-9d9e-d687c72e143e = |
![]() ![]() ![]() |
Question hidden until Q3 radio 2 Selected | 0..1 | string | Enable When: s1-radio = |
![]() ![]() ![]() |
Group hidden until enabled Q1 checked | 0..1 | group | Enable When: 83d5c1a6-5dc3-44d0-9d9e-d687c72e143e = |
![]() ![]() ![]() ![]() |
Question 2 - disable the group | 0..1 | string | |
![]() ![]() ![]() |
Group present until Q2 checked | 0..1 | group | Enable When: fe0106a5-0e25-43a4-9820-7acb7e74d9d7 = |
![]() ![]() ![]() ![]() |
Question 2 - disable the group when unchecked | 0..1 | string | |
![]() ![]() ![]() |
Group hidden until radio 2 selected | 0..1 | group | Enable When: s1-radio = |
![]() ![]() ![]() ![]() |
Question 2 - disable the group | 0..1 | string | |
![]() ![]() ![]() |
Group hidden until dropdown selected | 0..1 | group | Enable When: 5e1209b7-c9e0-4bf4-b228-c6591b540qmo = |
![]() ![]() ![]() ![]() |
Question 2 - disable the group | 0..1 | string | |
![]() ![]() ![]() |
Group hidden until 7 is undeleted | 0..1 | group | Enable When: 5e1209b7-c9e0-4bf4-b228-fr096s903m25 != |
![]() ![]() ![]() ![]() |
Question 2 - disable the group | 0..1 | string | |
![]() ![]() ![]() |
Group hidden until 8 and 4 selected | 0..1 | group | Enable When: |
![]() ![]() ![]() ![]() |
Question 2 - disable the group | 0..1 | string | |
![]() ![]() |
Scenario 2 | 0..1 | group | |
![]() ![]() ![]() |
Yes/No/Dont know/NA | 0..1 | choice | Value Set: Yes No Unknown NotApplicable |
![]() ![]() ![]() |
Group visible when Yes selected | 0..1 | group | Enable When: 1acf93a7-0890-44cd-be48-542defb35248 = |
![]() ![]() ![]() ![]() |
Yes Question | 0..1 | string | |
![]() ![]() ![]() |
Group visible when Yes/No | 0..1 | group | Enable When: 1acf93a7-0890-44cd-be48-542defb35248 != |
![]() ![]() ![]() ![]() |
Yes/No Question | 0..1 | string | |
![]() ![]() |
Scenario 3: Comparator enable when with answeroption data | 0..1 | group | |
![]() ![]() ![]() |
Integer Values Radio Buttons | 0..1 | choice | Options: 3 options |
![]() ![]() ![]() |
Group visible when value < 2.2 | 0..1 | group | Enable When: s3-radio < |
![]() ![]() ![]() ![]() |
Group 2 question | 0..1 | string | |
![]() ![]() ![]() |
Group visible when valuw >= 2.2 | 0..1 | group | Enable When: s3-radio >= |
![]() ![]() ![]() ![]() |
Group 3 question | 0..1 | string | |
![]() ![]() |
Scenario 4: choice selections with groups | 0..1 | group | |
![]() ![]() ![]() |
Integer Values Radio Buttons | 0..1 | choice | Options: 3 options |
![]() ![]() ![]() |
Group hidden until integer 2 selected | 0..1 | group | Enable When: s4-radio = |
![]() ![]() ![]() ![]() |
Group 2 question | 0..1 | string | |
![]() ![]() ![]() |
Group visible for 1 and 2 | 0..1 | group | Enable When: s4-radio != |
![]() ![]() ![]() ![]() |
Group 3 question | 0..1 | string | |
![]() ![]() |
Scenario 5: Test EnableWhen Date Trigger | 0..1 | group | |
![]() ![]() ![]() |
Date of Birth | 0..1 | date | |
![]() ![]() ![]() |
Please specify if DOB > 2000-01-01 | 0..1 | string | Enable When: date_of_birth_question > |
![]() ![]() ![]() |
Please specify if DOB is <= 2000-01-01 | 0..1 | string | Enable When: date_of_birth_question <= |
![]() ![]() ![]() |
Please specify time | 0..1 | time | |
![]() ![]() ![]() |
If Time Greater Than 11:11:11 | 0..1 | string | Enable When: datetime_question > |
![]() ![]() ![]() |
If Time Less Than 11:11:11 | 0..1 | string | Enable When: datetime_question <= |
![]() ![]() |
Scenario 6: Multi-select option enablewhen | 0..1 | group | |
![]() ![]() ![]() |
Adverse outcomes | 0..* | choice | Options: 6 options |
![]() ![]() ![]() |
Please specify: | 0..1 | string | Max Length: 100 Enable When: BC029 = |
Documentation for this format | ||||
Options Sets
Answer options for s1-radio
Answer options for 5e1209b7-c9e0-4bf4-b228-fr096s903m25
Answer options for 5e1209b7-c9e0-4bf4-b228-c6591b540qmo
Answer options for s3-radio
Answer options for s4-radio
Answer options for BC029
Profile: Advanced Behavior Questionnaire
Scenario 1
Question 1 Check
Question 2 Check
Question 3 Radio ( 1 2 3 )
Question 4 Radio ( 7 8 9 )
Question 3 - enables the question
Question hidden until Q1 checked
Question hidden until Q3 radio 2 Selected
Group hidden until enabled Q1 checked
Question 2 - disable the group
Group present until Q2 checked
Question 2 - disable the group when unchecked
Group hidden until radio 2 selected
Question 2 - disable the group
Group hidden until dropdown selected
Question 2 - disable the group
Group hidden until 7 is undeleted
Question 2 - disable the group
Group hidden until 8 and 4 selected
Question 2 - disable the group
Scenario 2
Yes/No/Dont know/NA
Group visible when Yes selected
Yes Question
Group visible when Yes/No
Yes/No Question
Scenario 3: Comparator enable when with answeroption data
Integer Values Radio Buttons
Group visible when value < 2.2
Group 2 question
Group visible when valuw >= 2.2
Group 3 question
Scenario 4: choice selections with groups
Integer Values Radio Buttons
Group hidden until integer 2 selected
Group 2 question
Group visible for 1 and 2
Group 3 question
Scenario 5: Test EnableWhen Date Trigger
Date of Birth
Please specify if DOB > 2000-01-01
Please specify if DOB is <= 2000-01-01
Please specify time
If Time Greater Than 11:11:11
If Time Less Than 11:11:11
Scenario 6: Multi-select option enablewhen
Adverse outcomes
Please specify:
Profile: Advanced Behavior Questionnaire
| LinkID | Description & Constraints![]() |
|---|---|
![]() |
|
![]() ![]() |
|
![]() ![]() |
|
![]() ![]() |
Options: 3 options |
![]() ![]() |
Options: 3 options |
![]() ![]() |
Options: 3 options |
![]() ![]() |
Enable When: Not done yet |
![]() ![]() |
Enable When: Not done yet |
![]() ![]() |
Enable When: Not done yet |
![]() ![]() ![]() |
|
![]() ![]() |
Enable When: Not done yet |
![]() ![]() ![]() |
|
![]() ![]() |
Enable When: Not done yet |
![]() ![]() ![]() |
|
![]() ![]() |
Enable When: Not done yet |
![]() ![]() ![]() |
|
![]() ![]() |
Enable When: Not done yet |
![]() ![]() ![]() |
|
![]() ![]() |
Enable When: Not done yet |
![]() ![]() ![]() |
|
![]() |
|
![]() ![]() |
Value Set: Yes No Unknown NotApplicable |
![]() ![]() |
Enable When: Not done yet |
![]() ![]() ![]() |
|
![]() ![]() |
Enable When: Not done yet |
![]() ![]() ![]() |
|
![]() |
|
![]() ![]() |
Options: 3 options |
![]() ![]() |
Enable When: Not done yet |
![]() ![]() ![]() |
|
![]() ![]() |
Enable When: Not done yet |
![]() ![]() ![]() |
|
![]() |
|
![]() ![]() |
Options: 3 options |
![]() ![]() |
Enable When: Not done yet |
![]() ![]() ![]() |
|
![]() ![]() |
Enable When: Not done yet |
![]() ![]() ![]() |
|
![]() |
|
![]() ![]() |
|
![]() ![]() |
Enable When: Not done yet |
![]() ![]() |
Enable When: Not done yet |
![]() ![]() |
|
![]() ![]() |
Enable When: Not done yet |
![]() ![]() |
Enable When: Not done yet |
![]() |
|
![]() ![]() |
Options: 6 options |
![]() ![]() |
Max Length: 100 Enable When: Not done yet |
Documentation for this format | |