Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ED patients that were transferred to ICU #1707

Open
1 task done
rriccilopes opened this issue Feb 8, 2024 · 1 comment
Open
1 task done

ED patients that were transferred to ICU #1707

rriccilopes opened this issue Feb 8, 2024 · 1 comment

Comments

@rriccilopes
Copy link

Prerequisites

Description

I would like to do an study only with the ED stays that were transferred to the ICU. I tried to link the edstays with icustays using stay_id, but it returned no rows. I assume they are different ids, although they have the same name. I understand that I would have to use the subject_id, but then if the patient has multiple ED stays I wouldn't be sure which ED stay ended with ICU admission. Is there a way to link the ED stay with the ICU stay, even if the patient has multiple stays? Perhaps I'm missing something? Thanks!

@alistairewj
Copy link
Member

Yeah I somewhat regret this naming convention. stay_id uniquely refers to an ED stay or an ICU stay, but not both. You can use the hadm_id from edstays to link to the subsequent hospitalization. Then, you can link that to icustays. ED stays should be 1:1 with hadm_id, but since a hospitalization can have multiple ICU stays, there may be more than one ICU stay_id for a given hadm_id.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants