Skip to content

akilby/npi

Repository files navigation

NPI

The NPI package manages publicly-available data on physicians and other health care workers that is linked to their NPI number. It focuses on providing longitudinal data where available. One contribution is a novel NPI linkage to SAMHSA waiver data on providers eligible to prescribe buprenorphine.

Using the main download module

This downloads NPI/NPPES data from two sources: CMS and the NBER. NBER data is downloaded by variable, and downloads those specified in constants.py.

Some common uses of the module can be accessed at the command line:

npi download --source NPPES
npi process --source NPPES --update True

To process only one variable:

npi process --source NPPES --variable npideactdate --update True

To process only certain variables:

npi process --source NPPES --update True --include npideactdate npireactdate

To process everything except a list of variables:

npi process --source NPPES --update True --exclude npideactdate npireactdate

Using the package as an API

See an example notebook here:

NPI Database Query Example

About

NPI/NPPES data from CMS and NBER

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published