From 61ec5797f95ba0c43082a3c989bb643688bf8969 Mon Sep 17 00:00:00 2001 From: William Bruno Date: Fri, 17 Jul 2026 14:17:48 -0400 Subject: [PATCH] default to refer to pulmo when no DLCO --- .idea/.gitignore | 5 ++++ .../inspectionProfiles/profiles_settings.xml | 6 ++++ .idea/misc.xml | 4 +++ .idea/modules.xml | 8 +++++ .idea/pftr_processor.iml | 17 +++++++++++ .idea/pyLspTools.xml | 29 +++++++++++++++++++ .idea/vcs.xml | 7 +++++ app.py | 2 ++ 8 files changed, 78 insertions(+) create mode 100644 .idea/.gitignore create mode 100644 .idea/inspectionProfiles/profiles_settings.xml create mode 100644 .idea/misc.xml create mode 100644 .idea/modules.xml create mode 100644 .idea/pftr_processor.iml create mode 100644 .idea/pyLspTools.xml create mode 100644 .idea/vcs.xml diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..b58b603 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,5 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Editor-based HTTP Client requests +/httpRequests/ diff --git a/.idea/inspectionProfiles/profiles_settings.xml b/.idea/inspectionProfiles/profiles_settings.xml new file mode 100644 index 0000000..105ce2d --- /dev/null +++ b/.idea/inspectionProfiles/profiles_settings.xml @@ -0,0 +1,6 @@ + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..a980e4a --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..173e673 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/pftr_processor.iml b/.idea/pftr_processor.iml new file mode 100644 index 0000000..09f664d --- /dev/null +++ b/.idea/pftr_processor.iml @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/pyLspTools.xml b/.idea/pyLspTools.xml new file mode 100644 index 0000000..c24f67c --- /dev/null +++ b/.idea/pyLspTools.xml @@ -0,0 +1,29 @@ + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..8306744 --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,7 @@ + + + + + + + \ No newline at end of file diff --git a/app.py b/app.py index 35833e2..3273cf9 100644 --- a/app.py +++ b/app.py @@ -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