createDataSettings: Create data settings.

View source: R/createSettings.R

createDataSettingsR Documentation

Create data settings.

Description

Create data settings.

Usage

createDataSettings(
  OMOP_CDM = "TRUE",
  connectionDetails = NULL,
  cdmDatabaseSchema = NULL,
  cohortDatabaseSchema = NULL,
  cohortTable = "treatmentpatterns_cohorts",
  cohortLocation = NULL
)

Arguments

connectionDetails

Only for OMOP-CDM TRUE: An object of type connectionDetails as created using the createConnectionDetails function in the DatabaseConnector package.

cdmDatabaseSchema

Only for OMOP-CDM TRUE: Schema name where your patient-level data resides. Note that for SQL Server, this should include both the database and schema name, for example 'cdm_data.dbo'.

cohortDatabaseSchema

Only for OMOP-CDM TRUE: Schema name where intermediate data can be stored. You will need to have write priviliges in this schema. Note that for SQL Server, this should include both the database and schema name, for example 'cdm_results.dbo'.

cohortTable

Only for OMOP-CDM TRUE: The name of the table that will be created in the cohortDatabaseSchema. This table will hold the target and event cohorts used in this study.

cohortLocation

Only for OMOP-CDM FALSE: Location from where cohorts can be loaded.

OMOP-CDM

Format of database 'Observational Medical Outcomes Partnership Common Data Model' = TRUE or 'Other' = FALSE.

Value

Object dataSettings.


mi-erasmusmc/TreatmentPatterns documentation built on July 1, 2023, 9:20 p.m.