Structured Data Capture
4.0.0 - International flag

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

Questionnaire: Enable When (Experimental)

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

Structure
LinkIDTextCardinalityTypeDescription & Constraintsdoco
.. EnableWhenTests 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
... 3239e619-e2b9-492c-bf05-88b314fbe3e4 Scenario 1 0..1 group
.... 83d5c1a6-5dc3-44d0-9d9e-d687c72e143e Question 1 Check 0..1 boolean
.... fe0106a5-0e25-43a4-9820-7acb7e74d9d7 Question 2 Check 0..1 boolean
.... s1-radio Question 3 Radio ( 1 2 3 ) 0..1 choice Options: 3 options
.... 5e1209b7-c9e0-4bf4-b228-fr096s903m25 Question 4 Radio ( 7 8 9 ) 0..1 choice Options: 3 options
.... 5e1209b7-c9e0-4bf4-b228-c6591b540qmo Question 3 - enables the question 0..1 choice Options: 3 options
.... e5da17a7-7546-45c5-9bcd-d0b09a74cc14 Question hidden until Q1 checked 0..1 string Enable When: 83d5c1a6-5dc3-44d0-9d9e-d687c72e143e =
.... e5da17a7-7546-45c5-9bcd-d0b09a74ty76 Question hidden until Q3 radio 2 Selected 0..1 string Enable When: s1-radio =
.... 65578509-21ae-4a48-94de-e46b1e87d3fb Group hidden until enabled Q1 checked 0..1 group Enable When: 83d5c1a6-5dc3-44d0-9d9e-d687c72e143e =
..... 65578509-21ae-4a48-94de-e46b1e54kjui Question 2 - disable the group 0..1 string
.... 3ca80fdf-6598-4dd7-b9df-8a2f10895e4e Group present until Q2 checked 0..1 group Enable When: fe0106a5-0e25-43a4-9820-7acb7e74d9d7 =
..... 65578509-21ae-4a48-94de-e46b1e10ghqn Question 2 - disable the group when unchecked 0..1 string
.... 65578509-21ae-4a48-94de-e46be454f8k1 Group hidden until radio 2 selected 0..1 group Enable When: s1-radio =
..... 65578509-21ae-4a48-94de-e46bd161lqzp Question 2 - disable the group 0..1 string
.... 65578509-21ae-4a48-94de-h1l9v32opase Group hidden until dropdown selected 0..1 group Enable When: 5e1209b7-c9e0-4bf4-b228-c6591b540qmo =
..... 65578509-21ae-sdj4-98s2-emhaskjh12 Question 2 - disable the group 0..1 string
.... 65578509-21ae-4a48-3f56-aswtysn1238 Group hidden until 7 is undeleted 0..1 group Enable When: 5e1209b7-c9e0-4bf4-b228-fr096s903m25 !=
..... 65578509-21ae-234vy-slo4-eddfjqwwr2 Question 2 - disable the group 0..1 string
.... 76daed4f-f957-45cb-9584-aab95f6021d4 Group hidden until 8 and 4 selected 0..1 group Enable When:
..... 3cf51112-6896-4076-8994-b6ff3e52f359 Question 2 - disable the group 0..1 string
... 02a7536f-06b2-4dee-94e1-f5cfcb0e8622 Scenario 2 0..1 group
.... 1acf93a7-0890-44cd-be48-542defb35248 Yes/No/Dont know/NA 0..1 choice Value Set: Yes No Unknown NotApplicable
.... 945b97b5-6d74-4a55-9be1-1989751219fb Group visible when Yes selected 0..1 group Enable When: 1acf93a7-0890-44cd-be48-542defb35248 =
..... 840c08ad-4b27-4c1d-9d6e-824202518ad0 Yes Question 0..1 string
.... fab7c5c4-0ac0-4afa-bd6d-c0ce4f5e0bdf Group visible when Yes/No 0..1 group Enable When: 1acf93a7-0890-44cd-be48-542defb35248 !=
..... e78586ac-8c97-42a8-a56b-779c5c1d81f1 Yes/No Question 0..1 string
... 02a7536f-06b2-4dee-94e1-f5cfcb0e1234 Scenario 3: Comparator enable when with answeroption data 0..1 group
.... s3-radio Integer Values Radio Buttons 0..1 choice Options: 3 options
.... 945b97b5-6d74-4a55-9be1-19897512jj89 Group visible when value < 2.2 0..1 group Enable When: s3-radio <
..... 840c08ad-4b27-4c1d-9d6e-824202519kied Group 2 question 0..1 string
.... 04fabc33-534a-4047-9a13-c13b0b63fa17 Group visible when valuw >= 2.2 0..1 group Enable When: s3-radio >=
..... e70a3a50-e646-4831-a00d-4d6fbdaajn84 Group 3 question 0..1 string
.... s4-radio Integer Values Radio Buttons 0..1 choice Options: 3 options
.... 945b97b5-6d74-4a55-9be1-1989751233ew Group hidden until integer 2 selected 0..1 group Enable When: s4-radio =
..... 840c08ad-4b27-4c1d-9d6e-82420251hg12 Group 2 question 0..1 string
.... 04fabc33-534a-4047-9a13-c13b0b63gh76 Group visible for 1 and 2 0..1 group Enable When: s4-radio !=
..... e70a3a50-e646-4831-a00d-4d6fbdaaefc3 Group 3 question 0..1 string
... 02a7536f-06b2-4dee-94e1-f5cfcb088990 Scenario 5: Test EnableWhen Date Trigger 0..1 group
.... date_of_birth_question Date of Birth 0..1 date
.... date_greater_2000-01-01 Please specify if DOB > 2000-01-01 0..1 string Enable When: date_of_birth_question >
.... date_less_2000-01-01 Please specify if DOB is <= 2000-01-01 0..1 string Enable When: date_of_birth_question <=
.... datetime_question Please specify time 0..1 time
.... datetime_question_greter_than If Time Greater Than 11:11:11 0..1 string Enable When: datetime_question >
.... datetime_question_less_than_equal If Time Less Than 11:11:11 0..1 string Enable When: datetime_question <=
... 02a7536f-06b2-4dee-94e1-f5cfcb0hd732 Scenario 6: Multi-select option enablewhen 0..1 group
.... BC029 Adverse outcomes 0..* choice Options: 6 options
.... BOWOPTOTH Please specify: 0..1 string Max Length: 100
Enable When: BC029 =

