Learn R Programming

CodelistGenerator (version 3.5.0)

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

Value

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

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".

Examples

Run this code
# \donttest{
library(CodelistGenerator)
cdm <- mockVocabRef()
getICD10StandardCodes(cdm = cdm, level = c(
  "ICD10 Chapter",
  "ICD10 SubChapter"
))
# }

Run the code above in your browser using DataLab