ABCDEFGHIJKLMNOPQRSTUVWXYZ
1
typenamelabelhintdefaultappearanceconstraint
constraint message
relevancedisabledrequiredrequired 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
noteintronote
Welcome to the SurveyCTO sample form <b>Suspected and probable cases</b>. This form will incorporate suspected cases into a database, ensuring that they all are tested and followed-up on accordingly.

<i>This is part of our Use Case: Contact Tracing.</i>
intro
13
14
notewarn_sample
<i><b>Note:</b> Remember that this is just a simple example to illustrate SurveyCTO concepts. In a real contact tracing form for suspected cases, questions would be asked about symptoms and their duration, to better qualify a case for screening and testing. In this simple example, we're assuming anyone recorded using this form is a qualified enough case that should proceed to testing.</i>
15
noteinfo_note
<span style="color: #ff0000;"><b>ENUMERATOR:</b> This is the start of the interview. Considering that this is your first interaction with this potential patient, explain the purpose of this data collection and reinforce the confientiality of data.<br></span>
<br>
<br>
<b><i>Interview Script:</i></b><br>
Before we go into detail, I want to be sure you understand that everything we discuss is confidential.<br>
This means that your personal and medical information will be kept private and only shared with those who may need to know, like your health care provider.
16
17
begin grouppatientPatient identifier informationfield-list
18
notepatient_note
Please provide the information below about the <strong>patient</strong>.
19
textnameNameyes
20
select_one gendergenderGenderyes
21
calculategender_labelRetrieving gender label.
choice-label(${gender}, ${gender})
22
textphone_numberPhone number:numbers_phoneyes
23
datedobDate of birth:no-calendaryes
24
calculateageCalculating the age based on "dob".
int((today() - ${dob}) div 365.25)
25
select_one occupationoccupationPatient occupationyes
26
end grouppatient
27
textoccupation_otherSpecify the other occupation:
selected(${occupation}, '555')
28
29
calculatepub_occupationRetrieves occupation label.
coalesce(${occupation_other}, choice-label(${occupation}, ${occupation}))
30
calculatestatus
Publishes this value to the server dataset to track the suspected case "status" (active vs closed).
"Active"
31
calculateidCreates an ID for the suspected case.uuid(7)
32
calculatetable_info
Publishes this value to the server dataset to construct the table-list view in the form "Virological tests".
concat(${id}, '|', ${name}, '|', ${age})
33
34
noteinfo_test
Thank you for provinding all this information!

Please go to a laboratory to run a virological test as soon as possible. You'll receive a code via SMS at the end of this interview to share with the laboratory facility when requesting the test.<br>
<br>
Let us know if you have any questions.<br>
35
calculatesms_messageCalculates the sms message to be sent.
concat('Thank you for taking the time providing information about you. All this information is confidential, and it will only be used to monitor your health status. We advise you to go to a laboratory as soon as possible with the code ', ${id}, '. Thank you!')
36
textsmsClick the button to send a sms message:
custom-launch-sms(number=${phone_number},message=${sms_message})
37
38
notesummary
A new <b>suspected case</b> will be created when this form is submitted with the following details:
<ul>
<li><b>ID</b>: ${id}</li>
<li><b>Name</b>: ${name}</li>
<li><b>Age</b>: ${age}</li>
<li><b>Gender</b>: ${gender_label}</li>
<li><b>Occupation</b>: ${pub_occupation}</li>
</ul>
39
40
noteendnote
You have reached the end of the <b>Suspected and probable cases</b> form.
<br>
<br>
Please swipe forward and submit this form to register the new suspected case.
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