attrConcept {Rdiagnosislist} | R 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'))
[Package Rdiagnosislist version 1.2 Index]