dcm_dict 0.3.0 → 0.4.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
  SHA1:
3
- metadata.gz: 2cc7004aaefe37575195ced6b44348d9947b7203
4
- data.tar.gz: d5872f31f97eb5e7647c20b6cbf1dd64f6148cc3
3
+ metadata.gz: c197612bc95293d1a8b295442d9c3f8a7bd3816c
4
+ data.tar.gz: c575c6b68dc080e69e5d80142e51eb6af89e0990
5
5
  SHA512:
6
- metadata.gz: 1994d7e38268dff279c6c7afe861431870168baf38849e97c3b54ad079b3ea9a88fd2ff4ddd696bd8235c51f9ef6dc2ea151b66e1a0deef6e3badd1814693829
7
- data.tar.gz: bb48c78cd51e71f0f5e2b6bdc5618ac04da727d6bc1c85b26104704a72a7db66824ad3f082681d55586f6595b202520db4c7281f0e74e2b8bd79027f6bc869ac
6
+ metadata.gz: 62cce09ceba1eaa13122be316be380daf614385a0fbc45f9bfcf0a8eafd82a4f3de21c9b7d44c71f91adbded61a4c8023fdf5f967722694fe2e357dbcd7a09b0
7
+ data.tar.gz: 2b00ea365f83fd299da80e2f4d891bae7208396ad4dac56e3c2496d58b11e1a515be0bd4260b6448b5096c2cf555ce8b4e2b2ad3205f17c5ea547a1e552e88a9
data/CHANGELOG CHANGED
@@ -1,3 +1,6 @@
1
+ - v0.4.0
2
+ Update to 2015a Base Standard
3
+
1
4
  - v0.3.0
2
5
  Update to 2014c Base Standard
3
6
 
data/README.md CHANGED
@@ -267,7 +267,7 @@ Note: the script use the [Nokogiri][3] as XML parser if installed as gem, otherw
267
267
  Check the file for other details.
268
268
 
269
269
  ## Note
270
- Current library version is aligned to *DICOM Base Standard **2014c***
270
+ Current library version is aligned to *DICOM Base Standard **2015a***
271
271
 
272
272
  ## Install
273
273
 
@@ -54,8 +54,8 @@ LICENSE_TEXT=<<END_LICENSE
54
54
  END_LICENSE
55
55
 
56
56
  class DcmDictConverter
