R6 class providing access to mapping operations.
Mappings for the concept.
Mapping results with summary.
new()Create a new MappingsResource.
MappingsResource$new(base_req)base_reqBase httr2 request object.
get()Get mappings for a concept.
MappingsResource$get(
concept_id,
target_vocabulary = NULL,
include_invalid = FALSE,
vocab_release = NULL
)concept_idThe concept ID.
target_vocabularyFilter to a specific target vocabulary (e.g., "ICD10CM").
include_invalidInclude invalid/deprecated mappings. Default FALSE.
vocab_releaseSpecific vocabulary release version (e.g., "2025.1"). Default NULL.
map()Map concepts to a target vocabulary.
MappingsResource$map(
target_vocabulary,
source_concepts = NULL,
source_codes = NULL,
mapping_type = NULL,
include_invalid = FALSE,
vocab_release = NULL
)target_vocabularyTarget vocabulary ID (e.g., "ICD10CM", "SNOMED", "RxNorm").
source_conceptsVector of OMOP concept IDs to map. Use this OR source_codes, not both.
source_codesList of vocabulary/code pairs to map. Each element should be a list
with vocabulary_id and concept_code. Use this OR source_concepts, not both.
mapping_typeMapping type filter (direct, equivalent, broader, narrower).
include_invalidInclude invalid mappings. Default FALSE.
vocab_releaseSpecific vocabulary release version (e.g., "2025.1"). Default NULL.
clone()The objects of this class are cloneable with this method.
MappingsResource$clone(deep = FALSE)deepWhether to make a deep clone.