npi-package | R Documentation |
Access the United States National Provider Identifier Registry API https://npiregistry.cms.hhs.gov/api/. Obtain and transform administrative data linked to a specific individual or organizational healthcare provider, or perform advanced searches based on provider name, location, type of service, credentials, and other attributes exposed by the API.
npi makes it easy to search and work with data from the U.S. National Provider Identifier (NPI) Registry API (v2.1) directly from R. Obtain rich administrative data linked to a specific individual or organizational healthcare provider, or perform advanced searches based on provider name, location, type of service, credentials, and many other attributes. npi provides convenience functions for data extraction so you can spend less time wrangling data and more time putting data to work.
There are three functions you're likely to need from this package. The first
is npi_search
, which allows you to query the NPI Registry and
returns up to 1,200 full NPI records as a data frame (tibble). Next, you can
use npi_summarize
on these results to obtain a human-readable
summary of each record. Finally, npi_flatten
extracts and
flattens conceptually-related subsets of data into a tibble that are joined
by the 'npi' column into an analysis-ready object.
npi's default user agent is the URL of the package's GitHub
repository, https://github.com/ropensci/npi. You can customize
it by setting the npi_user_agent
option:
options(npi_user_agent = "your_user_agent_here")
Maintainer: Frank Farach frank.farach@gmail.com (ORCID) [copyright holder]
Other contributors:
Sam Parmar parmartsam@gmail.com [contributor]
Matthias GreniƩ matthias.grenie@idiv.de (ORCID) [reviewer]
Emily C. Zabor zabore2@ccf.org (ORCID) [reviewer]
Useful links:
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.