Generates a presentation from a Strategus result
generatePresentation(
server,
username,
password,
dbms,
resultsSchema = NULL,
dbDetails = NULL,
lead = "add name",
team = "name 1 name 2",
trigger = "A signal was found in spontaneous reports",
safetyQuestion = "",
objective = "",
topline1 =
"Very brief executive summary. You can copy-paste language from the conclusion.",
topline2 =
"If an estimation was requested but not feasible, this should be mentioned here.",
topline3 =
"If no estimation study was requested, this high-level summary might be skipped.",
date = as.character(Sys.Date()),
targetId = 1,
outcomeIds = 3,
cohortNames = c("target name", "outcome name"),
cohortIds = c(1, 3),
covariateIds = NULL,
details = list(studyPeriod = "All Time", restrictions = "Age - None"),
evaluationText = "",
includeCI = TRUE,
includeCharacterization = TRUE,
includeCM = TRUE,
includeSCCS = TRUE,
includePLP = TRUE,
outputLocation,
outputName = paste0("presentation_", gsub(":", "_", gsub(" ", "_",
as.character(date()))), ".html"),
intermediateDir = fs::path_real(tempdir()),
pathToDriver = Sys.getenv("DATABASECONNECTOR_JAR_FOLDER")
)An named R list with the elements 'standard' and 'source'
The server containing the result database
The username for an account that can access the result database
The password for an account that can access the result database
The dbms used to access the result database
The result database schema
(Optional) a data.frame with the columns:
The name of the presenter
A vector or all the team members
What triggered the request
What is the general safety question
What is the request/objective of the work.
add a very brief executive summary for the topline slide
add estimation summary here for the topline slide
add any other statement summary here for the topline slide
The date of the presentation
The cohort definition id for the target cohort
The cohort definition id for the outcome
Friendly names for any cohort used in the study
The corresponding Ids for the cohortNames
A vector of covariateIds to include in the characterization
a list with the studyPeriod and restrictions
a list of bullet points for the evaluation
Whether to include the cohort incidence slides
Whether to include the characterization slides
Whether to include the cohort method slides
Whether to include the self controlled case series slides
Whether to include the patient level prediction slides
The file location and name to save the protocol
The name of the html protocol that is created
The work directory for quarto
Path to a folder containing the JDBC driver JAR files.
Specify the connection details to the result database and the schema name to generate a presentation.
Other Reporting:
createPredictionReport(),
generateFullReport(),
generatePresentationMultiple(),
generateSummaryPredictionReport()