Skip to content

Commit 9caae33

Browse files
committed
add vasoactive agent/NED skips
1 parent b36635d commit 9caae33

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

mimic-iv/concepts/make_concepts.sh

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ do
2222
# kdigo_stages needs to be run after creat/uo
2323
elif [[ "${tbl}" == "kdigo_stages" ]]; then
2424
continue
25+
# vasoactive tables also need to be run last
26+
elif [[ "${tbl}" == "vasoactive_agent" ]]; then
27+
continue
28+
elif [[ "${tbl}" == "norepinephrine_equivalent_dose" ]]; then
29+
continue
2530
fi
2631
echo "Generating ${TARGET_DATASET}.${tbl}"
2732
bq query --use_legacy_sql=False --replace --destination_table=${TARGET_DATASET}.${tbl} < ${d}/${fn}
@@ -35,4 +40,10 @@ bq query --use_legacy_sql=False --replace --destination_table=${TARGET_DATASET}.
3540

3641
# generate first_day_sofa table last
3742
echo "Generating ${TARGET_DATASET}.kdigo_stages"
38-
bq query --use_legacy_sql=False --replace --destination_table=${TARGET_DATASET}.kdigo_stages < organfailure/kdigo_stages.sql
43+
bq query --use_legacy_sql=False --replace --destination_table=${TARGET_DATASET}.kdigo_stages < organfailure/kdigo_stages.sql
44+
45+
# generate vasoactive tables - first agent table, then NED table
46+
echo "Generating ${TARGET_DATASET}.vasoactive_agent"
47+
bq query --use_legacy_sql=False --replace --destination_table=${TARGET_DATASET}.vasoactive_agent < medication/vasoactive_agent.sql
48+
echo "Generating ${TARGET_DATASET}.norepinephrine_equivalent_dose"
49+
bq query --use_legacy_sql=False --replace --destination_table=${TARGET_DATASET}.norepinephrine_equivalent_dose < medication/norepinephrine_equivalent_dose.sql

0 commit comments

Comments
 (0)