dcm_dict 0.3.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG +3 -0
- data/README.md +1 -1
- data/bin/dcm_dict_converter.rb +2 -2
- data/lib/dcm_dict/source_data/data_elements_data.rb +4 -0
- data/lib/dcm_dict/source_data/uid_values_data.rb +1 -0
- data/lib/dcm_dict/version.rb +2 -2
- data/spec/dcm_dict/dictionary/data_element_record_spec.rb +23 -13
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c197612bc95293d1a8b295442d9c3f8a7bd3816c
|
4
|
+
data.tar.gz: c575c6b68dc080e69e5d80142e51eb6af89e0990
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 62cce09ceba1eaa13122be316be380daf614385a0fbc45f9bfcf0a8eafd82a4f3de21c9b7d44c71f91adbded61a4c8023fdf5f967722694fe2e357dbcd7a09b0
|
7
|
+
data.tar.gz: 2b00ea365f83fd299da80e2f4d891bae7208396ad4dac56e3c2496d58b11e1a515be0bd4260b6448b5096c2cf555ce8b4e2b2ad3205f17c5ea547a1e552e88a9
|
data/CHANGELOG
CHANGED
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 **
|
270
|
+
Current library version is aligned to *DICOM Base Standard **2015a***
|
271
271
|
|
272
272
|
## Install
|
273
273
|
|
data/bin/dcm_dict_converter.rb
CHANGED
@@ -54,8 +54,8 @@ LICENSE_TEXT=<<END_LICENSE
|
|
54
54
|
END_LICENSE
|
55
55
|
|
56
56
|
class DcmDictConverter
|
57
|
-
Part6XmlUrl="
|
58
|
-
Part7XmlUrl="
|
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},
|
data/lib/dcm_dict/version.rb
CHANGED
@@ -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
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
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.
|
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:
|
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.
|
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:
|