Skip to content

Commit

Permalink
commit
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewallenbruce committed Aug 27, 2023
1 parent aeb21e3 commit b2ff9d0
Show file tree
Hide file tree
Showing 19 changed files with 782 additions and 1,104 deletions.
14 changes: 7 additions & 7 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,25 @@

export(affiliations)
export(beneficiary_enrollment)
export(by_geography)
export(by_geography_years)
export(by_provider)
export(by_provider_years)
export(by_service)
export(by_service_years)
export(cc_multiple)
export(cc_multiple_years)
export(cc_specific)
export(cc_specific_years)
export(clinicians)
export(hospitals)
export(missing_information)
export(nppes_npi)
export(nppes)
export(open_payments)
export(open_payments_years)
export(opt_out)
export(order_refer)
export(pending_applications)
export(physician_by_geography)
export(physician_by_geography_years)
export(physician_by_provider)
export(physician_by_provider_years)
export(physician_by_service)
export(physician_by_service_years)
export(providers)
export(quality_eligibility)
export(quality_payment)
Expand Down
283 changes: 137 additions & 146 deletions R/globals.R
Original file line number Diff line number Diff line change
Expand Up @@ -173,37 +173,26 @@ utils::globalVariables(c(
"NPI", # <missing_information>
"last_name", # <missing_information>
"first_name", # <missing_information>
"y", # <nppes_npi>
"number", # <nppes_npi>
"enumeration_type", # <nppes_npi>
"addresses", # <nppes_npi>
"taxonomies", # <nppes_npi>
"practiceLocations", # <nppes_npi>
"other_names", # <nppes_npi>
"practice_locations", # <nppes_npi>
"country_code", # <nppes_npi>
"telephone_number", # <nppes_npi>
"postal_code", # <nppes_npi>
"address_purpose", # <nppes_npi>
"address_1", # <nppes_npi>
"purpose", # <nppes_npi>
"code", # <nppes_npi>
"desc", # <nppes_npi>
"taxonomy_group", # <nppes_npi>
"primary", # <nppes_npi>
"issuer", # <nppes_npi>
"identifier", # <nppes_npi>
"y", # <nppes_summary>
"number", # <nppes_summary>
"enumeration_type", # <nppes_summary>
"basic", # <nppes_summary>
"addresses", # <nppes_summary>
"taxonomies", # <nppes_summary>
"enumeration_date", # <nppes_summary>
"address_purpose", # <nppes_summary>
"country_name", # <nppes_summary>
"telephone_number", # <nppes_summary>
"postal_code", # <nppes_summary>
"y", # <nppes>
"number", # <nppes>
"enumeration_type", # <nppes>
"addresses", # <nppes>
"taxonomies", # <nppes>
"practiceLocations", # <nppes>
"other_names", # <nppes>
"practice_locations", # <nppes>
"country_code", # <nppes>
"telephone_number", # <nppes>
"postal_code", # <nppes>
"address_purpose", # <nppes>
"address_1", # <nppes>
"purpose", # <nppes>
"code", # <nppes>
"desc", # <nppes>
"taxonomy_group", # <nppes>
"primary", # <nppes>
"issuer", # <nppes>
"identifier", # <nppes>
"data_lists", # <nppes_npi_old>
"outcome", # <nppes_npi_old>
"description", # <nppes_npi_old>
Expand Down Expand Up @@ -336,121 +325,123 @@ utils::globalVariables(c(
"distro", # <order_refer>
"y", # <order_refer>
"y", # <pending_applications>
"distro", # <physician_by_geography>
"y", # <physician_by_geography>
"rndrng_prvdr_geo_lvl", # <physician_by_geography>
"rndrng_prvdr_geo_desc", # <physician_by_geography>
"rndrng_prvdr_geo_cd", # <physician_by_geography>
"hcpcs_cd", # <physician_by_geography>
"hcpcs_drug_ind", # <physician_by_geography>
"tot_rndrng_prvdrs", # <physician_by_geography>
"tot_benes", # <physician_by_geography>
"tot_srvcs", # <physician_by_geography>
"tot_bene_day_srvcs", # <physician_by_geography>
"avg_sbmtd_chrg", # <physician_by_geography>
"avg_mdcr_alowd_amt", # <physician_by_geography>
"avg_mdcr_pymt_amt", # <physician_by_geography>
"avg_mdcr_stdzd_amt", # <physician_by_geography>
"distro", # <physician_by_provider>
"y", # <physician_by_provider>
"rndrng_prvdr_crdntls", # <physician_by_provider>
"rndrng_prvdr_mdcr_prtcptg_ind", # <physician_by_provider>
"rndrng_npi", # <physician_by_provider>
"rndrng_prvdr_first_name", # <physician_by_provider>
"rndrng_prvdr_mi", # <physician_by_provider>
"rndrng_prvdr_last_org_name", # <physician_by_provider>
"rndrng_prvdr_gndr", # <physician_by_provider>
"rndrng_prvdr_ent_cd", # <physician_by_provider>
"street", # <physician_by_provider>
"rndrng_prvdr_city", # <physician_by_provider>
"rndrng_prvdr_state_abrvtn", # <physician_by_provider>
"rndrng_prvdr_state_fips", # <physician_by_provider>
"rndrng_prvdr_zip5", # <physician_by_provider>
"rndrng_prvdr_ruca", # <physician_by_provider>
"rndrng_prvdr_cntry", # <physician_by_provider>
"rndrng_prvdr_type", # <physician_by_provider>
"tot_hcpcs_cds", # <physician_by_provider>
"tot_benes", # <physician_by_provider>
"tot_srvcs", # <physician_by_provider>
"tot_sbmtd_chrg", # <physician_by_provider>
"tot_mdcr_alowd_amt", # <physician_by_provider>
"tot_mdcr_pymt_amt", # <physician_by_provider>
"tot_mdcr_stdzd_amt", # <physician_by_provider>
"drug_tot_hcpcs_cds", # <physician_by_provider>
"drug_tot_benes", # <physician_by_provider>
"drug_tot_srvcs", # <physician_by_provider>
"drug_sbmtd_chrg", # <physician_by_provider>
"drug_mdcr_alowd_amt", # <physician_by_provider>
"drug_mdcr_pymt_amt", # <physician_by_provider>
"drug_mdcr_stdzd_amt", # <physician_by_provider>
"med_tot_hcpcs_cds", # <physician_by_provider>
"med_tot_benes", # <physician_by_provider>
"med_tot_srvcs", # <physician_by_provider>
"med_sbmtd_chrg", # <physician_by_provider>
"med_mdcr_alowd_amt", # <physician_by_provider>
"med_mdcr_pymt_amt", # <physician_by_provider>
"med_mdcr_stdzd_amt", # <physician_by_provider>
"bene_avg_age", # <physician_by_provider>
"bene_age_lt_65_cnt", # <physician_by_provider>
"bene_age_65_74_cnt", # <physician_by_provider>
"bene_age_75_84_cnt", # <physician_by_provider>
"bene_age_gt_84_cnt", # <physician_by_provider>
"bene_feml_cnt", # <physician_by_provider>
"bene_male_cnt", # <physician_by_provider>
"bene_race_wht_cnt", # <physician_by_provider>
"bene_race_black_cnt", # <physician_by_provider>
"bene_race_api_cnt", # <physician_by_provider>
"bene_race_hspnc_cnt", # <physician_by_provider>
"bene_race_nat_ind_cnt", # <physician_by_provider>
"bene_race_othr_cnt", # <physician_by_provider>
"bene_dual_cnt", # <physician_by_provider>
"bene_ndual_cnt", # <physician_by_provider>
"bene_cc_af_pct", # <physician_by_provider>
"bene_cc_alzhmr_pct", # <physician_by_provider>
"bene_cc_asthma_pct", # <physician_by_provider>
"bene_cc_cncr_pct", # <physician_by_provider>
"bene_cc_chf_pct", # <physician_by_provider>
"bene_cc_ckd_pct", # <physician_by_provider>
"bene_cc_copd_pct", # <physician_by_provider>
"bene_cc_dprssn_pct", # <physician_by_provider>
"bene_cc_dbts_pct", # <physician_by_provider>
"bene_cc_hyplpdma_pct", # <physician_by_provider>
"bene_cc_hyprtnsn_pct", # <physician_by_provider>
"bene_cc_ihd_pct", # <physician_by_provider>
"bene_cc_opo_pct", # <physician_by_provider>
"bene_cc_raoa_pct", # <physician_by_provider>
"bene_cc_sz_pct", # <physician_by_provider>
"bene_cc_strok_pct", # <physician_by_provider>
"bene_avg_risk_scre", # <physician_by_provider>
"entity_type", # <physician_by_provider>
"distro", # <physician_by_service>
"y", # <physician_by_service>
"tot_benes", # <physician_by_service>
"tot_srvcs", # <physician_by_service>
"tot_bene_day_srvcs", # <physician_by_service>
"rndrng_npi", # <physician_by_service>
"rndrng_prvdr_ent_cd", # <physician_by_service>
"rndrng_prvdr_first_name", # <physician_by_service>
"rndrng_prvdr_mi", # <physician_by_service>
"rndrng_prvdr_last_org_name", # <physician_by_service>
"rndrng_prvdr_crdntls", # <physician_by_service>
"rndrng_prvdr_gndr", # <physician_by_service>
"rndrng_prvdr_type", # <physician_by_service>
"street", # <physician_by_service>
"rndrng_prvdr_city", # <physician_by_service>
"rndrng_prvdr_state_abrvtn", # <physician_by_service>
"rndrng_prvdr_state_fips", # <physician_by_service>
"rndrng_prvdr_zip5", # <physician_by_service>
"rndrng_prvdr_ruca", # <physician_by_service>
"rndrng_prvdr_cntry", # <physician_by_service>
"rndrng_prvdr_mdcr_prtcptg_ind", # <physician_by_service>
"hcpcs_cd", # <physician_by_service>
"hcpcs_desc", # <physician_by_service>
"hcpcs_drug_ind", # <physician_by_service>
"avg_sbmtd_chrg", # <physician_by_service>
"avg_mdcr_alowd_amt", # <physician_by_service>
"avg_mdcr_pymt_amt", # <physician_by_service>
"avg_mdcr_stdzd_amt", # <physician_by_service>
"distro", # <by_geography>
"y", # <by_geography>
"rndrng_prvdr_geo_lvl", # <by_geography>
"rndrng_prvdr_geo_desc", # <by_geography>
"rndrng_prvdr_geo_cd", # <by_geography>
"hcpcs_cd", # <by_geography>
"hcpcs_drug_ind", # <by_geography>
"place_of_srvc", # <by_geography>
"tot_rndrng_prvdrs", # <by_geography>
"tot_benes", # <by_geography>
"tot_srvcs", # <by_geography>
"tot_bene_day_srvcs", # <by_geography>
"avg_sbmtd_chrg", # <by_geography>
"avg_mdcr_alowd_amt", # <by_geography>
"avg_mdcr_pymt_amt", # <by_geography>
"avg_mdcr_stdzd_amt", # <by_geography>
"distro", # <by_provider>
"y", # <by_provider>
"rndrng_prvdr_crdntls", # <by_provider>
"rndrng_prvdr_mdcr_prtcptg_ind", # <by_provider>
"rndrng_npi", # <by_provider>
"rndrng_prvdr_first_name", # <by_provider>
"rndrng_prvdr_mi", # <by_provider>
"rndrng_prvdr_last_org_name", # <by_provider>
"rndrng_prvdr_gndr", # <by_provider>
"rndrng_prvdr_ent_cd", # <by_provider>
"street", # <by_provider>
"rndrng_prvdr_city", # <by_provider>
"rndrng_prvdr_state_abrvtn", # <by_provider>
"rndrng_prvdr_state_fips", # <by_provider>
"rndrng_prvdr_zip5", # <by_provider>
"rndrng_prvdr_ruca", # <by_provider>
"rndrng_prvdr_cntry", # <by_provider>
"rndrng_prvdr_type", # <by_provider>
"tot_hcpcs_cds", # <by_provider>
"tot_benes", # <by_provider>
"tot_srvcs", # <by_provider>
"tot_sbmtd_chrg", # <by_provider>
"tot_mdcr_alowd_amt", # <by_provider>
"tot_mdcr_pymt_amt", # <by_provider>
"tot_mdcr_stdzd_amt", # <by_provider>
"drug_tot_hcpcs_cds", # <by_provider>
"drug_tot_benes", # <by_provider>
"drug_tot_srvcs", # <by_provider>
"drug_sbmtd_chrg", # <by_provider>
"drug_mdcr_alowd_amt", # <by_provider>
"drug_mdcr_pymt_amt", # <by_provider>
"drug_mdcr_stdzd_amt", # <by_provider>
"med_tot_hcpcs_cds", # <by_provider>
"med_tot_benes", # <by_provider>
"med_tot_srvcs", # <by_provider>
"med_sbmtd_chrg", # <by_provider>
"med_mdcr_alowd_amt", # <by_provider>
"med_mdcr_pymt_amt", # <by_provider>
"med_mdcr_stdzd_amt", # <by_provider>
"bene_avg_age", # <by_provider>
"bene_age_lt_65_cnt", # <by_provider>
"bene_age_65_74_cnt", # <by_provider>
"bene_age_75_84_cnt", # <by_provider>
"bene_age_gt_84_cnt", # <by_provider>
"bene_feml_cnt", # <by_provider>
"bene_male_cnt", # <by_provider>
"bene_race_wht_cnt", # <by_provider>
"bene_race_black_cnt", # <by_provider>
"bene_race_api_cnt", # <by_provider>
"bene_race_hspnc_cnt", # <by_provider>
"bene_race_nat_ind_cnt", # <by_provider>
"bene_race_othr_cnt", # <by_provider>
"bene_dual_cnt", # <by_provider>
"bene_ndual_cnt", # <by_provider>
"bene_cc_af_pct", # <by_provider>
"bene_cc_alzhmr_pct", # <by_provider>
"bene_cc_asthma_pct", # <by_provider>
"bene_cc_cncr_pct", # <by_provider>
"bene_cc_chf_pct", # <by_provider>
"bene_cc_ckd_pct", # <by_provider>
"bene_cc_copd_pct", # <by_provider>
"bene_cc_dprssn_pct", # <by_provider>
"bene_cc_dbts_pct", # <by_provider>
"bene_cc_hyplpdma_pct", # <by_provider>
"bene_cc_hyprtnsn_pct", # <by_provider>
"bene_cc_ihd_pct", # <by_provider>
"bene_cc_opo_pct", # <by_provider>
"bene_cc_raoa_pct", # <by_provider>
"bene_cc_sz_pct", # <by_provider>
"bene_cc_strok_pct", # <by_provider>
"bene_avg_risk_scre", # <by_provider>
"entity_type", # <by_provider>
"distro", # <by_service>
"y", # <by_service>
"tot_benes", # <by_service>
"tot_srvcs", # <by_service>
"tot_bene_day_srvcs", # <by_service>
"rndrng_npi", # <by_service>
"rndrng_prvdr_ent_cd", # <by_service>
"rndrng_prvdr_first_name", # <by_service>
"rndrng_prvdr_mi", # <by_service>
"rndrng_prvdr_last_org_name", # <by_service>
"rndrng_prvdr_crdntls", # <by_service>
"rndrng_prvdr_gndr", # <by_service>
"rndrng_prvdr_type", # <by_service>
"street", # <by_service>
"rndrng_prvdr_city", # <by_service>
"rndrng_prvdr_state_abrvtn", # <by_service>
"rndrng_prvdr_state_fips", # <by_service>
"rndrng_prvdr_zip5", # <by_service>
"rndrng_prvdr_ruca", # <by_service>
"rndrng_prvdr_cntry", # <by_service>
"rndrng_prvdr_mdcr_prtcptg_ind", # <by_service>
"hcpcs_cd", # <by_service>
"hcpcs_desc", # <by_service>
"hcpcs_drug_ind", # <by_service>
"place_of_srvc", # <by_service>
"avg_sbmtd_chrg", # <by_service>
"avg_mdcr_alowd_amt", # <by_service>
"avg_mdcr_pymt_amt", # <by_service>
"avg_mdcr_stdzd_amt", # <by_service>
"distro", # <providers>
"y", # <providers>
"pecos_asct_cntl_id", # <providers>
Expand Down
2 changes: 1 addition & 1 deletion R/hospitals.R
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#' ### Links:
#' - [Hospital Enrollments](https://data.cms.gov/provider-characteristics/hospitals-and-other-facilities/hospital-enrollments)
#'
#' Update Frequency: **Monthly**
#' *Update Frequency:* **Monthly**
#'
#' @param npi Hospital’s National Provider Identifier
#' @param facility_ccn Hospital’s CMS Certification Number (CCN)
Expand Down
15 changes: 8 additions & 7 deletions R/missing_information.R
Original file line number Diff line number Diff line change
Expand Up @@ -27,25 +27,26 @@
#'
#' @return A [tibble][tibble::tibble-package] containing the search results.
#'
#' @seealso [nppes_npi()]
#' @seealso [nppes()]
#'
#' @examples
#' # A provider that appears in the search results of the Missing Information
#' # API has no Endpoints entered into the NPPES NPI Registry and vice versa.
#' # A provider that appears in the search results
#' # of the Missing Information API has no Endpoints
#' # entered into the NPPES NPI Registry and vice versa.
#'
#' ## Appears
#' missing_information(name = "Clouse, John")
#'
#' ## No Endpoints in NPPES
#' nppes_npi(npi = 1144224569,
#' tidy = FALSE) |>
#' dplyr::select(endpoints)
#' nppes(npi = 1144224569,
#' tidy = FALSE) |>
#' dplyr::select(endpoints)
#'
#' ## Does Not Appear
#' missing_information(npi = 1003000423)
#'
#' ## Has Endpoints in NPPES
#' nppes_npi(npi = 1003000423, tidy = FALSE) |>
#' nppes(npi = 1003000423, tidy = FALSE) |>
#' dplyr::select(endpoints) |>
#' tidyr::unnest(cols = c(endpoints)) |>
#' janitor::clean_names() |>
Expand Down
Loading

0 comments on commit b2ff9d0

Please sign in to comment.