Structured Data Capture
2.8.0 - CI Build

Structured Data Capture, published by HL7 International - FHIR Infrastructure Work Group. This is not an authorized publication; it is the continuous build for version 2.8.0). This version is based on the current content of https://github.com/HL7/sdc/ and changes regularly. See the Directory of published versions

Example Questionnaire: SDC Test Form - Enable When

Structure
LinkIdTextCardinalityTypeDescription & Constraintsdoco
.. EnableWhenTestsQuestionnaireA test form that has a variety of enable when scenarios for testing
... 3239e619-e2b9-492c-bf05-88b314fbe3e4Scenario 10..1group
.... 83d5c1a6-5dc3-44d0-9d9e-d687c72e143eQuestion 1 Check0..1boolean
.... fe0106a5-0e25-43a4-9820-7acb7e74d9d7Question 2 Check0..1boolean
.... s1-radioQuestion 3 Radio ( 1 2 3 )0..1choiceOptions: 3 options
.... 5e1209b7-c9e0-4bf4-b228-fr096s903m25Question 4 Radio ( 7 8 9 )0..1choiceOptions: 3 options
.... 5e1209b7-c9e0-4bf4-b228-c6591b540qmoQuestion 3 - enables the question0..1choiceOptions: 3 options
.... e5da17a7-7546-45c5-9bcd-d0b09a74cc14Question hidden until Q1 checked0..1stringEnable When:
.... e5da17a7-7546-45c5-9bcd-d0b09a74cc14Question hidden until Q3 radio 2 Selected0..1stringEnable When:
.... 65578509-21ae-4a48-94de-e46b1e87d3fbGroup hidden until enabled Q1 checked0..1groupEnable When:
..... 65578509-21ae-4a48-94de-e46b1e54kjuiQuestion 2 - disable the group0..1string
.... 3ca80fdf-6598-4dd7-b9df-8a2f10895e4eGroup present until Q2 checked0..1groupEnable When:
..... 65578509-21ae-4a48-94de-e46b1e10ghqnQuestion 2 - disable the group when unchecked0..1string
.... 65578509-21ae-4a48-94de-e46be454f8k1Group hidden until radio 2 selected0..1groupEnable When:
..... 65578509-21ae-4a48-94de-e46bd161lqzpQuestion 2 - disable the group0..1string
.... 65578509-21ae-4a48-94de-h1l9v32opaseGroup hidden until dropdown selected0..1groupEnable When:
..... 65578509-21ae-sdj4-98s2-emhaskjh12Question 2 - disable the group0..1string
.... 65578509-21ae-4a48-3f56-aswtysn1238Group hidden until 7 is undeleted0..1groupEnable When:
..... 65578509-21ae-234vy-slo4-eddfjqwwr2Question 2 - disable the group0..1string
.... 76daed4f-f957-45cb-9584-aab95f6021d4Group hidden until 8 and 4 selected0..1groupEnable When:
..... 3cf51112-6896-4076-8994-b6ff3e52f359Question 2 - disable the group0..1string
... 02a7536f-06b2-4dee-94e1-f5cfcb0e8622Scenario 20..1group
.... 1acf93a7-0890-44cd-be48-542defb35248Yes/No/Dont know0..1choiceValue Set: http://sqlonfhir-r4.azurewebsites.net/fhir/ValueSet/a015b6a1ac024dc19baec940be2c1695
.... 945b97b5-6d74-4a55-9be1-1989751219fbGroup visible when Yes selected0..1groupEnable When:
..... 840c08ad-4b27-4c1d-9d6e-824202518ad0Yes Question0..1string
.... fab7c5c4-0ac0-4afa-bd6d-c0ce4f5e0bdfGroup visible when Yes/No0..1groupEnable When:
..... e78586ac-8c97-42a8-a56b-779c5c1d81f1Yes/No Question0..1string
... 02a7536f-06b2-4dee-94e1-f5cfcb0e8622Scenario 3: Comparator enable when with answeroption data0..1group
.... s3-radioInteger Values Radio Buttons0..1choiceOptions: 3 options
.... 945b97b5-6d74-4a55-9be1-1989751219fbGroup visible when value < 2.20..1groupEnable When:
..... 840c08ad-4b27-4c1d-9d6e-824202518ad0Group 2 question0..1string
.... 04fabc33-534a-4047-9a13-c13b0b63fa17Group visible when valuw >= 2.20..1groupEnable When:
..... e70a3a50-e646-4831-a00d-4d6fbdaaefc3Group 3 question0..1string
... 02a7536f-06b2-4dee-94e1-f5cfcb0e8622Scenario 4: choice selections with groups0..1group
.... s4-radioInteger Values Radio Buttons0..1choiceOptions: 3 options
.... 945b97b5-6d74-4a55-9be1-1989751219fbGroup hidden until integer 2 selected0..1groupEnable When:
..... 840c08ad-4b27-4c1d-9d6e-824202518ad0Group 2 question0..1string
.... 04fabc33-534a-4047-9a13-c13b0b63fa17Group visible for 1 and 20..1groupEnable When:
..... e70a3a50-e646-4831-a00d-4d6fbdaaefc3Group 3 question0..1string
... 02a7536f-06b2-4dee-94e1-f5cfcb0e8622Scenario 5: Test EnableWhen Date Trigger0..1group
.... date_of_birth_questionDate of Birth0..1date
.... date_greater_2000-01-01Please specify if DOB > 2000-01-010..1stringEnable When:
.... date_less_2000-01-01Please specify if DOB is <= 2000-01-010..1stringEnable When:
.... datetime_questionPlease specify time0..1time
.... datetime_question_greter_thanIf Time Greater Than 11:11:110..1stringEnable When:
.... datetime_question_less_than_equalIf Time Less Than 11:11:110..1stringEnable When:
... 02a7536f-06b2-4dee-94e1-f5cfcb0e8622Scenario 6: Multi-select option enablewhen0..1group
.... BC029Adverse outcomes0..*choiceOptions: 6 options
.... BOWOPTOTHPlease specify:0..1stringMax Length: 100
Enable When:

doco Documentation for this format

Option Sets

Answer options for s1-radio

  • null#1 ("One")
  • null#2 ("Two")
  • null#3 ("Three")

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

  • null#7 ("Seven")
  • null#8 ("Eight")
  • null#9 ("Nine")

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

  • null#4 ("Four")
  • null#5 ("Five")
  • null#6 ("Six")

Answer options for s3-radio

  • null#1.1 ("1.1")
  • null#2.2 ("2.2")
  • null#3.3 ("3.3")

Answer options for s4-radio

  • null#1 ("1")
  • null#2 ("2")
  • null#3 ("3")

Answer options for BC029

  • null#1 ("Bleeding")
  • null#2 ("Infection/sepsis")
  • null#3 ("Perforation")
  • null#4 ("Reaction to sedation")
  • null#5 ("Death")
  • null#9 ("Other")