Skip to content

Commit

Permalink
Update variables_cohorts.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ZoeMZou committed Dec 10, 2024
1 parent de11e7d commit 83ab769
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion analysis/variables_cohorts.py
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@ def generate_variables(index_date, end_date_exp, end_date_out):
when(
(exp_date_covid19_confirmed.is_not_null()) &
(sub_date_covid19_hospital.is_not_null()) &
(DateDifference(sub_date_covid19_hospital - exp_date_covid19_confirmed).days >= 0) &
((sub_date_covid19_hospital - exp_date_covid19_confirmed).days >= 0) &
((sub_date_covid19_hospital - exp_date_covid19_confirmed).days < 29)
).then("hospitalised"),
when(exp_date_covid19_confirmed.is_not_null()).then("non_hospitalised"),
Expand Down

0 comments on commit 83ab769

Please sign in to comment.