get_valid: invalid subset of decimal or short_code ICD-9 codes

Description Usage Arguments Methods (by class)

View source: R/valid.R

Description

Given vector of short_code or decimal ICD-9 codes, return (in the same format) those codes which are valid or invalid. Useful for generating error messages with the faulty codes if validation fails.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
get_valid(x, short_code = guess_short(x))

## S3 method for class 'character'
get_valid(x, short_code = guess_short(x))

## S3 method for class 'icd9'
get_valid(x, short_code = guess_short(x))

## S3 method for class 'icd10'
get_valid(x, short_code = guess_short(x))

## S3 method for class 'icd10cm'
get_valid(x, short_code = guess_short(x))

Arguments

x

input vector of ICD codes

short_code

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.

Methods (by class)


jackwasey/icd documentation built on Nov. 23, 2021, 9:56 a.m.