Skip to contents

Evaluates target concept IDs against CDM tables and Athena hierarchies to suggest:

  1. Hierarchical siblings sharing parent concepts.

  2. High-frequency co-occurring conditions, drugs, and measurements.

  3. High-frequency unmapped source values (concept_id = 0).

  4. Lexical synonyms and related clinical terms.

Usage

optimize_concept_set(
  con,
  concept_ids,
  threshold_frequency = 100L,
  max_suggestions = 50L
)

Arguments

con

Active DBI/DuckDB connection.

concept_ids

Integer or numeric vector of target concept IDs.

threshold_frequency

Minimum clinical occurrences required for suggestions (default 100L).

max_suggestions

Maximum number of suggestions to return (default 50L).

Value

A data.frame of suggested concepts with rationale and co-occurrence counts.