PC | R Documentation |
The Procedure Class classification for ICD-9 and ICD-10 codes is a procedure categorization scheme that can employ in many types of projects to analyze data.
icdPrToProcedureClass(
prDataFile,
idColName,
icdColName,
dateColName,
icdVerColName = NULL,
icd10usingDate = NULL,
isDescription = TRUE
)
prDataFile |
A data frame object of clinical procedure data with at least 3 columns: ID, ICD, and Date. As for date column, the data format should be YYYY/MM/DD or YYYY-MM-DD. |
idColName |
Column name of ID column in prDataFile. Data type of this argumant should be string without quotation marks. |
icdColName |
Column name of ICD column in prDataFile. Data type of this argumant should be string without quotation marks. |
dateColName |
Column name of date column in prDataFile (with date in YYYY/MM/DD or YYYY-MM-DD format). Data type of this argumant should be string without quotation marks. |
icdVerColName |
(Optional) Column name of ICD-9/10 version recorded in prDataFile. Data format in this column should be numeric 9L or 10L. |
icd10usingDate |
The date that ICD-10 was started to be used in prDataFile dataset. The data format should be YYYY/MM/DD or YYYY-MM-DD. Necessary if icdVerColName is null. |
isDescription |
Binary. If true, category description of classification methods will be used in the group column. If false, category name will be used. By default, it is set to be |
This function collapse ICD codes into a smaller number of clinically meaningful categories that are more useful for presenting descriptive statistics than individual ICD procedure codes are.
Two new data.table
s. 1) groupedDT
: Based on prDataFile
with two new columns for uniform format procedure codes and classified standard categories. 2) Error
: Potential error codes from prUniform
.
see other code classification: prCCS
# sample file for example
head(samplePrFile)
# Group procedure codes into procedure class classification
icdPrToProcedureClass(samplePrFile, ID, ICD, Date, icdVerColName = NULL, "2015-10-01", TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.