default to refer to pulmo when no DLCO

This commit is contained in:
2026-07-17 14:17:48 -04:00
parent de0b3ccdbc
commit 61ec5797f9
8 changed files with 78 additions and 0 deletions
+2
View File
@@ -198,6 +198,8 @@ def process_pft_pdf(input_stream: BinaryIO) -> BinaryIO:
check_boxes |= {"results_asthma_cb": "/Yes", "refer_pulmo": "/Yes"}
case "emphysema":
check_boxes |= {"results_emphysema": "/Yes", "refer_pulmo": "/Yes"}
case _:
check_boxes |= {"refer_pulmo": "/Yes"}
form_data = patient_data | check_boxes