R/uploadToDatabaseModelDesign.R
insertModelDesignInDatabase.Rd
This function inserts a model design and all the settings into the result schema
insertModelDesignInDatabase(
object,
conn,
databaseSchemaSettings,
cohortDefinitions
)
An object of class modelDesign, runPlp or externalValidatePlp
A connection to a database created by using the
function connect
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()
Returns NULL but uploads the model design into the database schema specified in databaseSchemaSettings
This function can be used to upload a model design into a database