Routing for UAS243

if getCovid19Preload("endtime") != "" then
FLDateEarlierSurvey := date("F j Y", strtotime(getCovid19Preload("endtime")))
End of if
laresident := getCovidLACounty()
covidday := getCovidDay()
Fill code of question 'FLTimeReference' executed
Fill code of question 'FLTimeReferenceCR002' executed
Fill code of question 'FLCadence' executed
cr_intro
Thank you for agreeing to participate in our ongoing survey which focuses on the impact of the novel coronavirus (COVID-19). We will send you a reminder to check in [Monday/Tuesday/Wednesday/Thursday/Friday/Saturday/Sunday/once a week/every other week/], on [day[]], to let us know how the coronavirus epidemic is affecting you. Most of the questions in this survey were asked in previous surveys. Thank you for answering them accurately again, to ensure we always have the most up-to-date information.
cr001_questions := array(1 => "cr001a", 2 => "cr001b", 3 => "cr001c", 4 => "cr001d", 5 => "cr001e", 6 => "cr001f", 7 => "cr001g", 8 => "cr001h", 9 => "cr001i", 10 => "cr001j", 11 => "cr001k", 12 => "cr001l", 13 => "cr001m", 14 => "cr001n", 15 => "cr001o", 16 => "cr001p", 17 => "cr001q", 18 => "cr001r")
if sizeof(cr001_order) = 0 then
cr001_order := 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, 18 => 18))
End of if
Group of questions presented on the same screen
cr001_intro
Have you experienced any of the following symptoms in the past 7 days?

Subgroup of questions
Loop from 1 to 18
Value of question 'cr001_questions[cr001_order[cnt]]' asked as question
End of loop
End of subgroup of questions
End of group of questions
cr002 (tested for the coronavirus)
Have you been tested for coronavirus[ since ^FLDateEarlierSurvey (when you last took our coronavirus survey)]? If so, what was the result?
1 I have been tested and I tested positive (I had coronavirus)
2 I have been tested and I tested negative (I did not have coronavirus)
3 I have been tested and I do not know the result
4 I have not been tested
cr005 (diagnosed with the coronavirus)
Whether or not you have had a coronavirus test, has a doctor or another healthcare professional diagnosed you as having or probably having the coronavirus[ since ^FLDateEarlierSurvey]?
1 Yes
2 No
3 Unsure
if cr002 != 1 AND cr005 !=1 then
cr007 (think infected with coronavirus)
Do you think you have been infected with the coronavirus[ since ^FLDateEarlierSurvey]?
1 (YES) Yes
2 (NO) No
End of if
if cr002 = 1 OR cr005 = 1 OR cr007 = 1 then
Fill code of question 'FL_cr011' executed
cr011 (contacted a doctor, employer, family)
Have you contacted anyone[, other than the medical professionals that tested or diagnosed or treated you, ] to inform them you have coronavirus[ since ^FLDateEarlierSurvey]?
1 (YES) Yes
2 (NO) No
if cr011 = 1 then
cr012_questions := array(1 => "cr012a", 2 => "cr012b", 3 => "cr012c", 4 => "cr012d", 5 => "cr012e", 6 => "cr012f", 7 => "cr012g", 8 => "cr012h")
if sizeof(cr012_order) = 0 then
cr012_order := shuffleArray(array(1 => 1, 2 => 2, 3 => 3, 4 => 4, 5 => 5, 6 => 6, 7 => 7))
cr012_order[8] := 8
End of if
Group of questions presented on the same screen
cr012_intro
Who have you contacted[ since ^FLDateEarlierSurvey] to let them know that you think you have coronavirus? Please check all that apply.

