Routing for UAS122

currentage := calcAge(dateofbirth_year, dateofbirth_month, dateofbirth_day)
l_intro
Thank you for participating! This survey will provide you with some information about health in America, and then you will be asked some questions about what you expect for your health and that of the population in the future.
l001 := gender
if l001 = empty then
l001 (gender)
What is your gender?
1 Male
2 Female
End of if
l001_dummy := l001
l002 := currentage
if l002 = empty then
l002 (age)
What is your age?
RANGE 0..120
End of if
if l020_randomizer = empty then
l020_randomizer := mt_rand(1,5)
End of if
FL_left := getYearsLeft(l002, l001)
FL_left2 := l002 + FL_left
if l020_randomizer = 1 then
fl_l020_1
The National Center for Health Statistics provides information about the nation’s health. The Center monitors trends in the population's life expectancy and publishes results every few years. The latest estimates show that an average [gender[]] who is [age[]] in 2018 can expect to live an additional [[]] years. That means that a [age[]] year-old [gender[]] has a life expectancy of more than [[]]2 years.
elseif l020_randomizer = 2 then
fl_l020_2
There were around 4 million births in the United States last year. This means that for every 1,000 people, 12.4 babies were born. The birthrate in the United States has gone down overall in the last 15+ years. Fewer babies are born now than there were in 1990. The US ranks 158 in the world in terms of birth rates. That means that 157 countries have more babies per 1,000 people, and 68 countries have fewer babies.
elseif l020_randomizer = 3 then
fl_l020_1
The National Center for Health Statistics provides information about the nation’s health. The Center monitors trends in the population's life expectancy and publishes results every few years. The latest estimates show that an average [gender[]] who is [age[]] in 2018 can expect to live an additional [[]] years. That means that a [age[]] year-old [gender[]] has a life expectancy of more than [[]]2 years.
fl_l020_3
Researchers and health professionals are saying that very long lives are the probable destiny of most people alive today. People are living longer today than they ever did in human history, and recent medical advances can extend lifespans even more. For example, men and women ages 50 to 64 who were diagnosed in 2010 with certain types of cancer were about 50% more likely to be alive five years after diagnosis than people of the same age diagnosed in 1995. Developments in medical treatment for all kinds of conditions continue today at an accelerated pace.
if l001 = 1 then
fl_l020_4
Many people are surprised by how long life expectancy is today. Consider the story of Mr. Carson. Mr. Carson turned 77 in 2018. He was born in 1941 in Cleveland, OH, the youngest of five children. His father was a clerk in a local furniture business, and his mother was a home-maker. Mr. Carson's father retired from his job at age 65 in 1972, and died the following year of prostate cancer. His mother lived to age 70, when she died of coronary heart disease.

Mr. Carson and his siblings were all in their 30s and 40s when their parents died, and they moved on with their lives. Tragically, the oldest sibling passed away at 52, also of coronary heart disease. He had been diagnosed early, and although he was prescribed medications and lifestyle changes, he had failed to follow doctors’ advice and had not taken good care of himself.

After his passing, Mr. Carson and his other siblings worried that they would also die relatively young. They were all sure they would not live past age 70 (like their mother), and probably less.

In the years after their brother's death, one of the four remaining siblings was diagnosed with Type II diabetes, and another one developed rheumatoid arthritis. They received medical treatment for their conditions and survived long past 70. Now, all four Carson children are alive and doing well, and Mr. Carson, who is the youngest and 77, could not be happier about it.
Else
fl_l020_5
Many people are surprised by how long life expectancy is today. Consider the story of Ms. Carson. Ms. Carson turned 77 in 2018. She was born in 1941 in Cleveland, OH, the youngest of five children. Her father was a clerk in a local furniture business, and her mother was a home-maker. Ms. Carson's father retired from his job at age 65 in 1972, and died the following year of prostate cancer. Her mother lived to age 70, when she died of coronary heart disease.

Ms. Carson and her siblings were all in their 30s and 40s when their parents died, and they moved on with their lives. Tragically, the oldest sibling passed away at 52, also of coronary heart disease. He had been diagnosed early, and although he was prescribed medications and lifestyle changes, he had failed to follow doctors’ advice and had not taken good care of himself.

After his passing, Ms. Carson and her other siblings worried that they would also die relatively young. They were all sure they would not live past age 70 (like their mother), and probably less.