57
- Part6XmlUrl="http://dicom.nema.org/medical/dicom/current/source/docbook/part06/part06.xml"
58
- Part7XmlUrl="http://dicom.nema.org/medical/dicom/current/source/docbook/part07/part07.xml"
57
+ Part6XmlUrl="ftp://medical.nema.org/medical/dicom/current/source/docbook/part06/part06.xml"
58
+ Part7XmlUrl="ftp://medical.nema.org/medical/dicom/current/source/docbook/part07/part07.xml"
59
59
  DataElementSource={
60
60
  Part7XmlUrl => ["table_E.1-1", "table_E.2-1"],
61
61
  Part6XmlUrl => ["table_7-1", "table_8-1", "table_6-1"]
@@ -196,6 +196,10 @@ HIGH = 0001H'},
196
196
  { tag_ps: '(0008,0115)', tag_name: "Coding Scheme Name", tag_key: 'CodingSchemeName', tag_vr: [:ST], tag_vm: ["1"], tag_str: '(0008,0115)', tag_sym: :coding_scheme_name, tag_ndm: '00080115', tag_ary: [0x0008,0x0115], tag_multiple: false, tag_note: ''},
197
197
  { tag_ps: '(0008,0116)', tag_name: "Coding Scheme Responsible Organization", tag_key: 'CodingSchemeResponsibleOrganization', tag_vr: [:ST], tag_vm: ["1"], tag_str: '(0008,0116)', tag_sym: :coding_scheme_responsible_organization, tag_ndm: '00080116', tag_ary: [0x0008,0x0116], tag_multiple: false, tag_note: ''},
198
198
  { tag_ps: '(0008,0117)', tag_name: "Context UID", tag_key: 'ContextUID', tag_vr: [:UI], tag_vm: ["1"], tag_str: '(0008,0117)', tag_sym: :context_uid, tag_ndm: '00080117', tag_ary: [0x0008,0x0117], tag_multiple: false, tag_note: ''},
199
+ { tag_ps: '(0008,0118)', tag_name: "Mapping Resource UID", tag_key: 'MappingResourceUID', tag_vr: [:UI], tag_vm: ["1"], tag_str: '(0008,0118)', tag_sym: :mapping_resource_uid, tag_ndm: '00080118', tag_ary: [0x0008,0x0118], tag_multiple: false, tag_note: ''},
200
+ { tag_ps: '(0008,0119)', tag_name: "Long Code Value", tag_key: 'LongCodeValue', tag_vr: [:UC], tag_vm: ["1"], tag_str: '(0008,0119)', tag_sym: :long_code_value, tag_ndm: '00080119', tag_ary: [0x0008,0x0119], tag_multiple: false, tag_note: ''},
201
+ { tag_ps: '(0008,0120)', tag_name: "URN Code Value", tag_key: 'URNCodeValue', tag_vr: [:UR], tag_vm: ["1"], tag_str: '(0008,0120)', tag_sym: :urn_code_value, tag_ndm: '00080120', tag_ary: [0x0008,0x0120], tag_multiple: false, tag_note: ''},
202
+ { tag_ps: '(0008,0121)', tag_name: "Equivalent Code Sequence", tag_key: 'EquivalentCodeSequence', tag_vr: [:SQ], tag_vm: ["1"], tag_str: '(0008,0121)', tag_sym: :equivalent_code_sequence, tag_ndm: '00080121', tag_ary: [0x0008,0x0121], tag_multiple: false, tag_note: ''},
199
203
  { tag_ps: '(0008,0201)', tag_name: "Timezone Offset From UTC", tag_key: 'TimezoneOffsetFromUTC', tag_vr: [:SH], tag_vm: ["1"], tag_str: '(0008,0201)', tag_sym: :timezone_offset_from_utc, tag_ndm: '00080201', tag_ary: [0x0008,0x0201], tag_multiple: false, tag_note: ''},
200
204
  { tag_ps: '(0008,1000)', tag_name: "Network ID", tag_key: 'NetworkID', tag_vr: [:AE], tag_vm: ["1"], tag_str: '(0008,1000)', tag_sym: :network_id, tag_ndm: '00081000', tag_ary: [0x0008,0x1000], tag_multiple: false, tag_note: 'RET'},
201
205
  { tag_ps: '(0008,1010)', tag_name: "Station Name", tag_key: 'StationName', tag_vr: [:SH], tag_vm: ["1"], tag_str: '(0008,1010)', tag_sym: :station_name, tag_ndm: '00081010', tag_ary: [0x0008,0x1010], tag_multiple: false, tag_note: ''},
@@ -339,6 +339,7 @@ module DcmDict
339
339
  { uid_value: '1.2.840.10008.5.1.4.45.4', uid_name: "Implant Template Group Information Model - GET", uid_type: :sop_class},
340
340
  { uid_value: '1.2.840.10008.7.1.1', uid_name: "Native DICOM Model", uid_type: :application_hosting_model},
341
341
  { uid_value: '1.2.840.10008.7.1.2', uid_name: "Abstract Multi-Dimensional Image Model", uid_type: :application_hosting_model},
342
+ { uid_value: '1.2.840.10008.8.1.1', uid_name: "DICOM Content Mapping Resource", uid_type: :mapping_resource},
342
343
  { uid_value: '1.2.840.10008.15.0.3.1', uid_name: "dicomDeviceName", uid_type: :ldap_oid},
343
344
  { uid_value: '1.2.840.10008.15.0.3.2', uid_name: "dicomDescription", uid_type: :ldap_oid},
344
345
  { uid_value: '1.2.840.10008.15.0.3.3', uid_name: "dicomManufacturer", uid_type: :ldap_oid},
@@ -22,6 +22,6 @@
22
22
  # applicable local, state, national or international regulations.
23
23
  #
24
24
  module DcmDict
25
- VERSION = "0.3.0"
26
- DICOM_DOC_VERSION = "2014c"
25
+ VERSION = "0.4.0"
26
+ DICOM_DOC_VERSION = "2015a"
27
27
  end
@@ -29,18 +29,17 @@ describe DcmDict::Dictionary::DataElementRecord do
29
29
  using DcmDict::Refine::Internal::ArrayRefineInternal
30
30
 
31
31
  [
32
- {tag_ps: '(0008,0010)',
33
- tag_name: 'Recognition Code',
34
- tag_key: 'RecognitionCode',
35
- tag_vr: [:SH],
36
- tag_vm: ['1'],
37
- tag_note: 'RET',
38
- tag_ary: [0x0008,0x0010],
39
- tag_sym: :recognition_code,
40
- tag_ndm: '00080010',
41
- tag_str: '(0008,0010)',
42
- tag_multiple: false
43
- },
32
+ { tag_ps: '(0008,0010)',
33
+ tag_name: 'Recognition Code',
34
+ tag_key: 'RecognitionCode',
35
+ tag_vr: [:SH],
36
+ tag_vm: ['1'],
37
+ tag_note: 'RET',
38
+ tag_ary: [0x0008,0x0010],
39
+ tag_sym: :recognition_code,
40
+ tag_ndm: '00080010',
41
+ tag_str: '(0008,0010)',
42
+ tag_multiple: false},
44
43
  { tag_ps: '(0008,1190)',
45
44
  tag_name: "Retrieve URL",
46
45
  tag_key: 'RetrieveURL',
@@ -51,9 +50,20 @@ describe DcmDict::Dictionary::DataElementRecord do
51
50
  tag_ndm: '00081190',
52
51
  tag_ary: [0x0008,0x1190],
53
52
  tag_multiple: false,
53
+ tag_note: ''},
54
+ { tag_ps: '(0008,0118)',
55
+ tag_name: "Mapping Resource UID",
56
+ tag_key: 'MappingResourceUID',
57
+ tag_vr: [:UC],
58
+ tag_vm: ["1"],
59
+ tag_str: '(0008,0118)',
60
+ tag_sym: :mapping_resource_uid,
61
+ tag_ndm: '00080118',
62
+ tag_ary: [0x0008,0x0118],
63
+ tag_multiple: false,
54
64
  tag_note: ''}
55
65
  ].each do |data|
56
- it "Handle Data Element Data correctly" do
66
+ it "Handle Data Element Data correctly (#{data[:tag_name].inspect}-#{data[:tag_str]}-#{data[:tag_vr]})" do
57
67
  der = DcmDict::Dictionary::DataElementRecord.new(data)
58
68
  expect(der.tag_ps).to eq(data[:tag_ps])
59
69
  expect(der.tag_name).to eq(data[:tag_name])
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.3.0
4
+ version: 0.4.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: 2014-12-01 00:00:00.000000000 Z
11
+ date: 2015-02-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri
@@ -179,7 +179,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
179
179
  version: '0'
180
180
  requirements: []
181
181
  rubyforge_project:
182
- rubygems_version: 2.4.3
182
+ rubygems_version: 2.4.5
183
183
  signing_key:
184
184
  specification_version: 4
185
185
  summary: A simple way to handle DICOM Data Dictionary
@@ -210,4 +210,3 @@ test_files:
210
210
  - spec/dcm_dict/xml/uid_field_data_spec.rb
211
211
  - spec/data_element_sample_spec_helper.rb
212
212
  - Rakefile
213
- has_rdoc: