getICD10StandardCodes: Get corresponding standard codes for ICD-10 chapters and...

View source: R/getICD10StandardCodes.R

getICD10StandardCodesR Documentation

Get corresponding standard codes for ICD-10 chapters and sub-chapters

Description

Get corresponding standard codes for ICD-10 chapters and sub-chapters

Usage

getICD10StandardCodes(
  cdm,
  level = c("ICD10 Chapter", "ICD10 SubChapter"),
  name = NULL,
  includeDescendants = TRUE,
  withConceptDetails = FALSE
)

Arguments

cdm

cdm_reference via CDMConnector

level

Can be either "ICD10 Chapter" or "ICD10 SubChapter"

name

Name of chapter or sub-chapter of interest. If NULL, all will be considered.

includeDescendants

If FALSE only direct mappings from ICD-10 codes to standard codes will be returned. If TRUE descendants of standard concepts will also be included.

withConceptDetails

If FALSE a vector of concept IDs will be returned for each ICD group If TRUE a tibble will be returned with additional information on the identified concepts.

Value

A named list, with each element containing the corresponding standard codes (and descendants) of ICD chapters and sub-chapters

Examples

## Not run: 
cdm <- mockVocabRef()
getICD10StandardCodes(cdm = cdm, level = c(
  "ICD10 Chapter",
  "ICD10 SubChapter"
))
CDMConnector::cdmDisconnect(cdm)

## End(Not run)

oxford-pharmacoepi/CodelistGenerator documentation built on April 12, 2024, 9:30 a.m.