pr.regex.code.match: Match codes with regular expressions

Description Usage Arguments Value See Also

View source: R/private.R

Description

The function loops through all the codes and the different regular expressions in search for a match.n

Usage

1
2
pr.regex.code.match(icd_codes, icd_ver, out, cmrbdt.finder.regex.comorbidity,
  include_acute = rep(TRUE, length(icd_codes)), cmrbdt.finder.regex.acute)

Arguments

icd_codes

The vector with all the icd_codess that should be tested

icd_ver

The ICD-version, currently either 9 or 10

out

The out vector, see pr.get.out.vector

cmrbdt.finder.regex.comorbidity

The regular expression list with all the comorbidities

include_acute

If acute diagnosis are to be included, e.g. myocardial infarction.

cmrbdt.finder.regex.acute

A list with vectors containing regular expressions that identify the acute diagnoses that should be excluded if include_acute is set to TRUE for the specific code. If not provided the code will not check for acute diagnoses.

Value

vector Returns the out with TRUE for those groups where a match was found.

See Also

cmrbdt.finder.regex.elixhauser_Quan2005, cmrbdt.finder.regex.charlson_Quan2005, cmrbdt.finder.regex.charlson_Armitage2010, cmrbdt.finder.regex.charlson_Sundarajan2004


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