Skip to content

Commit

Permalink
affiliations test
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewallenbruce committed Nov 4, 2023
1 parent 1099490 commit 2cd2b9e
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 7 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ URL: https://andrewallenbruce.github.io/provider/,
https://github.com/andrewallenbruce/provider
BugReports: https://github.com/andrewallenbruce/provider/issues
Depends:
R (>= 3.6)
R (>= 4.1.0)
Imports:
anytime,
cli,
Expand Down
3 changes: 1 addition & 2 deletions R/order_refer.R
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,7 @@
#' |`last` |Order and Referring Provider's Last Name |
#' |`service` |Services An Eligible Provider Can Order/Refer To |
#'
#' @seealso [providers()], [opt_out()], [pending()]
#' @examples
#' @examplesIf interactive()
#' order_refer(npi = 1003026055)
#'
#' # Filter for certain privileges
Expand Down
6 changes: 2 additions & 4 deletions man/order_refer.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions tests/testthat/test-affiliations.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
httptest2::without_internet({
test_that("affiliations() returns correct request URL", {
httptest2::expect_GET(
affiliations(npi = 1144429580,
pac = 3577659580,
facility_type = "irf",
facility_ccn = "67T055",
parent_ccn = 670055),
'https://data.cms.gov/provider-data/api/1/metastore/schemas/dataset/items/27ea-46a8?show-reference-ids=true')
})
})

0 comments on commit 2cd2b9e

Please sign in to comment.