hasAttributes | R Documentation |
For each concept in the first list, whether it has the attribute in the second list. Returns a vector of Booleans.
hasAttributes(
sourceIds,
destinationIds,
typeIds = bit64::as.integer64("116680003"),
SNOMED = getSNOMED(),
tables = c("RELATIONSHIP", "STATEDRELATIONSHIP"),
active_only = TRUE
)
sourceIds |
character or integer64 vector of SNOMED concept IDs for children, recycled if necessary |
destinationIds |
character or integer64 vector of SNOMED concept IDs for parents, recycled if necessary |
typeIds |
character or integer64 vector of SNOMED concept IDs for renationship types, recycled if necessary. Defaults to 116680003 = 'Is a' (child/parent) |
SNOMED |
environment containing a SNOMED dictionary |
tables |
character vector of relationship tables to use |
active_only |
whether only active relationships should be considered, default TRUE |
a vector of Booleans stating whether the attribute exists
data.table::setDTthreads(threads = 1) # for CRAN testing
SNOMED <- sampleSNOMED()
hasAttributes(c('Heart failure', 'Acute heart failure'),
c('Heart structure', 'Heart failure'),
c('Finding site', 'Is a'))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.