NUBIC/surveyor — Issue #240: Group within the group is not implemented (fails to compile)
Author: Nataliya
Created: 2011-10-27 15:36:33+00:00
State: open

Here is the snipped for the case:

survey "temp" do
section "INTRO", :reference_identifier=>"HOUSEHOLD_INVENTORY" do
q_LIVE_MOM "Plan to live with mom",
:pick => :one
a_1 "Yes"
a_2 "No"

group "Work and plans for childcare" do
dependency :rule=>"A"
condition_A :q_LIVE_MOM, "!=", :a_2

q_EMPLOY2 "Are you currently employed?",
:pick => :one,
:data_export_identifier=>"BIRTH_VISIT_LI.EMPLOY2"
a_1 "Yes"
a_2 "No"
a_neg_1 "Refused"
a_neg_2 "Don't know"

group "Job information" do
dependency :rule=>"A"
condition_A :q_EMPLOY2, "!=", :a_2

q_RETURN_JOB_YET "Have you returned to your current job?",
:pick => :one,
:data_export_identifier=>"BIRTH_VISIT_LI.RETURN_JOB_YET"
a_1 "Yes"
a_2 "No"
a_neg_1 "Refused"
a_neg_2 "Don't know"

q_RETURN_JOB_DT "When did you return to your job?",
:help_text => "Format as YYYYMMDD",
:pick => :one,
:data_export_identifier=>"BIRTH_VISIT_LI.RETURN_JOB_DT"
a_date "Date", :string
a_neg_1 "Refused"
a_neg_2 "Don't know"
dependency :rule=>"A"
condition_A :q_RETURN_JOB_YET, "==", :a_1

q_RETURN_JOB "When do you plan to return to your current job?",
:help_text => "Enter in numeric value. Verify if value > 1 year or > 12 months or > 52 weeks or > 365 days",
:pick => :one,
:data_export_identifier=>"BIRTH_VISIT_LI.RETURN_JOB"
a_num "Number", :integer
a_neg_7 "Doesn’t plan to return to work"
a_neg_1 "Refused"
a_neg_2 "Don't know"

q_RETURN_JOB_UNIT "When do you plan to return to your current job?",
:help_text => "Select associated unit of time. Verify if value > 1 year or > 12 months or > 52 weeks or > 365 days",
:pick => :one,
:data_export_identifier=>"BIRTH_VISIT_LI.RETURN_JOB_UNIT"
a_1 "Days"
a_2 "Weeks"
a_3 "Months"
a_4 "Years"
a_neg_7 "Doesn’t plan to return to work"
a_neg_1 "Refused"
a_neg_2 "Don't know"
end
end
end
end