viewTrial
provides a template R shiny web application that can be used for centralized monitoring in clinical trials and research.
You could clone this repository to your local machine to copy the template code.
The app has been developed in a modular fashion as an R-package in which each module represents a tab in the sidemenu.
The tabs are categorised under two major sections, "Performance measures" and "Study management".
Recruitment mod_recruitment
provides a recruitment plot
together with two information boxes.
Retention mod_retention
details loss to follow up.
Data quality
mod_completeness
provides an example of how
data completeness might be shownmod_timeliness
provides an example of how time
between events and their entry into the database might be shownmod_queries
provides an example of how queries
might be shownAspects of study management can also be depicted via Shiny.
Follow-up visits mod_fup
provides an example of how tracking
of participant progress through a trial might be shown
Safety management
mod_sae
counts of SAEsFor example, let's add a module called "Home" to the app.
file.copy("R/mod_skeleton.R", "R/mod_home.R")
Adapt the file "R/mod_home.R" by renaming the UI and server functions and adding content.
Create a module alias by adding the line home = "mod_home",
to R/get_modules.R.
Add the line menuItem("Home", tabName = mod$home, icon = icon("home")),
to R/ui.R within sidebarMenu(). Icons of choice can be selected from https://fontawesome.com/icons and https://getbootstrap.com/docs/3.3/components/#glyphicons.
Add the line mod_home_ui(mod$home, label = mod$home),
to R/ui.R within dashboardBody().
Add the line callModule(mod_home_server, mod$home)
to R/server.R within app_server().
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.