Hello,
I’ve been trying to replicate an algorithm in Atlas that would specify a treatment cohort based on indication. The logic for assigning the indication relies upon finding the most proximal indication relative to the index date. For instance in this rough sketch, assuming conditions A, B, and C occur within a year prior to index day 0. Patients should be in our Indication A cohort because A occurs closest to index:
-365________C____B____A____0__
Here, patients should be in indication cohort B because B occurs closest to index:
-365________C____A____B____0__
Is there any way in Atlas/CapR to handle this algorithm? I think the challenge is needing a temporal window between the indication of interest and the index date 0 in order to look for other indications.
For Indication cohort A, we can nest criteria for 0 occurrences of Indication B relative to A, but it’s not bounded between A and index day 0, we can only look relative to A’s date.
Any thoughts?
Thanks,
Ajit