aaronhaefner / nppes-health

Package to access U.S. healthcare providers data via NPPES
MIT License
1 stars 0 forks source link

Handle deactivations #7

Open aaronhaefner opened 5 months ago

aaronhaefner commented 5 months ago

CMS updates a master file of deactivated NPIs monthly. Download the deactivation file and parse to identify deactivated NPIs that will be excluded from active NPI counts (e.g., the total number of Medicare physicians in a market will not count deactivated NPIs)

The deactivations data file can be downloaded from https://download.cms.gov/nppes/NPI_Files.html.

They also publish weekly deactivations, which can be a more light weight way to handle new deactivations rather than re-merging larger data files.

aaronhaefner commented 4 months ago

When an NPI is deactivated, the information connected to that NPI is removed. Only the deactivation information and NPI is reported in continuing data builds.

Care should be taken when "reaching back" with historical NPI data, i.e., data following the NPI's last update date is the information attached to the NPI prior to the deactivation date.