-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathui.R
117 lines (103 loc) · 3.62 KB
/
ui.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
library(shinydashboard)
ui <- dashboardPage(
dashboardHeader(title=HTML("Atrium Health COVID-19 Hospital Impact Forecasting--Greater Charlotte Area"), titleWidth = "800"),
## sidebar
dashboardSidebar(
tags$head(tags$style(HTML('.logo {
background-color: #008C95 !important;
}
.navbar {
background-color: #008080 !important;
}
/* main sidebar
.skin-blue .main-sidebar {
background-color: #58595B;
}*/
'))),
useShinyjs(),
HTML("<img src='AH_logo.png' align='middle'><p></p>"),
valueBox(d_S, "Greater Charlotte Area Population", icon = icon("users"), width=12, color="red"),
actionButton("show", HTML("Click for definition of </br>Greater Charlotte Area")),
dateInput("dat.date", "Date:", value = "2020-09-26"),
h4("ARIMA Model Parameters for Hospital Census:"),
prettySwitch(
inputId = "switch_auto_arima",
label = "Optimized ARIMA Parameters",
status = "success",
fill = TRUE),
numericInput('hosp_p', value = default_p, label = "p:", min = 0, step = 1),
numericInput('hosp_d', value = default_d, label = "d:", min = 0, step = 1),
numericInput('hosp_q', value = default_q, label = "q:", min = 0, step = 1),
actionButton("para_setting","Submit Parameters"),
sliderInput("slider_h", label = "No. of days forecast:", min = 7, max = 90, value = default_h, step = 1),
## beds stats panel
br(),
hr(),
h4(paste("Update:",bed_stat_date)),
h4("Copyright 2021 Atrium Health. All rights reserved.")
),
dashboardBody(
fluidRow(
column(
width=12,
box(
title="Covid-19 Hospital Census Time Series Model",
width=12,
status = "warning",
solidHeader = TRUE,
collapsible = TRUE,
tabsetPanel(
tabPanel("All Beds", plotlyOutput('ts_hosp_figure')),
tabPanel("ICU", plotlyOutput('ts_icu_figure')),
tabPanel("Vent", plotlyOutput('ts_vent_figure'))
)
)
)
),
fluidRow(
column(
width=12,
box(
width=12,
status = "danger", solidHeader = TRUE,
collapsible = TRUE,
title="Bed Capacity",##"COVID-19 Hospital Census by Day",
fluidRow(
column(
width = 2,
selectInput("select_case", "", choices =c("Nominal Scenario"="nominal","Worst Scenario" = "worst") )
)
),
fluidRow(
column(
width = 12,
plotlyOutput('hosp_cen_stack_figure')
)
)
)
)
),
fluidRow(
column(
width=6,
box(
width=12,
status = "warning", solidHeader = TRUE,
collapsible = TRUE,
title="Observed COVID-19 ICU Proportion of Hospitalization with 95% Confidence Interval",
plotlyOutput('icu_obs_ci')
)
),
column(
width=6,
box(
width=12,
status = "primary", solidHeader = TRUE,
collapsible = TRUE,
title="Observed COVID-19 Vent Proportion of ICU Admission with 95% Confidence Interval",
plotlyOutput('vent_obs_ci')
)
)
)
)
)