createPrunedTables: Create pruned CDM and Vocab tables.

Description Usage Arguments

Description

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

Usage

1
createPrunedTables(connectionDetails,cdmDatabaseSchema,vocabDatabaseSchema,eventConceptId)

Arguments

connectionDetails

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

cdmDatabaseSchema

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

vocabDatabaseSchema

The name of the database schema that contains the Vocabulary instance. Requires read and write permissions to this database. On SQL Server, this should specifiy both the database and the schema, so for example 'vocab_instance.dbo'.

eventConceptId

A vector of concept_ids returned from getEventConceptId.


chrisroederucdenver/ETL-Synthea documentation built on Aug. 1, 2020, 4:21 p.m.