Skip to content

Commit

Permalink
Fix wrong condition in patient search
Browse files Browse the repository at this point in the history
  • Loading branch information
medihack authored Aug 14, 2023
1 parent 67a84e9 commit 70411a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion adit/core/utils/dicom_operator.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"):
Expand Down

0 comments on commit 70411a5

Please sign in to comment.