midom 0.2.0__tar.gz → 0.3.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {midom-0.2.0 → midom-0.3.0}/PKG-INFO +1 -1
- {midom-0.2.0 → midom-0.3.0}/midom/components.py +3 -0
- {midom-0.2.0 → midom-0.3.0}/midom.egg-info/PKG-INFO +1 -1
- {midom-0.2.0 → midom-0.3.0}/pyproject.toml +1 -1
- {midom-0.2.0 → midom-0.3.0}/tests/test_components.py +1 -0
- {midom-0.2.0 → midom-0.3.0}/tests/test_serialization.py +3 -0
- {midom-0.2.0 → midom-0.3.0}/LICENSE +0 -0
- {midom-0.2.0 → midom-0.3.0}/README.md +0 -0
- {midom-0.2.0 → midom-0.3.0}/midom/__init__.py +0 -0
- {midom-0.2.0 → midom-0.3.0}/midom/constants.py +0 -0
- {midom-0.2.0 → midom-0.3.0}/midom/identifiers.py +0 -0
- {midom-0.2.0 → midom-0.3.0}/midom/subspaces.py +0 -0
- {midom-0.2.0 → midom-0.3.0}/midom.egg-info/SOURCES.txt +0 -0
- {midom-0.2.0 → midom-0.3.0}/midom.egg-info/dependency_links.txt +0 -0
- {midom-0.2.0 → midom-0.3.0}/midom.egg-info/requires.txt +0 -0
- {midom-0.2.0 → midom-0.3.0}/midom.egg-info/top_level.txt +0 -0
- {midom-0.2.0 → midom-0.3.0}/setup.cfg +0 -0
- {midom-0.2.0 → midom-0.3.0}/tests/test_identifiers.py +0 -0
- {midom-0.2.0 → midom-0.3.0}/tests/test_subspaces.py +0 -0
|
@@ -5,6 +5,7 @@ from dicomcriterion import Criterion
|
|
|
5
5
|
from dicomcriterion.exceptions import CriterionError
|
|
6
6
|
from pydantic import BaseModel, ConfigDict, field_validator
|
|
7
7
|
from pydantic.functional_serializers import field_serializer
|
|
8
|
+
from pydicom.valuerep import VR
|
|
8
9
|
|
|
9
10
|
from midom.constants import ActionCode, ActionCodes
|
|
10
11
|
from midom.identifiers import (
|
|
@@ -73,6 +74,8 @@ class PrivateElement(BaseModel):
|
|
|
73
74
|
|
|
74
75
|
identifier: Union[PrivateBlockTagIdentifier, str]
|
|
75
76
|
description: str
|
|
77
|
+
value_representation: VR # any DICOM VR string
|
|
78
|
+
value_multiplicity: int = 1
|
|
76
79
|
|
|
77
80
|
@field_serializer("identifier")
|
|
78
81
|
def serialize_identifier(self, value, _info):
|
|
@@ -114,10 +114,13 @@ def a_protocol():
|
|
|
114
114
|
PrivateElement(
|
|
115
115
|
identifier='0075["company"]01',
|
|
116
116
|
description="Amount of contrast used",
|
|
117
|
+
value_representation="LO",
|
|
117
118
|
),
|
|
118
119
|
PrivateElement(
|
|
119
120
|
identifier='0075["company"]02',
|
|
120
121
|
description="algorithm settings",
|
|
122
|
+
value_representation="LO",
|
|
123
|
+
value_multiplicity=2,
|
|
121
124
|
),
|
|
122
125
|
],
|
|
123
126
|
)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|