Description Usage Arguments Details Value Methods (by class) Author(s)
View source: R/explain-table.R
Output is ordered in the same order as the input. A logical column
ismajor
indicates if the code is a parent Category.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 | explain_table(...)
## Default S3 method:
explain_table(
x,
short_code = guess_short(x),
condense = FALSE,
brief = TRUE,
warn = TRUE,
...
)
## S3 method for class 'icd9'
explain_table(...)
## S3 method for class 'icd10'
explain_table(...)
## S3 method for class 'icd9cm'
explain_table(
x,
short_code = guess_short(x),
condense = FALSE,
brief = TRUE,
warn = TRUE,
...
)
## S3 method for class 'icd10cm'
explain_table(
x,
short_code = guess_short(x),
condense = FALSE,
brief = TRUE,
warn = TRUE,
...
)
## S3 method for class 'icd10who'
explain_table(
x,
short_code = guess_short(x),
condense = FALSE,
brief = TRUE,
warn = TRUE,
...
)
|
... |
arguments passed on to other functions |
x |
vector or other structure of ICD codes to explain in human language |
short_code |
single logical value which determines whether the ICD-9
code provided is in short ( |
condense |
single logical value which indicates whether to condense the given set of ICD-9 codes by replacing subsets of codes with 'parent' codes which exactly encompass certain subsets. E.g. If all cholera diagnoses are provided, only '001 - Cholera' needs to be displayed, not all sub-types. |
brief |
single logical value, default is |
warn |
single logical value, default is |
If the code is both a valid ICD9 and a ICD10 the output will default the descriptions to ICD10. The code would otherwise have to be explicitly cast to get ICD9 descriptions.
A column for source year may be added in the future. Other changes may occur this new feature gets testing and use.
If the input x is of mixed type it will choose to convert by
data frame with fields for ICD-9 code, name and description. The ordering is in the same order as input, including rows filled with NA for invalid input codes
default
: explaining ICD codes from a character vector,
guessing ICD version
icd9
: from vector of ICD-9 codes.
icd10
: from vector of ICD-10 codes.
icd9cm
: explain character vector of ICD-9-CM codes
icd10cm
: explain character vector of ICD1-10-CM codes
icd10who
: explain character vector of ICD-10-WHO codes
Ed Lee
Ed Lee
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.