Skip to content

Commit 9f75a8d

Browse files
chore: regenerate postgres and duckdb SIRS copies after comment fixes
Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent c41aa36 commit 9f75a8d

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

  • mimic-iii
  • mimic-iv/concepts_postgres/score

mimic-iii/concepts_duckdb/severityscores/sirs.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
-- THIS SCRIPT IS AUTOMATICALLY GENERATED. DO NOT EDIT IT DIRECTLY.
2-
DROP TABLE IF EXISTS mimiciii_derived.sirs; CREATE TABLE mimiciii_derived.sirs AS
2+
DROP TABLE IF EXISTS mimiciv_derived.sirs; CREATE TABLE mimiciv_derived.sirs AS
33
WITH bg AS (
44
SELECT
55
bg.icustay_id,

mimic-iii/concepts_postgres/severityscores/sirs.sql

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
-- THIS SCRIPT IS AUTOMATICALLY GENERATED. DO NOT EDIT IT DIRECTLY.
2-
DROP TABLE IF EXISTS mimiciii_derived.sirs; CREATE TABLE mimiciii_derived.sirs AS
2+
DROP TABLE IF EXISTS mimiciv_derived.sirs; CREATE TABLE mimiciv_derived.sirs AS
33
/* ------------------------------------------------------------------ */ /* Title: Systemic inflammatory response syndrome (SIRS) criteria */ /* This query extracts the Systemic inflammatory response syndrome (SIRS) criteria */ /* The criteria quantify the level of inflammatory response of the body */ /* The score is calculated on the first day of each ICU patients' stay. */ /* ------------------------------------------------------------------ */ /* Reference for SIRS: */ /* American College of Chest Physicians/Society of Critical Care Medicine Consensus Conference: */ /* definitions for sepsis and organ failure and guidelines for the use of innovative therapies in sepsis" */ /* Crit. Care Med. 20 (6): 864–74. 1992. */ /* doi:10.1097/00003246-199206000-00025. PMID 1597042. */ /* Variables used in SIRS: */ /* Body temperature (min and max) */ /* Heart rate (max) */ /* Respiratory rate (max) */ /* PaCO2 (min) */ /* White blood cell count (min and max) */ /* the presence of greater than 10% immature neutrophils (band forms) */ /* The following views required to run this query: */ /* 1) vitals_first_day - generated by vitals-first-day.sql */ /* 2) labs_first_day - generated by labs-first-day.sql */ /* 3) blood_gas_first_day_arterial - generated by blood-gas-first-day-arterial.sql */ /* Note: */ /* The score is calculated for *all* ICU patients, with the assumption that the user will subselect appropriate ICUSTAY_IDs. */ /* For example, the score is calculated for neonates, but it is likely inappropriate to actually use the score values for these patients. */
44
WITH bg AS (
55
/* join blood gas to ventilation durations to determine if patient was vent */
@@ -58,7 +58,7 @@ WITH bg AS (
5858
WHEN wbc_max > 12.0
5959
THEN 1
6060
WHEN bands_max > 10
61-
THEN 1 /* > 10% immature neurophils (band forms) */
61+
THEN 1 /* > 10% immature neutrophils (band forms) */
6262
WHEN COALESCE(wbc_min, bands_max) IS NULL
6363
THEN NULL
6464
ELSE 0
@@ -68,7 +68,7 @@ WITH bg AS (
6868
SELECT
6969
ie.subject_id,
7070
ie.hadm_id,
71-
ie.icustay_id, /* Combine all the scores to get SOFA */ /* Impute 0 if the score is missing */
71+
ie.icustay_id, /* Combine all component scores to get SIRS */ /* Impute 0 if the score is missing */
7272
COALESCE(temp_score, 0) + COALESCE(heartrate_score, 0) + COALESCE(resp_score, 0) + COALESCE(wbc_score, 0) AS sirs,
7373
temp_score,
7474
heartrate_score,

mimic-iv/concepts_postgres/score/sirs.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ WITH scorecomp AS (
5454
WHEN wbc_max > 12.0
5555
THEN 1
5656
WHEN bands_max > 10
57-
THEN 1 /* > 10% immature neurophils (band forms) */
57+
THEN 1 /* > 10% immature neutrophils (band forms) */
5858
WHEN COALESCE(wbc_min, bands_max) IS NULL
5959
THEN NULL
6060
ELSE 0
@@ -64,7 +64,7 @@ WITH scorecomp AS (
6464
SELECT
6565
ie.subject_id,
6666
ie.hadm_id,
67-
ie.stay_id, /* Combine all the scores to get SOFA */ /* Impute 0 if the score is missing */
67+
ie.stay_id, /* Combine all component scores to get SIRS */ /* Impute 0 if the score is missing */
6868
COALESCE(temp_score, 0) + COALESCE(heart_rate_score, 0) + COALESCE(resp_score, 0) + COALESCE(wbc_score, 0) AS sirs,
6969
temp_score,
7070
heart_rate_score,

0 commit comments

Comments
 (0)