-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathui.R
45 lines (36 loc) · 1.63 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
# Alexandria Jensen
# 23 September 2019
# This is the ui portion of a shiny app that provides reports and descriptive statistics
# from data within the LIIA REDCap database
fluidPage(theme=shinythemes::shinytheme("sandstone"),
titlePanel("Reports from LIIA REDCap Database"),
# Sidebar - filters for the data
sidebarLayout(
sidebarPanel(
helpText("Create tables for LIIA study using REDCap API calls"),
# Input for API Token
passwordInput("API_token","REDCap API Token"),
hr(),
# Go button to start REDCap API call
actionButton("goBtn", "Call REDCap API"),
hr() ,
# Which type of report to be created
radioButtons("type_report","Type of Report to be Created",
choices=c("Upcoming Appts","Demographics","Active Enrollment","Participant Visit Stats",
"Baseline and Follow-Up Status","Consensus Conference",
"Optional Measures","Patient Drop Out/Ineligibility","Patient Death","Consent Metrics"),
selected="Upcoming Appts"),
hr(),
# Button to update the data
actionButton("updateBtn", "Update Data")
),
# Main panel used to display the report and give option for downloading report as a .csv file
mainPanel(
#downloadButton("downloadData","Download Table"), dateInput("consentdate", "Consent Date>", value = "2010-02-29"),
downloadButton("downloadData","Download Table"),
dateInput("consentdate", "First Consent Date >", value = "2010-02-29"),
br(),br(),
tableOutput("dataTable")
)
)
)