diff --git a/src/highdicom/pr/content.py b/src/highdicom/pr/content.py index f47c6a6b..0b70f0ce 100644 --- a/src/highdicom/pr/content.py +++ b/src/highdicom/pr/content.py @@ -842,13 +842,9 @@ def _add_presentation_state_identification_attributes( 'Argument "content_creator_identification" must be of type ' 'ContentCreatorIdentificationCodeSequence.' ) - dataset.ContentCreatorIdentificationCodeSequence = \ + dataset.ContentCreatorIdentificationCodeSequence = ( content_creator_identification - - # Not technically part of PR IODs, but we include anyway - now = datetime.datetime.now() - dataset.ContentDate = DA(now.date()) - dataset.ContentTime = TM(now.time()) + ) def _add_presentation_state_relationship_attributes( diff --git a/tests/test_pr.py b/tests/test_pr.py index 402a0162..bca4344d 100644 --- a/tests/test_pr.py +++ b/tests/test_pr.py @@ -1114,6 +1114,7 @@ def test_construction(self): assert hasattr(pr, 'RescaleType') assert pr.RescaleIntercept == self._ct_series[0].RescaleIntercept assert pr.RescaleSlope == self._ct_series[0].RescaleSlope + assert 'ContentDate' not in pr def test_construction_with_modality_rescale(self): gsps = GrayscaleSoftcopyPresentationState( @@ -1158,6 +1159,7 @@ def test_construction_with_modality_rescale(self): assert gsps.RescaleIntercept == 1024 assert gsps.RescaleType == 'HU' assert not hasattr(gsps, 'ModalityLUTSequence') + assert 'ContentDate' not in gsps def test_construction_with_modality_lut(self): gsps = GrayscaleSoftcopyPresentationState( @@ -1200,6 +1202,7 @@ def test_construction_with_modality_lut(self): assert not hasattr(gsps, 'RescaleIntercept') assert not hasattr(gsps, 'RescaleType') assert len(gsps.ModalityLUTSequence) == 1 + assert 'ContentDate' not in gsps def test_construction_with_copy_modality_lut(self): gsps = GrayscaleSoftcopyPresentationState(