R/uploadToDatabase.R
addMultipleRunPlpToDatabase.Rd
This function formats and uploads results that have been generated via an ATLAS prediction package into a database
addMultipleRunPlpToDatabase(
connectionDetails,
databaseSchemaSettings = createDatabaseSchemaSettings(resultSchema = "main"),
cohortDefinitions,
databaseList = NULL,
resultLocation = NULL,
resultLocationVector,
modelSaveLocation
)
A connection details created by using the
function createConnectionDetails
in the
DatabaseConnector
package.
A object created by createDatabaseSchemaSettings
with all the settings specifying the result tables
A set of one or more cohorts extracted using ROhdsiWebApi::exportCohortDefinitionSet()
(Optional) A list created by createDatabaseList
to specify the databases
(string) location of directory where the main package results were saved
(only used when resultLocation is missing) a vector of locations with development or validation results
The location of the file system for saving the models in a subdirectory
Returns NULL but uploads all the results in resultLocation to the PatientLevelPrediction result tables in resultSchema
This function can be used upload PatientLevelPrediction results into a database