In the years after their brother’s death, one of the four remaining siblings was diagnosed with Type II diabetes, and another one developed rheumatoid arthritis. They received medical treatment for their conditions and survived long past 70. Now, all four Carson children are alive and doing well, and Ms. Carson, who is the youngest and 77, could not be happier about it.
End of if
elseif l020_randomizer = 4 then
FL_p := getProbabilities(l002, l001)
FL_p75 := FL_p[1]
FL_p85 := FL_p[2]
FL_p95 := FL_p[3]
if l001 = 1 then
FL_l020_7
On average, men born in the same year as you have an [[]] in 100 chance of living to age 75, a [[]] in 100 chance of living to age 85 and a [[]] in 100 chance of living to age 95.
Else
FL_l020_6
On average, women born in the same year as you have an [[]] in 100 chance of living to age 75, a [[]] in 100 chance of living to age 85 and a [[]] in 100 chance of living to age 95.
End of if
elseif l020_randomizer = 5 then
fl_l020_3
Researchers and health professionals are saying that very long lives are the probable destiny of most people alive today. People are living longer today than they ever did in human history, and recent medical advances can extend lifespans even more. For example, men and women ages 50 to 64 who were diagnosed in 2010 with certain types of cancer were about 50% more likely to be alive five years after diagnosis than people of the same age diagnosed in 1995. Developments in medical treatment for all kinds of conditions continue today at an accelerated pace.
if l001 = 1 then
fl_l020_4
Many people are surprised by how long life expectancy is today. Consider the story of Mr. Carson. Mr. Carson turned 77 in 2018. He was born in 1941 in Cleveland, OH, the youngest of five children. His father was a clerk in a local furniture business, and his mother was a home-maker. Mr. Carson's father retired from his job at age 65 in 1972, and died the following year of prostate cancer. His mother lived to age 70, when she died of coronary heart disease.

Mr. Carson and his siblings were all in their 30s and 40s when their parents died, and they moved on with their lives. Tragically, the oldest sibling passed away at 52, also of coronary heart disease. He had been diagnosed early, and although he was prescribed medications and lifestyle changes, he had failed to follow doctors’ advice and had not taken good care of himself.

After his passing, Mr. Carson and his other siblings worried that they would also die relatively young. They were all sure they would not live past age 70 (like their mother), and probably less.

In the years after their brother's death, one of the four remaining siblings was diagnosed with Type II diabetes, and another one developed rheumatoid arthritis. They received medical treatment for their conditions and survived long past 70. Now, all four Carson children are alive and doing well, and Mr. Carson, who is the youngest and 77, could not be happier about it.
Else
fl_l020_5
Many people are surprised by how long life expectancy is today. Consider the story of Ms. Carson. Ms. Carson turned 77 in 2018. She was born in 1941 in Cleveland, OH, the youngest of five children. Her father was a clerk in a local furniture business, and her mother was a home-maker. Ms. Carson's father retired from his job at age 65 in 1972, and died the following year of prostate cancer. Her mother lived to age 70, when she died of coronary heart disease.

Ms. Carson and her siblings were all in their 30s and 40s when their parents died, and they moved on with their lives. Tragically, the oldest sibling passed away at 52, also of coronary heart disease. He had been diagnosed early, and although he was prescribed medications and lifestyle changes, he had failed to follow doctors’ advice and had not taken good care of himself.

After his passing, Ms. Carson and her other siblings worried that they would also die relatively young. They were all sure they would not live past age 70 (like their mother), and probably less.

In the years after their brother’s death, one of the four remaining siblings was diagnosed with Type II diabetes, and another one developed rheumatoid arthritis. They received medical treatment for their conditions and survived long past 70. Now, all four Carson children are alive and doing well, and Ms. Carson, who is the youngest and 77, could not be happier about it.
End of if
End of if
Group of questions presented on the same screen
l021a (percent chance live to 75)
In the following questions, we would like for you to give a number from 0 to 100, where 0 means that you think there is absolutely no chance, and 100 means that you think the event is absolutely sure to happen.

What is the percent chance that you will live to be 75?
l021b (percent chance live to 85)
What is the percent chance that you will live to be 85?
End of group of questions
l022 (agree with statement)
How strongly do you agree or disagree with the following statement? Please give your answer on a scale of 1 to 7 where:
1 = "Strongly Disagree," 7 = "Strongly Agree,” and 4 = "Neither Agree Nor Disagree”.
You can use any number from 1 to 7.

I am pretty good at math.
1 1 - Strongly Disagree
2 2
3 3
4 4 - Neither Agree nor Disagree
5 5
6 6
7 7 - Strongly Agree
cnt := 2
if vignette_randomizer = empty then
vignette_randomizer := mt_rand(1,2)
End of if
if vignette_name_randomizer = empty then
vignette_name_randomizer := mt_rand(1,2)
End of if
Fill code of question 'FLName' executed
Fill code of question 'FLHimHer' executed
Fill code of question 'FLHisHer' executed
Fill code of question 'FLHisHerCAPS' executed
Fill code of question 'FLHeShe' executed
Fill code of question 'FLHeSheFlipped' executed
Fill code of question 'FLHeSheCAPS' executed
Fill code of question 'FLWidow' executed
Fill code of question 'FLHusband' executed
Fill code of question 'FLGentlemen' executed
if vignette_randomizer = 1 then
vignetteA
Next, we will show you a short story about an older person. Please pay attention to the story as you will be asked some questions about it on the following screen.

