| ConceptsResource | R Documentation |
R6 class providing access to concept operations.
A list containing the concept data.
A list containing the concept data with optional relationships and synonyms.
A list with concepts and any failures.
A list with suggestions and pagination metadata.
Related concepts with relationship scores.
Relationships data.
Recommendations grouped by source concept ID with pagination metadata.
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, include_hierarchy = FALSE, vocab_release = NULL )
concept_idThe OMOP concept ID.
include_relationshipsInclude related concepts (parents/children). Default FALSE.
include_synonymsInclude concept synonyms. Default FALSE.
include_hierarchyInclude hierarchy information. Default FALSE.
vocab_releaseSpecific vocabulary release (e.g., "2025.2"). Default NULL.
get_by_code()Get a concept by vocabulary and code.
ConceptsResource$get_by_code( vocabulary_id, concept_code, include_relationships = FALSE, include_synonyms = FALSE, include_hierarchy = FALSE, vocab_release = NULL )
vocabulary_idThe vocabulary ID (e.g., "SNOMED", "ICD10CM").
concept_codeThe concept code within the vocabulary.
include_relationshipsInclude related concepts (parents/children). Default FALSE.
include_synonymsInclude concept synonyms. Default FALSE.
include_hierarchyInclude hierarchy information. Default FALSE.
vocab_releaseSpecific vocabulary release (e.g., "2025.2"). Default NULL.
batch()Get multiple concepts by IDs.
ConceptsResource$batch( concept_ids, include_relationships = FALSE, include_synonyms = FALSE, include_mappings = FALSE, vocabulary_filter = NULL, standard_only = TRUE )
concept_idsVector of concept IDs (max 100).
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 TRUE.
suggest()Get concept suggestions (autocomplete).
ConceptsResource$suggest( query, page = 1, page_size = 10, vocabulary_ids = NULL, domain_ids = NULL, vocab_release = NULL )
querySearch query (min 2 characters, max 100 characters).
pagePage number (default 1).
page_sizeNumber of suggestions per page (default 10, max 100).
vocabulary_idsFilter to specific vocabularies (character vector).
domain_idsFilter to specific domains (character vector).
vocab_releaseSpecific vocabulary release (e.g., "2025.2").
related()Get related concepts.
ConceptsResource$related( concept_id, relationship_types = NULL, min_score = NULL, page_size = 20, vocab_release = NULL )
concept_idThe source concept ID.
relationship_typesFilter by relationship types (e.g., c("Is a", "Maps to")).
min_scoreMinimum relationship score (0.0-1.0).
page_sizeMaximum number of results (default 20, max 100).
vocab_releaseSpecific vocabulary release (e.g., "2025.1").
relationships()Get concept relationships.
ConceptsResource$relationships( concept_id, relationship_ids = NULL, vocabulary_ids = NULL, domain_ids = NULL, include_invalid = FALSE, standard_only = FALSE, include_reverse = FALSE, 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.
vocab_releaseSpecific vocabulary release version. Default NULL.
recommended()Get recommended concepts using OHDSI Phoebe algorithm.
ConceptsResource$recommended( concept_ids, relationship_types = NULL, vocabulary_ids = NULL, domain_ids = NULL, standard_only = TRUE, include_invalid = FALSE, page = 1, page_size = 100 )
concept_idsVector of source concept IDs (1-100).
relationship_typesFilter by relationship types (max 20).
vocabulary_idsFilter to specific vocabularies (max 50).
domain_idsFilter to specific domains (max 50).
standard_onlyOnly return standard concepts. Default TRUE.
include_invalidInclude invalid/deprecated concepts. Default FALSE.
pagePage number. Default 1.
page_sizeResults per page (default 100, max 1000).
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.