get_mpfs {cms}R Documentation

Access Medicare Physician Fee Schedule

Description

Use the CMS API to download the MPFS database for any year between 2014 and 2020, inclusive.

Usage

get_mpfs(year, storage_path, keep_downloads = TRUE, locality)

Arguments

year

integer (min = 14; max = 20) indicating MPFS database year

storage_path

path to storing downloaded files (temporarily if 'keep_downloads' equals 'FALSE')

keep_downloads

if 'TRUE', stores compressed CMS data to prevent re-downloading; if 'FALSE', deletes intermediate data after loading into R

locality

7-digit HCFS identification number; if not specified, will return entire MPFS database (all localities)

Value

MPFS database for respective year and localities (data frame)

Examples

## Not run: 
# get entire MPFS database for 2020
mpfs20 <- get_mpfs(20, storage_path = 'storage', keep_downloads = TRUE)

# get 2019 MPFS database only for carrier 15202 and locality 00
mpfs19 <- get_mpfs(19, storage_path = 'storage', locality = '1520200')

## End(Not run)

[Package cms version 0.1.0 Index]