HCUPtools: Access and Work with HCUP Resources and Datasets

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 <https://hcup-us.ahrq.gov/>.

Version: 1.0.0
Depends: R (≥ 4.1.0)
Imports: httr2, readr, dplyr, tidyr, tibble, utils, stats, rlang, xml2, readxl
Suggests: testthat (≥ 3.0.0), knitr, rmarkdown, pkgdown, data.table, pdftools
Published: 2025-12-10
DOI: 10.32614/CRAN.package.HCUPtools (may not be active yet)
Author: Vikrant Dev Rathore [aut, cre]
Maintainer: Vikrant Dev Rathore <rathore.vikrant at gmail.com>
BugReports: https://github.com/vikrant31/HCUPtools/issues
License: MIT + file LICENSE
URL: https://github.com/vikrant31/HCUPtools, https://vikrant31.github.io/HCUPtools/
NeedsCompilation: no
Materials: NEWS
CRAN checks: HCUPtools results

Documentation:

Reference manual: HCUPtools.html , HCUPtools.pdf
Vignettes: Getting Started with HCUPtools (source, R code)

Downloads:

Package source: HCUPtools_1.0.0.tar.gz
Windows binaries: r-devel: HCUPtools_1.0.0.zip, r-release: not available, r-oldrel: not available
macOS binaries: r-release (arm64): HCUPtools_1.0.0.tgz, r-oldrel (arm64): HCUPtools_1.0.0.tgz, r-release (x86_64): HCUPtools_1.0.0.tgz, r-oldrel (x86_64): HCUPtools_1.0.0.tgz

Linking:

Please use the canonical form https://CRAN.R-project.org/package=HCUPtools to link to this page.