is.ICD: Check if icd code is valid after pre-processing

Description Usage Arguments Value Examples

View source: R/is.ICD.R

Description

The codes need to be preprocessed and the . removed. If the . is left then the cmrbdt.finder will have issues.

Usage

1
is.ICD(codes, preprocess_fn)

Arguments

codes

The ICD codes of interest that have the needed format for the functions to work. That is without any ., etc.

preprocess_fn

Any pre-processing function that is needed to prepare the codes.

Value

vector Returns a vector with all the codes

Examples

1
is.ICD(c("M161", "M16.1", "1998-01-01", "4521"))

gforge/comorbidities.icd10 documentation built on May 17, 2019, 2:12 a.m.