Infection control deficiencies were indicated with F tags 08. To count deficiencies, we searched on both the old and the new F tags to capture a range of time. CMS provides a crosswalk to link older tags with newer ones. In 2017, a number of F tags for the same deficiency changed. "F tags"ĭeficiencies are categorized by certain "F tags" which are defined in the supporting documents on. That number can be derived from the separate survey dataset. To calculate the percent of facilities with certain deficiencies, we took as numerator all facilities inspected in a given inspection cycle. A facility with no deficiencies will not appear in this dataset.ĬMS-regulated nursing homes are inspected in 15-month "cycles." The time-based analyses in this repository divide facilities by cycle, rather than by year. A facility may, and often does, incur more than one deficiency per inspection. The deficiencies dataset is organized as one deficiency per row. notebooks/analyze-staffing.ipynb: Analyzes the CMS nursing home staffing data.notebooks/analyze-deficiencies.ipynb: Analyzes the CMS nursing home health inspection data.notebooks/get-survey.ipynb: Fetches the latest CMS survey data and saves it in data.notebooks/get-staffing.ipynb: Fetches the latest CMS nursing home staffing data and saves it in data.notebooks/get-deficiencies.ipynb: Fetches the latest CMS nursing home health deficiencies dataset and saves it in data.The following Jupyter notebooks, written in Python, fetch and analyze the data described above: data/NHCDownloadableDatabaseDictionaries: Data dictionaries for the above.This following file was downloaded manually from the Nursing Home Compare open data portal: data/survey.csv: The date of each standard inspection across three inspection cycles.data/staffing.csv: Staffing levels recorded by CMS.Note: This file is too large to store on GitHub and must be downloaded via the notebooks/get-deficiencies.ipynb notebook. data/health_deficiencies.csv: Health related deficiencies recorded from the past three inspection cycles.The following files are downloaded via the Socrata API and stored locally:
DataĪll data analyzed here comes from the Centers for Medicare and Medicaid Services (CMS) Nursing Home Compare.
LAUREL MEADOWS CMS NURSING HOME COMPARE CODE
This repository contains data and code supporting a BuzzFeed News article on nursing home facilities, published April 21, 2020. Nursing Home Inspections Analysis - Infection Control, Ulcer Care, and Medication Errors