https://github.com/andrewallenbruce/provider
Public Healthcare Provider APIs :stethoscope:
https://github.com/andrewallenbruce/provider
api-wrapper cms geospatial healthcare healthcare-data medicare network-analysis npi nppes physician r-package rstats
Last synced: 4 months ago
JSON representation
Public Healthcare Provider APIs :stethoscope:
- Host: GitHub
- URL: https://github.com/andrewallenbruce/provider
- Owner: andrewallenbruce
- License: other
- Created: 2022-08-31T03:54:02.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-07-21T23:01:52.000Z (over 1 year ago)
- Last Synced: 2024-08-13T07:11:15.321Z (over 1 year ago)
- Topics: api-wrapper, cms, geospatial, healthcare, healthcare-data, medicare, network-analysis, npi, nppes, physician, r-package, rstats
- Language: R
- Homepage: https://andrewallenbruce.github.io/provider/
- Size: 394 MB
- Stars: 19
- Watchers: 2
- Forks: 2
- Open Issues: 10
-
Metadata Files:
- Readme: README.Rmd
- Changelog: NEWS.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
- jimsghstars - andrewallenbruce/provider - Public Healthcare Provider APIs :stethoscope: (R)
README
---
output: github_document
editor_options:
chunk_output_type: console
---
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = FALSE,
echo = TRUE,
message = TRUE,
warning = FALSE,
error = TRUE,
comment = "#>",
dpi = 600,
out.width = "100%"
)
```
# provider 
> Providing easy access to [healthcare provider](https://en.wikipedia.org/wiki/Health_care_provider) data through publicly available APIs.

[](https://github.com/andrewallenbruce/provider/actions/workflows/R-CMD-check.yaml)
[](https://choosealicense.com/licenses/mit/)
[](https://github.com/andrewallenbruce/provider)
[](https://github.com/andrewallenbruce/provider/commits/main)
[](https://app.codecov.io/gh/andrewallenbruce/provider?branch=main)
[](https://www.codefactor.io/repository/github/andrewallenbruce/provider)
## :package: Installation
You can install __`provider`__ from [GitHub](https://github.com/) with:
``` r
# install.packages("pak")
pak::pak("andrewallenbruce/provider")
```
## :beginner: Usage
```{r echo=TRUE, message=FALSE, warning=FALSE}
library(provider)
library(dplyr)
library(tidyr)
```
### `affiliations()`
```{r}
affiliations(facility_ccn = 370781)
```
### `beneficiaries()`
```{r}
beneficiaries(
year = 2023,
period = "Year",
level = "County",
state = "GA",
county = "Lowndes County") |>
glimpse()
```
### `clinicians()`
```{r}
clinicians(npi = 1932365699) |> glimpse()
```
### `hospitals()`
```{r}
hospitals(npi = 1720098791) |> glimpse()
```
### `laboratories()`
```{r}
laboratories(clia = "11D0265516") |> glimpse()
```
### `nppes()`
```{r}
nppes(npi = 1497535637) |> glimpse()
```
### `open_payments()`
```{r}
open_payments(
year = 2021,
npi = 1023630738,
na.rm = TRUE) |>
glimpse()
```
### `opt_out()`
```{r}
opt_out(npi = 1043522824) |> glimpse()
```
### `order_refer()`
```{r}
order_refer(npi = 1043522824) |> glimpse()
```
### `outpatient()`
```{r}
outpatient(
year = 2021,
state = "GA",
city = "Valdosta",
apc = "5072") |>
glimpse()
```
### `prescribers()`
```{r}
prescribers(
year = 2022,
type = 'Provider',
npi = 1003000126) |>
glimpse()
```
```{r}
prescribers(
year = 2022,
npi = 1003000126,
type = 'Drug',
brand_name = 'Atorvastatin Calcium') |>
glimpse()
```
```{r}
prescribers(
year = 2022,
type = 'Geography',
level = 'National',
brand_name = 'Clotrimazole-Betamethasone') |>
glimpse()
```
### `providers()`
```{r}
providers(
npi = 1720098791,
enid = "O20040610001257") |>
glimpse()
```
### `quality_payment()`
```{r}
quality_payment(
year = 2021,
npi = 1932365699) |>
glimpse()
```
### `quality_eligibility()`
```{r}
quality_eligibility(
year = 2024,
npi = 1932365699,
tidy = FALSE,
unnest = FALSE,
pivot = FALSE,
na.rm = FALSE) |>
glimpse()
```
### `reassignments()`
```{r}
reassignments(
npi = 1932365699,
pac_org = 7719037548) |>
glimpse()
```
### `utilization()`
```{r}
utilization(
year = 2022,
npi = 1932365699,
type = "Provider") |>
glimpse()
```
```{r}
utilization(
year = 2022,
npi = 1932365699,
hcpcs = "99214",
type = "Service",
rbcs = FALSE) |>
glimpse()
```
```{r}
utilization(
year = 2022,
hcpcs = "99205",
level = "National",
pos = "F",
type = "Geography",
rbcs = FALSE) |>
glimpse()
```
------------------------------------------------------------------------------
## :balance_scale: Code of Conduct
Please note that the `provider` project is released with a [Contributor Code of Conduct](https://andrewallenbruce.github.io/provider/CODE_OF_CONDUCT.html). By contributing to this project, you agree to abide by its terms.
## :classical_building: Governance
This project is primarily maintained by [Andrew Bruce](https://github.com/andrewallenbruce). Other authors may occasionally assist with some of these duties.