Skip to contents

src_nppes_gi_data() returns a dataframe of GI Providers (Gastroenterology and Colon & Recal Surgeons) from the NPPES API.

Usage

src_nppes_gi_data(state = c(state.abb, "DC"))

Source

Arguments

state

Character string or vector of character strings of state postal abbreviations

Value

A data frame (data.frame) containing data pulled from the NPPES API.

Details

Centers for Medicare & Medicaid Services CMS has developed the NPPES to assign unique identifiers to health care providers. The National Provider Indentifier (NPI) has been the standard identifier for all HIPAA-covered entities (health care providers) since May 23, 2007. Small health plans were required to obtain and use an NPI by May 23, 2008.

Author

Todd Burus tburus@uky.edu

Examples

# example code

gi = src_nppes_gi_data(state  = c('KY', 'TN'))
#> INFO  [15:32:47.396] Starting nppes_gi_data
#> Collecting data for KY 
#> Collecting data for TN 
#> INFO  [15:32:49.301] Completing nppes_gi_data

colnames(gi)
#> [1] "Type"         "Name"         "Address"      "State"        "Phone_number"
#> [6] "Notes"        "latitude"     "longitude"   

dplyr::glimpse(gi)
#> Rows: 753
#> Columns: 8
#> $ Type         <chr> "GI Provider", "GI Provider", "GI Provider", "GI Provider…
#> $ Name         <chr> "Thomas Abell", "Edward Adler", "Shifat Ahmed", "Ashirf A…
#> $ Address      <chr> "401 E Chestnut St Unit 310, Louisville, KY 40202", "3999…
#> $ State        <chr> "KY", "KY", "AZ", "KY", "KY", "KY", "KY", "KY", "KY", "KY…
#> $ Phone_number <chr> "502-588-4710", "502-896-4711", "602-344-5011", "606-430-…
#> $ Notes        <chr> "Gastroenterology", "Gastroenterology", "Gastroenterology…
#> $ latitude     <chr> "", "", "", "", "", "", "", "", "", "", "", "", "", "", "…
#> $ longitude    <chr> "", "", "", "", "", "", "", "", "", "", "", "", "", "", "…