getMappings: Show mappings from non-standard vocabularies to standard.

View source: R/getMappings.R

getMappingsR Documentation

Show mappings from non-standard vocabularies to standard.

Description

Show mappings from non-standard vocabularies to standard.

Usage

getMappings(
  candidateCodelist,
  cdm = NULL,
  nonStandardVocabularies = c("ATC", "ICD10CM", "ICD10PCS", "ICD9CM", "ICD9Proc",
    "LOINC", "OPCS4", "Read", "RxNorm", "RxNorm Extension", "SNOMED")
)

Arguments

candidateCodelist

Dataframe.

cdm

A cdm reference to an OMOP CDM dataset. If data is held within a database, the vocabulary tables should be in the same schema as the clinical tables (person, observation period, and so on).

nonStandardVocabularies

Character vector.

Value

Tibble with the information of potential standard to non-standard mappings for the codelist of interest.

Examples


cdm <- CodelistGenerator::mockVocabRef()
codes <- CodelistGenerator::getCandidateCodes(
  cdm = cdm,
  keywords = "osteoarthritis"
)
CodelistGenerator::getMappings(
  cdm = cdm,
  candidateCodelist = codes,
  nonStandardVocabularies = "READ"
)


CodelistGenerator documentation built on Dec. 17, 2025, 5:06 p.m.