I am trying to create a new cohort definition that has multiple criteria with specific date range logic. I have noticed that the date range in each additional criteria will refer to the initial event’s start date, called the ‘index start date’. The index start date can toggle to an ‘index end date’ option, which refers to the initial event’s end date.
However, is there a way to set the index start date to refer to another criteria’s start date? In other words, is there a way to add criteria with a date range that refers to another criteria instead of the initial event?
For example, is it possible to apply the following logic?
initial event - a procedure occurrence
additional criteria 1 - a condition diagnosis 10 days after the initial event
additional criteria 2 - a drug exposure 10 days after the condition diagnosis
You can do this by using nested criteria. That’s the only way to reference a new index date other than the initial event. There is not a way that you can refer to an index date to some other arbitrary external criteria. With nested criteria, you ‘re-establish’ an index and apply criteria to it.
Within a criteia, you can add a ‘nested criteria’. It is one of the options in the dropdown (such as start date, end date,you get to the options through the ‘add attribute’ button in the top right (nested criteria is one of the attributes you can add).