| ConceptsResource | R Documentation |
R6 class providing access to concept operations.
A list containing the concept data.
A list containing the concept data with mappings.
A list with concepts and any failures.
A list of suggestions.
Related concepts with scores and analysis.
Relationships with summary.
new()Create a new ConceptsResource.
ConceptsResource$new(base_req)
base_reqBase httr2 request object.
get()Get a concept by ID.
ConceptsResource$get( concept_id, include_relationships = FALSE, include_synonyms = FALSE )
concept_idThe OMOP concept ID.
include_relationshipsInclude related concepts. Default FALSE.
include_synonymsInclude concept synonyms. Default FALSE.
get_by_code()Get a concept by vocabulary and code.
ConceptsResource$get_by_code(vocabulary_id, concept_code)
vocabulary_idThe vocabulary ID (e.g., "SNOMED", "ICD10CM").
concept_codeThe concept code within the vocabulary.
batch()Get multiple concepts by IDs.
ConceptsResource$batch( concept_ids, include_relationships = FALSE, include_synonyms = FALSE, include_mappings = FALSE, vocabulary_filter = NULL, standard_only = FALSE )
concept_idsVector of concept IDs (max 1000).
include_relationshipsInclude related concepts. Default FALSE.
include_synonymsInclude concept synonyms. Default FALSE.
include_mappingsInclude concept mappings. Default FALSE.
vocabulary_filterFilter results to specific vocabularies.
standard_onlyOnly return standard concepts. Default FALSE.
suggest()Get concept suggestions (autocomplete).
ConceptsResource$suggest(query, vocabulary = NULL, domain = NULL, limit = 10)
querySearch query (min 2 characters).
vocabularyFilter to specific vocabulary.
domainFilter to specific domain.
limitMaximum suggestions (default 10, max 50).
related()Get related concepts.
ConceptsResource$related( concept_id, relatedness_types = NULL, vocabulary_ids = NULL, domain_ids = NULL, min_relatedness_score = NULL, max_results = 50, include_scores = TRUE, standard_concepts_only = FALSE )
concept_idThe source concept ID.
relatedness_typesTypes of relatedness (hierarchical, semantic, etc.).
vocabulary_idsFilter to specific vocabularies.
domain_idsFilter to specific domains.
min_relatedness_scoreMinimum relatedness score.
max_resultsMaximum results (default 50, max 200).
include_scoresInclude score breakdown. Default TRUE.
standard_concepts_onlyOnly return standard concepts. Default FALSE.
relationships()Get concept relationships.
ConceptsResource$relationships( concept_id, relationship_type = NULL, target_vocabulary = NULL, include_invalid = FALSE, page = 1, page_size = 20 )
concept_idThe concept ID.
relationship_typeFilter by relationship type.
target_vocabularyFilter by target vocabulary.
include_invalidInclude invalid relationships. Default FALSE.
pagePage number. Default 1.
page_sizeItems per page. Default 20.
print()Print resource information.
ConceptsResource$print()
clone()The objects of this class are cloneable with this method.
ConceptsResource$clone(deep = FALSE)
deepWhether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.