I’m trying to replicate a toy exercise with Atlas.
I’m asked to create a cohort with:
“Patients with 1 inpatient diagnosis of XX or 2 outpatient diagnoses”
How would you do it?
I have tried to do it by including in the cohort entry events section just the first occurrence of XX, and then adding inclusion criteria.
Is it better to include the condition occurrence and the visit altogether in the criteria?
Or is it better to include there just the visit and link it somehow to the events defined in the events section? (not easy, maybe saying that the visit occurred from one day before to one day after).
Is the “restrict to the same visit occurrence” doing what I need here?