Subgroup of questions
Loop from 1 to 8
Value of question 'cr012_questions[cr012_order[cnt]]' asked as question
End of loop
End of subgroup of questions
cr012h_other (specify other contacted)
STRING
End of group of questions
End of if
End of if
cr004 (sought care)
Whether or not you have been tested, or diagnosed, have you sought medical care for coronavirus[ since ^FLDateEarlierSurvey]?
1 (YES) Yes
2 (NO) No
if cr004 = 1 then
Group of questions presented on the same screen
cr009 (where seek help)
When you sought medical care for coronavirus[ since ^FLDateEarlierSurvey], where did you first seek care?
1 Hospital or emergency room
2 Urgent care
3 My primary care doctor or another doctor
4 A local health department
5 Other, please specify:
6 I did not seek care
cr009_other (other where seek help)
STRING
End of group of questions
if cr009 = response then
Loop from 1 to 5
if cnt in cr009 then
Fill code of question 'FL_cr009_dummy' executed
cr010a (find care)
When you sought care from [hospital or emergency room/urgent care/your primary care doctor or another doctor/a local health department/^cr009_other] did you obtain care?
1 Yes, in person
2 Yes, phone or video visit
3 Did not obtain care
if cr010a[cnt] = 1 then
cr010b (called ahead before seeking care)
Did you call ahead before seeking care in person?
1 (YES) Yes
2 (NO) No
End of if
End of if
End of loop
End of if
End of if
cr015_questions := array(1 => "cr015a", 2 => "cr015b", 3 => "cr015c", 4 => "cr015d", 5 => "cr015e", 6 => "cr015f", 7 => "cr015g", 8 => "cr015h", 9 => "cr015i", 10 => "cr015j", 11 => "cr015k", 12 => "cr015l")
if sizeof(cr015_order) = 0 then
cr015_order := 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))
End of if
Group of questions presented on the same screen
cr015_intro
In the last seven days, have you done the following:

Subgroup of questions
Loop from 1 to 12
Value of question 'cr015_questions[cr015_order[cnt]]' asked as question
End of loop
End of subgroup of questions
End of group of questions
cr016_questions := array(1 => "cr016b", 2 => "cr016c", 3 => "cr016d", 4 => "cr016e", 5 => "cr016f", 6 => "cr016g", 7 => "cr016h", 8 => "cr016i", 9 => "cr016j", 10 => "cr016k", 11 => "cr016l", 12 => "cr016m", 13 => "cr016n", 14 => "cr016o", 15 => "cr016p", 16 => "cr016r")
if sizeof(cr016_order) = 0 then
cr016_order := 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))
End of if
Group of questions presented on the same screen
cr016_intro
Which of the following have you done in the last seven days to keep yourself safe from coronavirus?

Only consider actions that you took or decisions that you made personally.

