| VocabulariesResource | R Documentation |
R6 class providing access to vocabulary operations.
Paginated vocabulary list.
Vocabulary details including vocabulary_id, vocabulary_name, vocabulary_reference, vocabulary_version, vocabulary_concept_id.
Vocabulary statistics.
Domain statistics including concept counts and class breakdown.
List of all available domains with domain_id, domain_name, and description.
List of all available concept classes with concept_class_id, concept_class_name, and concept_class_concept_id.
Paginated concepts.
new()Create a new VocabulariesResource.
VocabulariesResource$new(base_req)
base_reqBase httr2 request object.
list()List all vocabularies.
VocabulariesResource$list( include_stats = FALSE, include_inactive = FALSE, sort_by = "name", sort_order = "asc", page = 1, page_size = 100 )
include_statsInclude vocabulary statistics. Default FALSE.
include_inactiveInclude inactive vocabularies. Default FALSE.
sort_bySort field ("name", "priority", "updated"). Default "name".
sort_orderSort order ("asc" or "desc"). Default "asc".
pagePage number. Default 1.
page_sizeResults per page. Default 100.
get()Get vocabulary details.
VocabulariesResource$get(vocabulary_id)
vocabulary_idThe vocabulary ID.
stats()Get vocabulary statistics.
VocabulariesResource$stats(vocabulary_id)
vocabulary_idThe vocabulary ID.
domain_stats()Get statistics for a specific domain within a vocabulary.
VocabulariesResource$domain_stats(vocabulary_id, domain_id)
vocabulary_idThe vocabulary ID (e.g., "SNOMED", "ICD10CM").
domain_idThe domain ID (e.g., "Condition", "Drug", "Procedure").
domains()Get all standard OHDSI domains.
VocabulariesResource$domains()
concept_classes()Get all concept classes.
VocabulariesResource$concept_classes()
concepts()Get concepts in a vocabulary.
VocabulariesResource$concepts( vocabulary_id, search = NULL, standard_concept = "all", include_invalid = FALSE, include_relationships = FALSE, include_synonyms = FALSE, sort_by = "name", sort_order = "asc", page = 1, page_size = 20 )
vocabulary_idThe vocabulary ID.
searchSearch term to filter concepts by name or code.
standard_conceptFilter by standard concept status ('S', 'C', 'all'). Default "all".
include_invalidInclude invalid or deprecated concepts. Default FALSE.
include_relationshipsInclude concept relationships. Default FALSE.
include_synonymsInclude concept synonyms. Default FALSE.
sort_bySort field ('name', 'concept_id', 'concept_code'). Default "name".
sort_orderSort order ('asc' or 'desc'). Default "asc".
pagePage number. Default 1.
page_sizeResults per page (max 1000). Default 20.
print()Print resource information.
VocabulariesResource$print()
clone()The objects of this class are cloneable with this method.
VocabulariesResource$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.