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

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