Hello everyone!
I had a question regarding building cohorts on Atlas.
I would like to implement a hierarchical cohort entry criterion using Atlas, however did not manage to find a way around and would like to have your input to see if it is possible. I want to include patients with HF in my cohort based on inpatient and emergency visits. The hierarchy would be:
- If the patient only has inpatient visit, the index event would be the inpatient visit.
- If the patient only has no inpatient visit, the index event would be the emergency visit which lasts for max 24h.
- If the patient has both inpatient and emergency visit, the index event would be the inpatient visit (not the emergency visit).
Since I would be using the Standard Concepts for visits, the information I provided above might be a bit redundant and this might be then more of an ETL question. When I use the combination of Inpatient, ER, Inpatient and ER visit concepts and take the latest record, would the patient record already only contain the inpatient visit entry since this would occur after ER visit and would be linked?
As a bonus question, to make sure that I am only capturing acute events, should I define a cohort exit criteria for the hospitalization period as well as a cohort era collapse period?
Thank you for your input in advance!