Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
alistairewj committed Jul 14, 2017
1 parent f0c51cb commit 3d8e6db
Show file tree
Hide file tree
Showing 12 changed files with 2,696 additions and 0 deletions.
Binary file added notebooks/.DS_Store
Binary file not shown.
1,152 changes: 1,152 additions & 0 deletions notebooks/mp-mort-pred-comparison.ipynb

Large diffs are not rendered by default.

615 changes: 615 additions & 0 deletions notebooks/mp_utils.py

Large diffs are not rendered by default.

Binary file added queries/.DS_Store
Binary file not shown.
17 changes: 17 additions & 0 deletions queries/dm_braindeath.sql
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;
Loading

0 comments on commit 3d8e6db

Please sign in to comment.