-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f0c51cb
commit 3d8e6db
Showing
12 changed files
with
2,696 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
drop table if exists dm_braindeath cascade; | ||
create table dm_braindeath as | ||
select | ||
ne.hadm_id | ||
, max(case when lower(ne.text) like '%brain death%' then 1 | ||
when lower(ne.text) like '%comatose%' then 1 | ||
when lower(ne.text) like '%brain dead%' then 1 | ||
-- typo is direct from hug thesis.. not sure if intentional | ||
when lower(ne.text) like '%brain steam dead%' then 1 | ||
-- adding stem as well just in case | ||
when lower(ne.text) like '%brain stem dead%' then 1 | ||
when lower(ne.text) like '%brain stem death%' then 1 | ||
else 0 end) as brain_death | ||
from noteevents ne | ||
where ne.category = 'Discharge summary' | ||
group by ne.hadm_id | ||
order by ne.hadm_id; |
Oops, something went wrong.