doco Documentation for this format

Options Sets

Answer options for s1-radio

  • http://example.org#1 ("One")
  • http://example.org#2 ("Two")
  • http://example.org#3 ("Three")

Answer options for 5e1209b7-c9e0-4bf4-b228-fr096s903m25

  • http://example.org#7 ("Seven")
  • http://example.org#8 ("Eight")
  • http://example.org#9 ("Nine")

Answer options for 5e1209b7-c9e0-4bf4-b228-c6591b540qmo

  • http://example.org#4 ("Four")
  • http://example.org#5 ("Five")
  • http://example.org#6 ("Six")

Answer options for s3-radio

  • http://example.org#1.1 ("1.1")
  • http://example.org#2.2 ("2.2")
  • http://example.org#3.3 ("3.3")

Answer options for s4-radio

  • http://example.org#1 ("1")
  • http://example.org#2 ("2")
  • http://example.org#3 ("3")

Answer options for BC029

  • http://example.org#1 ("Bleeding")
  • http://example.org#2 ("Infection/sepsis")
  • http://example.org#3 ("Perforation")
  • http://example.org#4 ("Reaction to sedation")
  • http://example.org#5 ("Death")
  • http://example.org#9 ("Other")

Scenario 1

  • linkId: 3239e619-e2b9-492c-bf05-88b314fbe3e4

Question 1 Check

  • linkId: 83d5c1a6-5dc3-44d0-9d9e-d687c72e143e

Question 2 Check

  • linkId: fe0106a5-0e25-43a4-9820-7acb7e74d9d7

Question 3 Radio ( 1 2 3 )

Question 4 Radio ( 7 8 9 )

Question 3 - enables the question

Question hidden until Q1 checked

  • linkId: e5da17a7-7546-45c5-9bcd-d0b09a74cc14
  • Enable When: todo

