createPrunedTables: Create pruned CDM and Vocab tables.

View source: R/createPrunedTables.r

createPrunedTablesR Documentation

Create pruned CDM and Vocab tables.

Description

This function creates the pruned cdm and vocab tables by keeping only those rows from the original tables for given concept_ids. (Eunomia support)

Usage

createPrunedTables(connectionDetails, cdmSchema, eventConceptId, cdmVersion)

Arguments

connectionDetails

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

cdmSchema

The name of the database schema that contains the CDM. Requires read and write permissions to this database. On SQL Server, this should specify both the database and the schema, so for example 'cdm_instance.dbo'.

eventConceptId

A vector of concept_ids returned from getEventConceptId.

cdmVersion

The version of your CDM. Currently "5.3.1" and "5.4.0".


OHDSI/ETL-Synthea documentation built on April 23, 2024, 12:23 a.m.