From f53686151bd57258b96e1eb2bab8c213a17901ac Mon Sep 17 00:00:00 2001 From: Rustam Zhumagambetov Date: Wed, 21 Aug 2024 14:53:41 +0200 Subject: [PATCH] fix #1354 --- mimic-iv/concepts/measurement/cardiac_marker.sql | 2 +- mimic-iv/concepts_duckdb/measurement/cardiac_marker.sql | 2 +- mimic-iv/concepts_postgres/measurement/cardiac_marker.sql | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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