| Package | hl7.fhir.uv.sdc |
| Resource Type | Questionnaire |
| Id | questionnaire-sdc-test-enableWhen |
| FHIR Version | R4 |
| Source | http://hl7.org/fhir/uv/sdc/https://build.fhir.org/ig/HL7/sdc/Questionnaire-questionnaire-sdc-test-enableWhen.html |
| URL | http://hl7.org/fhir/uv/sdc/Questionnaire/questionnaire-sdc-test-enableWhen |
| Version | 4.0.0-ballot |
| Status | active |
| Date | 2025-08-07T06:58:13+00:00 |
| Name | EnableWhenTests |
| Title | Enable When |
| Realm | uv |
| Authority | hl7 |
| Description | A test form that has a variety of enable when scenarios for testing |
No resources found
No resources found
Note: links and images are rebased to the (stated) source
Generated Narrative: Questionnaire questionnaire-sdc-test-enableWhen
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-ballot | |
![]() ![]() | 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 = |
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
{
"resourceType": "Questionnaire",
"id": "questionnaire-sdc-test-enableWhen",
"meta": {
"profile": [
"http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-behave"
]
},
"text": {
"status": "extensions",
"div": "<!-- snip (see above) -->"
},
"extension": [
{
"url": "http://hl7.org/fhir/5.0/StructureDefinition/extension-Questionnaire.versionAlgorithm%5Bx%5D",
"valueCoding": {
"system": "http://hl7.org/fhir/version-algorithm",
"code": "semver"
}
}
],
"url": "http://hl7.org/fhir/uv/sdc/Questionnaire/questionnaire-sdc-test-enableWhen",
"identifier": [
{
"system": "urn:ietf:rfc:3986",
"value": "urn:oid:2.16.840.1.113883.4.642.40.17.35.20"
}
],
"version": "4.0.0-ballot",
"name": "EnableWhenTests",
"title": "Enable When",
"status": "active",
"experimental": true,
"date": "2025-08-07T06:58:13+00:00",
"publisher": "HL7 International / FHIR Infrastructure",
"contact": [
{
"name": "HL7 International / FHIR Infrastructure",
"telecom": [
{
"system": "url",
"value": "http://www.hl7.org/Special/committees/fiwg"
}
]
},
{
"telecom": [
{
"system": "url",
"value": "http://www.hl7.org/Special/committees/fiwg"
}
]
}
],
"description": "A test form that has a variety of enable when scenarios for testing",
"jurisdiction": [
{
"coding": [
{
"system": "http://unstats.un.org/unsd/methods/m49/m49.htm",
"code": "001",
"display": "World"
}
]
}
],
"item": [
{
"linkId": "3239e619-e2b9-492c-bf05-88b314fbe3e4",
"text": "Scenario 1",
"type": "group",
"item": [
{
"linkId": "83d5c1a6-5dc3-44d0-9d9e-d687c72e143e",
"text": "Question 1 Check",
"type": "boolean"
},
{
"linkId": "fe0106a5-0e25-43a4-9820-7acb7e74d9d7",
"text": "Question 2 Check",
"type": "boolean"
},
{
"linkId": "s1-radio",
"text": "Question 3 Radio ( 1 2 3 )",
"type": "choice",
"repeats": false,
"answerOption": [
{
"valueCoding": {
"system": "http://example.org",
"code": "1",
"display": "One"
}
},
{
"valueCoding": {
"system": "http://example.org",
"code": "2",
"display": "Two"
}
},
{
"valueCoding": {
"system": "http://example.org",
"code": "3",
"display": "Three"
}
}
]
},
{
"linkId": "5e1209b7-c9e0-4bf4-b228-fr096s903m25",
"text": "Question 4 Radio ( 7 8 9 )",
"type": "choice",
"repeats": false,
"answerOption": [
{
"valueCoding": {
"system": "http://example.org",
"code": "7",
"display": "Seven"
}
},
{
"valueCoding": {
"system": "http://example.org",
"code": "8",
"display": "Eight"
}
},
{
"valueCoding": {
"system": "http://example.org",
"code": "9",
"display": "Nine"
}
}
]
},
{
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.org/fhir/questionnaire-item-control",
"code": "drop-down"
}
]
}
}
],
"linkId": "5e1209b7-c9e0-4bf4-b228-c6591b540qmo",
"text": "Question 3 - enables the question",
"type": "choice",
"repeats": false,
"answerOption": [
{
"valueCoding": {
"system": "http://example.org",
"code": "4",
"display": "Four"
}
},
{
"valueCoding": {
"system": "http://example.org",
"code": "5",
"display": "Five"
}
},
{
"valueCoding": {
"system": "http://example.org",
"code": "6",
"display": "Six"
}
}
]
},
{
"linkId": "e5da17a7-7546-45c5-9bcd-d0b09a74cc14",
"text": "Question hidden until Q1 checked",
"type": "string",
"enableWhen": [
{
"question": "83d5c1a6-5dc3-44d0-9d9e-d687c72e143e",
"operator": "=",
"answerBoolean": true
}
],
"enableBehavior": "all"
},
{
"linkId": "e5da17a7-7546-45c5-9bcd-d0b09a74ty76",
"text": "Question hidden until Q3 radio 2 Selected",
"type": "string",
"enableWhen": [
{
"question": "s1-radio",
"operator": "=",
"answerString": "2"
}
],
"enableBehavior": "all"
},
{
"linkId": "65578509-21ae-4a48-94de-e46b1e87d3fb",
"text": "Group hidden until enabled Q1 checked",
"type": "group",
"enableWhen": [
{
"question": "83d5c1a6-5dc3-44d0-9d9e-d687c72e143e",
"operator": "=",
"answerBoolean": true
}
],
"enableBehavior": "any",
"repeats": false,
"item": [
{
"linkId": "65578509-21ae-4a48-94de-e46b1e54kjui",
"text": "Question 2 - disable the group",
"type": "string"
}
]
},
{
"linkId": "3ca80fdf-6598-4dd7-b9df-8a2f10895e4e",
"text": "Group present until Q2 checked",
"type": "group",
"enableWhen": [
{
"question": "fe0106a5-0e25-43a4-9820-7acb7e74d9d7",
"operator": "=",
"answerBoolean": false
}
],
"enableBehavior": "any",
"repeats": false,
"item": [
{
"linkId": "65578509-21ae-4a48-94de-e46b1e10ghqn",
"text": "Question 2 - disable the group when unchecked",
"type": "string"
}
]
},
{
"linkId": "65578509-21ae-4a48-94de-e46be454f8k1",
"text": "Group hidden until radio 2 selected",
"type": "group",
"enableWhen": [
{
"question": "s1-radio",
"operator": "=",
"answerString": "2"
}
],
"enableBehavior": "any",
"repeats": false,
"item": [
{
"linkId": "65578509-21ae-4a48-94de-e46bd161lqzp",
"text": "Question 2 - disable the group",
"type": "string"
}
]
},
{
"linkId": "65578509-21ae-4a48-94de-h1l9v32opase",
"text": "Group hidden until dropdown selected",
"type": "group",
"enableWhen": [
{
"question": "5e1209b7-c9e0-4bf4-b228-c6591b540qmo",
"operator": "=",
"answerString": "4"
}
],
"enableBehavior": "any",
"repeats": false,
"item": [
{
"linkId": "65578509-21ae-sdj4-98s2-emhaskjh12",
"text": "Question 2 - disable the group",
"type": "string"
}
]
},
{
"linkId": "65578509-21ae-4a48-3f56-aswtysn1238",
"text": "Group hidden until 7 is undeleted",
"type": "group",
"enableWhen": [
{
"question": "5e1209b7-c9e0-4bf4-b228-fr096s903m25",
"operator": "!=",
"answerString": "7"
}
],
"enableBehavior": "any",
"repeats": false,
"item": [
{
"linkId": "65578509-21ae-234vy-slo4-eddfjqwwr2",
"text": "Question 2 - disable the group",
"type": "string"
}
]
},
{
"linkId": "76daed4f-f957-45cb-9584-aab95f6021d4",
"text": "Group hidden until 8 and 4 selected",
"type": "group",
"enableWhen": [
{
"question": "5e1209b7-c9e0-4bf4-b228-fr096s903m25",
"operator": "=",
"answerString": "8"
},
{
"question": "5e1209b7-c9e0-4bf4-b228-c6591b540qmo",
"operator": "=",
"answerString": "4"
}
],
"enableBehavior": "all",
"repeats": false,
"item": [
{
"linkId": "3cf51112-6896-4076-8994-b6ff3e52f359",
"text": "Question 2 - disable the group",
"type": "string"
}
]
}
]
},
{
"linkId": "02a7536f-06b2-4dee-94e1-f5cfcb0e8622",
"text": "Scenario 2",
"type": "group",
"item": [
{
"linkId": "1acf93a7-0890-44cd-be48-542defb35248",
"text": "Yes/No/Dont know/NA",
"type": "choice",
"answerValueSet": "http://terminology.hl7.org/ValueSet/yes-no-unknown-not-applicable"
},
{
"linkId": "945b97b5-6d74-4a55-9be1-1989751219fb",
"text": "Group visible when Yes selected",
"type": "group",
"enableWhen": [
{
"question": "1acf93a7-0890-44cd-be48-542defb35248",
"operator": "=",
"answerCoding": {
"system": "http://terminology.hl7.org/CodeSystem/v2-0532",
"code": "Y"
}
}
],
"enableBehavior": "any",
"item": [
{
"linkId": "840c08ad-4b27-4c1d-9d6e-824202518ad0",
"text": "Yes Question",
"type": "string"
}
]
},
{
"linkId": "fab7c5c4-0ac0-4afa-bd6d-c0ce4f5e0bdf",
"text": "Group visible when Yes/No",
"type": "group",
"enableWhen": [
{
"question": "1acf93a7-0890-44cd-be48-542defb35248",
"operator": "!=",
"answerCoding": {
"system": "http://terminology.hl7.org/CodeSystem/v2-0532",
"code": "ASKU"
}
}
],
"enableBehavior": "any",
"item": [
{
"linkId": "e78586ac-8c97-42a8-a56b-779c5c1d81f1",
"text": "Yes/No Question",
"type": "string"
}
]
}
]
},
{
"linkId": "02a7536f-06b2-4dee-94e1-f5cfcb0e1234",
"text": "Scenario 3: Comparator enable when with answeroption data",
"type": "group",
"item": [
{
"linkId": "s3-radio",
"text": "Integer Values Radio Buttons",
"type": "choice",
"repeats": false,
"answerOption": [
{
"valueCoding": {
"system": "http://example.org",
"code": "1.1",
"display": "1.1"
}
},
{
"valueCoding": {
"system": "http://example.org",
"code": "2.2",
"display": "2.2"
}
},
{
"valueCoding": {
"system": "http://example.org",
"code": "3.3",
"display": "3.3"
}
}
]
},
{
"linkId": "945b97b5-6d74-4a55-9be1-19897512jj89",
"text": "Group visible when value < 2.2",
"type": "group",
"enableWhen": [
{
"question": "s3-radio",
"operator": "<",
"answerDecimal": 2.1
}
],
"enableBehavior": "any",
"item": [
{
"linkId": "840c08ad-4b27-4c1d-9d6e-824202519kied",
"text": "Group 2 question",
"type": "string"
}
]
},
{
"linkId": "04fabc33-534a-4047-9a13-c13b0b63fa17",
"text": "Group visible when valuw >= 2.2",
"type": "group",
"enableWhen": [
{
"question": "s3-radio",
"operator": ">=",
"answerDecimal": 2.1
}
],
"enableBehavior": "any",
"item": [
{
"linkId": "e70a3a50-e646-4831-a00d-4d6fbdaajn84",
"text": "Group 3 question",
"type": "string"
}
]
}
]
},
{
"linkId": "02a7536f-06b2-4dee-94e1-f5cfcb0e5678",
"text": "Scenario 4: choice selections with groups",
"type": "group",
"item": [
{
"linkId": "s4-radio",
"text": "Integer Values Radio Buttons",
"type": "choice",
"repeats": false,
"answerOption": [
{
"valueCoding": {
"system": "http://example.org",
"code": "1",
"display": "1"
}
},
{
"valueCoding": {
"system": "http://example.org",
"code": "2",
"display": "2"
}
},
{
"valueCoding": {
"system": "http://example.org",
"code": "3",
"display": "3"
}
}
]
},
{
"linkId": "945b97b5-6d74-4a55-9be1-1989751233ew",
"text": "Group hidden until integer 2 selected",
"type": "group",
"enableWhen": [
{
"question": "s4-radio",
"operator": "=",
"answerInteger": 2
}
],
"enableBehavior": "any",
"item": [
{
"linkId": "840c08ad-4b27-4c1d-9d6e-82420251hg12",
"text": "Group 2 question",
"type": "string"
}
]
},
{
"linkId": "04fabc33-534a-4047-9a13-c13b0b63gh76",
"text": "Group visible for 1 and 2",
"type": "group",
"enableWhen": [
{
"question": "s4-radio",
"operator": "!=",
"answerInteger": 3
}
],
"enableBehavior": "any",
"item": [
{
"linkId": "e70a3a50-e646-4831-a00d-4d6fbdaaefc3",
"text": "Group 3 question",
"type": "string"
}
]
}
]
},
{
"linkId": "02a7536f-06b2-4dee-94e1-f5cfcb088990",
"text": "Scenario 5: Test EnableWhen Date Trigger",
"type": "group",
"item": [
{
"linkId": "date_of_birth_question",
"text": "Date of Birth",
"type": "date",
"repeats": false
},
{
"linkId": "date_greater_2000-01-01",
"text": "Please specify if DOB > 2000-01-01",
"type": "string",
"enableWhen": [
{
"question": "date_of_birth_question",
"operator": ">",
"answerDate": "2000-01-01"
}
],
"enableBehavior": "any"
},
{
"linkId": "date_less_2000-01-01",
"text": "Please specify if DOB is <= 2000-01-01",
"type": "string",
"enableWhen": [
{
"question": "date_of_birth_question",
"operator": "<=",
"answerDate": "2000-01-01"
}
],
"enableBehavior": "any"
},
{
"linkId": "datetime_question",
"text": "Please specify time",
"type": "time"
},
{
"linkId": "datetime_question_greter_than",
"text": "If Time Greater Than 11:11:11",
"type": "string",
"enableWhen": [
{
"question": "datetime_question",
"operator": ">",
"answerTime": "11:11:11"
}
],
"enableBehavior": "any"
},
{
"linkId": "datetime_question_less_than_equal",
"text": "If Time Less Than 11:11:11",
"type": "string",
"enableWhen": [
{
"question": "datetime_question",
"operator": "<=",
"answerTime": "11:11:11"
}
],
"enableBehavior": "any"
}
]
},
{
"linkId": "02a7536f-06b2-4dee-94e1-f5cfcb0hd732",
"text": "Scenario 6: Multi-select option enablewhen",
"type": "group",
"item": [
{
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.org/fhir/questionnaire-item-control",
"code": "drop-down"
}
]
}
}
],
"linkId": "BC029",
"text": "Adverse outcomes",
"type": "choice",
"repeats": true,
"answerOption": [
{
"valueCoding": {
"system": "http://example.org",
"code": "1",
"display": "Bleeding"
}
},
{
"valueCoding": {
"system": "http://example.org",
"code": "2",
"display": "Infection/sepsis"
}
},
{
"valueCoding": {
"system": "http://example.org",
"code": "3",
"display": "Perforation"
}
},
{
"valueCoding": {
"system": "http://example.org",
"code": "4",
"display": "Reaction to sedation"
}
},
{
"valueCoding": {
"system": "http://example.org",
"code": "5",
"display": "Death"
}
},
{
"valueCoding": {
"system": "http://example.org",
"code": "9",
"display": "Other"
}
}
]
},
{
"linkId": "BOWOPTOTH",
"text": "Please specify:",
"type": "string",
"enableWhen": [
{
"question": "BC029",
"operator": "=",
"answerCoding": {
"system": "http://example.org",
"code": "9"
}
}
],
"enableBehavior": "any",
"maxLength": 100
}
]
}
]
}