Learn R Programming

HCUPtools (version 1.0.0)

Access and Work with HCUP Resources and Datasets

Description

A comprehensive R package for accessing and working with publicly available and free resources from the Agency for Healthcare Research and Quality (AHRQ) Healthcare Cost and Utilization Project (HCUP). The package provides streamlined access to HCUP's Clinical Classifications Software Refined (CCSR) mapping files and Summary Trend Tables, enabling researchers and analysts to efficiently map ICD-10-CM diagnosis codes and ICD-10-PCS procedure codes to CCSR categories and access HCUP statistical reports. Key features include: direct download from HCUP website, multiple output formats (long/wide/default), cross-classification support, version management, citation generation, and intelligent caching. The package does not redistribute HCUP data files but facilitates direct download from the official HCUP website, ensuring users always have access to the latest versions and maintain compliance with HCUP data use policies. This package only accesses free public tools and reports; it does NOT access HCUP databases (NIS, KID, SID, NEDS, etc.) that require purchase. For more information, see .

Copy Link

Version

Install

install.packages('HCUPtools')

Version

1.0.0

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Vikrant Dev Rathore

Last Published

December 10th, 2025

Functions in HCUPtools (1.0.0)

get_ccsr_description

Get CCSR Category Descriptions
read_trend_table

Read HCUP Summary Trend Table from Disk
hcup_citation

Generate Citation for HCUP Resources
list_trend_table_sheets

List Available Sheets in Trend Table
ccsr_map

Map ICD-10 Codes to CCSR Categories
read_ccsr

Read CCSR Mapping Files from Disk
HCUPtools-package

HCUPtools: Access and Work with HCUP Resources and Datasets
download_trend_tables

Download HCUP Summary Trend Tables
ccsr_changelog

Get CCSR Change Log
download_ccsr

Download CCSR Mapping Files from HCUP
list_ccsr_versions

List Available CCSR Versions