R6 class providing access to relationship operations.
Relationships data with pagination metadata.
Relationship types with pagination metadata.
new()Create a new RelationshipsResource.
RelationshipsResource$new(base_req)base_reqBase httr2 request object.
get()Get relationships for a concept.
RelationshipsResource$get(
concept_id,
relationship_ids = NULL,
vocabulary_ids = NULL,
domain_ids = NULL,
include_invalid = FALSE,
standard_only = FALSE,
include_reverse = FALSE,
page = 1,
page_size = 100,
vocab_release = NULL
)concept_idThe concept ID.
relationship_idsFilter by relationship type IDs (character vector or comma-separated string).
vocabulary_idsFilter by target vocabulary IDs (character vector or comma-separated string).
domain_idsFilter by target domain IDs (character vector or comma-separated string).
include_invalidInclude relationships to invalid concepts. Default FALSE.
standard_onlyOnly include relationships to standard concepts. Default FALSE.
include_reverseInclude reverse relationships. Default FALSE.
pagePage number. Default 1.
page_sizeResults per page (max 1000). Default 100.
vocab_releaseSpecific vocabulary release version. Default NULL.
types()Get available relationship types from the OMOP CDM.
RelationshipsResource$types(page = 1, page_size = 100)pagePage number. Default 1.
page_sizeResults per page (max 500). Default 100.
clone()The objects of this class are cloneable with this method.
RelationshipsResource$clone(deep = FALSE)deepWhether to make a deep clone.