-
Notifications
You must be signed in to change notification settings - Fork 1
/
README.Rmd
46 lines (30 loc) · 1.43 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# nppesapi
### What is nppesapi?
**nppesapi** queries the NPPES API with an R wrapper. It allows systems to access
NPPES public data in real-time, rather than through batched uploads. The API
retrieves data from NPPES daily.
For help with the **nppesapi** R-package, there is a vignette available in the /vignettes folder.
# Installation
The package can be installed with
devtools::install_github("bgreenwell/nppesapi")
After installation, the package can be loaded into R.
library(nppesapi)
# Using nppesapi
The main function in the **nppesapi** package is `nppes_api()`. It uses a query string acceptable to the NPPES API
and returns the response in a formatted object. This is essentially limited only by the API. One important
limitiation is 200 responses. This can be worked around with multiple queries and use of "limit=200&skip=200", etc.
```
nppes_api("city=dayton")
nppes_api("number=1124021324")
```
A second function is `npi_lookup()`. It looks up a specific field for a list of NPIs. This is limited to specialty
at the moment. It can query any number of NPIs.
```
npi_lookup(c(1649246182, 1831117050), field = "specialty")
npi_lookup(c(1942218276, 1275768434, "1124042692", 1013913409, "1932348661"))
```
# Bug reports
Report bugs as issues on the [GitHub repository](https://github.com/bgreenwell/nppesapi)
# Contributors
* [Brandon Greenwell](https://github.com/bgreenwell)
* [Dan Garmat](https://github.com/dgarmat)