Subgroup of questions
Loop from 1 to 16
Value of question 'cr016_questions[cr016_order[cnt]]' asked as question
End of loop
End of subgroup of questions
End of group of questions
cr021 (how many family or close friends)
We'd like to ask about your family, as well as your close friends. How many family or close friends do you have? Only include people who are still alive, regardless of where they live.
RANGE 0..9223372036854775807
if cr021 > 999 then
cr021_warning (warning how many family or close friends)
Do you really have [how many family or close friends[]] family and close friends? If so, click "Next" to continue.
End of if
if cr021 > 0 then
cr022 (infected how many family or close friends)
You said that you have [how many family or close friends[]] family and close friends. Of these people, how many do you think have been infected with the coronavirus?
RANGE 0..9223372036854775807
if cr022 > cr021 then
cr022_warning
You said you know [how many family or close friends[]] people but that [infected how many family or close friends[]] people have been infected. Please go back and correct your answer(s).
elseif cr022 > 999 then
cr022_warning2
Do you really know [infected how many family or close friends[]] people who have been infected? If so, click "Next" to continue.
End of if
cr022a (hospitalized how many family or close friends)
You said that you have [how many family or close friends[]] family and close friends. Of these people, how many do you think have been hospitalized (spent at least one night in the hospital) from the coronavirus?
RANGE 0..9223372036854775807
if cr022a > cr021 then
cr022a_warning
You said you know [how many family or close friends[]] people but that [hospitalized how many family or close friends[]] people have been hospitalized. Please go back and correct your answer(s).
elseif cr022a > 999 then
cr022a_warning2
Do you really know [hospitalized how many family or close friends[]] people who have been hospitalized? If so, click "Next" to continue.
End of if
cr022b (died how many family or close friends)
You said that you have [how many family or close friends[]] family and close friends. Of these people, how many do you think have died from the coronavirus?
RANGE 0..9223372036854775807
if cr022b > cr021 then
cr022b_warning
You said you know [how many family or close friends[]] people but that [died how many family or close friends[]] people have died. Please go back and correct your answer(s).
elseif cr022b > 999 then
cr022b_warning2
Do you really know [died how many family or close friends[]] people who have been died? If so, click "Next" to continue.
End of if
End of if
Group of questions presented on the same screen
cr023 (chance get coronavirus)
On a scale of 0 to 100 percent, what is the chance that you will get the coronavirus in the next three months? If you’re not sure, please give your best guess.
cr_error
End of group of questions
Group of questions presented on the same screen
cr023b (chance hospitalized if get coronavirus)
If you do get the coronavirus, what is the percent chance you will be hospitalized (spend at least one night in the hospital) from it? If you’re not sure, please give your best guess.
cr_error
End of group of questions
Group of questions presented on the same screen
cr024 (chance die from coronavirus)
If you do get the coronavirus, what is the percent chance you will die from it? If you’re not sure, please give your best guess.
cr_error
End of group of questions
cr032_questions := array(1 => "cr032a", 2 => "cr032b", 3 => "cr032c", 4 => "cr032d", 5 => "cr032e", 6 => "cr032f", 7 => "cr032g", 8 => "cr032h", 9 => "cr032i", 10 => "cr032j")
if sizeof(cr032_order) = 0 then
cr032_order := shuffleArray(array(1 => 1, 2 => 2, 3 => 3, 4 => 4, 5 => 5, 6 => 6, 7 => 7, 8 => 8, 9 => 9, 10 => 10))
End of if
Group of questions presented on the same screen
cr032_intro
How much do you trust the following sources of information about the coronavirus:

Subgroup of questions
Loop from 1 to 10
Value of question 'cr032_questions[cr032_order[cnt]]' asked as question
End of loop
End of subgroup of questions
End of group of questions
cr033_questions := array(1 => "cr033a", 2 => "cr033b", 3 => "cr033c", 4 => "cr033d", 5 => "cr033e", 6 => "cr033f", 7 => "cr033g", 8 => "cr033h", 9 => "cr033i", 10 => "cr033j")
if sizeof(cr033_order) = 0 then
cr033_order := shuffleArray(array(1 => 1, 2 => 2, 3 => 3, 4 => 4, 5 => 5, 6 => 6, 7 => 7, 8 => 8, 9 => 9, 10 => 10))
End of if
Group of questions presented on the same screen
cr033_intro
Which of the following information sources have you used to learn about the coronavirus in the past 7 days?

Subgroup of questions
Loop from 1 to 10
Value of question 'cr033_questions[cr033_order[cnt]]' asked as question
End of loop
End of subgroup of questions
End of group of questions
ei002 (worried you would run out of food)
In the past seven days, were you worried you would run out of food because of a lack of money or other resources?
1 Yes
2 No
3 Unsure
preload_hadjob := getCovid19Preload("cr008")
preload_lr001 := getCovid19Preload("lr001")
IF preload_hadjob = 1 THEN
Group of questions presented on the same screen
lr001 (employment status)
The next set of questions are about your primary job. If you have multiple jobs, think of the job in which you work the most hours or receive the most pay.

