Learn R Programming

cms R Package: Tools for Calculating CMS Medicare Reimbursement

Overview

The cms R package uses the CMS (Center for Medicare & Medicaid Services) API to provide useRs access to databases containing annually-updated Medicare reimbursement rates. Data is available for all localities in the United States. Currently, support is only provided for the Medicare Physician Fee Schedule (MPFS), but support will be expanded for other CMS databases in future versions. In summary, cms implements programmatic access to healthcare reimbursement data via the CMS API and the R programming language.

Installation

To install cms, run the following R code:

# install from CRAN
install.packages("cms")

# install development version from GitHub
devtools::install_github("subramv/cms")

# install development version with vignettes
devtools::install_github("subramv/cms", build_vignettes = TRUE)

Sample code

The following code pulls the 2019 MPFS national payment file for all localities:

# load cms
library(cms)

#pull MPFS national payment file
mpfs19 <- get_mpfs(19)

More details can be found in the package vignettes.

Functionality

cms is designed to automate import and cleaning of CMS publically-available databases for useRs to use. Databases are downloaded to a user-specified directory and by default are stored as compressed source files for re-use. At present, this functionality has been implemented for the MPFS.

Contributions

Please report any bugs, suggestions, etc. on the issues page of the cms GitHub repository. Contributions (bug fixes, new features, etc.) are welcome via pull requests (generally from forked repositories).

Copy Link

Version

Install

install.packages('cms')

Monthly Downloads

235

Version

0.1.0

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Vigneshwar Subramanian

Last Published

September 10th, 2020

Functions in cms (0.1.0)

cms

cms: Tools for Calculating CMS Medicare Reimbursement
get_mpfs

Access Medicare Physician Fee Schedule
locality_dict

Locality dictionary for 2020 Physician Fee Schedule
mpfs20_oh

2020 Physician Fee Schedule, Ohio