ImagingDataCommons / highdicom

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

Set AnnotationAppliesToAllZPlanes only for 3D Annotation Groups #254

Closed CPBridge closed 9 months ago

CPBridge commented 9 months ago

The attribute AnnotationAppliesToAllZPlanes is required if the AnnotationCoordinateType is 3D and should not be present otherwise (see standard).

This PR removes AnnotationAppliesToAllZPlanes when the AnnotationCoordinateType is 2D. It also adds tests for this, and a new 2D coordinate test