This repository has been archived by the owner on May 2, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
advancedFilterOptions.js
396 lines (388 loc) · 13.2 KB
/
advancedFilterOptions.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
import React from 'react';
export const advancedFilterOptions = [
/* BOOLEAN FILTER OPTIONS */
{
name: 'continous-exposure',
title: 'Continuous Exposure (Boolean)',
description: 'Monitorees who have continuous exposure enabled',
type: 'boolean',
},
{
name: 'hoh',
title: 'Daily Reporters (Boolean)',
description: 'Monitorees that are a Head of Household or self-reporter',
type: 'boolean',
},
{
name: 'household-member',
title: 'Household Member (Boolean)',
description: 'Monitorees that are in a household but not the Head of Household',
type: 'boolean',
},
{
name: 'monitoring-status',
title: 'Active Monitoring (Boolean)',
description: 'Monitorees who are currently under active monitoring',
type: 'boolean',
},
{
name: 'never-responded',
title: 'Never Reported (Boolean)',
description: 'Monitorees who have no reports',
type: 'boolean',
},
{ name: 'paused', title: 'Notifications Paused (Boolean)', description: 'Monitorees who have paused notifications', type: 'boolean' },
{
name: 'require-interpretation',
title: 'Requires Interpretation (Boolean)',
description: 'Monitorees who require interpretation',
type: 'boolean',
},
{
name: 'responded-today',
title: 'Reported in last 24 hours (Boolean)',
description: 'Monitorees who had a report created in the last 24 hours',
type: 'boolean',
},
{
name: 'sent-today',
title: 'Sent Notification in last 24 hours (Boolean)',
description: 'Monitorees who have been sent a notification in the last 24 hours',
type: 'boolean',
},
{
name: 'sms-blocked',
title: 'SMS Blocked (Boolean)',
description: 'Monitorees that have blocked SMS communications with Sara Alert',
type: 'boolean',
tooltip:
'This filter will return monitorees that have texted “STOP” in response to a Sara Alert text message and cannot receive messages through SMS Preferred Reporting Methods until they text "START".',
},
{
name: 'seven-day-quarantine',
title: 'Candidate to Reduce Quarantine after 7 Days (Boolean)',
description: 'All asymptomatic records that meet CDC criteria to end quarantine after Day 7 (based on last date of exposure and most recent lab result)',
type: 'boolean',
tooltip:
'This filter is based on "Options to Reduce Quarantine for Contacts of Persons with SARS-COV-2 Infection Using Symptom Monitoring and Diagnostic Testing" released by the CDC on December 2, 2020. For more specific information, see Appendix A in the User Guide.',
},
{
name: 'ten-day-quarantine',
title: 'Candidate to Reduce Quarantine after 10 Days (Boolean)',
description: 'All asymptomatic records that meet CDC criteria to end quarantine after Day 10 (based on last date of exposure)',
type: 'boolean',
tooltip:
'This filter is based on "Options to Reduce Quarantine for Contacts of Persons with SARS-COV-2 Infection Using Symptom Monitoring and Diagnostic Testing" released by the CDC on December 2, 2020. For more specific information, see Appendix A in the User Guide.',
},
{
name: 'ineligible-for-recovery-definition',
title: 'Ineligible for any recovery definition (Boolean)',
description: 'All isolation records ineligible to ever appear on Records Requiring Review line list',
type: 'boolean',
tooltip:
'This filter will return all records in the Isolation workflow that both do not have a Symptom Onset Date and do not have a positive lab result with a Specimen Collection Date',
},
/* SEARCH FILTER OPTIONS */
{
name: 'address-foreign',
title: 'Address (outside USA) (Text)',
description: 'Monitoree Address 1, Town/City, Country, Address 2, Postal Code, Address 3 or State/Province (outside USA)',
type: 'search',
},
{
name: 'address-usa',
title: 'Address (within USA) (Text)',
description: 'Monitoree Address 1, Town/City, State, Address 2, Zip, or County within USA',
type: 'search',
},
{
name: 'close-contact-with-known-case-id',
title: 'Close Contact with a Known Case ID (Text)',
description: 'Monitorees with a known exposure to a probable or confirmed case ID',
type: 'search',
options: ['Exact Match', 'Contains'],
},
{
name: 'cohort',
title: 'Common Exposure Cohort Name (Text)',
description: 'Monitoree common exposure cohort name or description',
type: 'search',
},
{
name: 'email',
title: 'Email (Text)',
description: 'Monitoree email address',
type: 'search',
},
{
name: 'first-name',
title: 'Name (First) (Text)',
description: 'Monitoree first name',
type: 'search',
},
{
name: 'last-name',
title: 'Name (Last) (Text)',
description: 'Monitoree last name',
type: 'search',
},
{
name: 'middle-name',
title: 'Name (Middle) (Text)',
description: 'Monitoree middle name',
type: 'search',
},
{
name: 'sara-id',
title: 'Sara Alert ID (Text)',
description: 'Monitoree Sara Alert ID',
type: 'search',
},
{
name: 'telephone-number',
title: 'Telephone Number (Exact Match) (Text)',
description: 'Monitorees with specified 10 digit telephone number',
type: 'search',
},
{
name: 'telephone-number-partial',
title: 'Telephone Number (Contains) (Text)',
description: 'Monitorees with a telephone number that contains specified digits',
type: 'search',
},
/* SELECT FILTER OPTIONS */
{
name: 'monitoring-plan',
title: 'Monitoring Plan (Select)',
description: 'Monitoree monitoring plan',
type: 'select',
options: [
'None',
'Daily active monitoring',
'Self-monitoring with public health supervision',
'Self-monitoring with delegated supervision',
'Self-observation',
'',
],
},
{
name: 'preferred-contact-method',
title: 'Preferred Reporting Method (Select)',
description: 'Monitorees preferred reporting method',
type: 'select',
options: ['Unknown', 'E-mailed Web Link', 'SMS Texted Weblink', 'Telephone call', 'SMS Text-message', 'Opt-out', ''],
},
{
name: 'preferred-contact-time',
title: 'Preferred Contact Time (Select)',
description: 'Monitoree preferred contact time',
type: 'select',
options: ['Early Morning', 'Morning', 'Afternoon', 'Evening', 'Late Night', ''],
tooltip: (
<div>
<span className="d-block">Early Morning (Midnight - 7:00)</span>
<span className="d-block">Morning (8:00 - 11:00)</span>
<span className="d-block">Afternoon (Noon - 15:00)</span>
<span className="d-block">Evening (16:00 - 19:00)</span>
<span className="d-block">Late Night (20:00 - 23:00)</span>
</div>
),
},
{
name: 'primary-language',
title: 'Primary Language (Select)',
description: 'Monitoree primary language',
type: 'select',
options: [], // populated asynchronously in the AdvancedFilter component
},
{
name: 'risk-exposure',
title: 'Exposure Risk Assessment (Select)',
description: 'Monitoree exposure risk assessment',
type: 'select',
options: ['High', 'Medium', 'Low', 'No Identified Risk', ''],
},
{
name: 'flagged-for-follow-up',
title: 'Flagged for Follow-up (Select)',
description: 'Monitoree flagged for follow-up',
type: 'select',
options: [
'Any Reason',
'Deceased',
'Duplicate',
'High-Risk',
'Hospitalized',
'In Need of Follow-up',
'Lost to Follow-up',
'Needs Interpretation',
'Quality Assurance',
'Refused Active Monitoring',
'Other',
],
tooltip:
'This will return monitorees that are flagged for follow-up for the selected reason. To return all montitorees flagged for follow-up, select the “Any Reason” option.',
},
/* MULTI-SELECT OPTIONS */
{
name: 'assigned-user',
title: 'Assigned User (Multi-select)',
description: 'Monitorees who have a specific assigned user',
type: 'multi',
options: [], // Populated asynchronously in the AdvancedFilter component
tooltip:
'If multiple Assigned Users are selected, records assigned to any of those users will be returned. Only Assigned User values currently listed in a record are selectable. Leaving this field blank will not filter out any monitorees.',
},
{
name: 'jurisdiction',
title: 'Jurisdiction (Multi-select)',
description: 'Monitorees of a specific jurisdiction',
type: 'multi',
options: [], // Populated in the AdvancedFilter component,
tooltip:
'If multiple Jurisdictions are selected, records assigned to any of those Jurisdictions will be returned. All Jurisdictions that you have access to are selectable. Leaving this field blank will not filter out any monitorees.',
},
/* NUMBER FILTER OPTIONS */
{
name: 'age',
title: 'Age (Number)',
description: 'Current Monitoree Age',
type: 'number',
allowRange: true,
},
{
name: 'manual-contact-attempts',
title: 'Manual Contact Attempts (Number)',
description: 'All records with the specified number of manual contact attempts',
type: 'number',
options: ['Successful', 'Unsuccessful', 'All'],
},
/* DATE FILTER OPTIONS */
{
name: 'enrolled',
title: 'Enrolled (Date)',
description: 'Monitorees enrolled in system during specified date range',
type: 'date',
},
{
name: 'latest-report',
title: 'Latest Report (Date)',
description: 'Monitorees with latest report during specified date range',
type: 'date',
},
{
name: 'last-date-exposure',
title: 'Last Date of Exposure (Date)',
description: 'Monitorees who have a last date of exposure during specified date range',
type: 'date',
},
{
name: 'symptom-onset',
title: 'Symptom Onset (Date)',
description: 'Monitorees who have a Symptom Onset Date during specified date range',
type: 'date',
},
/* RELATIVE DATE FILTER OPTIONS */
{
name: 'enrolled-relative',
title: 'Enrolled (Relative Date)',
description: 'Monitorees enrolled in system during specified date range (relative to the current date)',
type: 'relative',
hasTimestamp: true,
},
{
name: 'latest-report-relative',
title: 'Latest Report (Relative Date)',
description: 'Monitorees with latest report during specified date range (relative to the current date)',
type: 'relative',
hasTimestamp: true,
},
{
name: 'last-date-exposure-relative',
title: 'Last Date of Exposure (Relative Date)',
description: 'Monitorees who have a last date of exposure during specified date range (relative to the current date)',
type: 'relative',
hasTimestamp: false,
},
{
name: 'symptom-onset-relative',
title: 'Symptom Onset (Relative Date)',
description: 'Monitorees who have a Symptom Onset Date during specified date range (relative to the current date)',
type: 'relative',
hasTimestamp: false,
},
/* COMBINATION OPTIONS */
{
name: 'lab-result',
title: 'Lab Result (Combination)',
description: 'Monitorees with specified Lab Result criteria',
type: 'combination',
tooltip:
'Returns records that contain at least one Lab Result entry that meets all user-specified criteria (e.g., searching for a specific Lab Test Type and Report Date will only return records containing at least one Lab Result entry with matching values in both fields).',
fields: [
{
name: 'result',
title: 'result',
type: 'select',
options: ['positive', 'negative', 'indeterminate', 'other', ''],
},
{
name: 'lab-type',
title: 'test type',
type: 'select',
options: ['PCR', 'Antigen', 'Total Antibody', 'IgG Antibody', 'IgM Antibody', 'IgA Antibody', 'Other', ''],
},
{
name: 'specimen-collection',
title: 'specimen collection date',
type: 'date',
},
{
name: 'report',
title: 'report date',
type: 'date',
},
],
},
{
name: 'vaccination',
title: 'Vaccination (Combination)',
description: 'Monitorees with specified Vaccination criteria',
type: 'combination',
tooltip:
'Returns records that contain at least one Vaccination entry that meets all user-specified criteria (e.g., searching for a specific Vaccination Product Name and Administration Date will only return records containing at least one Vaccination entry with matching values in both fields).',
fields: [
{
name: 'vaccine-group',
title: 'vaccine group',
type: 'select',
options: ['COVID-19'],
},
{
name: 'product-name',
title: 'product name',
type: 'select',
options: [
'Moderna COVID-19 Vaccine (non-US Spikevax)',
'Pfizer-BioNTech COVID-19 Vaccine (COMIRNATY)',
'Janssen (J&J) COVID-19 Vaccine',
'AstraZeneca COVID-19 Vaccine (Non-US tradenames include VAXZEVRIA, COVISHIELD)',
'Coronavac (Sinovac) COVID-19 Vaccine',
'Sinopharm (BIBP) COVID-19 Vaccine',
'Unknown',
],
},
{
name: 'administration-date',
title: 'administration date',
type: 'date',
},
{
name: 'dose-number',
title: 'dose number',
type: 'select',
options: ['', '1', '2', '3', 'Unknown'],
},
],
},
];