Filters by unit concept id (serializes to Circe Unit field). Applies to measurement(), observation(), doseEra(), and specimen().

measurementUnit(ids, connection = NULL, vocabularyDatabaseSchema = NULL)

Arguments

ids

integer concept ids for the attribute

connection

an optional connection to an OMOP CDM database, used only to look up concept names for display (e.g. in Atlas). When NULL (default) the attribute is built from the ids alone, which produces identical SQL.

vocabularyDatabaseSchema

the schema of the OMOP vocabulary tables; only used when `connection` is supplied

Value

An attribute for use in measurement(), observation(), doseEra(), or specimen().

Details

Named measurementUnit (not unit) to avoid masking dplyr::unit.