Open gowthamrao opened 1 year ago
@gowthamrao - is this still a desire for CohortAlgebra? I'm unclear on if are proposing to relocate this logic into CohortGenerator or to provide more capabilities for using CohortAlgebra via CohortGenerator?
I am proposing to integrate the logic from CohortAlgebra to CohortGenerator. CohortAlgebra does the same thing as CohortGenerator i.e. generate new cohort from other cohorts.
I had built a package called CohortAlgebra that was able to do many of these algebraic operator on instantiated cohorts called CohortAlgebra. It works, but i am hoping that CohortGenerator would take on these. Reason: cohortGenerator has the pipe operations, handles cohort definition set, and can store the SQL in cohortDefinitionSet object.
The operators i would like to ask may be explained by these graphs
Cohort Union
Intersect example 1
Intersect example 2
Intersect example 3
Intersect example 4
Intersect example 5
Minus 1
Minus 2