This PR changes the logic of value encoding for better DICOM conformance. If the value representation of an element is set to decimal string (DS) or integer string (IS), numeric primitive values are automatically converted into their textual form when writing them to bytes or to a file.
This PR changes the logic of value encoding for better DICOM conformance. If the value representation of an element is set to decimal string (DS) or integer string (IS), numeric primitive values are automatically converted into their textual form when writing them to bytes or to a file.
Also extended test for coverage at
dicom_object
.