def anonymize(dicom)
      dicom = Array[dicom] unless dicom.respond_to?(:to_ary)
      if @tags.length > 0
        prepare_anonymization
        dicom.each do |dcm|
          anonymize_dcm(dcm.to_dcm)
        end
      else
        logger.warn("No tags have been selected for anonymization. Aborting anonymization.")
      end
      # Save the audit trail (if used):
      @audit_trail.write(@audit_trail_file) if @audit_trail
      logger.info("Anonymization complete.")
      dicom
    end
def anonymize(dicom)
      dicom = Array[dicom] unless dicom.respond_to?(:to_ary)
      if @tags.length > 0
        prepare_anonymization
        dicom.each do |dcm|
          anonymize_dcm(dcm.to_dcm)
        end
      else
        logger.warn("No tags have been selected for anonymization. Aborting anonymization.")
      end
      # Save the audit trail (if used):
      @audit_trail.write(@audit_trail_file) if @audit_trail
      logger.info("Anonymization complete.")
      dicom
    end
Anonymizes the given DObject or array of DICOM objects with the settings
 of this Anonymizer instance.

 @param [DObject, Array<DObject>] dicom single or multiple DICOM objects
 @return [Array<DObject>] an array of the anonymized DICOM objects