
Check the custom concept ids of a database, alone and against other sites
Source:R/custom_covariates.R
check_custom_concepts.RdFinds below_local_range (an id under 2,000,000,000 in the custom vocabulary), id_collision (a custom id also used by a concept
of another vocabulary), duplicate_id, and, for each registry passed, name_different_id (the site and the registry give a feature
different ids) and id_different_name (one id means different features). A model trained on feature names is portable across
sites; one that stores the id is not, so these conflicts break an external validation silently.
Arguments
- con
A DBI connection to an OMOP DuckDB.
- ...
Other sites' registries: named vectors/lists
name = id, or JSON files fromexport_custom_concept_registry().- error
Raise an error when there are conflicts.