Question hidden until Q3 radio 2 Selected

  • linkId: e5da17a7-7546-45c5-9bcd-d0b09a74ty76
  • Enable When: todo

Group hidden until enabled Q1 checked

  • linkId: 65578509-21ae-4a48-94de-e46b1e87d3fb
  • Enable When: todo

Question 2 - disable the group

  • linkId: 65578509-21ae-4a48-94de-e46b1e54kjui

Group present until Q2 checked

  • linkId: 3ca80fdf-6598-4dd7-b9df-8a2f10895e4e
  • Enable When: todo

Question 2 - disable the group when unchecked

  • linkId: 65578509-21ae-4a48-94de-e46b1e10ghqn

Group hidden until radio 2 selected

  • linkId: 65578509-21ae-4a48-94de-e46be454f8k1
  • Enable When: todo

Question 2 - disable the group

  • linkId: 65578509-21ae-4a48-94de-e46bd161lqzp

Group hidden until dropdown selected

  • linkId: 65578509-21ae-4a48-94de-h1l9v32opase
  • Enable When: todo

Question 2 - disable the group

  • linkId: 65578509-21ae-sdj4-98s2-emhaskjh12

Group hidden until 7 is undeleted

  • linkId: 65578509-21ae-4a48-3f56-aswtysn1238
  • Enable When: todo

Question 2 - disable the group

  • linkId: 65578509-21ae-234vy-slo4-eddfjqwwr2

Group hidden until 8 and 4 selected

  • linkId: 76daed4f-f957-45cb-9584-aab95f6021d4
  • Enable When: todo

Question 2 - disable the group

  • linkId: 3cf51112-6896-4076-8994-b6ff3e52f359

Scenario 2

  • linkId: 02a7536f-06b2-4dee-94e1-f5cfcb0e8622

Yes/No/Dont know/NA

Group visible when Yes selected

  • linkId: 945b97b5-6d74-4a55-9be1-1989751219fb
  • Enable When: todo

Yes Question

  • linkId: 840c08ad-4b27-4c1d-9d6e-824202518ad0

Group visible when Yes/No

  • linkId: fab7c5c4-0ac0-4afa-bd6d-c0ce4f5e0bdf
  • Enable When: todo

Yes/No Question

  • linkId: e78586ac-8c97-42a8-a56b-779c5c1d81f1

Scenario 3: Comparator enable when with answeroption data

  • linkId: 02a7536f-06b2-4dee-94e1-f5cfcb0e1234

Integer Values Radio Buttons

Group visible when value < 2.2

  • linkId: 945b97b5-6d74-4a55-9be1-19897512jj89
  • Enable When: todo

Group 2 question

  • linkId: 840c08ad-4b27-4c1d-9d6e-824202519kied

Group visible when valuw >= 2.2

  • linkId: 04fabc33-534a-4047-9a13-c13b0b63fa17
  • Enable When: todo

Group 3 question

  • linkId: e70a3a50-e646-4831-a00d-4d6fbdaajn84

Scenario 4: choice selections with groups

  • linkId: 02a7536f-06b2-4dee-94e1-f5cfcb0e5678

Integer Values Radio Buttons

Group hidden until integer 2 selected

  • linkId: 945b97b5-6d74-4a55-9be1-1989751233ew
  • Enable When: todo

Group 2 question

  • linkId: 840c08ad-4b27-4c1d-9d6e-82420251hg12

Group visible for 1 and 2

  • linkId: 04fabc33-534a-4047-9a13-c13b0b63gh76
  • Enable When: todo

Group 3 question

  • linkId: e70a3a50-e646-4831-a00d-4d6fbdaaefc3

Scenario 5: Test EnableWhen Date Trigger

  • linkId: 02a7536f-06b2-4dee-94e1-f5cfcb088990

Date of Birth

  • linkId: date_of_birth_question

Please specify if DOB > 2000-01-01

  • linkId: date_greater_2000-01-01
  • Enable When: todo

Please specify if DOB is <= 2000-01-01

  • linkId: date_less_2000-01-01
  • Enable When: todo

Please specify time

  • linkId: datetime_question

If Time Greater Than 11:11:11

  • linkId: datetime_question_greter_than
  • Enable When: todo