You told us on [date of earlier survey[]] that you had a job. Which statement best reflects your current employment status:
1 I am still working in the same job
2 I lost my job and I am looking for work
3 I have been temporarily laid off from the same job
4 I am on sick leave or other leave from the same job
5 I am now working at a different job
6 None of these, please specify:
lr001_other (other employment status)
STRING
End of group of questions
IF lr001 = 2 OR lr001 = 3 OR lr001 = 4 THEN
lr002 (still receiving benefits)
Are you still receiving benefits such as health insurance through your former job?
1 Yes
2 No
3 Unsure
End of if
Else
if preload_hadjob = response then
if preload_lr001 = 3 then
Group of questions presented on the same screen
lr003aa (job status after laid off)
You told us on [ since ^FLDateEarlierSurvey] that you were temporarily laid off from your job. Which statement best reflects your current employment status?
1 I have resumed working at the same job
2 I am still temporarily laid off from the same job
3 I have lost my job and I am looking for work
4 I am on sick leave or other leave from the same job
5 I am now working at a different job
6 None of these, please specify:
lr003aa_other (other job status after laid off)
STRING
End of group of questions
elseif preload_lr001 = 4 then
Group of questions presented on the same screen
lr003bb (job status after sick leave)
You told us on [ since ^FLDateEarlierSurvey] that you were on sick leave or other leave from your job. Which statement best reflects your current employment status?
1 I have resumed working at the same job
2 I am still on sick leave or other leave from the same job
3 I have lost my job and I am looking for work
4 I have been temporarily laid off from the same job
5 I am now working at a different job
6 None of these, please specify:
lr003bb_other (other job status after sick leave)
STRING
End of group of questions
Else
Group of questions presented on the same screen
lr003 (employment status prev no job)
You told us on [date of earlier survey[]] that you did not have a job. Which statement best reflects your current employment status:
1 I still do not have a job
2 I now have a job
4 I am retired
5 I am not in the labor force (not currently working and not looking for work)
3 None of these, please specify:
lr003_other (other employment status prev no job)
STRING
End of group of questions
End of if
Else
lr003a (currently have job)
Do you currently have a job?
1 (YES) Yes
2 (NO) No
End of if
End of if
lr004 := 2
IF (preload_hadjob = 1 AND (lr001 = 1 OR lr001 = 5)) OR (preload_hadjob = 2 and preload_lr001 = 3 and lr003aa in [1,5]) OR (preload_hadjob = 2 and preload_lr001 = 4 and lr003bb in [1,5]) OR (preload_hadjob = 2 and preload_lr001 != 3 and preload_lr001 != 4 and lr003 = 2) OR (preload_hadjob = empty and lr003a = 1) THEN
lr004 := 1
End of if
IF lr004 = 1 THEN
Group of questions presented on the same screen
lr005 (self employed or work for employer)
In your primary job, are you self-employed or do you work for an employer?
1 Self-employed
2 Work for an employer
3 Other (specify)
lr005_other (self employed or work for employer other)
Are you self-employed or do you work for an employer?
STRING
End of group of questions
lr019 (describe primary job)
Do any of the following describe your primary job? Please check all that apply.
1 Independent contractor (for example, freelance worker, Uber driver, Instacart worker, independent consultant)
2 On-call worker or day laborer
3 Temporary agency worker
4 Contract company worker
5 None of the above
lr006 (how many day work past seven days)
Out of the past seven days, how many days did you work at your job?

0 0 days
1 1 day
2 2 days
3 3 days
4 4 days
5 5 days
6 6 days
7 7 days
lr006a (home how many day work past seven days)
Out of the past seven days, how many days did you work from home?

