ImagingDataCommons / highdicom

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

Allow SR content parameter to be single element sequence #216

Closed CPBridge closed 1 year ago

CPBridge commented 1 year ago

We discussed a while ago using that forcing users to manually pass the first element of a the content sequence (such as a highdicom.sr.MeasurementReport object) when constructing an SR object is clumsy and counterintuitive.

This PR allows the user to pass any content sequence that contains a single item to the content parameter of the SR classes, and tweaks the user guide to make this the official recommendation. The old way of passing a dataset is also supported.