defined children of ICD codes

Share:

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

1
2
3
4
5
icd_children_defined(x)

## S3 method for class '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

1
2
3
4
5
6
7
8
9
## 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")))

## End(Not run)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.