0 0 days
1 1 day
2 2 days
3 3 days
4 4 days
5 5 days
6 6 days
7 7 days
lr008 (home many hours work for pay past 7 days)
Think of every day you worked in the past seven days. How many total hours did you work for pay across all the days?
RANGE 0..150
Else
lr016 (received unemployment insurance past 14 days)
Have you received unemployment insurance benefits in the past fourteen days?
1 Yes
2 No
3 Unsure
IF lr016 = 1 THEN
lr017 (amount unemployment insurance)
How much did you receive in unemployment insurance in your most recent payment?
RANGE 1..10000
IF lr017 > 5000 THEN
check_lr017 (amount over 5k)
You entered an amount over $5,000. Is this correct?
1 Yes
2 No
End of if
ELSEIF LR016 = response then
lr018 (why not received unemployment insurance benefits)
Why haven’t you received unemployment insurance benefits? Mark all that apply.
1 My former employer has not made me eligible
2 I am not eligible for other reasons
3 I am unsure how to apply
4 I was approved but I haven’t been paid yet
5 I applied and was rejected
6 I decided not to apply
7 Other
End of if
End of if
fd001 (chance afford food over next three months)
What is the percent chance that you will be able to afford the food you need over the next three months? If you are not sure, please give your best guess.
fd004_questions := array(1 => "fd004a", 2 => "fd004b", 3 => "fd004c", 4 => "fd004d", 5 => "fd004e", 6 => "fd004f", 7 => "fd004g", 8 => "fd004h", 9 => "fd004i", 10 => "fd004j", 11 => "fd004k", 12 => "fd004l")
if sizeof(fd004_order) = 0 then
fd004_order := shuffleArray(array(1 => 1, 2 => 2, 3 => 3, 4 => 4, 5 => 5, 6 => 6, 7 => 7, 8 => 8, 9 => 9, 10 => 10, 11 => 11))
fd004_order[12] := 12
End of if
Group of questions presented on the same screen
fd004_intro
In February 2020, where did you usually get your food (either in person or by delivery)?