If Time Less Than 11:11:11

  • linkId: datetime_question_less_than_equal
  • Enable When: todo

Scenario 6: Multi-select option enablewhen

  • linkId: 02a7536f-06b2-4dee-94e1-f5cfcb0hd732

Adverse outcomes

Please specify:

  • linkId: BOWOPTOTH
  • Max Length:: 100
  • Enable When: todo

LinkIDDescription & Constraintsdoco
.. 3239e619-e2b9-492c-bf05-88b314fbe3e4
... 83d5c1a6-5dc3-44d0-9d9e-d687c72e143e
... fe0106a5-0e25-43a4-9820-7acb7e74d9d7
... s1-radio Options: 3 options
... 5e1209b7-c9e0-4bf4-b228-c6591b540qmo Options: 3 options
... e5da17a7-7546-45c5-9bcd-d0b09a74cc14 Enable When: Not done yet
... e5da17a7-7546-45c5-9bcd-d0b09a74ty76 Enable When: Not done yet
... 65578509-21ae-4a48-94de-e46b1e87d3fb Enable When: Not done yet
.... 65578509-21ae-4a48-94de-e46b1e54kjui
... 3ca80fdf-6598-4dd7-b9df-8a2f10895e4e Enable When: Not done yet
.... 65578509-21ae-4a48-94de-e46b1e10ghqn
... 65578509-21ae-4a48-94de-e46be454f8k1 Enable When: Not done yet
.... 65578509-21ae-4a48-94de-e46bd161lqzp
... 65578509-21ae-4a48-94de-h1l9v32opase Enable When: Not done yet
.... 65578509-21ae-sdj4-98s2-emhaskjh12
... 65578509-21ae-4a48-3f56-aswtysn1238 Enable When: Not done yet
.... 65578509-21ae-234vy-slo4-eddfjqwwr2
... 76daed4f-f957-45cb-9584-aab95f6021d4 Enable When: Not done yet
.... 3cf51112-6896-4076-8994-b6ff3e52f359
.. 02a7536f-06b2-4dee-94e1-f5cfcb0e8622
... 1acf93a7-0890-44cd-be48-542defb35248 Value Set: Yes No Unknown NotApplicable
... 945b97b5-6d74-4a55-9be1-1989751219fb Enable When: Not done yet
.... 840c08ad-4b27-4c1d-9d6e-824202518ad0
... fab7c5c4-0ac0-4afa-bd6d-c0ce4f5e0bdf Enable When: Not done yet
.... e78586ac-8c97-42a8-a56b-779c5c1d81f1
.. 02a7536f-06b2-4dee-94e1-f5cfcb0e1234
... s3-radio Options: 3 options
... 945b97b5-6d74-4a55-9be1-19897512jj89 Enable When: Not done yet
.... 840c08ad-4b27-4c1d-9d6e-824202519kied
... 04fabc33-534a-4047-9a13-c13b0b63fa17 Enable When: Not done yet
.... e70a3a50-e646-4831-a00d-4d6fbdaajn84
.. 02a7536f-06b2-4dee-94e1-f5cfcb0e5678
... s4-radio Options: 3 options
... 945b97b5-6d74-4a55-9be1-1989751233ew Enable When: Not done yet
.... 840c08ad-4b27-4c1d-9d6e-82420251hg12
... 04fabc33-534a-4047-9a13-c13b0b63gh76 Enable When: Not done yet
.... e70a3a50-e646-4831-a00d-4d6fbdaaefc3
.. 02a7536f-06b2-4dee-94e1-f5cfcb088990
... date_of_birth_question
... date_greater_2000-01-01 Enable When: Not done yet
... date_less_2000-01-01 Enable When: Not done yet
... datetime_question
... datetime_question_greter_than Enable When: Not done yet
... datetime_question_less_than_equal Enable When: Not done yet
.. 02a7536f-06b2-4dee-94e1-f5cfcb0hd732
... BC029 Options: 6 options
... BOWOPTOTH Max Length: 100
Enable When: Not done yet

doco Documentation for this format

Test this Questionnaire

Try this questionnaire out:

    Responses for this Questionnaire