A study to demonstrate the complete OHDSI process for developing well tested prognostic models. In this study we focus on validating models that predict death within 30 days of hospitalization due to COVID-19.
# get the latest PatientLevelPrediction
install.packages("devtools")
devtools::install_github("OHDSI/FeatureExtraction")
devtools::install_github("OHDSI/PatientLevelPrediction")
# check the package
PatientLevelPrediction::checkPlpInstallation()
# install the network package
devtools::install_github("ohdsi-studies/CovidDeath")
library(CovidDeath)
# USER INPUTS
#=======================
# The folder where the study intermediate and result files will be written:
outputFolder <- "./covidDeathResults"
# Details for connecting to the server:
dbms <- "you dbms"
user <- 'your username'
pw <- 'your password'
server <- 'your server'
port <- 'your port'
connectionDetails <- DatabaseConnector::createConnectionDetails(dbms = dbms,
server = server,
user = user,
password = pw,
port = port)
# Add the database containing the OMOP CDM data
cdmDatabaseSchema <- 'cdm database schema'
# Add a sharebale name for the database containing the OMOP CDM data
cdmDatabaseName <- 'a friendly shareable name for your database'
# Add a database with read/write access as this is where the cohorts will be generated
cohortDatabaseSchema <- 'work database schema'
oracleTempSchema <- NULL
# table name where the cohorts will be generated
cohortTable <- 'covidDeathValidationCohort'
#=======================
execute(connectionDetails = connectionDetails,
databaseName = cdmDatabaseName,
cdmDatabaseSchema = cdmDatabaseSchema,
cohortDatabaseSchema = cohortDatabaseSchema,
oracleTempSchema = oracleTempSchema,
cohortTable = cohortTable,
outputFolder = outputFolder,
createCohorts = T,
runValidation = T,
packageResults = F,
minCellCount = 5,
sampleSize = NULL)
The 'createCohorts' option will create the target and outcome cohorts into cohortDatabaseSchema.cohortTable if set to T. The 'runAnalyses' option will create/extract the data for each prediction problem setting (each Analysis) and externally validate it if set to T.
PatientLevelPrediction::viewMultiplePlp(outputFolder)
Under development. Do not use
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.