forked from MIT-LCP/mimic-code
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
removed version and author from individual files, better to track in …
…github
- Loading branch information
1 parent
71b7a90
commit 98e30a4
Showing
31 changed files
with
78 additions
and
155 deletions.
There are no files selected for viewing
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
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
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
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
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
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
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 |
---|---|---|
@@ -1,8 +1,6 @@ | ||
-- ------------------------------------------------------------------ | ||
-- ------------------------------------------------------------------ | ||
-- Title: SQL clean script called by "make clean" | ||
-- Description: Drops all materialized views re: comorbidity scoring | ||
-- MIMIC version: All | ||
-- Author: Jim Blundell 2016 | ||
-- ------------------------------------------------------------------ | ||
-- ------------------------------------------------------------------ | ||
|
||
DROP MATERIALIZED VIEW IF EXISTS ELIXHAUSER_AHRQ CASCADE; |
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
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 |
---|---|---|
@@ -1,10 +1,7 @@ | ||
-- ------------------------------------------------------------------ | ||
-- ------------------------------------------------------------------ | ||
-- Title: SQL clean script called by "make clean" | ||
-- Description: Drops all materialized views re: demographics | ||
-- MIMIC version: All | ||
-- Author: Jim Blundell 2016 | ||
-- ------------------------------------------------------------------ | ||
-- ------------------------------------------------------------------ | ||
|
||
DROP MATERIALIZED VIEW IF EXISTS icustay_detail CASCADE; | ||
DROP MATERIALIZED VIEW IF EXISTS heightweight CASCADE; | ||
|
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
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
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
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
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
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
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 |
---|---|---|
@@ -1,7 +1,5 @@ | ||
-- Determines if a patient is ventilated on the first day of their ICU stay. | ||
-- Creates a table with the result. | ||
-- Contact: [email protected] | ||
-- Copyright 2015, Alistair Johnson | ||
|
||
CREATE MATERIALIZED VIEW ventfirstday AS | ||
-- group together the flags based on icustay_id | ||
|
@@ -112,7 +110,7 @@ select | |
, case | ||
when ce.itemid = 648 and value = 'Intubated/trach' THEN 1 -- Speech = intubated | ||
else 0 end as SpeechIntubated | ||
|
||
from icustays ie | ||
left join chartevents ce | ||
on ie.icustay_id = ce.icustay_id and ce.value is not null | ||
|
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
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
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 |
---|---|---|
@@ -1,8 +1,6 @@ | ||
-- ------------------------------------------------------------------ | ||
-- ------------------------------------------------------------------ | ||
-- Title: SQL clean script called by "make clean" | ||
-- Description: Drops all materialized views re: sepsis | ||
-- MIMIC version: All | ||
-- Author: Jim Blundell 2016 | ||
-- ------------------------------------------------------------------ | ||
-- ------------------------------------------------------------------ | ||
|
||
DROP MATERIALIZED VIEW IF EXISTS angus_sepsis CASCADE; |
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
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
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
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
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
Oops, something went wrong.