Skip to contents

Provides native DuckDB DatabaseConnector details and schemas for OHDSI CohortMethod: DatabaseConnector::createConnectionDetails(dbms = "duckdb", server = db_path).

Usage

cm_database_details(
  db_path,
  cdm_database_schema = "main",
  cohort_database_schema = cdm_database_schema,
  cohort_table = "cohort",
  preflight = TRUE
)

Arguments

db_path

Path to the DuckDB database file.

cdm_database_schema

Schema holding the CDM tables (default "main").

cohort_database_schema

Schema holding the cohort table (default: the CDM schema).

cohort_table

Cohort table name in OHDSI format (default "cohort").

preflight

Run hades_preflight() first and stop on failure (default TRUE).

Value

A list with connectionDetails, cdmDatabaseSchema, cohortDatabaseSchema, cohortTable.