Learn R Programming

CodelistGenerator (version 3.5.0)

getMappings: 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")
)

Value

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

Arguments

candidateCodelist

Dataframe.

cdm

A cdm reference via CDMConnector.

nonStandardVocabularies

Character vector.

Examples

Run this code
# \donttest{
cdm <- CodelistGenerator::mockVocabRef()
codes <- CodelistGenerator::getCandidateCodes(
  cdm = cdm,
  keywords = "osteoarthritis"
)
CodelistGenerator::getMappings(
  cdm = cdm,
  candidateCodelist = codes,
  nonStandardVocabularies = "READ"
)
# }

Run the code above in your browser using DataLab