From 70411a54cc9aadab5415321846979df7bc0ded39 Mon Sep 17 00:00:00 2001 From: Kai Schlamp Date: Mon, 14 Aug 2023 06:19:39 +0000 Subject: [PATCH] Fix wrong condition in patient search --- adit/core/utils/dicom_operator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adit/core/utils/dicom_operator.py b/adit/core/utils/dicom_operator.py index c92f642f..ab5567c5 100644 --- a/adit/core/utils/dicom_operator.py +++ b/adit/core/utils/dicom_operator.py @@ -128,7 +128,7 @@ def _handle_found_patients( if query.has("PatientName"): patient_name_pattern = convert_to_python_regex(query.PatientName) - if patient_name_pattern.search(result.PatientName): + if not patient_name_pattern.search(result.PatientName): continue if query.has("PatientSex"):