Learn R Programming

icd (version 4.0.9)

get_defined: Select only defined ICD codes

Description

Return only those codes which are heading or leaf (billable), specifying whether codes are all short-form or all decimal-form

Usage

get_defined(x, short_code = guess_short(x), billable = FALSE, leaf = billable)

Arguments

x

input vector or factor, possibly with an ICD class

short_code

logical value, whether short-form ICD code

billable

single logical value, identical to 'leaf'. Leaf is preferred as most adaptations of WHO ICD codes are not oriented around money.

leaf

single logical value, whether to limit return codes also by whether they are billable, i.e. leaf nodes. This is really only designed for use with ICD-9-CM, ICD-10-CM etc, since the WHO versions are not designed for billing, but for public health and death reporting.