{"id":14066423,"url":"https://github.com/andrewallenbruce/provider","last_synced_at":"2025-07-29T23:31:07.649Z","repository":{"id":143651955,"uuid":"530927687","full_name":"andrewallenbruce/provider","owner":"andrewallenbruce","description":"Public Healthcare Provider APIs :stethoscope:","archived":false,"fork":false,"pushed_at":"2024-07-21T23:01:52.000Z","size":413258,"stargazers_count":19,"open_issues_count":10,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-08-13T07:11:15.321Z","etag":null,"topics":["api-wrapper","cms","geospatial","healthcare","healthcare-data","medicare","network-analysis","npi","nppes","physician","r-package","rstats"],"latest_commit_sha":null,"homepage":"https://andrewallenbruce.github.io/provider/","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/andrewallenbruce.png","metadata":{"files":{"readme":"README.Rmd","changelog":"NEWS.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-08-31T03:54:02.000Z","updated_at":"2024-07-21T22:52:11.000Z","dependencies_parsed_at":"2024-05-14T03:42:44.327Z","dependency_job_id":"38a5dfe6-46a9-4443-b35c-0501af490b83","html_url":"https://github.com/andrewallenbruce/provider","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrewallenbruce%2Fprovider","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrewallenbruce%2Fprovider/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrewallenbruce%2Fprovider/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrewallenbruce%2Fprovider/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andrewallenbruce","download_url":"https://codeload.github.com/andrewallenbruce/provider/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228060250,"owners_count":17863361,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api-wrapper","cms","geospatial","healthcare","healthcare-data","medicare","network-analysis","npi","nppes","physician","r-package","rstats"],"created_at":"2024-08-13T07:05:05.504Z","updated_at":"2025-07-29T23:31:07.631Z","avatar_url":"https://github.com/andrewallenbruce.png","language":"R","funding_links":[],"categories":["R"],"sub_categories":[],"readme":"---\noutput: github_document\neditor_options: \n  chunk_output_type: console\n---\n\n\u003c!-- README.md is generated from README.Rmd. Please edit that file --\u003e\n\n```{r, include = FALSE}\nknitr::opts_chunk$set(\n  collapse  = FALSE,\n  echo      = TRUE,\n  message   = TRUE, \n  warning   = FALSE,\n  error     = TRUE,\n  comment   = \"#\u003e\",\n  dpi       = 600, \n  out.width = \"100%\"\n  )\n```\n\n# provider \u003cimg src=\"man/figures/logo.svg\" align=\"right\" height=\"200\" /\u003e\n\n\u003e  Providing easy access to [healthcare provider](https://en.wikipedia.org/wiki/Health_care_provider) data through publicly available APIs.\n\n\u003c!-- badges: start --\u003e\n![GitHub R package version](https://img.shields.io/github/r-package/v/andrewallenbruce/provider?style=flat-square\u0026logo=R\u0026label=Package\u0026color=%23192a38)\n[![R-CMD-check](https://github.com/andrewallenbruce/provider/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/andrewallenbruce/provider/actions/workflows/R-CMD-check.yaml)\n[![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](https://choosealicense.com/licenses/mit/)\n[![code size](https://img.shields.io/github/languages/code-size/andrewallenbruce/provider.svg)](https://github.com/andrewallenbruce/provider)\n[![last commit](https://img.shields.io/github/last-commit/andrewallenbruce/provider.svg)](https://github.com/andrewallenbruce/provider/commits/main)\n[![Codecov test coverage](https://codecov.io/gh/andrewallenbruce/provider/branch/main/graph/badge.svg)](https://app.codecov.io/gh/andrewallenbruce/provider?branch=main)\n[![CodeFactor](https://www.codefactor.io/repository/github/andrewallenbruce/provider/badge)](https://www.codefactor.io/repository/github/andrewallenbruce/provider)\n\u003c!-- badges: end --\u003e\n\n\n\n## :package: Installation\n\nYou can install __`provider`__ from [GitHub](https://github.com/) with:\n\n``` r\n# install.packages(\"pak\")\npak::pak(\"andrewallenbruce/provider\")\n```\n\n## :beginner: Usage\n\n```{r echo=TRUE, message=FALSE, warning=FALSE}\nlibrary(provider)\nlibrary(dplyr)\nlibrary(tidyr)\n```\n\n\n### `affiliations()`\n\n```{r}\naffiliations(facility_ccn = 370781)\n```\n\n\n### `beneficiaries()`\n\n```{r}\nbeneficiaries(\n  year   = 2023, \n  period = \"Year\", \n  level  = \"County\", \n  state  = \"GA\", \n  county = \"Lowndes County\") |\u003e\n  glimpse()\n```\n\n### `clinicians()`\n\n```{r}\nclinicians(npi = 1932365699) |\u003e glimpse()\n```\n\n### `hospitals()`\n\n```{r}\nhospitals(npi = 1720098791) |\u003e glimpse()\n```\n\n### `laboratories()`\n\n```{r}\nlaboratories(clia = \"11D0265516\") |\u003e glimpse()\n```\n\n\n### `nppes()`\n\n```{r}\nnppes(npi = 1497535637) |\u003e glimpse()\n```\n\n\n### `open_payments()`\n\n```{r}\nopen_payments(\n  year  = 2021, \n  npi   = 1023630738, \n  na.rm = TRUE) |\u003e \n  glimpse()\n```\n\n\n### `opt_out()`\n\n```{r}\nopt_out(npi = 1043522824) |\u003e glimpse()\n```\n\n\n### `order_refer()`\n\n```{r}\norder_refer(npi = 1043522824) |\u003e glimpse()\n```\n\n\n### `outpatient()`\n\n```{r}\noutpatient(\n  year  = 2021, \n  state = \"GA\", \n  city  = \"Valdosta\", \n  apc   = \"5072\") |\u003e \n  glimpse()\n```\n\n\n### `prescribers()`\n\n```{r}\nprescribers(\n  year = 2022, \n  type = 'Provider', \n  npi = 1003000126) |\u003e \n  glimpse()\n```\n\n\n```{r}\nprescribers(\n  year = 2022, \n  npi = 1003000126,\n  type = 'Drug',\n  brand_name = 'Atorvastatin Calcium') |\u003e \n  glimpse()\n```\n\n\n```{r}\nprescribers(\n  year = 2022, \n  type = 'Geography',\n  level = 'National',\n  brand_name = 'Clotrimazole-Betamethasone') |\u003e \n  glimpse()\n```\n\n### `providers()`\n\n```{r}\nproviders(\n  npi  = 1720098791, \n  enid = \"O20040610001257\") |\u003e \n  glimpse()\n```\n\n### `quality_payment()`\n\n```{r}\nquality_payment(\n  year = 2021, \n  npi  = 1932365699) |\u003e \n  glimpse()\n```\n\n### `quality_eligibility()`\n\n```{r}\nquality_eligibility(\n  year = 2024, \n  npi  = 1932365699,\n  tidy = FALSE,\n  unnest = FALSE,\n  pivot = FALSE,\n  na.rm = FALSE) |\u003e \n  glimpse()\n```\n\n### `reassignments()`\n\n```{r}\nreassignments(\n  npi = 1932365699, \n  pac_org = 7719037548) |\u003e \n  glimpse()\n```\n\n### `utilization()`\n\n```{r}\nutilization(\n  year = 2022, \n  npi  = 1932365699, \n  type = \"Provider\") |\u003e \n  glimpse()\n```\n\n```{r}\nutilization(\n  year  = 2022, \n  npi   = 1932365699,\n  hcpcs = \"99214\",\n  type  = \"Service\",\n  rbcs = FALSE) |\u003e \n  glimpse()\n```\n\n```{r}\nutilization(\n  year  = 2022, \n  hcpcs = \"99205\", \n  level = \"National\",\n  pos   = \"F\",\n  type  = \"Geography\",\n  rbcs = FALSE) |\u003e \n  glimpse()\n```\n\n------------------------------------------------------------------------------\n\n## :balance_scale: Code of Conduct\n\nPlease 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.\n\n\n## :classical_building: Governance\n\nThis project is primarily maintained by [Andrew Bruce](https://github.com/andrewallenbruce). Other authors may occasionally assist with some of these duties.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrewallenbruce%2Fprovider","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandrewallenbruce%2Fprovider","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrewallenbruce%2Fprovider/lists"}