createBulkSubgroup: Create bulk subgroup cohorts

View source: R/SubgroupConstruction.R

createBulkSubgroupR Documentation

Create bulk subgroup cohorts

Description

This function wraps together 2 calls: @insertRefcreateBulkSubgroupFromFile and @insertRefcreateBulkSubgroupFromCohorts. This function assumes that cohorts are already generated and located in the cohortDatabaseSchema.cohortStagingTable

Usage

createBulkSubgroup(
  connection,
  cdmDatabaseSchema,
  cohortDatabaseSchema,
  cohortTable,
  targetIds,
  oracleTempSchema
)

Arguments

connection

An object of type connection as created using the connect function in the DatabaseConnector package. Can be left NULL if connectionDetails is provided, in which case a new connection will be opened at the start of the function, and closed when the function finishes.

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

cohortDatabaseSchema

Schema name where your cohort table resides. Note that for SQL Server, this should include both the database and schema name, for example 'scratch.dbo'.

cohortTable

Name of the cohort table.

targetIds

A vector containing the target IDs to subgroup

oracleTempSchema

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

connectionDetails

An object of type connectionDetails as created using the createConnectionDetails function in the DatabaseConnector package. Can be left NULL if connection is provided.


ohdsi-studies/HERACharacterization documentation built on July 28, 2023, 1:41 a.m.