-
Notifications
You must be signed in to change notification settings - Fork 0
/
site_survey.qmd
229 lines (178 loc) · 5.39 KB
/
site_survey.qmd
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
---
title: "Wellcome LEAP Cholecystectomy (Gecko) study Site survey interim results"
date: today
date-format: "DD-MMMM YYYY"
format: html
editor: visual
theme: cerulean
execute:
echo: false
warning: false
---
```{r}
library(tidyverse)
library(scales)
source("functions.R")
source("site_survey_pull.R")
#save(site_survey_orig, file = "site_survey_orig.rda")
#load("site_survey_orig.rda")
n_records = nrow(site_survey_orig)
site_survey = site_survey_orig %>%
mutate(hosp_itu_bed = parse_number(hosp_itu_bed),
train_n = parse_number(train_n))
board = pins::board_connect()
board %>% pins::pin_write(site_survey, name = "gecko_site_survey")
xlab = "Number of hospitals"
```
::: {layout-ncol="1"}
```{r}
library(bslib)
library(bsicons)
library(shiny)
bslib::value_box(
title = "GECKO",
value = paste(n_records, "site surveys completed"),
showcase = bs_icon("hospital"),
p("Updated:"),
p(format(Sys.time(), "%d-%b %Y")),
theme_color = "info"
)
```
:::
# Hospital demographics
::: {layout-ncol="2"}
```{r}
barplot_count(site_survey, hosp_type, "Hospital type", xlab = xlab)
```
```{r}
barplot_count(site_survey, hosp_fund, "Hospital funding", xlab = xlab)
```
```{r}
barplot_count(site_survey, hosp_itu_yn, "HDU or ITU facilities", xlab = xlab)
```
```{r}
histogram(site_survey, hosp_itu_bed, "Number of HDU/ITU beds", "Number of beds", "Number of hospitals")
```
```{r}
barplot_count(site_survey, hosp_hpb, "Specialised HPB team at your hospital", xlab = xlab)
```
```{r}
barplot_count(site_survey, hosp_hpb_path, "HPB: dedicated pathway for bile duct injury management", xlab = xlab)
```
:::
::: {layout-ncol="1"}
::: panel-tabset
## Counts
```{r, fig.height=8, fig.width=10}
barplot_count(site_survey, hosp_hpb_oncall, "On-call services from the HPB team", xlab) +
facet_wrap(~wb)
```
## Plot
```{r, fig.height = 5, fig.width=10}
mytreemap(site_survey, wb, hosp_hpb_oncall) +
ggtitle("On-call services from the HPB team")
```
:::
::: panel-tabset
## Counts
```{r, fig.width=12, fig.height = 5}
barplot_count(site_survey, hosp_hpb_region, "On-call surgeons specialised in HPB", xlab = xlab) +
facet_wrap(~wb, ncol = 4) +
scale_x_continuous(expand = expansion(mult = c(0, 0.3), add = c(0, 0)))
```
## Plot
```{r, fig.height = 5, fig.width=10}
mytreemap(site_survey, wb, hosp_hpb_region) +
ggtitle("On-call surgeons specialised in HPB")
```
:::
```{r, fig.width=12, fig.height = 5}
barplot_count(site_survey, hosp_mis_yn, "Minimally invasive surgery equipment", xlab = xlab) +
facet_wrap(~wb, ncol = 4) +
scale_x_continuous(expand = expansion(mult = c(0, 0.36), add = c(0, 0)))
```
```{r, fig.width=14, fig.height = 5}
barplot_count(site_survey, hosp_mis_type, "Minimally invasive surgery equipment type", xlab = xlab) +
facet_wrap(~wb, ncol = 4) +
scale_x_continuous(expand = expansion(mult = c(0, 0.33), add = c(0, 0)))
```
```{r, fig.width=12, fig.height = 5}
barplot_count(site_survey, hosp_mis_image, "Routine intraoperative images", xlab = xlab) +
facet_wrap(~wb, ncol = 4) +
scale_x_continuous(expand = expansion(mult = c(0, 0.33), add = c(0, 0)))
```
:::
# Training in cholecystectomy
::: {layout-ncol="2"}
```{r}
barplot_count(site_survey, train_perform, "Trainees who perform gallbladder surgery", xlab = xlab)
```
```{r}
histogram(site_survey, train_n, "Trainees who perform gallbladder surgery", "Number of trainees", "Number of hospitals")
```
:::
::: {layout-ncol="1"}
::: panel-tabset
## Counts
```{r, fig.width=13, fig.height = 15}
barplot_count(site_survey, train_grade, "Grade of trainees who perform gallbladder surgery", xlab = xlab) +
facet_wrap(~wb, ncol = 4) +
scale_x_continuous(expand = expansion(mult = c(0, 0.3), add = c(0, 0)))
```
## Plot
```{r, fig.height = 5, fig.width=10}
mytreemap(site_survey, wb, train_grade) +
ggtitle("Grade of trainees who perform gallbladder surgery")
```
:::
::: panel-tabset
## Counts
```{r, fig.height = 8, fig.width=10}
barplot_count(site_survey, train_sim_yn, "Facilities for simulations training for cholecystectomies?", xlab = xlab) +
facet_wrap(~wb, ncol = 4)
```
## Plot
```{r, fig.height = 5, fig.width=10}
mytreemap(site_survey, wb, train_sim_yn) +
ggtitle("Facilities for simulations training for cholecystectomies?")
```
:::
::: panel-tabset
## Counts
```{r, fig.height = 8, fig.width=10}
barplot_count(site_survey, train_sim_type, "Types of training simulation available", xlab = xlab) +
facet_wrap(~wb, ncol = 4)
```
## Plot
```{r, fig.height = 5, fig.width=10}
mytreemap(site_survey, wb, train_sim_type) +
ggtitle("Types of training simulation available")
```
:::
::: panel-tabset
## Counts
```{r, fig.height = 8, fig.width=10}
barplot_count(site_survey, tain_chole, "Structured programmes/coaching for cholecystectomy training", xlab = xlab) +
facet_wrap(~wb, ncol = 4)
```
## Plot
```{r, fig.height = 5, fig.width=10}
mytreemap(site_survey, wb, tain_chole) +
ggtitle("Structured programmes/coaching for cholecystectomy training")
```
:::
::: panel-tabset
## Counts
```{r, fig.width = 12, fig.height = 10}
barplot_count(site_survey, train_bdi,
"Structured programmes/coaching for bile duct injury training", high_n = 80, xlab = xlab) +
facet_wrap(~wb, ncol = 4) +
scale_x_continuous(expand = expansion(mult = c(0, 0.33), add = c(0, 0)))
```
## Plot
```{r, fig.height = 5, fig.width=10}
mytreemap(site_survey, wb, train_bdi) +
ggtitle("Structured programmes/coaching for bile duct injury training")
```
:::
:::