| A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | type | name | label | hint | default | appearance | constraint | constraint message | relevance | disabled | required | required message | read only | calculation | repeat_count | media:image | media:audio | media:video | choice_filter | note | response_note | publishable | minimum_seconds | |||
2 | start | starttime | ||||||||||||||||||||||||
3 | end | endtime | ||||||||||||||||||||||||
4 | deviceid | deviceid | ||||||||||||||||||||||||
5 | subscriberid | subscriberid | ||||||||||||||||||||||||
6 | simserial | simid | ||||||||||||||||||||||||
7 | phonenumber | devicephonenum | ||||||||||||||||||||||||
8 | username | username | ||||||||||||||||||||||||
9 | calculate | duration | duration() | |||||||||||||||||||||||
10 | caseid | caseid | ||||||||||||||||||||||||
11 | ||||||||||||||||||||||||||
12 | note | intronote | Welcome to the SurveyCTO sample form <b>Virological Tests</b>. This form stores all virological test results from all cases: confirmed cases, suspected cases, and close contacts. <i>It is part of our Use case: Contact Tracing.</i> | intro | ||||||||||||||||||||||
13 | ||||||||||||||||||||||||||
14 | select_one type | type | For which type of case are you reporting test results? | |||||||||||||||||||||||
15 | ||||||||||||||||||||||||||
16 | select_one case | case | Select the case: | search('confirmed_cases', 'matches', 'status', 'Still ill') custom-table-list(delimiter='|', headers='ID, Name, Age') | selected(${type}, '1') | |||||||||||||||||||||
17 | select_one suspected | suspected_case | Select the suspected case: | search('suspected_cases', 'matches', 'status', 'Active') custom-table-list(delimiter='|', headers='ID, Name, Age') | selected(${type}, '2') | |||||||||||||||||||||
18 | select_one contact | contact | Select the contact: | search('contacts', 'matches', 'status', 'Not a case') custom-table-list(delimiter='|', headers='ID, Name, Age') | selected(${type}, '3') | |||||||||||||||||||||
19 | ||||||||||||||||||||||||||
20 | calculate | name_case | Preloads the name of the case. | selected(${type}, '1') | pulldata('confirmed_cases', 'name', 'id', ${case}) | |||||||||||||||||||||
21 | calculate | age_case | Preloads the age of the case. | selected(${type}, '1') | pulldata('confirmed_cases', 'age', 'id', ${case}) | |||||||||||||||||||||
22 | calculate | gender_case | Preloads the gender of the case. | selected(${type}, '1') | pulldata('confirmed_cases', 'gender', 'id', ${case}) | |||||||||||||||||||||
23 | calculate | occupation_case | Preloads the occupation of the case. | selected(${type}, '1') | pulldata('confirmed_cases', 'occupation', 'id', ${case}) | |||||||||||||||||||||
24 | calculate | phonenumber_case | Preloads the phone number of the case. | selected(${type}, '1') | pulldata('confirmed_cases', 'phone_number', 'id', ${case}) | |||||||||||||||||||||
25 | ||||||||||||||||||||||||||
26 | calculate | name_suspected | Preloads the name of the suspected case. | selected(${type}, '2') | pulldata('suspected_cases', 'name', 'id', ${suspected_case}) | |||||||||||||||||||||
27 | calculate | age_suspected | Preloads the age of the suspected case. | selected(${type}, '2') | pulldata('suspected_cases', 'age', 'id', ${suspected_case}) | |||||||||||||||||||||
28 | calculate | gender_suspected | Preloads the gender of the suspected case. | selected(${type}, '2') | pulldata('suspected_cases', 'gender', 'id', ${suspected_case}) | |||||||||||||||||||||
29 | calculate | occupation_suspected | Preloads the occupation of the suspected case. | selected(${type}, '2') | pulldata('suspected_cases', 'occupation', 'id', ${suspected_case}) | |||||||||||||||||||||
30 | calculate | phonenumber_suspected | Preloads the phone number of the suspected case. | selected(${type}, '2') | pulldata('suspected_cases', 'phone_number', 'id', ${suspected_case}) | |||||||||||||||||||||
31 | ||||||||||||||||||||||||||
32 | calculate | name_contact | Preloads the name of the contact. | selected(${type}, '3') | pulldata('contacts', 'name', 'contact_id', ${contact}) | |||||||||||||||||||||
33 | calculate | age_contact | Preloads the age of the contact. | selected(${type}, '3') | pulldata('contacts', 'age', 'contact_id', ${contact}) | |||||||||||||||||||||
34 | calculate | occupation_contact | Preloads the gender of the contact. | selected(${type}, '3') | pulldata('contacts', 'occupation', 'contact_id', ${contact}) | |||||||||||||||||||||
35 | calculate | gender_contact | Preloads the occupation of the contact. | selected(${type}, '3') | pulldata('contacts', 'gender', 'contact_id', ${contact}) | |||||||||||||||||||||
36 | calculate | phonenumber_contact | Preloads the phone number of the contact. | selected(${type}, '3') | pulldata('contacts', 'phone_number', 'contact_id', ${contact}) | |||||||||||||||||||||
37 | ||||||||||||||||||||||||||
38 | calculate | name | Stores the relevant name, based on the type of "case". | coalesce(${name_case}, ${name_suspected}, ${name_contact}) | ||||||||||||||||||||||
39 | calculate | age | Stores the relevant age, based on the type of "case". | coalesce(${age_case}, ${age_suspected}, ${age_contact}) | ||||||||||||||||||||||
40 | calculate | gender | Stores the relevant gender, based on the type of "case". | coalesce(${gender_case}, ${gender_suspected}, ${gender_contact}) | ||||||||||||||||||||||
41 | calculate | occupation | Stores the relevant occupation, based on the type of "case". | coalesce(${occupation_case}, ${occupation_contact}, ${occupation_suspected}, '') | ||||||||||||||||||||||
42 | calculate | phone_number | Stores the relevant phone number, based on the type of "case". | coalesce(${phonenumber_case}, ${phonenumber_contact}, ${phonenumber_suspected}, '') | ||||||||||||||||||||||
43 | ||||||||||||||||||||||||||
44 | integer | specimen | How many specimen were collected for <strong>virology tests</strong>? | |||||||||||||||||||||||
45 | ||||||||||||||||||||||||||
46 | begin repeat | virology_results | Virology Results | ${specimen} | ||||||||||||||||||||||
47 | text | laboratory_id | Laboratory identification number | The ID should have 5 characters | string-length(.)=5 | Please insert an ID with 5 characters. | yes | |||||||||||||||||||
48 | note | duplicate_warning | Warning, you have entered the value ${laboratory_id} before. Go back and enter something different. | count-selected(${join_laboratory_id}) < index() | ||||||||||||||||||||||
49 | begin group | sample | Sample | field-list | ||||||||||||||||||||||
50 | date | sample_collected | Date sample collected: | no-calendar | .<=today() | Please insert a date up to today. | yes | |||||||||||||||||||
51 | date | sample_received | Date sample received: | no-calendar | .<=today() | Please insert a date up to today. | yes | |||||||||||||||||||
52 | select_one sample | sample_type | Type of sample | yes | ||||||||||||||||||||||
53 | end group | sample | ||||||||||||||||||||||||
54 | text | sample_type_othr | Specify the other type of sample: | selected(${sample_type}, '555') | yes | |||||||||||||||||||||
55 | begin group | test | Test | field-list | ||||||||||||||||||||||
56 | select_one test | test_type | <strong>Type of test</strong> | yes | ||||||||||||||||||||||
57 | select_one result | test_result | <strong>Result</strong> | compact | yes | |||||||||||||||||||||
58 | date | result_date | <strong>Result date:</strong> | no-calendar | .<=today() | Please insert a date up to today. | yes | |||||||||||||||||||
59 | end group | test | ||||||||||||||||||||||||
60 | text | test_type_othr | Specify the other type of test: | selected(${test_type}, '555') | yes | |||||||||||||||||||||
61 | end repeat | virology_results | ||||||||||||||||||||||||
62 | calculate | join_laboratory_id | de-duplicate(' ',join(' ', ${laboratory_id})) | |||||||||||||||||||||||
63 | calculate | positive | Returns "1" if any result of the repeat group is positive. | if(min(${test_result})=1, 1, 0) | ||||||||||||||||||||||
64 | ||||||||||||||||||||||||||
65 | select_one yesno | confirmation | Can you confirm that this is a positive case? | ${positive}=1 | yes | |||||||||||||||||||||
66 | begin group | create_case | Creating a case | not(selected(${type}, '1')) and selected(${confirmation}, '1') | ||||||||||||||||||||||
67 | calculate | formids | All formids to be calculated for the case. | "case_initial_report,case_followup, contact_listing" | ||||||||||||||||||||||
68 | calculate | label | The label of the case. | concat(${name}, ", ", ${age}) | ||||||||||||||||||||||
69 | calculate | table_info | The table_info for the case. | concat(${id}, '|', ${name}, "|", ${age}) | ||||||||||||||||||||||
70 | calculate | followup | Creates a "follow-up date" for today, which means that enumerators should follow-up this case today. | format-date-time(today(), '%e-%b-%Y') | ||||||||||||||||||||||
71 | calculate | sortby | New sortby value, directly based on the followup date, but in a purely numeric format so it can be sorted. | format-date-time(today(), '%d%m') | ||||||||||||||||||||||
72 | note | case_created | Once you submit this form, a new confirmed case will be created with the following details:<br> <br> <b>ID:</b> ${id}<br> <b>Label:</b> ${label}</b> | |||||||||||||||||||||||
73 | end group | create_case | ||||||||||||||||||||||||
74 | ||||||||||||||||||||||||||
75 | text | sms | Click the button to send a sms message: | custom-launch-sms(number=${phone_number},message='Your test came back negative. Thank you for conducting the test, you may receive a phone call soon for a quick follow-up.') | ${positive}=0 or selected(${confirmation}, '0') | |||||||||||||||||||||
76 | ||||||||||||||||||||||||||
77 | calculate | id | Returns the id of the case. | coalesce(${suspected_case}, ${contact}, ${case}) | ||||||||||||||||||||||
78 | ||||||||||||||||||||||||||
79 | calculate | is_case | Returns "1" if this form is to be published for the cases dataset. | selected(${type}, '1') or (not(selected(${type}, '1')) and selected(${confirmation}, '1')) | 1 | |||||||||||||||||||||
80 | calculate | is_suspected | Returns "1" if this form is to be published for the suspected cases dataset. | selected(${type}, '2') | 1 | |||||||||||||||||||||
81 | calculate | is_contact | Returns "1" if this form is to be published for the contacts dataset. | selected(${type}, '3') | 1 | |||||||||||||||||||||
82 | ||||||||||||||||||||||||||
83 | calculate | suspected_status | Updates the status of a suspected case. | selected(${type}, '2') | if(selected(${confirmation}, '1'), "Confirmed case", "Closed") | |||||||||||||||||||||
84 | calculate | contact_status | Updates the status of a contact. | selected(${type}, '3') and selected(${confirmation}, '1') | "Confirmed secondary case" | |||||||||||||||||||||
85 | calculate | case_status | Updates the status of a case. | selected(${type}, '1') or (not(selected(${type}, '1')) and selected(${confirmation}, '1')) | if(selected(${confirmation}, '1'), "Still ill", "Recovered") | |||||||||||||||||||||
86 | ||||||||||||||||||||||||||
87 | calculate | pub_to_users | ${case_status}="Recovered" | "Closed" | ||||||||||||||||||||||
88 | calculate | update_contact_followup2 | Update the status of "contact_followup2" | selected(${type}, '3') and selected(${confirmation}, '1') | "yes" | |||||||||||||||||||||
89 | ||||||||||||||||||||||||||
90 | calculate | last_test | Returns the last test result for a case, to be published in the cases dataset. | if(${confirmation}=1, 'positive', 'negative') | ||||||||||||||||||||||
91 | calculate | number_tests_case | Returns the total number of virological tests conducted for this case. | selected(${type}, '1') or (not(selected(${type}, '1')) and selected(${confirmation}, '1')) | if(pulldata('confirmed_cases', 'number_tests', 'id', ${case})=null, 1, int(pulldata('confirmed_cases', 'number_tests', 'id', ${case}))+1) | |||||||||||||||||||||
92 | calculate | number_tests_contact | Returns the total number of virological tests conducted for this contact. | selected(${type}, '3') | if(pulldata('contacts', 'number_tests', 'id', ${case})=null, 1, int(pulldata('contacts', 'number_tests', 'id', ${case}))+1) | |||||||||||||||||||||
93 | ||||||||||||||||||||||||||
94 | note | endnote | Thank you! You have reached the end of the <b>Virological testing</b> form. <br> <br> Please swipe forward and submit this form to register these virological test results. | |||||||||||||||||||||||
95 | ||||||||||||||||||||||||||
96 | ||||||||||||||||||||||||||
97 | ||||||||||||||||||||||||||
98 | ||||||||||||||||||||||||||
99 | ||||||||||||||||||||||||||
100 |