Create HTML report presentation document using Strategus results stored in a results database.
Download this repository and using RStudio, install the packgage. Then you can make use of the report generator by running:
# Install ReportGenerator using remotes
install.packages('remotes')
remotes::install_github('OHDSI/ReportGenerator')
# Load the library to start using it
library(ReportGenerator)
# to run the report generator with a demo set of results
generatePresentation(
dbms = "<dbms e.g., postgresql>",
server = '<add database server with study results>',
user = '<add username for account with read access to server>',
password = '<add password for account with read access to server>',
resultsSchema = "<result schema name>",
targetId = 1082,
outcomeId = 11123,
comparatorId = 5373,
covariateIds = c(
316139,320128210,443454210,
4282096210,441542210
),
friendlyNames = list(
targetName = 'Drug of interest',
comparatorName = 'Comparator drug',
indicationName = 'Indication A',
outcomeName = 'Outcome B'
),
title = 'Study investigating outcome B in new users of drug of interest',
lead = 'Lead Investigator Name Here',
date = Sys.Date(),
backgroundText = '', # Add any background information about the project here
outputLocation = file.path(getwd(), "extras/reportTest"),
outputName = paste0('presentation_', gsub(':', '_',gsub(' ','_',as.character(date()))),'.html')
)
ReportGenerator is an R package.
Running the package requires R.
ReportGenerator is licensed under Apache License 2.0.
ReportGenerator is being developed in R Studio.
Under development