dcm_dict 0.41.0 → 0.53.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a46ce2259a2f30b66a71a4f496276bad9d583d92df9f9c42b467ad6b0de10ebb
4
- data.tar.gz: c8504a84cea9995940921789f1f11a358f51f7ba9e2e27e3352ee5fc1d395917
3
+ metadata.gz: f9cefdf560d3f2ae752f372b8623c4a9024816335c1c640b1ad547233428a8eb
4
+ data.tar.gz: 94bae2439df241e39ba809b351d22bfaaee713fa1cda97d95b3b9220ab896583
5
5
  SHA512:
6
- metadata.gz: 54a580781aa3e1efcb388ef8c64aec94d33f04633c8e7424bc71eefa8ce152a08a947535e79a9fc187568c313a541e607ecb70fcb5fcd9814767a8452dd857db
7
- data.tar.gz: ff80e8af09912710611221616992b21e164caa60d1cd8fe3e7da528171a81038b02733023a7f90cc3e0d8bbcdcae6b8c0b6f02984c0d9d405d2ee380f79324cd
6
+ metadata.gz: 72bce15a0e17ea6ab74e5a09a9cc6829dc4bc49774b188809be84e04434aa737879990083f5c8347263baf6fa0a4881bd5f0a91d2d331ee159729cced9ca38e6
7
+ data.tar.gz: e001c978002712c4a9e407b9a128cd55bcb485ade6e881c6bd1f94469bc1233419e912247c70d93e7e57b54ff30978007d031c3a7716c2e1b1e624095b09dea8
data/CHANGELOG.md CHANGED
@@ -1,5 +1,24 @@
1
1
  # DcmDict project Changelog
2
2
 
