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 via CDMConnector.

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 April 11, 2025, 5:51 p.m.