Skip to content

Commit

Permalink
use raw data to define arterial specimens
Browse files Browse the repository at this point in the history
  • Loading branch information
alistairewj committed Dec 13, 2021
1 parent d10c765 commit 53cc8ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mimic-iv/concepts/firstday/first_day_bg_art.sql
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ select
FROM `physionet-data.mimic_icu.icustays` ie
LEFT JOIN `physionet-data.mimic_derived.bg` bg
ON ie.subject_id = bg.subject_id
AND bg.specimen_pred = 'ART.'
AND bg.specimen = 'ART.'
AND bg.charttime >= DATETIME_SUB(ie.intime, INTERVAL '6' HOUR)
AND bg.charttime <= DATETIME_ADD(ie.intime, INTERVAL '1' DAY)
GROUP BY ie.subject_id, ie.stay_id
Expand Down

0 comments on commit 53cc8ff

Please sign in to comment.