[John/Janet] is a 75-year-old retired [gentleman/retiree]. [He/She] has been so forgetful lately that [his/her] [wife/husband] needs to remind [him/her] each morning of [his/her] daily appointments. Even with reminders, [he/she] often gets mixed up about what [he/she] has planned for the day. Over the last few years, [he/she] has stopped doing home maintenance and is much more likely to lose things. [He/She] has been less interested in social activities, except for golf, which [he/she] still plays twice a week, and church on Sundays. When [he/she] plays golf, [his/her] friends help [him/her] with [his/her] score sheet. [He/She] has trouble remembering the names of familiar people at church, whereas when [he/she] was working, [he/she] was very good with names.
Else
vignetteB
Next, we will show you a short story about an older person. Please pay attention to the story as you will be asked some questions about it on the following screen.

[John/Janet] is a 75-year-old [widower/widow]. [His/Her] family thinks that [his/her] memory is getting progressively worse. [He/She] often asks the same question more than once, and frequently talks about [his/her] [wife/husband] as if [she/he] were still alive. [He/She]'s had trouble following recipes [he/she] cooked [his/her] whole life, and got lost a few times driving to [his/her] grandchild’s house. In conversation with [his/her] children, [he/she]'s been forgetting words and replacing them with others, for example referring to a watch as a "hand-clock" and an airplane as an "air ship".
End of if
n1b (normal signs of aging)
To what extent do you agree with the following statement? (strongly agree, agree, disagree, strongly disagree):

[John/Janet] is showing normal signs of aging.
1 Strongly agree
2 Agree
3 Disagree
4 Strongly disagree
n1g (should have person checked)
To what extent do you agree with the following statement? (strongly agree, agree, disagree, strongly disagree):

[John/Janet] should be checked by a medical professional.
1 Strongly agree
2 Agree
3 Disagree
4 Strongly disagree
cnt := 3
if n_randomizer = empty then
n_randomizer := mt_rand(1,2)
End of if
Group of questions presented on the same screen
c_intro
The following questions ask about your best guess regarding how common Alzheimer's Disease is in the American population. Please use the sliding scale below, where 0 means that you think there is absolutely no chance, and 100 means that you think the event is absolutely sure to happen.
if n_randomizer = 1 then
n1 (probability that the average American adult will develop Alzheimer)
What is the probability that the average American adult will develop Alzheimer’s at some point in his or her life? Your best guess is ok.
n2 (probability that you will develop Alzheimer)
What is the probability that you will develop Alzheimer's at some point in your life? Your best guess is ok.
Else
n2 (probability that you will develop Alzheimer)
What is the probability that you will develop Alzheimer's at some point in your life? Your best guess is ok.
n1 (probability that the average American adult will develop Alzheimer)
What is the probability that the average American adult will develop Alzheimer’s at some point in his or her life? Your best guess is ok.
End of if
End of group of questions
Group of questions presented on the same screen
n3 (percentage of American adults aged 65 to 75 have Alzheimer)
What percentage of American adults aged 65 and above have Alzheimer’s? Your best guess is ok.
n4 (percentage of American adults aged 75 to 85 have Alzheimer)
What percentage of American adults aged 75 and above have Alzheimer’s? Your best guess is ok.
n5 (percentage of American adults over the age of 85 have Alzheimer)
What percentage of American adults aged 85 and above have Alzheimer’s? Your best guess is ok.
End of group of questions
cnt := 4
if hr_framing_randomizer = empty then
hr_framing_randomizer := mt_rand(1,2)
End of if
if hr_framing_randomizer = 1 then
Group of questions presented on the same screen
hr_intro
How effective are the following health behaviors in lowering a person’s chances of getting Alzheimer's?

