pydicom.config.enforce_valid_values

pydicom.config.enforce_valid_values = False

Raise exceptions if any value is not allowed by DICOM Standard.

e.g. DS strings that are longer than 16 characters; IS strings outside the allowed range.

Default False.