Skip to content

Commit

Permalink
Made readmission test case trickier to show another bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
mmcdermott committed Aug 24, 2024
1 parent 116bfca commit 5c2283b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/test_other_meds.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,13 @@ def parse_labels_yaml(yaml_str: str) -> dict[str, pl.DataFrame]:
trigger: discharge
windows:
data_within_5yr_of_admit:
start: end - 1825d
end: admission_is_HF.start
start_inclusive: True
end_inclusive: False
has:
_ANY_EVENT: (1, None)
admission_is_HF:
start: end <- admission
end: trigger
Expand Down Expand Up @@ -319,7 +326,6 @@ def parse_labels_yaml(yaml_str: str) -> dict[str, pl.DataFrame]:
"""
"0": |-2
patient_id,prediction_time,boolean_value,integer_value,float_value,categorical_value
1,01/17/2020 10:00,0,,,
1,01/20/2022 08:00,1,,,
"1": |-2
Expand Down

0 comments on commit 5c2283b

Please sign in to comment.