

"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-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.

#Cms nursing home compare dficiences tag and prefix 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
