Add an observation type attribute to determine the provenance of the record

observationType(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 observation().