attrConcept: 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
)
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)
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
Examples
Run this codeSNOMED <- sampleSNOMED()
attrConcept(as.SNOMEDconcept('Heart failure'))
Run the code above in your browser using DataLab