getICD10StandardCodes: Get corresponding standard codes for International...

View source: R/getICD10StandardCodes.R

getICD10StandardCodesR Documentation

Get corresponding standard codes for International Classification of Diseases (ICD) 10 codes

Description

Get corresponding standard codes for International Classification of Diseases (ICD) 10 codes

Usage

getICD10StandardCodes(
  cdm,
  level = c("ICD10 Chapter", "ICD10 SubChapter"),
  name = NULL,
  nameStyle = "{concept_code}_{concept_name}",
  includeDescendants = TRUE,
  type = "codelist"
)

Arguments

cdm

A cdm reference via CDMConnector.

level

Can be either "ICD10 Chapter", "ICD10 SubChapter", "ICD10 Hierarchy", or "ICD10 Code".

name

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

nameStyle

Name style to apply to returned list. Can be one of "{concept_code}","{concept_id}", "{concept_name}", or a combination (i.e., "{concept_code}_{concept_name}").

includeDescendants

Either TRUE or FALSE. If TRUE descendant concepts of identified concepts will be included in the candidate codelist. If FALSE only direct mappings from ICD-10 codes to standard codes will be returned.

type

Can be "codelist" or "codelist_with_details".

Value

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

Examples


library(CodelistGenerator)
cdm <- mockVocabRef()
getICD10StandardCodes(cdm = cdm, level = c(
  "ICD10 Chapter",
  "ICD10 SubChapter"
))


CodelistGenerator documentation built on April 11, 2025, 5:51 p.m.