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

edstays and hospadmission not matching #1717

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

edstays and hospadmission not matching #1717

rriccilopes opened this issue Feb 29, 2024 · 1 comment

Comments

@rriccilopes
Copy link

Prerequisites

Description

Hi guys, I'm looking into ED patients. Let's take the hadm_id=26996526 for example.
So.. in the admission table, there is an admittime, dischtime, edregtime, edouttime. The edouttime is not matching the outtime from edstays. Which one should be the correct one?
Also, please help me understand the pipeline. The patient was first admitted to the ED, than discharged from the ED and admitted to the Hospital, right? When admitted to the hospital, how can I see where he was (which ward)? There are no ICUstays for that hadm_id. I see that he had labevents during that period but he was no longer in the ED.
Thanks!

@alistairewj
Copy link
Member

Hi guys, I'm looking into ED patients. Let's take the hadm_id=26996526 for example. So.. in the admission table, there is an admittime, dischtime, edregtime, edouttime. The edouttime is not matching the outtime from edstays. Which one should be the correct one?

There are multiple times documented for when a patient leaves the ED. We tried not to modify them, but they are inconsistent. The time from edstays should match transfers, and there isn't an easy way retrospectively to decide which is "correct". At least we couldn't find one.

Also, please help me understand the pipeline. The patient was first admitted to the ED, than discharged from the ED and admitted to the Hospital, right? When admitted to the hospital, how can I see where he was (which ward)? There are no ICUstays for that hadm_id. I see that he had labevents during that period but he was no longer in the ED. Thanks!

Check out the transfers table. This table represents the admission/discharge/transfer record for all patients. It stores all inter-ward transfers once a patient is hospitalized. For convenience, we added in a row representing ED stays, though strictly speaking the ED is not a part of the hospital (it's a clinic). Either way, you can use transfers to track a patient from the ED, through any hospital wards, and then to discharge.

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