To add a collaborator to this project you will need to use the Relish gem to add the collaborator via a terminal command. Soon you'll be able to also add collaborators here!
More about adding a collaboratorLOM 10.2 Multi-Question Dependencies
As a survey creator
I want to be able to have multi-question dependencies
So that I can lay the survey out logically
- Scenarios
-
- Multiple Questions with Multiple Dependencies
-
- Given
-
the survey
survey "Multi" do section "One" do q_1 "Stent Graft Explanted?", :pick => :one a_1 "Yes" a_2 "No" q_2 "Stent Graft Incorporated into the Aorta?", :pick => :one a_1 "Yep" a_2 "Nope" q_3 "Was the procedure a success?", :pick => :one a_1 "Yes" a_2 "No" dependency :rule => "A and B" condition_A :q_1, "==", :a_1 condition_B :q_2, "==", :a_1 q_4 "Did the Patient survive?", :pick => :one a_1 "Yes" a_2 "No" dependency :rule => "A and B" condition_A :q_1, "==", :a_1 condition_B :q_2, "==", :a_1 end end
- Given
- I am signed in
- When
- I start the "Multi" survey
- And
- I choose "Yes"
- And
- I choose "Yep"
- Then
- the question "Was the procedure a success?" should now be triggered
- Then
- the question "Did the Patient survive?" should now be triggered
- Two sets of questions with multiple dependencies
-
- Given
-
the survey
survey "Multi" do section "One" do q_1 "Stent Graft Explanted?", :pick => :one a_1 "Yes" a_2 "No" q_2 "Stent Graft Incorporated into the Aorta?", :pick => :one a_1 "Yep" a_2 "Nope" q_3 "Was the procedure a success?", :pick => :one a_1 "Yes" a_2 "No" dependency :rule => "A and B" condition_A :q_1, "==", :a_1 condition_B :q_2, "==", :a_1 q_4 "Did the Patient survive?", :pick => :one a_1 "Yes" a_2 "No" dependency :rule => "A and B" condition_A :q_1, "==", :a_1 condition_B :q_2, "==", :a_1 q_5 "Standard Stent?", :pick => :one a_1 "Yes" a_2 "No" dependency :rule => "A and B" condition_A :q_1, "==", :a_2 condition_B :q_2, "==", :a_2 q_6 "Standard procedure?", :pick => :one a_1 "Yes" a_2 "No" dependency :rule => "A and B" condition_A :q_1, "==", :a_2 condition_B :q_2, "==", :a_2 end end
- When
- I start the "Multi" survey
- And
- I choose "No"
- And
- I choose "Nope"
- Then
- the question "Standard Stent?" should now be triggered
- Then
- the question "Standard procedure?" should now be triggered
Last published almost 7 years ago by wminsinger.