ruby-hl7 1.1.0 → 1.1.1

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.
@@ -0,0 +1,26 @@
1
+ # encoding: UTF-8
2
+ require 'spec_helper'
3
+
4
+ describe HL7::Message::Segment::SPM do
5
+ context 'general' do
6
+ before :all do
7
+ @base_spm = 'SPM|1|23456&EHR&2.16.840.1.113883.19.3.2.3&ISO^9700122&Lab&2.16.840.1.113883.19.3.1.6&ISO||122554006^Capillary blood specimen^SCT^BLDC^Blood capillary^HL70070^20080131^2.5.1||HEPA^Ammonium heparin^HL70371^^^^2.5.1|CAP^Capillary Specimen^HL70488^^^^2.5.1|181395001^Venous structure of digit^SCT^^^^20080731|||P^Patient^HL60369^^^^2.5.1|50^uL&Micro Liter&UCUM&&&&1.6|||||200808151030-0700|200808151100-0700'
8
+ end
9
+
10
+ it 'creates an SPM segment' do
11
+ lambda do
12
+ spm = HL7::Message::Segment::SPM.new( @base_spm )
13
+ spm.should_not be_nil
14
+ spm.to_s.should == @base_spm
15
+ end.should_not raise_error
16
+ end
17
+
18
+ it 'allows access to an SPM segment' do
19
+ lambda do
20
+ spm = HL7::Message::Segment::SPM.new( @base_spm )
21
+ spm.specimen_type.should == '122554006^Capillary blood specimen^SCT^BLDC^Blood capillary^HL70070^20080131^2.5.1'
22
+ spm.set_id.should == '1'
23
+ end.should_not raise_error
24
+ end
25
+ end
26
+ end
metadata CHANGED
@@ -1,41 +1,41 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-hl7
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mark Guzman
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-14 00:00:00.000000000 Z
11
+ date: 2014-09-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 10.1.0
19
+ version: 10.0.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - '>='
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: 10.1.0
26
+ version: 10.0.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rubyforge
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: 2.0.4
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: 2.0.4
41
41
  description: A simple library to parse and generate HL7 2.x messages
@@ -43,11 +43,20 @@ email: ruby-hl7@googlegroups.com
43
43
  executables: []
44
44
  extensions: []
45
45
  extra_rdoc_files:
46
- - README.rdoc
47
46
  - LICENSE
47
+ - README.rdoc
48
48
  files:
49
+ - ".gitignore"
50
+ - ".travis.yml"
51
+ - Gemfile
52
+ - Gemfile.lock
49
53
  - LICENSE
54
+ - NOTES.md
50
55
  - README.rdoc
56
+ - Rakefile
57
+ - VERSION
58
+ - VERSION.yml
59
+ - examples/proxy_server.rb
51
60
  - lib/core_ext/date_time.rb
52
61
  - lib/core_ext/string.rb
53
62
  - lib/message.rb
@@ -80,6 +89,33 @@ files:
80
89
  - lib/segments/spm.rb
81
90
  - lib/segments/zcf.rb
82
91
  - lib/test/hl7_messages.rb
92
+ - ruby-hl7.gemspec
93
+ - spec/basic_parsing_spec.rb
94
+ - spec/batch_parsing_spec.rb
95
+ - spec/child_segment_spec.rb
96
+ - spec/core_ext/date_time_spec.rb
97
+ - spec/default_segment_spec.rb
98
+ - spec/dynamic_segment_def_spec.rb
99
+ - spec/err_segment_spec.rb
100
+ - spec/evn_segment_spec.rb
101
+ - spec/msa_segment_spec.rb
102
+ - spec/msh_segment_spec.rb
103
+ - spec/nk1_segment_spec.rb
104
+ - spec/obr_segment_spec.rb
105
+ - spec/obx_segment_spec.rb
106
+ - spec/orc_segment_spec.rb
107
+ - spec/pid_segment_spec.rb
108
+ - spec/prd_segment_spec.rb
109
+ - spec/pv1_segment_spec.rb
110
+ - spec/rf1_segment_spec.rb
111
+ - spec/segment_field_spec.rb
112
+ - spec/segment_generator_spec.rb
113
+ - spec/segment_list_storage_spec.rb
114
+ - spec/segment_spec.rb
115
+ - spec/sft_segment_spec.rb
116
+ - spec/spec_helper.rb
117
+ - spec/speed_parsing_spec.rb
118
+ - spec/spm_segment_spec.rb
83
119
  - test_data/adt_a01.hl7
84
120
  - test_data/cerner/cerner_bordetella.hl7
85
121
  - test_data/cerner/cerner_en.hl7
@@ -110,27 +146,28 @@ files:
110
146
  - test_data/rqi_r04.hl7
111
147
  - test_data/test.hl7
112
148
  - test_data/test2.hl7
113
- homepage: https://github.com/ruby-hl7/ruby-hl7
149
+ homepage: http://github.com/ruby-hl7/ruby-hl7
114
150
  licenses: []
115
151
  metadata: {}
116
152
  post_install_message:
117
- rdoc_options: []
153
+ rdoc_options:
154
+ - "--charset=UTF-8"
118
155
  require_paths:
119
156
  - lib
120
157
  required_ruby_version: !ruby/object:Gem::Requirement
121
158
  requirements:
122
- - - '>='
159
+ - - ">="
123
160
  - !ruby/object:Gem::Version
124
161
  version: 1.8.6
125
162
  required_rubygems_version: !ruby/object:Gem::Requirement
126
163
  requirements:
127
- - - '>='
164
+ - - ">="
128
165
  - !ruby/object:Gem::Version
129
166
  version: '0'
130
167
  requirements: []
131
168
  rubyforge_project: ruby-hl7
132
- rubygems_version: 2.3.0
169
+ rubygems_version: 2.2.3
133
170
  signing_key:
134
- specification_version: 4
171
+ specification_version: 3
135
172
  summary: Ruby HL7 Library
136
173
  test_files: []