Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow for multiple marker/index tables when running getCohortSequence #73

Open
daniellenewby opened this issue Feb 2, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@daniellenewby
Copy link
Collaborator

A user can create a cohort table containing multiple marker drugs for analysis so if i have 20 drugs i can merge them all into one cohort i.e

cdm[["test_drugs"]] <- union_all(cdm[["test_drugs"]], cdm[["antidep_moins"]] %>% dplyr::mutate(cohort_definition_id = 19, cohort_name = "Antidepressants NS Monoamine oxidase inhibitors")) %>% CDMConnector::computeQuery()

However if you have lots of drugs this table becomes too large and you get an error message:
"Error: cannot allocate vector of size 4419.0 Gb"
image

Suggestion:
At the moment a user can only specify one index and one marker table but i think we should allow for multiple ones in the argument lie this:

cdm <- CohortSymmetry::getCohortSequence(cdm = cdm,
name = "ache_inhibitors_com_test_drugs",
dateRange = c(starting_date, ending_date),
indexTable = "ache_inhibitors_com",
markerTable = c( "test_drugs1", "test_drug2" etc),
daysPriorObservation = 365,
indexWashout = 365,
markerWashout = 365,
timeGap = 365)

@daniellenewby daniellenewby added the enhancement New feature or request label Feb 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant