codesInUse: Use achilles counts to get codes used in the database

View source: R/codesInUse.R

codesInUseR Documentation

Use achilles counts to get codes used in the database

Description

Use achilles counts to get codes used in the database

Usage

codesInUse(
  cdm,
  minimumCount = 0,
  table = c("condition_occurrence", "device_exposure", "drug_exposure", "measurement",
    "observation", "procedure_occurrence", "visit_occurrence")
)

Arguments

cdm

cdm_reference via CDMConnector

minimumCount

Any codes with a frequency under this will be removed.

table

cdm table

Value

A list of integers indicating codes being used in the database.

Examples


cdm <- mockVocabRef("database")
x <- codesInUse(cdm = cdm)
x
CDMConnector::cdmDisconnect(cdm)


CodelistGenerator documentation built on Oct. 17, 2024, 5:09 p.m.