attrConcept: Retrieve all attributes of a set of SNOMED CT concepts

View source: R/hierarchy.R

attrConceptR Documentation

Retrieve all attributes of a set of SNOMED CT concepts

Description

Returns the portion of the SNOMED CT relationship tables containing relationships where the given concepts are either the source or the destination.

Usage

attrConcept(
  conceptIds,
  SNOMED = getSNOMED(),
  tables = c("RELATIONSHIP", "STATEDRELATIONSHIP"),
  active_only = TRUE
)

Arguments

conceptIds

character or integer64 vector of SNOMED concept IDs

SNOMED

environment containing a SNOMED dictionary

tables

character vector of relationship tables to use

active_only

whether to return only active attributes

Value

a data.table with the following columns: sourceId (concept ID of source for relationship), destinationId (concept ID of source for relationship), typeId (concept ID of relationship type), typeName (description of relationship type)

Examples

SNOMED <- sampleSNOMED()

attrConcept(as.SNOMEDconcept('Heart failure'))

Rdiagnosislist documentation built on April 18, 2023, 5:12 p.m.