Skip to content
New issue

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

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

Already on GitHub? # to your account

Create view for code_status in MIMIC-IV #1291

Merged
merged 4 commits into from
Mar 24, 2023

Conversation

ajb5d
Copy link
Contributor

@ajb5d ajb5d commented Apr 20, 2022

Create a new view with code status orders for MIMIC-IV data:

  • Started with mimic-iii/concepts/code_status.sql
  • Changed icustay_id references to stay_id
  • Removed carevue specific itemid and logic (DNCPR)

@alistairewj alistairewj merged commit 87f3a02 into MIT-LCP:main Mar 24, 2023
@alistairewj
Copy link
Member

Thanks - I changed it from first/last/max to just time/code status, which is more consistent with the MIMIC-IV style of views. Very easy for everyone to grab the first/last row per patient this way.

I also added in code status from the poe table, which is a new addition in MIMIC-IV. These are hospital wide orders, so code status changes from outside the ICU should now be incorporated.

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

Successfully merging this pull request may close these issues.

2 participants