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 0af68e4 commit f07d661Copy full SHA for f07d661
mimic-iv/concepts/sepsis/suspicion_of_infection.sql
@@ -41,7 +41,7 @@ WITH ab_tbl AS
41
, ab_tbl.ab_id
42
43
, me72.micro_specimen_id
44
- , coalesce(me72.charttime, CAST(me72.chartdate AS DATETIME)) as last72_charttime
+ , coalesce(me72.charttime, DATETIME(me72.chartdate)) as last72_charttime
45
, me72.positiveculture as last72_positiveculture
46
, me72.spec_type_desc as last72_specimen
47
@@ -83,7 +83,7 @@ WITH ab_tbl AS
83
84
85
, me24.micro_specimen_id
86
- , COALESCE(me24.charttime, CAST(me24.chartdate AS DATETIME)) as next24_charttime
+ , COALESCE(me24.charttime, DATETIME(me24.chartdate)) as next24_charttime
87
, me24.positiveculture as next24_positiveculture
88
, me24.spec_type_desc as next24_specimen
89
0 commit comments