|
14 | 14 | ContentQualificationValues, |
15 | 15 | PatientSexValues, |
16 | 16 | ) |
17 | | -from highdicom.valuerep import check_person_name |
| 17 | +from highdicom.valuerep import check_person_name, _check_long_string |
18 | 18 | from highdicom.version import __version__ |
19 | 19 | from highdicom._module_utils import is_attribute_in_iod |
20 | 20 |
|
@@ -199,16 +199,23 @@ def __init__( |
199 | 199 | self.SeriesDescription = series_description |
200 | 200 |
|
201 | 201 | # Equipment |
| 202 | + if manufacturer is not None: |
| 203 | + _check_long_string(manufacturer) |
202 | 204 | self.Manufacturer = manufacturer |
203 | 205 | if manufacturer_model_name is not None: |
| 206 | + _check_long_string(manufacturer_model_name) |
204 | 207 | self.ManufacturerModelName = manufacturer_model_name |
205 | 208 | if device_serial_number is not None: |
| 209 | + _check_long_string(device_serial_number) |
206 | 210 | self.DeviceSerialNumber = device_serial_number |
207 | 211 | if software_versions is not None: |
| 212 | + _check_long_string(software_versions) |
208 | 213 | self.SoftwareVersions = software_versions |
209 | 214 | if institution_name is not None: |
| 215 | + _check_long_string(institution_name) |
210 | 216 | self.InstitutionName = institution_name |
211 | 217 | if institutional_department_name is not None: |
| 218 | + _check_long_string(institutional_department_name) |
212 | 219 | self.InstitutionalDepartmentName = institutional_department_name |
213 | 220 |
|
214 | 221 | # Instance |
|
0 commit comments