ABCDEFGHIJKLMNOPQRSTUVWXYZ
1
typenamelabelhintdefaultappearanceconstraintconstraint messagerelevancedisabledrequiredrequired messageread onlycalculationrepeat_countmedia:imagemedia:audiomedia:videochoice_filternoteresponse_notepublishableminimum_seconds
2
startstarttime
3
endendtime
4
deviceiddeviceid
5
subscriberidsubscriberid
6
simserialsimid
7
phonenumberdevicephonenum
8
usernameusername
9
calculatedurationduration()
10
caseidcaseid
11
12
noteintronoteWelcome to the SurveyCTO sample form <b>Symptom Diary</b>. This form should be filled-out by close contacts on a daily basis.

<i>It is part of our Use case: Contact Tracing.</i>
intro
13
noteno_case<p><strong>Note: You will not be able to proceed. Please make sure you are using the correct and full URL link for the form "Symptom Diary".</strong></p>${caseid}=nullyes
14
15
calculatename
pulldata('contacts', 'name', 'contact_id', ${caseid})
16
calculateage
pulldata('contacts', 'age', 'contact_id', ${caseid})
17
calculateday
if(pulldata('contacts', 'total_days', 'contact_id', ${caseid})=null, 1, pulldata('contacts', 'total_days', 'contact_id', ${caseid})+1)
18
19
select_one yesnoconfirmYou are reporting the symptoms of case ${caseid} with the following details:<br>
<br>
${name}, ${age}
<br>
Can you confirm?
quickyes
20
notewarningIf your details are not correct, make sure you've opened the correct form and try again.
selected(${confirm}, '0')
yes
21
22
noteday_infoYou're reporting your symptoms for <b>day ${day}</b>.
23
begin groupsymptomsSymptomsfield-list
24
select_one yesnolabelAre you having any of these symptoms today?label
25
select_one yesnofeverFever (>38º)list-nolabelyes
26
select_one yesnonoseRunny Noselist-nolabelyes
27
select_one yesnocoughCoughlist-nolabelyes
28
select_one yesnothroatSore throatlist-nolabelyes
29
select_one yesnobreathShortness breathlist-nolabelyes
30
select_one yesnootherOther symptomslist-nolabelyes
31
end groupsymptoms
32
textother_symptomsSpecify the other symptoms:selected(${other}, '1')
33
34
calculatecount_fever
if(pulldata('contacts', 'fever', 'contact_id', ${caseid})=null, 0, pulldata('contacts', 'fever', 'contact_id', ${caseid})+${fever})
35
calculatecount_nose
if(pulldata('contacts', 'nose', 'contact_id', ${caseid})=null, 0, pulldata('contacts', 'nose', 'contact_id', ${caseid})+${nose})
36
calculatecount_cough
if(pulldata('contacts', 'cough', 'contact_id', ${caseid})=null, 0, pulldata('contacts', 'cough', 'contact_id', ${caseid})+${cough})
37
calculatecount_throat
if(pulldata('contacts', 'throat', 'contact_id', ${caseid})=null, 0, pulldata('contacts', 'throat', 'contact_id', ${caseid})+${throat})
38
calculatecount_breath
if(pulldata('contacts', 'fever', 'contact_id', ${caseid})=null, 0, pulldata('contacts', 'fever', 'contact_id', ${caseid})+${fever})
39
40
noteendnoteThank you! You have reached the end of the form.
<br>
<br>
Please swipe forward and submit this form.
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100