Hello, I have a problem with my ATLAS cohort definition.
I want to define an inclusion criterion that makes sure that I don’t have an inpatient visit that started at least 2 days prior at the same time as a measurement.
That’s what I have so far:
At most 0 inpatient visits that started at least 2 days prior and end at the same day or later.
However, in my cohort, I have patients that have a visit that started more than two days before the measurement and ends the day after the measurement.
All the wrongly included patients have a visit that ends on the same day or 1 day after the measurement
Does anybody have any suggestions why?
Thank you very much for your help!