
Get corresponding standard codes for ICD-10 chapters and sub-chapters
getICD10StandardCodes.Rd
Get corresponding standard codes for ICD-10 chapters and sub-chapters
Usage
getICD10StandardCodes(
cdm,
level = c("ICD10 Chapter", "ICD10 SubChapter"),
name = NULL,
includeDescendants = TRUE,
type = "codelist"
)
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.
- type
Can be "codelist", "codelist_with_details", or "concept_set_expression"
Value
A named list, with each element containing the corresponding standard codes (and descendants) of ICD chapters and sub-chapters
Examples
# \donttest{
cdm <- mockVocabRef()
#> Warning: There are observation period end dates after the current date: 2025-02-19
#> ℹ The latest max observation period end date found is 2025-12-31
getICD10StandardCodes(cdm = cdm, level = c(
"ICD10 Chapter",
"ICD10 SubChapter"
))
#> Getting non-standard ICD10 concepts
#> Mapping from non-standard to standard concepts
#> Getting descendant concepts
#>
#> ── 2 codelists ─────────────────────────────────────────────────────────────────
#>
#> - arthropathies (3 codes)
#> - diseases_of_the_musculoskeletal_system_and_connective_tissue (3 codes)
# }