Skip to contents

Finds 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.

Usage

check_custom_concepts(con, ..., error = FALSE)

Arguments

con

A DBI connection to an OMOP DuckDB.

...

Other sites' registries: named vectors/lists name = id, or JSON files from export_custom_concept_registry().

error

Raise an error when there are conflicts.

Value

A data frame with columns kind, feature, detail (zero rows when clean).