icd9IsValidMapping: validate an icd9 mapping to comorbidities

Description Usage Arguments See Also

View source: R/valid.R

Description

takes each item in each vector of the list of vectors and checks validity, or returns those items which are valid for each comorbidity.

Usage

1
2
3
4
5
6
7
8
9

Arguments

icd9Mapping

named list containing vectors of icd9 codes. E.g. the AHRQ comorbidities, contains list(OBESE = c("2780", "27800", "27801", "27803", "V8554", "79391", "64910", "64911", "64912", "64913", "64914", "V8530", "V8531", "V8532", "V8533", "V8534", "V8535", "V8536", "V8537", "V8538", "V8539", "V8541", "V8542", "V8543", "V8544", "V8545" ), DEPRESS = c("3004", "30112", "3090", "3091", "311")) amongst other longer groups.

isShort

single logical value which determines whether the ICD-9 code provided is in short (TRUE) or decimal (FALSE) form. Where reasonable, this is guessed from the input data.

See Also

Other ICD9 validation: icd9IsValid


jackwasey/icd9 documentation built on May 18, 2019, 7:57 a.m.