diff --git a/generic/management/commands/checkdicoms.py b/generic/management/commands/checkdicoms.py index f35219ef..d50df6b7 100644 --- a/generic/management/commands/checkdicoms.py +++ b/generic/management/commands/checkdicoms.py @@ -37,7 +37,7 @@ class Command(BaseCommand): for code in site_codes: # TODO rewrite try: - if code in ds.PatientId: + if code in ds.PatientID: self.stdout.write(self.style.WARNING(f"Identifiable dicom {file}")) except AttributeError: pass