Skip to contents

A helper function to add synonym concept ID(s) to a vector of concept ID(s).

Usage

add_synonyms(concepts, concept_relationship_table)

Arguments

concepts

The concept ID(s) of interest which can be a single concept_id, or a list of concept_id's.

concept_relationship_table

The concept relationship table (note: only the full OMOP concept relationship table that is provided independently from clinical data sets contains relationships necessary for identifying synonyms).

Value

A list of supplied concepts, and their synonym concepts; issues a warning if "Maps to value" relationship is present, which can occur when mapping ICD codes to SNOMED CT codes (see vignette("converting_icd_to_snomed_codes") for more information).

See also

Examples

if (FALSE) { # \dontrun{
add_synonyms('f4fadfb7-f4d2-530f-b950-ca8cc854f70e', ds$concept_relationship)
} # }