faster determination of abx

This commit is contained in:
dr. M.S. (Matthijs) Berends committed 2019-05-20 19:12:41 +02:00
1 parent 6eb08a2ea3
commit 07d26cd485
25 files changed
+491 -498

No files matched your search

+1 -1
View File
@@ -40,7 +40,7 @@ test_that("mdro works", {
# septic_patients should have these finding using Dutch guidelines
expect_equal(outcome %>% freq() %>% pull(count),
c(1989, 9, 2)) # 1989 neg, 9 pos, 2 unconfirmed
c(1969, 25, 6)) # 1969 neg, 25 unconfirmed, 6 pos
expect_equal(
suppressWarnings(
+2
View File
@@ -48,4 +48,6 @@ test_that("looking up ab columns works", {
expect_warning(generate_warning_abs_missing(c("AMP", "AMX"), any = TRUE))
expect_warning(get_column_abx(septic_patients, hard_dependencies = "FUS"))
expect_warning(get_column_abx(septic_patients, soft_dependencies = "FUS"))
expect_error(get_column_abx(dplyr::rename(septic_patients, thisone = AMX), amox = "thisone", tmp = "thisone", verbose = TRUE))
expect_error(get_column_abx(dplyr::rename(septic_patients, thisone = AMX), amox = "thisone", tmp = "thisone", verbose = FALSE))
})