knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%"
)

CRAN Status CRAN_Download_Counter

Currently in development

Introduction

The carecompare package is an R toolkit built to enable US hospitals and health systems to access, explore, and analyze performance in quality measures and payment programs from the Centers for Medicare and Medicaid Services (CMS).

Installation

devtools::install_github("zajichek/carecompare")

Load

require(carecompare)

Accessing Data

Generic access to the CMS Provider Data Catalog.

# Extract the topics
topics <- pdc_topics()
topics

# Examine the metadata for a given topic
hospital_data <- pdc_datasets("Hospitals")
hospital_data

# Search for a dataset
hospital_data %>% 
  dplyr::filter(
    title %>%
      stringr::str_detect(
        pattern = "(?i)readmission"
      )
  ) %>%
  knitr::kable(format = "pandoc")

# Import the data for a given dataset
pdc_read(
  datasetid = "9n3s-kdb3"
)

Formatted datasets

hospitals
cms_payments()
cms_msdrg()


zajichek/carecompare documentation built on Sept. 5, 2024, 3:12 a.m.