createOutcomeCohorts: Create the outcome cohorts

View source: R/CreateAllCohorts.R

createOutcomeCohortsR Documentation

Create the outcome cohorts

Description

Create the outcome cohorts

Usage

createOutcomeCohorts(
  connectionDetails,
  cdmDatabaseSchema,
  vocabularyDatabaseSchema = cdmDatabaseSchema,
  cohortDatabaseSchema,
  tablePrefix = "legendt2dm",
  oracleTempSchema,
  outputFolder,
  databaseId,
  filterOutcomeCohorts = NULL
)

Arguments

connectionDetails

An object of type connectionDetails as created using the createConnectionDetails function in the DatabaseConnector package.

cdmDatabaseSchema

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

vocabularyDatabaseSchema

Schema name where your vocabulary tables in OMOP CDM format resides. Note that for SQL Server, this should include both the database and schema name, for example 'cdm_data.dbo'.

cohortDatabaseSchema

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_data.dbo'.

tablePrefix

A prefix to be used for all table names created for this study.

oracleTempSchema

Should be used in Oracle to specify a schema where the user has write priviliges for storing temporary tables.

outputFolder

Name of local folder to place results; make sure to use forward slashes (/)

databaseId

A short string for identifying the database (e.g. 'Synpuf').

filterOutcomeCohorts

Optional subset of exposure cohorts to use; NULL implies all.

Details

This function will create the outcome cohorts following the definitions included in this package.


ohdsi-studies/LegendT2dm documentation built on July 4, 2025, 8:25 p.m.