Closed catalamarti closed 2 days ago
I think this is because in the example provided the drug_concept_id in drug_strength is the wrong type.
cdm <- omock::mockCdmReference(vocabularySet = "eunomia") |>
omock::mockPerson(nPerson = 100) |>
omock::mockObservationPeriod() |>
omock::mockConditionOccurrence(recordPerson = 3) |>
omock::mockDrugExposure(recordPerson = 4.5)
cdm$drug_strength |>
dplyr::pull("drug_concept_id")
#> character(0)
cdm$drug_strength <- cdm$drug_strength |>
dplyr::mutate(drug_concept_id = as.integer())
codes <- CodelistGenerator::getCandidateCodes(
cdm = cdm,
domains = "drug",
keywords = "glucagon",
includeDescendants = FALSE
)
#> Limiting to domains of interest
#> Getting concepts to include
#> No codes found for the given search strategy
Created on 2024-10-14 with reprex v2.1.0
Providing a better error should I think be resolved once #226 is done
Created on 2024-10-10 with reprex v2.0.2