Subgroup of questions
hr4 (Keeping physically active)
Keeping physically active
1 Very
2 Somewhat
3 Not at all
hr5 (Keeping mentally active)
Keeping mentally active
1 Very
2 Somewhat
3 Not at all
hr6 (Eating a healthy diet)
Eating a healthy diet
1 Very
2 Somewhat
3 Not at all
hr7 (Taking vitamins or dietary supplements)
Taking vitamins or dietary supplements
1 Very
2 Somewhat
3 Not at all
hr_a8 (Keeping socially active)
Keeping socially active
1 Very
2 Somewhat
3 Not at all
End of subgroup of questions
End of group of questions
Else
n6 (steps one can take to reduce the chance of getting Alzheimer)
Are there steps one can take to reduce the chance of getting Alzheimer's?
1 Yes
2 No
3 Don't know
if n6 = 1 then
if sizeof(n7_options) = 0 then
n7_options := shuffleArray(array(1 => 1, 2 => 2, 3 => 3, 4 => 4, 5 => 5, 6 => 6, 7 => 7, 8 => 8, 9 => 9, 10 => 10, 11 => 11, 12 => 12, 13 => 13, 14 => 14, 15 => 15, 16 => 16, 17 => 17))
n7_options[18] := 18
End of if
n7 (all behaviors that are effective)
Please check all the behaviors that you believe to be effective in lowering a person’s chances of getting Alzheimer’s:
1 Taking vitamins or dietary supplements
2 Avoiding eating from aluminum pots
3 Keeping mentally active
4 Eating a healthy diet
5 Taking prescription drugs to prevent Alzheimer's disease
6 Keeping physically active
7 Having an active social life
8 Drinking 6 to 8 glasses of water per day
9 Reducing alcohol consumption
10 Reducing smoking
11 Managing hearing loss
12 Managing diabetes
13 Managing depression
14 Managing hypertension (blood pressure)
15 Controlling one's weight
16 Avoiding polluted environments
17 Managing eyesight deterioration
18 None of the above
End of if
End of if
if hr_randomizer = empty then
hr_randomizer := mt_rand(1,2)
End of if
if hr_randomizer = 1 then
hr_options := array(1 => 1, 2 => 2, 3 => 3, 4 => 4)
Else
hr_options := array(1 => 4, 2 => 3, 3 => 2, 4 => 1)
End of if
Group of questions presented on the same screen
hr_intro2
To what extent do you agree or disagree with the following statements?

Subgroup of questions
hr1 (like to know chances)
You would like to know your chances of someday getting Alzheimer’s
1 Strongly agree
2 Somewhat agree
3 Somewhat disagree
4 Strongly disagree
hr2 (believe you will get someday)
You believe you will get Alzheimer’s someday
1 Strongly agree
2 Somewhat agree
3 Somewhat disagree
4 Strongly disagree
hr3 (worry about alzheimer)
You worry about getting Alzheimer’s someday
1 Strongly agree
2 Somewhat agree
3 Somewhat disagree
4 Strongly disagree
End of subgroup of questions
End of group of questions
cnt := 5
Group of questions presented on the same screen
s_intro
Please answer, to the best of your knowledge, whether the following statements about Alzheimer's Disease (AD) are true or false.

Subgroup of questions
s1 (Genes can only partially account for the development of AD)
Genes can only partially account for the development of AD
1 True
2 False
s_h_2 (Prescription drugs that prevents AD are available)
Prescription drugs that prevent AD are available
1 True
2 False
s3 (People in their 30s can have AD)
People in their 30s can have AD
1 True
2 False
s4 (It has been scientifically proven that mental exercise can prevent a person from getting AD )
It has been scientifically proven that mental exercise can prevent a person from getting AD
1 True
2 False
s5 (Having high blood pressure may increase a person’s risk of developing AD )
Having high blood pressure may increase a person’s risk of developing AD
1 True
2 False
s6 (Having high cholesterol may increase a person’s risk of developing AD)
Having high cholesterol may increase a person’s risk of developing AD
1 True
2 False
End of subgroup of questions
End of group of questions
Group of questions presented on the same screen
s_intro
Please answer, to the best of your knowledge, whether the following statements about Alzheimer's Disease (AD) are true or false.

Subgroup of questions
s7 (AD can be caused by eating food that was cooked in aluminum pots )
AD can be caused by eating food that was cooked in aluminum pots
1 True
2 False
s8 (More than 50% of people older than 85 years have AD)
More than 50% of people older than 85 years have AD
1 True
2 False
s_h_9 (Having a parent or sibling with AD increases the chance of developing it )
Having a parent or sibling with AD increases the chance of developing it
1 True
2 False
a1 (More than 10% of people older than 75 have AD )
More than 10% of people older than 75 have AD
1 True
2 False
a2 (Prescription drugs that cure AD are available)
Prescription drugs that cure AD are available
1 True
2 False
End of subgroup of questions
End of group of questions
CS_001 (HOW PLEASANT INTERVIEW)
Could you tell us how interesting or uninteresting you found the questions in this interview?
1 Very interesting
2 Interesting
3 Neither interesting nor uninteresting
4 Uninteresting
5 Very uninteresting
CS_003 (comments)
Do you have any other comments on the interview? Please type these in the box below.(If you have no comments, please click next to complete this survey.)
STRING