Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/lint_sqlfluff.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
# Full history so we can diff the PR branch against its base
fetch-depth: 0
- name: Install Python
uses: actions/setup-python@v5
uses: actions/setup-python@v7
with:
python-version: "3.12"
- name: install sqlfluff
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/regenerate_dialects.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
with:
token: ${{ steps.app-token.outputs.token }}

- uses: actions/setup-python@v5
- uses: actions/setup-python@v7
with:
python-version: "3.12"

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/sql_syntax_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-python@v5
- uses: actions/setup-python@v7
with:
python-version: "3.12"
- name: Install locked dependencies
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/transpile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-python@v5
- uses: actions/setup-python@v7
with:
python-version: "3.10"
- name: Install locked dependencies
Expand All @@ -28,7 +28,7 @@ jobs:
checks: write
steps:
- uses: actions/checkout@v7
- uses: actions/setup-python@v5
- uses: actions/setup-python@v7
with:
python-version: "3.12"
- name: Install locked dependencies
Expand Down
4 changes: 2 additions & 2 deletions mimic-iii/concepts/durations/neuroblock_dose.sql
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ with drugmv as
, 1 as drug

-- the 'stopped' column indicates if a drug has been disconnected
, max(case when stopped in ('Stopped','D/C''d') then 1 else 0 end) as drug_stopped
, max(case when stopped in ('Stopped','D/C\'d') then 1 else 0 end) as drug_stopped

-- we only include continuous infusions, therefore expect a rate
, max(case
Expand Down Expand Up @@ -68,7 +68,7 @@ with drugmv as
, 1 as drug

-- the 'stopped' column indicates if a drug has been disconnected
, max(case when stopped in ('Stopped','D/C''d') then 1 else 0 end) as drug_stopped
, max(case when stopped in ('Stopped','D/C\'d') then 1 else 0 end) as drug_stopped
, max(case when valuenum <= 10 then 0 else 1 end) as drug_null

-- educated guess!
Expand Down
4 changes: 2 additions & 2 deletions mimic-iii/concepts_duckdb/durations/neuroblock_dose.sql
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ WITH drugmv AS (
icustay_id,
charttime,
1 AS drug,
MAX(CASE WHEN stopped IN ('Stopped', 'D/C' || 'd') THEN 1 ELSE 0 END) AS drug_stopped,
MAX(CASE WHEN stopped IN ('Stopped', 'D/C''d') THEN 1 ELSE 0 END) AS drug_stopped,
MAX(
CASE
WHEN itemid >= 40000 AND NOT amount IS NULL
Expand Down Expand Up @@ -55,7 +55,7 @@ WITH drugmv AS (
icustay_id,
charttime,
1 AS drug,
MAX(CASE WHEN stopped IN ('Stopped', 'D/C' || 'd') THEN 1 ELSE 0 END) AS drug_stopped,
MAX(CASE WHEN stopped IN ('Stopped', 'D/C''d') THEN 1 ELSE 0 END) AS drug_stopped,
MAX(CASE WHEN valuenum <= 10 THEN 0 ELSE 1 END) AS drug_null,
MAX(CASE WHEN valuenum <= 10 THEN valuenum ELSE NULL END) AS drug_rate,
MAX(CASE WHEN valuenum > 10 THEN valuenum ELSE NULL END) AS drug_amount
Expand Down
4 changes: 2 additions & 2 deletions mimic-iii/concepts_postgres/durations/neuroblock_dose.sql
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ WITH drugmv AS (
icustay_id,
charttime, /* where clause below ensures all rows are instance of the drug */
1 AS drug, /* the 'stopped' column indicates if a drug has been disconnected */
MAX(CASE WHEN stopped IN ('Stopped', 'D/C' || 'd') THEN 1 ELSE 0 END) AS drug_stopped, /* we only include continuous infusions, therefore expect a rate */
MAX(CASE WHEN stopped IN ('Stopped', 'D/C''d') THEN 1 ELSE 0 END) AS drug_stopped, /* we only include continuous infusions, therefore expect a rate */
MAX(
CASE
WHEN itemid >= 40000 AND NOT amount IS NULL
Expand Down Expand Up @@ -60,7 +60,7 @@ WITH drugmv AS (
icustay_id,
charttime, /* where clause below ensures all rows are instance of the drug */
1 AS drug, /* the 'stopped' column indicates if a drug has been disconnected */
MAX(CASE WHEN stopped IN ('Stopped', 'D/C' || 'd') THEN 1 ELSE 0 END) AS drug_stopped,
MAX(CASE WHEN stopped IN ('Stopped', 'D/C''d') THEN 1 ELSE 0 END) AS drug_stopped,
MAX(CASE WHEN valuenum <= 10 THEN 0 ELSE 1 END) AS drug_null, /* educated guess! */
MAX(CASE WHEN valuenum <= 10 THEN valuenum ELSE NULL END) AS drug_rate,
MAX(CASE WHEN valuenum > 10 THEN valuenum ELSE NULL END) AS drug_amount
Expand Down
Loading