Nothing
test_that("stratifyByDoseUnit in mock", {
cdm <- mockVocabRef()
ing <- getDrugIngredientCodes(cdm = cdm)
# no dose units in the mock
expect_no_error(stratifyByDoseUnit(x = ing, cdm = cdm))
# if concepts are not from the drug domain we should get empty codelist back
oa <- getCandidateCodes(cdm = cdm, "osteoarthritis")
oa_str <- stratifyByDoseUnit(list(oa = oa$concept_id),
cdm, keepOriginal = FALSE)
expect_true(length(oa_str)==0)
oa_str <- stratifyByDoseUnit(omopgenerics::newCodelistWithDetails(list(oa = oa)),
cdm, keepOriginal = FALSE)
expect_true(length(oa_str)==0)
# expected errors
expect_error(stratifyByDoseUnit(x = ing, cdm = "a"))
expect_error(stratifyByDoseUnit(x = "a", cdm = cdm))
})
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.