plotICDError | R Documentation |
Pareto chart of error ICD list
plotICDError(
errorFile,
icdVersion = all,
wrongICDType = all,
groupICD = FALSE,
others = TRUE,
topN = 10
)
errorFile |
Error file (a data frame) from ICD uniform functions |
wrongICDType |
Certain wrong type that interested. The value can either version, format, or all, and this argument is the also string data type without quotation mark. |
groupICD |
Binary data type. Only ICD-9 codes can group because ICD 10 already has unique alphanumeric codes to identify known diseases. Default is FALSE. |
others |
Default is TRUE |
topN |
Numeric argument. Default is 10 (Top 10; 10 most common wrong ICD). |
ICDVersion |
Certain version that interested. The argument should be string data type: 9, 10 or all (without quotation mark). |
Through first phase function, code standardization, it detects diagnosis codes with potential error. The Pareto chart includes bar plot and line chart to visualize individual possible error ICD codes represented in descending order and cumulative total.
A Pareto plot and a data.table
of statistical information about error codes.
other plot function: plotDiagCat
# sample file for example
head(sampleDxFile)
# Data of diagnosis codes with potential error
error <- icdDxDecimalToShort(sampleDxFile, ICD, Date, icdVerColName = NULL, "2015/10/01")
# Plot of top 3 common error ICD-9 codes and a list of the detail of error ICD codes
plotICDError(errorFile = error$Error,
icdVersion = 9,
wrongICDType = all,
groupICD = TRUE,
others = TRUE,
topN = 3)
# Plot of top 10 common error ICD codes and a list of the detail of error ICD codes
plotICDError(errorFile = error$Error,
icdVersion = all,
wrongICDType = all,
groupICD = FALSE,
others = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.