diff --git a/mimic-iv/concepts/measurement/cardiac_marker.sql b/mimic-iv/concepts/measurement/cardiac_marker.sql index 3937e7792..ed612191a 100644 --- a/mimic-iv/concepts/measurement/cardiac_marker.sql +++ b/mimic-iv/concepts/measurement/cardiac_marker.sql @@ -5,7 +5,7 @@ SELECT , MAX(charttime) AS charttime , le.specimen_id -- convert from itemid into a meaningful column - , MAX(CASE WHEN itemid = 51003 THEN value ELSE NULL END) AS troponin_t + , MAX(CASE WHEN itemid = 51003 THEN valuenum ELSE NULL END) AS troponin_t , MAX(CASE WHEN itemid = 50911 THEN valuenum ELSE NULL END) AS ck_mb , MAX(CASE WHEN itemid = 50963 THEN valuenum ELSE NULL END) AS ntprobnp FROM `physionet-data.mimiciv_hosp.labevents` le diff --git a/mimic-iv/concepts_duckdb/measurement/cardiac_marker.sql b/mimic-iv/concepts_duckdb/measurement/cardiac_marker.sql index 5f2a64ab7..7dc6cf266 100644 --- a/mimic-iv/concepts_duckdb/measurement/cardiac_marker.sql +++ b/mimic-iv/concepts_duckdb/measurement/cardiac_marker.sql @@ -5,7 +5,7 @@ SELECT MAX(hadm_id) AS hadm_id, MAX(charttime) AS charttime, le.specimen_id, - MAX(CASE WHEN itemid = 51003 THEN value ELSE NULL END) AS troponin_t, + MAX(CASE WHEN itemid = 51003 THEN valuenum ELSE NULL END) AS troponin_t, MAX(CASE WHEN itemid = 50911 THEN valuenum ELSE NULL END) AS ck_mb, MAX(CASE WHEN itemid = 50963 THEN valuenum ELSE NULL END) AS ntprobnp FROM mimiciv_hosp.labevents AS le diff --git a/mimic-iv/concepts_postgres/measurement/cardiac_marker.sql b/mimic-iv/concepts_postgres/measurement/cardiac_marker.sql index dc2020ca9..665380ba8 100644 --- a/mimic-iv/concepts_postgres/measurement/cardiac_marker.sql +++ b/mimic-iv/concepts_postgres/measurement/cardiac_marker.sql @@ -6,7 +6,7 @@ SELECT MAX(hadm_id) AS hadm_id, MAX(charttime) AS charttime, le.specimen_id, /* convert from itemid into a meaningful column */ - MAX(CASE WHEN itemid = 51003 THEN value ELSE NULL END) AS troponin_t, + MAX(CASE WHEN itemid = 51003 THEN valuenum ELSE NULL END) AS troponin_t, MAX(CASE WHEN itemid = 50911 THEN valuenum ELSE NULL END) AS ck_mb, MAX(CASE WHEN itemid = 50963 THEN valuenum ELSE NULL END) AS ntprobnp FROM mimiciv_hosp.labevents AS le