Learn R Programming

icd (version 2.2)

icd_children_defined: defined children of ICD codes

Description

Find defined ICD-10 children based on 2016 ICD-10-CM list. "defined" may be a three digit code, or a leaf node. This is distinct from 'billable'.

Usage

icd_children_defined(x)

# S3 method for icd10cm icd_children_defined(x, short_code = icd_guess_short(x), warn = FALSE)

Arguments

warn

single logical value, if TRUE will generate warnings when some input codes are not known ICD-10-CM codes

use_cpp

single logical flag, whether to use C++ version

Methods (by class)

  • icd10cm: Internal function to get the children of ICD-10 code(s)

Examples

Run this code
# NOT RUN {
library(microbenchmark)
microbenchmark::microbenchmark(
  icd:::icd_children_defined.icd10cm("A01"),
  icd:::icd_children_defined_r.icd10cm("A01")
stopifnot(identical(icd:::icd_children_defined.icd10cm("A00"),
  icd:::icd_children_defined_r.icd10cm("A00")))
# }

Run the code above in your browser using DataLab