-
Notifications
You must be signed in to change notification settings - Fork 0
/
dd_surv_act_animal_source.R
428 lines (365 loc) · 16.8 KB
/
dd_surv_act_animal_source.R
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
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
# @@@@@@@@@@@@@@@@@@@@@@@@ #
# Animal Source Dictionary #
# @@@@@@@@@@@@@@@@@@@@@@@@ #
animal_source<-
list(
data.frame(
Variable="AnimalSourceCodeStructure",
Label="Animal Source Code Structure",
Definition="Explain the nomenclature of the Animal Source Codes used
(e.g., first letter refers to the pathogen, the next two letters refer to the
country, the next letter refers to the taxonomic group, and then the number is
the sequential number of the Animal Source in the Surveillance Initiative",
Type="String",
Mandatory="Yes"),
# --- HAZARDS
# ----------
data.frame(
Variable="AnimalSourceSpecies",
Label="Animal Source Species",
Definition="Species of the Animal Sources of interest for the Surveillance Activity. It is possible
to select high taxonomy levels such as 'Mammalia', 'Chordata', 'Insecta', etc. to indicate that
no particular species is targeted",
Type="Multiple selection",
Mandatory="Yes"),
data.frame(
Variable="AnimalSourceSpeciesIdentificationMethod",
Label="Animal Source Species Identification",
Definition="Explain the methodology used to identify the species of the Animal Sources",
Type="Multiple selection",
Mandatory="Yes"),
data.frame(
Variable="AnimalSourceSpeciesIdentificationMethodReferences",
Label="BAnimal Source Species Identification Method References",
Definition="Provide references associated with the identification method of the species of Animal Source",
Type="String",
Mandatory="No"),
data.frame(
Variable="AnimalSourceInclusionCriteria",
Label="Animal Source Inclusion Criteria",
Definition="Provide specific inclusion criteria for the Animal Sources of the species of interest
considered for the Surveillance Activity, if any",
Type="String",
Mandatory="Yes"),
data.frame(
Variable="AnimalSourceExclusionCriteria",
Label="Animal Source Exclusion Criteria",
Definition="Explain the reason to exclude certain Animal Sources
of the species of interest for the Surveillance Activity, if any",
Type="String",
Mandatory="No"),
data.frame(
Variable="AnimalSourceHowObtained",
Label="Obtaining Animal Sources",
Definition="Explain how Animal Sources are obtained for the Surveillance Activity",
Type="String",
Mandatory="Yes"),
data.frame(
Variable="AnimalSourceCaptured",
Label="Animal Source Captured",
Definition="Answer to the question: 'Are Animal Sources associated with the current
Surveillance Activity captured?'",
Type="Boolean",
Mandatory="Yes"),
data.frame(
Variable="AnimalSourceCaptureProtocol",
Label="Animal Source Capture Protocol",
Definition="Explain how Animal Sources are captured",
Type="String",
Mandatory="Yes"),
data.frame(
Variable="AnimalSourceCaptureProtocolReferences",
Label="Animal Source Capture Protocol References",
Definition="Provide references associated with the capture method of the Animal Sources",
Type="String",
Mandatory="No"),
data.frame(
Variable="AnimalSourceIdentification",
Label="Animal Sources Are Identified Individually",
Definition="Answer to the question: 'Are Animal Sources individually identified?'
(e.g. rings, line pattern, chip, etc.)",
Type="Boolean",
Mandatory="Yes"),
data.frame(
Variable="AnimalSourceIdentificationMethod",
Label="Animal Source Identification Method",
Definition="Explain how Animal Sources are individually identified
(e.g. rings, line pattern, chip, etc.)",
Type="String",
Mandatory="Yes"),
data.frame(
Variable="AnimalSourceIdentificationMethodReferences",
Label="Animal Source Identification Method References",
Definition="Provide references associated with identification method of Animal Sources",
Type="String",
Mandatory="No"),
data.frame(
Variable="AnimalSourceRecordsOverTime",
Label="Animal Source Records Over Time",
Definition="Answer to the question: 'Is it aimed to obtained records of the same Animal Source during the
Surveillance Activity?'",
Type="Boolean",
Mandatory="Yes"),
data.frame(
Variable="AnimalSourceRecapture",
Label="Animal Source Recapture",
Definition="Answer to the question: 'Are Animal Sources recaptured during the Surveillance Activity?'",
Type="Boolean",
Mandatory="Yes"),
data.frame(
Variable="AnimalSourceFateAfterRecapture",
Label="Animal Source Fate After Capture Recapture",
Definition="Explain what happens with the Animal Sources identified individually after recapture",
Type="String",
Mandatory="No"),
data.frame(
Variable="AnimalSourceEuthanasia",
Label="Animal Sources Euthanasia",
Definition="Answer to the question: 'Are Animal Sources euthanized?'",
Type="Boolean",
Mandatory="Yes"),
data.frame(
Variable="AnimalSourceEuthanasiaMethod",
Label="Animal Source Euthanasia Method",
Definition="Explain how Animal Sources are euthanized'",
Type="String",
Mandatory="Yes"),
data.frame(
Variable="AnimalSourceEuthanasiaMethodReferences",
Label="Animal Source Euthanasia Method References",
Definition="Provide references associated with the euthanasia method used",
Type="String",
Mandatory="No"),
data.frame(
Variable="AnimalSourceCarcassCollected",
Label="Animal Source Carcass Collected",
Definition="Answer to the question: 'Are Animal Source carcasses collected as part the Surveillance Activity?'",
Type="Boolean",
Mandatory="Yes"),
data.frame(
Variable="AnimalSourceCarcassFieldStorage",
Label="Carcass Field Storage",
Definition="The methods used to preserve carcasses collected while in the field",
Type="Mutiple selection",
Mandatory="Yes"),
data.frame(
Variable="AnimalSourceCarcassLabStorage",
Label="Carcass Laboratory Storage",
Definition="The methods to preserve carcasses collected while in the laboratory",
Type="Mutiple selection",
Mandatory="Yes"),
data.frame(
Variable="AnimalSourceCarcassNecropsy",
Label="Animal Source Carcass For Necropsy",
Definition="Answer to the question: 'Are Animal Source carcasses collected as part the Surveillance Activity necropsied?'",
Type="Boolean",
Mandatory="Yes"),
data.frame(
Variable="AnimalSourceCarcassNecropsyProtocol",
Label="Animal Source Necropsy Protocol",
Definition="Describe the protocol used to conduct the necropsies",
Type="String",
Mandatory="No"),
data.frame(
Variable="AnimalSourceCarcassNecropsyProtocolReferences",
Label="Animal Source Necropsy Protocol References",
Definition="Provide references associated with the protocol to conduct the necropsies",
Type="String",
Mandatory="No"),
data.frame(
Variable="AnimalSourceGrouping",
Label="Animal Source Are Grouped",
Definition="Answer to the question: 'Are Animal Sources associated with the current
Surveillance Activity clustered in units smaller than 'Event'?'",
Type="Boolean",
Mandatory="Yes"),
data.frame(
Variable="AnimalSourceGroupingStructure",
Label="Grouping of Animal Sources",
Definition="Explain the grouping structure of the Animal Sources below 'Event'
(e.g., Events represent a stall in a market. Animal Sources are grouped by cage in each stall)",
Type="String",
Mandatory="Yes"),
data.frame(
Variable="AnimalSourceDiagnosticsUsed",
Label="Diagnostics Are Applied in the Animal Source",
Definition="Answer to the question: 'Are diagnostics conducted in Animal Source?'
This question refers to Diagnostics that use either the carcass or the full animal
as the tested Specimen. For example, ultrasound or X-rays. Information on Diagnostics applied in
a Specimen sourced by an animal are requested below at the Animal Source Specimen level",
Type="Boolean",
Mandatory="Yes"),
data.frame(
Variable="AnimalSourceDiagnosticsUsedProtocol",
Label="Animal Source Diagnostic Protocols",
Definition="Name and describe the protocols of the Diagnostics applied in Animal Sources",
Type="String",
Mandatory="Yes"),
data.frame(
Variable="AnimalSourceDiagnosticsUsedProtocolReferences",
Label="Animal Source Diagnostic Protocols References",
Definition="Provide references associated with the Diagnostic protocols conducted in Animal Sources",
Type="String",
Mandatory="Yes"),
# --- SPECIMENS
data.frame(
Variable="AnimalSourceSpecimenUsed",
Label="Animal Specimen Used",
Definition="Answer to the question: 'Are Specimens from Animal Sources
(e.g., live animal, carcass) collected under a different Surveillance Activity
used in the current Surveillance Activity?'",
Type="Boolean",
Mandatory="Yes"),
data.frame(
Variable="AnimalSourceSpecimenCollection",
Label="Animal Specimen Collection",
Definition="Answer to the question: 'Are Specimens collected from the Animal Sources
(e.g., live animal, carcass) while in the field or during a necropsy under the current
Surveillance Activity?'",
Type="Boolean",
Mandatory="Yes"),
data.frame(
Variable="AnimalSourceSpecimenType",
Label="Animal Source Specimen Type",
Definition="Select the Specimen Types used or collected from Animal Sources",
Type="Multiple selection",
Mandatory="Yes"),
data.frame(
Variable="AnimalSourceSpecimenCollectionMethod",
Label="Animal Source Specimen Collection Method",
Definition="Explain how the Specimens are collected from the Animal Sources",
Type="String",
Mandatory="Yes"),
data.frame(
Variable="AnimalSourceSpecimenCollectionMethodReferences",
Label="Animal Source Specimen Collection Method References",
Definition="Provide references associated with the collection method of the Animal Source Specimens",
Type="String",
Mandatory="No"),
data.frame(
Variable="AnimalSourceSpecimenCollectionAtRecapture",
Label="Animal Specimen Collection at Recapture",
Definition="Answer to the question: 'Are Specimens collected from Animal Sources when they are recaptured?'",
Type="Boolean",
Mandatory="Yes"),
data.frame(
Variable="AnimalSourceSpecimenCollectionParasitesVectors",
Label="Animal Specimen Collection Includes Parasites or Vectors",
Definition="Answer to the question: 'Are parasites or vectors collected directly from the Animal Sources or
are they collected from a known Animal Source?' (in the first, case the parasites or vectors are collected
directly from the Animal Source. In the second case, they can be associated to an Animal Source,
for example, when collecting a tick right below a carcass. Otherwise the parasite or vector is an 'Arthropod
Source')",
Type="Boolean",
Mandatory="Yes"),
data.frame(
Variable="AnimalSourceSpecimenFieldStorage",
Label="Animal Specimen Field Storage",
Definition="Method to preserve the Animal Specimens collected in the field",
Type="Mutiple selection",
Mandatory="Yes"),
data.frame(
Variable="AnimalSourceSpecimenLabStorage",
Label="Animal Specimen Laboratory Storage",
Definition="Method to preserve the Animal Specimens collected in the laboratory",
Type="Mutiple selection",
Mandatory="Yes"),
data.frame(
Variable="AnimalSourceSpecimenPooling",
Label="Animal Source Specimen Pooling",
Definition="Answer to the question: 'Are the Animal Source Specimens used in the Surveillance Activity
pooled?' (for a definition of 'pooling' in the database see the online database manual)",
Type="Boolean",
Mandatory="Yes"),
data.frame(
Variable="AnimalSourceSpecimenPoolingStrategy",
Label="Animal Source Specimen Pooling Strategy",
Definition="Explain the pooling method of the Animal Source Specimens
(for a definition of 'pooling' in the database see the online database manual)",
Type="String",
Mandatory="Yes"),
data.frame(
Variable="AnimalSourceSpecimenCodeStructure",
Label="Animal Source Specimen Code Structure",
Definition="Explain the nomenclature of the Animal Source Specimen Codes used
(e.g., first letter refers to the pathogen, the next two letters refer to the
country, the next letter refers to the taxonomic group, the following letters
are the type of Specimen, then the numbers are the Animal Source, and the last number is
the sequential Specimen from the Animal Source",
Type="String",
Mandatory="Yes"),
data.frame(
Variable="AnimalSourceSpecimenDiagnosticsUsed",
Label="Diagnostics Are Applied in the Animal Specimens",
Definition="Answer to the question: 'Are diagnostics applied to Animal Source Specimens?'.
Diagnostics applied in a full Animal Source are requested above",
Type="Boolean",
Mandatory="Yes"),
data.frame(
Variable="AnimalSourceSpecimenDiagnosticsUsedProtocol",
Label="Animal Specimen Diagnostic Protocols",
Definition="Name and describe the protocols of the Diagnostics conducted with in the Animal Source Specimens",
Type="String",
Mandatory="Yes"),
data.frame(
Variable="AnimalSourceSpecimenDiagnosticsUsedProtocolReferences",
Label="Animal Source Diagnostic Protocols References",
Definition="Provide references associated with the Diagnostic protocols conducted in the Animal Source Specimens",
Type="String",
Mandatory="No"),
data.frame(
Variable="AnimalSourceSpecimenCriteriaPositiveTest",
Label="Animal Specimen Criteria Positive Test",
Definition="Explain the criteria to establish that each diagnostic test method applied to an Animal
Source Specimen is positive. The criteria for positive Animal Source and Animal Source Specimens are requested below",
Type="String",
Mandatory="Yes"),
data.frame(
Variable="AnimalSourceSpecimenCriteriaPositiveTestReferences",
Label="Animal Specimen Criteria Positive Test References",
Definition="Provide references associated with the criteria to establish that each diagnostic test method applied to an Animal
Source Specimen is positive",
Type="String",
Mandatory="No"),
data.frame(
Variable="AnimalSourceSpecimenCriteriaPositiveCase",
Label="Animal Source Specimen Criteria Positive Case",
Definition="Explain the criteria to establish that an Animal
Source Specimen is positive for each specific hazard targeted in the Surveillance Activity.
The criteria for positive Animal Source Records are requested below",
Type="String",
Mandatory="Yes"),
data.frame(
Variable="AnimalSourceSpecimenCriteriaPositiveCaseReferences",
Label="Animal Source Specimen Criteria Positive Case References",
Definition="Provide references associated with the criteria to establish that an Animal
Source Specimen is positive for each specific hazard targeted in the Surveillance Activity",
Type="String",
Mandatory="No"),
data.frame(
Variable="AnimalSourceRecordCriteriaPositiveCase",
Label="Animal Source Record Criteria Positive Case",
Definition="Explain the criteria to establish that an Animal
Source Record is positive for each specific hazard targeted in the Surveillance Activity",
Type="String",
Mandatory="Yes"),
data.frame(
Variable="AnimalSourceRecordCriteriaPositiveCaseReferences",
Label="Animal Source Record Criteria Positive Case References",
Definition="Provide references associated with the criteria to establish that an Animal
Source Record is positive for each specific hazard targeted in the Surveillance Activity",
Type="String",
Mandatory="No")
)
animal_source<-
animal_source %>% bind_rows() |>
gt::gt() %>%
gt::tab_options(table.font.size = 8) %>%
gt::cols_width(Variable ~ gt::pct(22),
Label ~ gt::pct(20),
Definition ~ gt::pct(30),
Type~ gt::pct(13),
Mandatory~ gt::pct(15)) %>%
gt::tab_style(
style = cell_text(size = px(15), weight = "bold"),
locations = cells_column_labels())