R/uploadToDatabaseDiagnostics.R
addDiagnosePlpToDatabase.Rd
This function inserts a diagnostic result into the result schema
addDiagnosePlpToDatabase(
diagnosePlp,
connectionDetails,
databaseSchemaSettings,
cohortDefinitions,
databaseList = NULL,
overWriteIfExists = T
)
An object of class diagnosePlp
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) If you wish to overwrite the settings in the plp object use createdatabaseList
to specify the databases
(default: T) Whether to delete existing results and overwrite them
Returns NULL but uploads the diagnostic into the database schema specified in databaseSchemaSettings
This function can be used to upload a diagnostic result into a database