Returns the concepts list for write_custom_covariates(), reusing the id already registered for a feature name in this
database (concept_code = the name, vocabulary omop-duck-db) and otherwise taking the next free id from 2,001,000,000.
Ids are per database unless sites agree on them: pass registry to pin the ids a consortium shares.
Arguments
- con
A DBI connection to an OMOP DuckDB.
- names
Character vector of feature names, or a named character vector
c(name = "label").- registry
Optional shared registry: a named vector or list
name = id, or the path of the JSON file written byexport_custom_concept_registry(). A name in the registry takes its id; a name outside it gets an id above every registry id. A registry id this database already gives to another feature, a vocabulary concept, or that is below 2,000,000,000 is an error.
