Hello - I am hoping someone might be able to shed some light on a cohort question. I am attempting to build a cohort on atlas that allows one person to enter the cohort multiple times. More concretely: I am trying to count all ED visits with a dx of Asthma that occur at my hospital. This should include multiple visits by more than one person, yet when I generate the SQL query on ohdsi/atlas and run it on my local CDM, the table that is generated only allows a person to enter the cohort a single time (i.e. there is only one ED visit recorded per person). The cohort definition is [DBMI] ED Visits w/ Asthma Dx (cohort#1769235) on ohdsi/atlas, and it’s unclear to me why this query does not allow multiple visits from the same person. The description of the cohort is as follows:
[DBMI] ED Visits w/ Asthma Dx
Initial Event Cohort
People having any of the following:
a visit occurrence of [DBMI] ED Visit2
with continuous observation of at least 0 days prior and 0 days after event index date, and limit initial events to: all events per person.
For people matching the Primary Events, include:
Having all of the following criteria:
at least 1 occurrences of a condition occurrence of [DBMI] Asthma Dx1
starting between 0 days Before and 0 days After event index date
occurring within the same visit
Limit cohort of initial events to: all events per person.
Limit qualifying cohort to: all events per person.
I think there is something embedded in the limiting of initial events or limiting of qualifying cohort, but as I’ve specified all events, I would think that this allows one person to be counted in the cohort one time for each repeated visit rather than one time overall. Any thoughts?
Thanks!