-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdd_outbreak.R
84 lines (72 loc) · 2.64 KB
/
dd_outbreak.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
outbreak<-
list(
data.frame(
Variable="OutbreakID",
Label="Outbreak Identifier",
Definition="System-provided Outbreak identifier",
Type="Integer",
Mandatory="System-assigned"),
data.frame(
Variable="OutbreakDetectionDate",
Label="Outbreak Detection Date",
Definition="The Date the first Source Records belonging to the Outbreak were found or reported",
Type="Date",
Mandatory="Yes"),
data.frame(
Variable="OutbreakFirstDayInvestigation",
Label="Outbreak First Day Investigation",
Definition="The first date of the official outbreak investigation. This date can be
different from the previous date becuase the first Spource Records could be found as part of another
surveillance activity, such as a ranger patrol. Then, the investigation starts",
Type="Date",
Mandatory="Yes"),
data.frame(
Variable="OutbreakName",
Label="Outbreak Name",
Definition="The name provided to the outbreak",
Type="String",
Mandatory="Yes"),
data.frame(
Variable="LastDayInvestigation",
Label="Outbreak First Day Investigation",
Definition="The last date of the official outbreak investigation",
Type="Date",
Mandatory="Yes"),
data.frame(
Variable="OutbreakDiagnosis",
Label="Outbreak Diagnosis",
Definition="The diagnosis provided to the outbreak. Report the cause of the outbreak",
Type="String",
Mandatory="No"),
data.frame(
Variable="OutbreakDiagnosisBasedOn",
Label="Outbreak Diagnosis Based On",
Definition="The information supporting the diagnosis provided to the outbreak",
Type="String",
Mandatory="No"),
data.frame(
Variable="OutbreakDiagnosisBy",
Label="Outbreak Diagnosis Based On",
Definition="The health, animal, environmental, or another sector of the individual
providing the diagnosis of the Outbreak",
Type="Single selection",
Mandatory="No"),
data.frame(
Variable="OutbreakComments",
Label="Outbreak Comments",
Definition="Provide any comments regarding the Outbreak",
Type="String",
Mandatory="No"))
outbreak<-
outbreak %>% 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())
outbreak