Returns information pertaining to 83 datasets separated by medical specialty, describing physician office visit costs per zip code for new and established patients.
Arguments
- specialty
search for exact medical specialty, any spaces replaced by an underscore, e.g. 'cardiac_surgery'.
- keyword
search for partial matches, e.g. 'medicine'
Value
A tibble
containing the specialty of the provider, the title of the dataset, the dates that the dataset was issued, modified, and released, and the link to download the csv file
Examples
# The `specialty` argument will only return _exact_ matches
search_datasets(specialty = "cardiac_surgery")
#> # A tibble: 1 × 3
#> specialty released csv_url
#> <chr> <date> <chr>
#> 1 cardiac_surgery 2022-07-14 https://data.cms.gov/provider-data/sites/default/f…
# The `keyword` argument will return _partial_ matches
search_datasets(keyword = "medicine")
#> # A tibble: 12 × 3
#> specialty released csv_url
#> <chr> <date> <chr>
#> 1 addiction_medicine 2022-07-14 https://data.cms.gov/provide…
#> 2 emergency_medicine 2022-07-14 https://data.cms.gov/provide…
#> 3 geriatric_medicine 2022-07-14 https://data.cms.gov/provide…
#> 4 internal_medicine 2022-07-14 https://data.cms.gov/provide…
#> 5 nuclear_medicine 2022-07-14 https://data.cms.gov/provide…
#> 6 osteopathic_manipulative_medicine 2022-07-14 https://data.cms.gov/provide…
#> 7 pediatric_medicine 2022-07-14 https://data.cms.gov/provide…
#> 8 physical_medicine_and_rehabilitation 2022-07-14 https://data.cms.gov/provide…
#> 9 preventive_medicine 2022-07-14 https://data.cms.gov/provide…
#> 10 sleep_medicine 2022-07-14 https://data.cms.gov/provide…
#> 11 sports_medicine 2022-07-14 https://data.cms.gov/provide…
#> 12 undersea_and_hyperbaric_medicine 2022-07-14 https://data.cms.gov/provide…
# Calling the function with no arguments will return the entire dataset
search_datasets()
#> # A tibble: 83 × 3
#> specialty released csv_url
#> <chr> <date> <chr>
#> 1 addiction_medicine 2022-07-14 https://data.cms…
#> 2 advanced_heart_failure_and_transplant_cardiology 2022-07-14 https://data.cms…
#> 3 allergy_immunology 2022-07-14 https://data.cms…
#> 4 anesthesiology 2022-07-14 https://data.cms…
#> 5 cardiac_surgery 2022-07-14 https://data.cms…
#> 6 cardiology 2022-07-14 https://data.cms…
#> 7 certified_clinical_nurse_specialist 2022-07-14 https://data.cms…
#> 8 certified_nurse_midwife 2022-07-14 https://data.cms…
#> 9 certified_registered_nurse_anesthetist_crna 2022-07-14 https://data.cms…
#> 10 clinic_or_group_practice 2022-07-14 https://data.cms…
#> # ℹ 73 more rows