
Resolve Concept Patterns with Wildcards and Hierarchy Closures
Source:R/rollups.R
resolve_concept_patterns.RdEvaluates wildcard patterns (LIKE/ILIKE) and regular expressions on concept codes and names.
Usage
resolve_concept_patterns(
con,
patterns,
vocab_db = NULL,
standard_only = FALSE,
expand = NULL,
include_retired = FALSE
)Arguments
- con
Active DuckDB DBI connection.
- patterns
A list of
concept_patternobjects, lists, or strings (e.g. 'ATC:A10B%').- vocab_db
Optional attached vocabulary schema/database name.
- standard_only
Logical. Restricts results to standard concepts.
- expand
Hierarchy expansion ('descendants' | 'ancestors' | NULL).
- include_retired
Logical. Expands backward 'Maps to' mappings for retired codes.