chars_icd_ccs: View available CHARS ICD-9-CM OR ICD-10-CM (diagnosis) codes,...

View source: R/chars_functions.R

chars_icd_ccsR Documentation

View available CHARS ICD-9-CM OR ICD-10-CM (diagnosis) codes, descriptions, and summary 'broad' and 'detailed' classifications that can be used with chars_icd_ccs_count

Description

A function to view the complete list of ICD-9-CM OR ICD-10-CM codes and descriptions as well as corresponding 'broad' and 'detailed' classifications. The 'broad' and 'detailed' classifications broadly follow AHRQ's HCUP Clinical Classifications Software Refined (CCSR) standards for ICD-10-CM. ICD-9-CM codes were then mapped to the same 'broad' and 'detailed' categories to maximize comparability across time. The 'superlevel' and 'midlevel' categorizations were developed by APDE, based in large part on the 'broad' and 'detailed' classifications.

Output is provided in the form of a table. Use this table to inform your arguments in the chars_icd_ccs_count function.

Usage

chars_icd_ccs(ref_type = "all", mykey = "hhsaw", icdcm_version = 10)

Arguments

ref_type

a character vector of length one specifying the hospital diagnosis descriptions that are of interest to you. Acceptable options include: 'all', 'icdcm', 'superlevel', 'broad', 'midlevel', & 'detailed'.

The default is ref_type = 'all'.

mykey

Character vector of length 1. Identifies the keyring:: service that can be used to access the Health & Human Services Analytic Workspace (HHSAW).

The default is mykey = 'hhsaw'

icdcm_version

an integer vector of length one specifying the ICD CM version that you want to reference. Acceptable options include: 9 & 10.

The default is icdcm_version = 10.

Value

A data.table. The number of rows and columns are dependent upon the arguments submitted to the function.

Note

If you do not specify any arguments, the function will return a table with all ICD-10-CM codes as well ICD-10-CM, superlevel, broad, midlevel, and detailed descriptions.

Source

kcitazrhpasqlprp16.azds.kingcounty.gov >> hhs_analytics_workspace >> ref.icdcm_codes

References

https://hcup-us.ahrq.gov/toolssoftware/ccsr/ccs_refined.jsp

Examples

# Save and view table as a data.table named 'blah'
blah <- chars_icd_ccs(ref_type = 'all')
head(blah)


PHSKC-APDE/rads documentation built on April 14, 2025, 10:47 a.m.