Skip to content

Cleanup Bug and Fix Demographics - #30

Merged
CodeByKarthik merged 3 commits into
mainfrom
Cleanup-Bug-and-Fix-Demographics
Oct 5, 2026
Merged

CodeByKarthik merged 3 commits into
mainfrom
Cleanup-Bug-and-Fix-Demographics

Conversation

@CodeByKarthik

@CodeByKarthik CodeByKarthik commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

🦋 Bug Fix - #29

Changes

  • R/cleanCohortTables.R: build every combination of cohort name and suffix with outer(), so any number of cohorts is cleaned up. Switched from the deprecated dropTable() to omopgenerics::dropSourceTable().
  • inst/scripts/addCharacteristics.R: with --useDemographics, now passes indexDate, ageImposeMonth, ageImposeDay, ageMissingMonth and ageMissingDay to addDemographics(), matching the other branch.
  • tests/testthat/test-cleanCohortTables.R: tests for the table names built for one and several cohorts.

Closes #29

@CodeByKarthik
CodeByKarthik merged commit bf2f451 into main Oct 5, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cleanup Table Fails

2 participants