Subgroup of questions
Loop from 1 to 12
Value of question 'fd004_questions[fd004_order[cnt]]' asked as question
End of loop
End of subgroup of questions
fd004l_other (February 2020 specify other get food)
STRING
End of group of questions
fd005_order := empty
Loop from 1 to 12
if fd004_order[fd005cnt] = 1 AND fd004a = 1 then
fd005_order[fd005cnt] := 1
elseif fd004_order[fd005cnt] = 2 AND fd004b = 1 then
fd005_order[fd005cnt] := 2
elseif fd004_order[fd005cnt] = 3 AND fd004c = 1 then
fd005_order[fd005cnt] := 3
elseif fd004_order[fd005cnt] = 4 AND fd004d = 1 then
fd005_order[fd005cnt] := 4
elseif fd004_order[fd005cnt] = 5 AND fd004e = 1 then
fd005_order[fd005cnt] := 5
elseif fd004_order[fd005cnt] = 6 AND fd004f = 1 then
fd005_order[fd005cnt] := 6
elseif fd004_order[fd005cnt] = 7 AND fd004g = 1 then
fd005_order[fd005cnt] := 7
elseif fd004_order[fd005cnt] = 8 AND fd004h = 1 then
fd005_order[fd005cnt] := 8
elseif fd004_order[fd005cnt] = 9 AND fd004i = 1 then
fd005_order[fd005cnt] := 9
elseif fd004_order[fd005cnt] = 10 AND fd004j = 1 then
fd005_order[fd005cnt] := 10
elseif fd004_order[fd005cnt] = 11 AND fd004k = 1 then
fd005_order[fd005cnt] := 11
elseif fd004_order[fd005cnt] = 12 AND fd004l = 1 then
fd005_order[fd005cnt] := 12
End of if
End of loop
fd005a_asked := 2
if sizeof(fd005_order) > 1 then
fd005a (February 2020 most frequent source)
You selected the following as the places where you usually got your food in February 2020. Please select your most frequent source of food in February 2020.
1 Grocery store / supermarket (Ralphs, Vons, Trader Joe’s, etc.)
2 Convenience store (7-Eleven, ampm, etc.)
3 Drug store (CVS, Walgreens, Rite Aid, etc.)
4 Big-box store (Target, Walmart, Costco, etc.)
5 Food pantry
6 Restaurant or café
7 Home garden
8 Online retailer (Amazon Fresh, Fresh Direct, etc.)
9 Farmer's market
10 CSA (Community Supported Agriculture)
11 Meal kit subscription (Blue Apron, Dinnerly, etc.)
12 Other: [February 2020 specify other get food[]]
fd005a_asked := 1
elseif sizeof(fd005_order) = 1 then
fd005a := reset(fd005_order)
fd005a_asked := 1
End of if
if fd005a_asked = 1 and fd005a in [1,2,3,4,5,6,9,10] then
fd005a_dummy := fd005a
fd006a (February 2020 got in person most frequent source)
When you got your food from the [dummy February 2020 most frequent source[]] in February 2020, did you usually get it in person or have the food delivered to your home?
1 I usually got the food in person
2 I usually had the food delivered to my home
if fd006a = 1 then
fd007a (February 2020 how far away most frequent source)
About how far away from your home is the [dummy February 2020 most frequent source[]] where you most frequently got your food in February 2020?
1 0.5 miles or less than a 10-minute walk
2 1 to 2 miles
3 3 to 5 miles
4 6 to 10 miles
5 11 to 15 miles
6 16 to 20 miles
7 Greater than 20 miles
End of if
End of if
fd005b_asked := 2
if fd005a_asked = 1 and fd005a = response then
fd005_order_reduced := removeAnswer(fd005a, fd005_order)
if sizeof(fd005_order_reduced) > 1 then
fd005b (February 2020 second most frequent source)
You selected the following as they places where you usually got your food in February 2020. Please select your second most frequent source of food in February 2020. Your first, most frequent source has already been selected and cannot be selected again.
1 Grocery store / supermarket (Ralphs, Vons, Trader Joe’s, etc.)
2 Convenience store (7-Eleven, ampm, etc.)
3 Drug store (CVS, Walgreens, Rite Aid, etc.)
4 Big-box store (Target, Walmart, Costco, etc.)
5 Food pantry
6 Restaurant or café
7 Home garden
8 Online retailer (Amazon Fresh, Fresh Direct, etc.)
9 Farmer's market
10 CSA (Community Supported Agriculture)
11 Meal kit subscription (Blue Apron, Dinnerly, etc.)
12 Other: [February 2020 specify other get food[]]
fd005b_asked := 1
elseif sizeof(fd005_order_reduced) = 1 then
fd005b := reset(fd005_order_reduced)
fd005b_asked := 1
End of if
End of if
if fd005b_asked = 1 and fd005b in [1,2,3,4,5,6,9,10] then
fd005b_dummy := fd005b
fd006b (February 2020 got in person second most frequent source)
When you got your food from the [dummy February 2020 second most frequent source[]] in February 2020, did you usually get it in person or have the food delivered to your home?
1 I usually got the food in person
2 I usually had the food delivered to my home
if fd006b = 1 then
fd007b (February 2020 how far away second most frequent source)
About how far away from your home is the [dummy February 2020 second most frequent source[]] where you second most frequently got your food in February 2020?
1 0.5 miles or less than a 10-minute walk
2 1 to 2 miles
3 3 to 5 miles
4 6 to 10 miles
5 11 to 15 miles
6 16 to 20 miles
7 Greater than 20 miles
End of if
End of if
fd002 (food delivered to home)
In the last 14 days, have you had food delivered to your home?
1 Yes
2 No
3 Unsure
if fd002 = 1 then
if sizeof(fd003_order) = 0 then
fd003_order := shuffleArray(array(1 => 1, 2 => 2, 3 => 3, 4 => 4, 5 => 5, 6 => 6))
fd003_order[7] := 7
End of if
Group of questions presented on the same screen
fd003 (who provided food delivery)
If you have had food delivered to your home, who provided that delivery service? Please check all that apply.
1 Friend or neighbor
2 Family member
3 Local volunteer
4 Business or organization that provided the food
5 Government's Critical Delivery Service
6 Paid delivery service (Instacart, Uber Eats, etc)
7 Other, please specify:
fd003_other (other who provided food delivery)
STRING
End of group of questions
End of if
fd008_questions := array(1 => "fd008a", 2 => "fd008b", 3 => "fd008c", 4 => "fd008d", 5 => "fd008e", 6 => "fd008f", 7 => "fd008g", 8 => "fd008h", 9 => "fd008i", 10 => "fd008j", 11 => "fd008k", 12 => "fd008l")
if sizeof(fd008_order) = 0 then
fd008_order := fd004_order
End of if
Group of questions presented on the same screen
fd008_intro
In the last 14 days, where did you get your food (either in person or by delivery)?

Subgroup of questions
Loop from 1 to 12
Value of question 'fd008_questions[fd008_order[cnt]]' asked as question
End of loop
End of subgroup of questions
fd008l_other (last 14 days specify other get food)
STRING
End of group of questions
fd009_order := empty
Loop from 1 to 12
if fd008_order[fd009cnt] = 1 AND fd008a = 1 then
fd009_order[fd009cnt] := 1
elseif fd008_order[fd009cnt] = 2 AND fd008b = 1 then
fd009_order[fd009cnt] := 2
elseif fd008_order[fd009cnt] = 3 AND fd008c = 1 then
fd009_order[fd009cnt] := 3
elseif fd008_order[fd009cnt] = 4 AND fd008d = 1 then
fd009_order[fd009cnt] := 4
elseif fd008_order[fd009cnt] = 5 AND fd008e = 1 then
fd009_order[fd009cnt] := 5
elseif fd008_order[fd009cnt] = 6 AND fd008f = 1 then
fd009_order[fd009cnt] := 6
elseif fd008_order[fd009cnt] = 7 AND fd008g = 1 then
fd009_order[fd009cnt] := 7
elseif fd008_order[fd009cnt] = 8 AND fd008h = 1 then
fd009_order[fd009cnt] := 8
elseif fd008_order[fd009cnt] = 9 AND fd008i = 1 then
fd009_order[fd009cnt] := 9
elseif fd008_order[fd009cnt] = 10 AND fd008j = 1 then
fd009_order[fd009cnt] := 10
elseif fd008_order[fd009cnt] = 11 AND fd008k = 1 then
fd009_order[fd009cnt] := 11
elseif fd008_order[fd009cnt] = 12 AND fd008l = 1 then
fd009_order[fd009cnt] := 12
End of if
End of loop
fd009a_asked := 2
if sizeof(fd009_order) > 1 then
fd009a (last 14 days most frequent source)
You selected the following as the places where you usually got your food in the last 14 days. Please select your most frequent source of food in the last 14 days.
1 Grocery store / supermarket (Ralphs, Vons, Trader Joe’s, etc.)
2 Convenience store (7-Eleven, ampm, etc.)
3 Drug store (CVS, Walgreens, Rite Aid, etc.)
4 Big-box store (Target, Walmart, Costco, etc.)
5 Food pantry
6 Restaurant or café
7 Home garden
8 Online retailer (Amazon Fresh, Fresh Direct, etc.)
9 Farmer's market
10 CSA (Community Supported Agriculture)
11 Meal kit subscription (Blue Apron, Dinnerly, etc.)
12 Other: [last 14 days specify other get food[]]
fd009a_asked := 1
elseif sizeof(fd009_order) = 1 then
fd009a := reset(fd009_order)
fd009a_asked := 1
End of if
if fd009a_asked = 1 and fd009a in [1,2,3,4,5,6,9,10] then
fd009a_dummy := fd009a
fd010a (last 14 days got in person most frequent source)
When you got your food from the [dummy last 14 days most frequent source[]] in the last 14 days, did you usually get it in person or have the food delivered to your home?
1 I usually got the food in person
2 I usually had the food delivered to my home
if fd010a = 1 then
fd011a (last 14 days how far away most frequent source)
About how far away from your home is the [dummy last 14 days most frequent source[]] where you most frequently got your food in the last 14 days?
1 0.5 miles or less than a 10-minute walk
2 1 to 2 miles
3 3 to 5 miles
4 6 to 10 miles
5 11 to 15 miles
6 16 to 20 miles
7 Greater than 20 miles
End of if
End of if
fd009b_asked := 2
if fd009a_asked = 1 and fd009a = response then
fd009_order_reduced := removeAnswer(fd009a, fd009_order)
if sizeof(fd009_order_reduced) > 1 then
fd009b (last 14 days second most frequent source)
You selected the following as the places where you usually got your food in the last 14 days. Please select your second most frequent source of food in the last 14 days. Your first, most frequent source has already been selected and cannot be selected again.
1 Grocery store / supermarket (Ralphs, Vons, Trader Joe’s, etc.)
2 Convenience store (7-Eleven, ampm, etc.)
3 Drug store (CVS, Walgreens, Rite Aid, etc.)
4 Big-box store (Target, Walmart, Costco, etc.)
5 Food pantry
6 Restaurant or café
7 Home garden
8 Online retailer (Amazon Fresh, Fresh Direct, etc.)
9 Farmer's market
10 CSA (Community Supported Agriculture)
11 Meal kit subscription (Blue Apron, Dinnerly, etc.)
12 Other: [last 14 days specify other get food[]]
fd009b_asked := 1
elseif sizeof(fd009_order_reduced) = 1 then
fd009b := reset(fd009_order_reduced)
fd009b_asked := 1
End of if
End of if
if fd009b_asked = 1 and fd009b in [1,2,3,4,5,6,9,10] then
fd009b_dummy := fd009b
fd010b (last 14 days got in person second most frequent source)
When you got your food from the [dummy last 14 days second most frequent source[]] in the last 14 days, did you usually get it in person or have the food delivered to your home?
1 I usually got the food in person
2 I usually had the food delivered to my home
if fd010b = 1 then
fd011b (last 14 days how far away second most frequent source)
About how far away from your home is the [dummy last 14 days second most frequent source[]] where you second most frequently got your food in the last 14 days?
1 0.5 miles or less than a 10-minute walk
2 1 to 2 miles
3 3 to 5 miles
4 6 to 10 miles
5 11 to 15 miles
6 16 to 20 miles
7 Greater than 20 miles
End of if
End of if
fd012 (last 14 days eaten food that is different from February 2020)
In the last 14 days, have you eaten food that is different from the types of food you ate in February 2020?
1 Yes
2 No
3 Unsure
if fd012 = 1 then
fd013 (how food different)
What is different about the food you ate in the last 14 days, compared to the food you ate in February 2020?
STRING
End of if
if sizeof(fd014_order) = 0 then
fd014_order := shuffleArray(array(1 => 1, 2 => 2, 3 => 3, 4 => 4, 5 => 5, 6 => 6))
fd014_order[7] := 7
fd014_order[8] := 8
End of if
Group of questions presented on the same screen
fd014 (heard or read about food assistance programs or food services)
Have you heard or read about any of the following food assistance programs or food services? Please check all that apply.
1 Nutrition Assistance (SNAP, Food Stamps, CalFresh, etc.)
2 Food pantries
3 Free delivery of groceries near your home
4 WIC (the Women, Infants, and Children program)
5 The Elder Nutrition Program (aka senior meals)
6 Grab and Go School Meals
7 Other local food programs or services, please specify:
8 None of the above
fd014_other (other heard or read about food assistance programs or food services)
STRING
End of group of questions
if fd014 != 8 and fd014 = response then
Fill code of question 'FLFD015' executed
Group of questions presented on the same screen
fd015 (where hear or read about food service)
Where did you hear or read about [Nutrition Assistance (SNAP, Food Stamps, CalFresh, etc.)/Food pantries/Free delivery of groceries near your home/WIC (the Women, Infants, and Children program)/The Elder Nutrition Program (aka senior meals)/Grab and Go School Meals/Other local food programs or services (^fd014_other)]?

Please check all that apply.
1 Television
2 Radio
3 Newspaper
4 Family, friend, coworker, and/or neighbor
5 Social media
6 Internet (not social media)
7 Magazine
8 Flyer
9 Government agency
10 Community organization
11 Employer
12 Other, please specify:
fd015_other (other where hear or read about food service)
STRING
End of group of questions
End of if
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
dummy := setCovid19DayPayment(243)