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)