getConceptRecordCount: Given conceptId(s) get the record count.

View source: R/GetConceptRecordCount.R

getConceptRecordCountR Documentation

Given conceptId(s) get the record count.

Description

Given conceptId(s) get the record count.

Usage

getConceptRecordCount(
  conceptIds,
  connection = NULL,
  connectionDetails = NULL,
  cdmDatabaseSchema,
  vocabularyDatabaseSchema = cdmDatabaseSchema,
  tempEmulationSchema = getOption("sqlRenderTempEmulationSchema"),
  minCellCount = 0
)

Arguments

conceptIds

An array of Concept ids.

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.

connectionDetails

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

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

vocabularyDatabaseSchema

The schema name of containing the vocabulary tables.

tempEmulationSchema

Some database platforms like Oracle and Impala do not truly support temp tables. To emulate temp tables, provide a schema with write privileges where temp tables can be created.

minCellCount

The minimum cell count for fields containing person/subject count.

Value

Returns a tibble data frame.


OHDSI/ConceptSetDiagnostics documentation built on Feb. 26, 2023, 1:31 a.m.