3
+ ___
4
+ ## v0.53.0 (2023-05-03)
5
+ * Update to 2023b Base Standard
6
+ ___
7
+ ## v0.52.0 (2023-02-09)
8
+ * Update to 2023a Base Standard
9
+ ___
10
+ ## v0.51.0 (2023-02-09)
11
+ * Not publish on [RubyGems](https://rubygems.org/gems/dcm_dict)
12
+ * Updated gemspec requirements
13
+ #### Note for gemspec
14
+ > Required Ruby Version fixed for stable releases (>= 3.0)
15
+ > Development Dependency fixed to latest tested version
16
+ ___
17
+ ## v0.50.0 (2023-02-09)
18
+ * Not publish on [RubyGems](https://rubygems.org/gems/dcm_dict)
19
+ * Updated gemspec(dcm_dict requires Ruby version >= 2.1, < 3.2)
20
+ #### Note for gemspec
21
+ > Refinement#include is deprecated and will be removed in Ruby 3.2
3
22
  ___
4
23
  ## v0.41.0 (2023-01-14)
5
24
  * Update to 2022e Base Standard
data/README.md CHANGED
@@ -90,7 +90,14 @@ end
90
90
 
91
91
  *The main way remains **Ruby Refinements***.
92
92
 
93
- **Rubies compatibility**: at this moment the other considered rubies is only [Rubinius][4] (>= v2.2.10). In order to try to ensure a minimum compatibility there is a file under *lib/dcm_dict/rubies/* called *rb_ext.rb* able to *mask*/*simulates* the refinements by [refine gem][5] and add the required *bit_length* method to *Fixnum* class by [backports gem][6].
93
+ ### Rubies compatibility
94
+ **MRI Ruby**: from version _**v0.51.0**_ gemspec are changed: the minimum required version is _**3.0**_ in order to manage the refinements changes that occurred in version _**3.2**_:
95
+ - The include/extend in refinements never worked (ref [Bug #17429][13])
96
+ - import_methods is limited in functionality (ref [class Refinement][14])
97
+
98
+ **Other Rubies**: the other considered rubies is only [Rubinius][4] checked at version _**v2.2.10**_.
99
+
100
+ **Test Note**: In order to try to ensure a minimum compatibility there is a file under *lib/dcm_dict/rubies/* called *rb_ext.rb* able to *mask*/*simulates* the refinements by [refine gem][5] and add the required *bit_length* method to *Fixnum* class by [backports gem][6].
94
101
  This sort of extension is not loaded by default but only into *spec files* for the *'rbx' Ruby Engine*. See *spec_helper.rb* and *rb_ext.rb* for details.
95
102
 
96
103
  ## Data Element data in detail
@@ -287,7 +294,7 @@ Note: the script use the [Nokogiri][3] as XML parser if installed as gem, otherw
287
294
  Check the file for other details.
288
295
 
289
296
  ## Note
290
- Current library version is aligned to *DICOM Base Standard* **2022e**
297
+ Current library version is aligned to *DICOM Base Standard* **2023b**
291
298
 
292
299
  ## Install
293
300
 
@@ -343,3 +350,5 @@ Main source code repository on github at [henrythebuilder/dcm_dict](https://gith
343
350
  [10]: http://www.dicomstandard.org/
344
351
  [11]: http://www.dicomstandard.org/current/
345
352
  [12]: https://rubygems.org/gems/dcm_dict
353
+ [13]: https://bugs.ruby-lang.org/issues/17429
354
+ [14]: https://docs.ruby-lang.org/en/3.2/Refinement.html
@@ -25,7 +25,7 @@ module DcmDict
25
25
  module Refine
26
26
  module ArrayRefine
27
27
 
28
- refine Array do
28
+ class ::Array
29
29
  include DcmDict::Refine::DataElementRefine
30
30
  end
31
31
 
@@ -25,7 +25,7 @@ module DcmDict
25
25
  module Refine
26
26
  module StringRefine
27
27
 
28
- refine String do
28
+ class ::String
29
29
  include DcmDict::Refine::DataElementRefine
30
30
  include DcmDict::Refine::UidRefine
31
31
  end
@@ -25,7 +25,7 @@ module DcmDict
25
25
  module Refine
26
26
  module SymbolRefine
27
27
 
28
- refine Symbol do
28
+ class ::Symbol
29
29
  include DcmDict::Refine::DataElementRefine
30
30
  include DcmDict::Refine::UidRefine
31
31
  end
@@ -2234,6 +2234,7 @@ HIGH = 0001H'},
2234
2234
  { tag_ps: '(0028,2112)', tag_name: "Lossy Image Compression Ratio", tag_key: 'LossyImageCompressionRatio', tag_vr: [:DS], tag_vm: ["1-n"], tag_str: '(0028,2112)', tag_sym: :lossy_image_compression_ratio, tag_ndm: '00282112', tag_ary: [0x0028,0x2112], tag_multiple: false, tag_note: ''},
2235
2235
  { tag_ps: '(0028,2114)', tag_name: "Lossy Image Compression Method", tag_key: 'LossyImageCompressionMethod', tag_vr: [:CS], tag_vm: ["1-n"], tag_str: '(0028,2114)', tag_sym: :lossy_image_compression_method, tag_ndm: '00282114', tag_ary: [0x0028,0x2114], tag_multiple: false, tag_note: ''},
2236
2236
  { tag_ps: '(0028,3000)', tag_name: "Modality LUT Sequence", tag_key: 'ModalityLUTSequence', tag_vr: [:SQ], tag_vm: ["1"], tag_str: '(0028,3000)', tag_sym: :modality_lut_sequence, tag_ndm: '00283000', tag_ary: [0x0028,0x3000], tag_multiple: false, tag_note: ''},
2237
+ { tag_ps: '(0028,3001)', tag_name: "Variable Modality LUT Sequence", tag_key: 'VariableModalityLUTSequence', tag_vr: [:SQ], tag_vm: ["1"], tag_str: '(0028,3001)', tag_sym: :variable_modality_lut_sequence, tag_ndm: '00283001', tag_ary: [0x0028,0x3001], tag_multiple: false, tag_note: ''},
2237
2238
  { tag_ps: '(0028,3002)', tag_name: "LUT Descriptor", tag_key: 'LUTDescriptor', tag_vr: [:US, :SS], tag_vm: ["3"], tag_str: '(0028,3002)', tag_sym: :lut_descriptor, tag_ndm: '00283002', tag_ary: [0x0028,0x3002], tag_multiple: false, tag_note: ''},
2238
2239
  { tag_ps: '(0028,3003)', tag_name: "LUT Explanation", tag_key: 'LUTExplanation', tag_vr: [:LO], tag_vm: ["1"], tag_str: '(0028,3003)', tag_sym: :lut_explanation, tag_ndm: '00283003', tag_ary: [0x0028,0x3003], tag_multiple: false, tag_note: ''},
2239
2240
  { tag_ps: '(0028,3004)', tag_name: "Modality LUT Type", tag_key: 'ModalityLUTType', tag_vr: [:LO], tag_vm: ["1"], tag_str: '(0028,3004)', tag_sym: :modality_lut_type, tag_ndm: '00283004', tag_ary: [0x0028,0x3004], tag_multiple: false, tag_note: ''},
@@ -4063,7 +4064,7 @@ HIGH = 0001H'},
4063
4064
  { tag_ps: '(3008,0024)', tag_name: "Treatment Control Point Date", tag_key: 'TreatmentControlPointDate', tag_vr: [:DA], tag_vm: ["1"], tag_str: '(3008,0024)', tag_sym: :treatment_control_point_date, tag_ndm: '30080024', tag_ary: [0x3008,0x0024], tag_multiple: false, tag_note: ''},
4064
4065
  { tag_ps: '(3008,0025)', tag_name: "Treatment Control Point Time", tag_key: 'TreatmentControlPointTime', tag_vr: [:TM], tag_vm: ["1"], tag_str: '(3008,0025)', tag_sym: :treatment_control_point_time, tag_ndm: '30080025', tag_ary: [0x3008,0x0025], tag_multiple: false, tag_note: ''},
4065
4066
  { tag_ps: '(3008,002A)', tag_name: "Treatment Termination Status", tag_key: 'TreatmentTerminationStatus', tag_vr: [:CS], tag_vm: ["1"], tag_str: '(3008,002A)', tag_sym: :treatment_termination_status, tag_ndm: '3008002A', tag_ary: [0x3008,0x002A], tag_multiple: false, tag_note: ''},
4066
- { tag_ps: '(3008,002B)', tag_name: "Treatment Termination Code", tag_key: 'TreatmentTerminationCode', tag_vr: [:SH], tag_vm: ["1"], tag_str: '(3008,002B)', tag_sym: :treatment_termination_code, tag_ndm: '3008002B', tag_ary: [0x3008,0x002B], tag_multiple: false, tag_note: ''},
4067
+ { tag_ps: '(3008,002B)', tag_name: "Treatment Termination Code", tag_key: 'TreatmentTerminationCode', tag_vr: [:SH], tag_vm: ["1"], tag_str: '(3008,002B)', tag_sym: :treatment_termination_code, tag_ndm: '3008002B', tag_ary: [0x3008,0x002B], tag_multiple: false, tag_note: 'RET (2023a)'},
4067
4068
  { tag_ps: '(3008,002C)', tag_name: "Treatment Verification Status", tag_key: 'TreatmentVerificationStatus', tag_vr: [:CS], tag_vm: ["1"], tag_str: '(3008,002C)', tag_sym: :treatment_verification_status, tag_ndm: '3008002C', tag_ary: [0x3008,0x002C], tag_multiple: false, tag_note: ''},
4068
4069
  { tag_ps: '(3008,0030)', tag_name: "Referenced Treatment Record Sequence", tag_key: 'ReferencedTreatmentRecordSequence', tag_vr: [:SQ], tag_vm: ["1"], tag_str: '(3008,0030)', tag_sym: :referenced_treatment_record_sequence, tag_ndm: '30080030', tag_ary: [0x3008,0x0030], tag_multiple: false, tag_note: ''},
4069
4070
  { tag_ps: '(3008,0032)', tag_name: "Specified Primary Meterset", tag_key: 'SpecifiedPrimaryMeterset', tag_vr: [:DS], tag_vm: ["1"], tag_str: '(3008,0032)', tag_sym: :specified_primary_meterset, tag_ndm: '30080032', tag_ary: [0x3008,0x0032], tag_multiple: false, tag_note: ''},
@@ -4952,7 +4953,7 @@ HIGH = 0001H'},
4952
4953
  { tag_ps: '(3010,0087)', tag_name: "Weekday Fraction Pattern Sequence", tag_key: 'WeekdayFractionPatternSequence', tag_vr: [:SQ], tag_vm: ["1"], tag_str: '(3010,0087)', tag_sym: :weekday_fraction_pattern_sequence, tag_ndm: '30100087', tag_ary: [0x3010,0x0087], tag_multiple: false, tag_note: ''},
4953
4954
  { tag_ps: '(3010,0088)', tag_name: "Delivery Time Structure Code Sequence", tag_key: 'DeliveryTimeStructureCodeSequence', tag_vr: [:SQ], tag_vm: ["1"], tag_str: '(3010,0088)', tag_sym: :delivery_time_structure_code_sequence, tag_ndm: '30100088', tag_ary: [0x3010,0x0088], tag_multiple: false, tag_note: ''},
4954
4955
  { tag_ps: '(3010,0089)', tag_name: "Treatment Site Modifier Code Sequence", tag_key: 'TreatmentSiteModifierCodeSequence', tag_vr: [:SQ], tag_vm: ["1"], tag_str: '(3010,0089)', tag_sym: :treatment_site_modifier_code_sequence, tag_ndm: '30100089', tag_ary: [0x3010,0x0089], tag_multiple: false, tag_note: ''},
4955
- { tag_ps: '(3010,0090)', tag_name: "Robotic Base Location Indicator", tag_key: 'RoboticBaseLocationIndicator', tag_vr: [:CS], tag_vm: ["1"], tag_str: '(3010,0090)', tag_sym: :robotic_base_location_indicator, tag_ndm: '30100090', tag_ary: [0x3010,0x0090], tag_multiple: false, tag_note: ''},
4956
+ { tag_ps: '(3010,0090)', tag_name: "Robotic Base Location Indicator", tag_key: 'RoboticBaseLocationIndicator', tag_vr: [:CS], tag_vm: ["1"], tag_str: '(3010,0090)', tag_sym: :robotic_base_location_indicator, tag_ndm: '30100090', tag_ary: [0x3010,0x0090], tag_multiple: false, tag_note: 'RET (2022e)'},
4956
4957
  { tag_ps: '(3010,0091)', tag_name: "Robotic Path Node Set Code Sequence", tag_key: 'RoboticPathNodeSetCodeSequence', tag_vr: [:SQ], tag_vm: ["1"], tag_str: '(3010,0091)', tag_sym: :robotic_path_node_set_code_sequence, tag_ndm: '30100091', tag_ary: [0x3010,0x0091], tag_multiple: false, tag_note: ''},
4957
4958
  { tag_ps: '(3010,0092)', tag_name: "Robotic Node Identifier", tag_key: 'RoboticNodeIdentifier', tag_vr: [:UL], tag_vm: ["1"], tag_str: '(3010,0092)', tag_sym: :robotic_node_identifier, tag_ndm: '30100092', tag_ary: [0x3010,0x0092], tag_multiple: false, tag_note: ''},
4958
4959
  { tag_ps: '(3010,0093)', tag_name: "RT Treatment Source Coordinates", tag_key: 'RTTreatmentSourceCoordinates', tag_vr: [:FD], tag_vm: ["3"], tag_str: '(3010,0093)', tag_sym: :rt_treatment_source_coordinates, tag_ndm: '30100093', tag_ary: [0x3010,0x0093], tag_multiple: false, tag_note: ''},
@@ -214,6 +214,7 @@ module DcmDict
214
214
  { uid_value: '1.2.840.10008.5.1.4.1.1.11.9', uid_name: 'Volume Rendering Volumetric Presentation State Storage', uid_key: 'VolumeRenderingVolumetricPresentationStateStorage', uid_sym: :volume_rendering_volumetric_presentation_state_storage, uid_type: :sop_class},
215
215
  { uid_value: '1.2.840.10008.5.1.4.1.1.11.10', uid_name: 'Segmented Volume Rendering Volumetric Presentation State Storage', uid_key: 'SegmentedVolumeRenderingVolumetricPresentationStateStorage', uid_sym: :segmented_volume_rendering_volumetric_presentation_state_storage, uid_type: :sop_class},
216
216
  { uid_value: '1.2.840.10008.5.1.4.1.1.11.11', uid_name: 'Multiple Volume Rendering Volumetric Presentation State Storage', uid_key: 'MultipleVolumeRenderingVolumetricPresentationStateStorage', uid_sym: :multiple_volume_rendering_volumetric_presentation_state_storage, uid_type: :sop_class},
217
+ { uid_value: '1.2.840.10008.5.1.4.1.1.11.12', uid_name: 'Variable Modality LUT Softcopy Presentation State Storage', uid_key: 'VariableModalityLUTPresentationStateStorage', uid_sym: :variable_modality_lut_presentation_state_storage, uid_type: :sop_class},
217
218
  { uid_value: '1.2.840.10008.5.1.4.1.1.12.1', uid_name: 'X-Ray Angiographic Image Storage', uid_key: 'XRayAngiographicImageStorage', uid_sym: :x_ray_angiographic_image_storage, uid_type: :sop_class},
218
219
  { uid_value: '1.2.840.10008.5.1.4.1.1.12.1.1', uid_name: 'Enhanced XA Image Storage', uid_key: 'EnhancedXAImageStorage', uid_sym: :enhanced_xa_image_storage, uid_type: :sop_class},
219
220
  { uid_value: '1.2.840.10008.5.1.4.1.1.12.2', uid_name: 'X-Ray Radiofluoroscopic Image Storage', uid_key: 'XRayRadiofluoroscopicImageStorage', uid_sym: :x_ray_radiofluoroscopic_image_storage, uid_type: :sop_class},
@@ -22,6 +22,6 @@
22
22
  # applicable local, state, national or international regulations.
23
23
  #
24
24
  module DcmDict
25
- VERSION = "0.41.0"
26
- DICOM_DOC_VERSION = "2022e"
25
+ VERSION = "0.53.0"
26
+ DICOM_DOC_VERSION = "2023b"
27
27
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dcm_dict
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.41.0
4
+ version: 0.53.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Enrico Rivarola
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-01-14 00:00:00.000000000 Z
11
+ date: 2023-05-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri
@@ -16,80 +16,80 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.8'
19
+ version: '1.14'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 1.8.5
22
+ version: 1.14.0
23
23
  type: :development
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
27
  - - "~>"
28
28
  - !ruby/object:Gem::Version
29
- version: '1.8'
29
+ version: '1.14'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 1.8.5
32
+ version: 1.14.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: rspec
35
35
  requirement: !ruby/object:Gem::Requirement
36
36
  requirements:
37
37
  - - "~>"
38
38
  - !ruby/object:Gem::Version
39
- version: '3.0'
39
+ version: '3.12'
40
40
  - - ">="
41
41
  - !ruby/object:Gem::Version
42
- version: 3.0.0
42
+ version: 3.12.0
43
43
  type: :development
44
44
  prerelease: false
45
45
  version_requirements: !ruby/object:Gem::Requirement
46
46
  requirements:
47
47
  - - "~>"
48
48
  - !ruby/object:Gem::Version
49
- version: '3.0'
49
+ version: '3.12'
50
50
  - - ">="
51
51
  - !ruby/object:Gem::Version
52
- version: 3.0.0
52
+ version: 3.12.0
53
53
  - !ruby/object:Gem::Dependency
54
54
  name: simplecov
55
55
  requirement: !ruby/object:Gem::Requirement
56
56
  requirements:
57
57
  - - "~>"
58
58
  - !ruby/object:Gem::Version
59
- version: '0.8'
59
+ version: '0.22'
60
60
  - - ">="
61
61
  - !ruby/object:Gem::Version
62
- version: 0.8.2
62
+ version: 0.22.0
63
63
  type: :development
64
64
  prerelease: false
65
65
  version_requirements: !ruby/object:Gem::Requirement
66
66
  requirements:
67
67
  - - "~>"
68
68
  - !ruby/object:Gem::Version
69
- version: '0.8'
69
+ version: '0.22'
70
70
  - - ">="
71
71
  - !ruby/object:Gem::Version
72
- version: 0.8.2
72
+ version: 0.22.0
73
73
  - !ruby/object:Gem::Dependency
74
74
  name: rake
75
75
  requirement: !ruby/object:Gem::Requirement
76
76
  requirements:
77
77
  - - "~>"
78
78
  - !ruby/object:Gem::Version
79
- version: 12.3.3
79
+ version: '13.0'
80
80
  - - ">="
81
81
  - !ruby/object:Gem::Version
82
- version: 12.3.3
82
+ version: 13.0.0
83
83
  type: :development
84
84
  prerelease: false
85
85
  version_requirements: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: 12.3.3
89
+ version: '13.0'
90
90
  - - ">="
91
91
  - !ruby/object:Gem::Version
92
- version: 12.3.3
92
+ version: 13.0.0
93
93
  description: DcmDict is a Ruby gem (dcm_dict) to handle in a simple way the Data Dictionary
94
94
  defined within the DICOM Standard
95
95
  email: henrythebuilder@yahoo.it
@@ -165,7 +165,7 @@ licenses:
165
165
  metadata:
166
166
  bug_tracker_uri: https://github.com/henrythebuilder/dcm_dict/issues
167
167
  changelog_uri: https://github.com/henrythebuilder/dcm_dict/blob/master/CHANGELOG.md
168
- documentation_uri: http://www.rubydoc.info/gems/dcm_dict/0.41.0
168
+ documentation_uri: http://www.rubydoc.info/gems/dcm_dict/0.53.0
169
169
  homepage_uri: http://rubygems.org/gems/dcm_dict
170
170
  source_code_uri: https://github.com/henrythebuilder/dcm_dict
171
171
  post_install_message:
@@ -176,14 +176,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
176
176
  requirements:
177
177
  - - ">="
178
178
  - !ruby/object:Gem::Version
179
- version: '2.1'
179
+ version: '3.0'
180
180
  required_rubygems_version: !ruby/object:Gem::Requirement
181
181
  requirements:
182
182
  - - ">="
183
183
  - !ruby/object:Gem::Version
184
184
  version: '0'
185
185
  requirements: []
186
- rubygems_version: 3.3.12
186
+ rubygems_version: 3.4.10
187
187
  signing_key:
188
188
  specification_version: 4
189
189
  summary: A simple way to handle DICOM Data Dictionary