We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8fca62b commit b3da107Copy full SHA for b3da107
mimic-iv/concepts/sepsis/suspicion_of_infection.sql
@@ -27,7 +27,13 @@ WITH ab_tbl AS
27
, CAST(MAX(chartdate) AS DATE) AS chartdate
28
, MAX(charttime) AS charttime
29
, MAX(spec_type_desc) AS spec_type_desc
30
- , max(case when org_name is not null and org_name != '' then 1 else 0 end) as PositiveCulture
+ -- identify negative cultures as NULL organism or a specific itemid saying "NEGATIVE"
31
+ , MAX(
32
+ CASE WHEN org_name IS NOT NULL
33
+ AND org_itemid != 90856
34
+ AND org_name != ''
35
+ THEN 1 ELSE 0
36
+ END) as PositiveCulture
37
from `physionet-data.mimiciv_hosp.microbiologyevents`
38
group by micro_specimen_id
39
)
0 commit comments