ImagingDataCommons / highdicom

High-level DICOM abstractions for the Python programming language
https://highdicom.readthedocs.io
MIT License
169 stars 35 forks source link

Prevent inclusion of empty Content Sequence attribute in SR content items #120

Closed hackermd closed 2 years ago

hackermd commented 2 years ago

Upon construction of some content items, we first add an empty ContentSequence to the object and then later append individual items to it. If, however, for some reason no items get subsequently added, the ContentSequence attribute remains empty, which is not allowed by the standard.