From a2892b3d0c9be3811628f964860cba79be4902d8 Mon Sep 17 00:00:00 2001 From: Wetzel Date: Wed, 7 Jul 2021 13:57:45 -0400 Subject: [PATCH] Corrected conflicting fixes between #178 and #180/#181 --- deid/dicom/parser.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/deid/dicom/parser.py b/deid/dicom/parser.py index 5112b45d..49bb5ad6 100644 --- a/deid/dicom/parser.py +++ b/deid/dicom/parser.py @@ -426,14 +426,6 @@ def _run_action(self, field, action, value=None): item=self.lookup, dicom=self.dicom, value=value, field=field ) if value is not None: - - # Cut out early if the field isn't in the dicom - if field.name not in self.dicom: - return - - # Preserve the old value in case we need to update - old_value = self.dicom[field.name].value - # Jitter the field by the supplied value new_val = jitter_timestamp(field=field, value=value) self.replace_field(field, new_val)