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 only the Fully Specified Name (default) or all synonyms

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)

Examples

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

anoopshah/Rdiagnosislist documentation built on April 21, 2023, 11:49 p.m.