description: Obtain descriptions for a set of SNOMED CT terms

View source: R/concepts.R

descriptionR Documentation

Obtain descriptions for a set of SNOMED CT terms

Description

Returns the descriptions matching a set of concept IDs from a SNOMED dictionary

Usage

description(
  conceptIds,
  include_synonyms = FALSE,
  active_only = TRUE,
  SNOMED = getSNOMED()
)

Arguments

conceptIds

character or integer64 vector

include_synonyms

whether to return all synonyms, or just the Fully Specified Name, ensuring just one row per concept (default)

active_only

whether to include only active descriptions

SNOMED

environment containing SNOMED dictionary. Defaults to an object named 'SNOMED' in the global environment

Value

a data.table with the following columns: id, conceptId, type (only if include_synonyms = TRUE), term, active (only if active_only = FALSE)

See Also

htmlCodelistHierarchy

Examples

hf <- SNOMEDconcept('Heart failure', SNOMED = sampleSNOMED())
description(hf, include_synonyms = FALSE, SNOMED = sampleSNOMED())

anoopshah/Rdiagnosislist documentation built on March 29, 2025, 10:46 a.m.