Closed edward-burn closed 3 months ago
I'm wondering why use a cohort rather than using table intersect, subsetting tables with the concepts of interest? I think the behaviour from the latter would be more in line with what at least I would imagine (giving a count of 5 rather than 4 in the case above)
happy with that :)
@catalamarti At the moment, as I understand it, addConceptIntersect will create a concept based cohort and then use addCohortIntersect to add the variables. However, this means that some of the results might not be how I would expect them if I didn't know this is what is going on behind the scenes
Although I think this works for addConceptIntersectFlag, I'm not sure for others. For example, addConceptIntersectCount. I would have expected this to have given a count of records that contain my concepts of interest. But instead it will give me a count of cohort entries created using my concepts, which won't necessarily be the same. For example in the case below the person has 5 drug exposures but two are given at the same time so when the cohort is made they only have four cohort records.
Created on 2024-03-19 by the reprex package (v2.0.1)