ruby-hl7 1.3.2 → 1.3.3

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: 0f5ead5ef17c9902d7eaa3cd1dd395c9a93563b5342cbf82c6e4430e7dd9d544
4
- data.tar.gz: cf6c1e622e6c319a4cfd522882f151b6ee1e13c1b8a56b3d573994f32294c571
3
+ metadata.gz: e12909d9bf4258faa015ede7da03afce19e915640b8aa240c99c993bf938acd3
4
+ data.tar.gz: 54bea819722c67aab4342ad667dc54b141ea6ac0bbb180070f467c12fb45f893
5
5
  SHA512:
6
- metadata.gz: 7b314809f29f718930bd306f4e7ebde28613e5f874cde1e214ea8b9a2d16c4902b31e5b3a8848ad25dca9499ea49eca2933b77e2edf6f8a4a41a8287b05a839c
7
- data.tar.gz: ece6c824cbf7fe70280af62ee2a2769015665f007261fe7b6472218d033c6d2644f9c93892838acc76193c1003f90988690fec551b76a22839df9ce93c2b7a31
6
+ metadata.gz: 119f5c5c4bb3063d3a6e6abcc50309590e677be55f2f75fd91c69a7907a9adbac247462573fe9e5973fc37cf8416c8ba0aabcc87ca81709cf56a557773d27429
7
+ data.tar.gz: 427934f749b5dde398e4e6c236472ad8e2cb514380945ed6f35bf99dd9b41448a9572ef438ddc247e229d7df82055f289c8a2966a06ee9087d82d0f2c20d0fee
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ruby-hl7 (1.3.2)
4
+ ruby-hl7 (1.3.3)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -10,8 +10,8 @@ GEM
10
10
  diff-lcs (1.3)
11
11
  docile (1.3.2)
12
12
  ffi (1.12.2-java)
13
- json (1.8.6)
14
- json (1.8.6-java)
13
+ json (2.5.1)
14
+ json (2.5.1-java)
15
15
  method_source (0.9.2)
16
16
  pry (0.12.2)
17
17
  coderay (~> 1.1.0)
@@ -23,8 +23,7 @@ GEM
23
23
  rake (13.0.1)
24
24
  rake-contrib (1.0.0)
25
25
  rake
26
- rdoc (3.12.2)
27
- json (~> 1.4)
26
+ rdoc (6.3.1)
28
27
  rspec (3.9.0)
29
28
  rspec-core (~> 3.9.0)
30
29
  rspec-expectations (~> 3.9.0)
@@ -56,7 +55,7 @@ DEPENDENCIES
56
55
  pry
57
56
  rake (>= 12.3.3)
58
57
  rake-contrib
59
- rdoc (~> 3.12)
58
+ rdoc (~> 6.3)
60
59
  rspec (>= 3.9.0)
61
60
  ruby-hl7!
62
61
  simplecov (= 0.16.1)
data/NOTES.md CHANGED
@@ -1,5 +1,15 @@
1
1
  ## Overview
2
2
 
3
+ **Version 1.3.3**
4
+ Update RDoc
5
+ Added TXA segment
6
+
7
+ https://github.com/ruby-hl7/ruby-hl7/pull/118
8
+ https://github.com/ruby-hl7/ruby-hl7/pull/117
9
+
10
+ Thanks to:
11
+ @Stratus3D and @rodrigofhm
12
+
3
13
  **Version 1.3.2**
4
14
  Added GT1 segment
5
15
  Updated dependencies
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.3.2
1
+ 1.3.3
data/lib/ruby-hl7.rb CHANGED
@@ -21,7 +21,7 @@ require 'stringio'
21
21
  require 'date'
22
22
 
23
23
  module HL7 # :nodoc:
24
- VERSION = '1.3.2'
24
+ VERSION = '1.3.3'
25
25
  def self.ParserConfig
26
26
  @parser_cfg ||= { :empty_segment_is_error => true }
27
27
  end
@@ -0,0 +1,28 @@
1
+ class HL7::Message::Segment::TXA < HL7::Message::Segment
2
+ add_field :set_id
3
+ add_field :document_type
4
+ add_field :document_content_presentation
5
+ add_field :activity_date_time
6
+ add_field :primary_activity_provider_code
7
+ add_field :origination_date_time
8
+ add_field :transcription_date_time
9
+ add_field :edit_date_time
10
+ add_field :originator_code
11
+ add_field :assigned_document_authenticator
12
+ add_field :transcriptionist_code
13
+ add_field :unique_document_number
14
+ add_field :parent_document_number
15
+ add_field :placer_order_number
16
+ add_field :filler_order_number
17
+ add_field :unique_document_file_name
18
+ add_field :document_completion_status
19
+ add_field :document_confidentiality_status
20
+ add_field :document_availability_status
21
+ add_field :document_storage_status
22
+ add_field :document_change_reason
23
+ add_field :authentication_person_time_stamp
24
+ add_field :distributed_copies_code
25
+ add_field :folder_assignment
26
+ add_field :document_title
27
+ add_field :agreed_due_date_time
28
+ end
data/ruby-hl7.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{ruby-hl7}
8
- s.version = "1.3.2"
8
+ s.version = "1.3.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Mark Guzman"]
@@ -31,7 +31,7 @@ Gem::Specification.new do |s|
31
31
  s.add_development_dependency 'bundler', '~> 1.17'
32
32
  s.add_development_dependency 'pry'
33
33
  s.add_development_dependency 'rake', '>= 12.3.3'
34
- s.add_development_dependency 'rdoc', '~> 3.12'
34
+ s.add_development_dependency 'rdoc', '~> 6.3'
35
35
  s.add_development_dependency 'rspec', '>= 3.9.0'
36
36
  s.add_development_dependency 'simplecov', '= 0.16.1'
37
37
  s.add_development_dependency 'simplecov-html', '~> 0.10.0'
@@ -0,0 +1,72 @@
1
+ # encoding: UTF-8
2
+ require 'spec_helper'
3
+
4
+ describe HL7::Message::Segment::TXA do
5
+ let(:segment) do
6
+ "TXA|1|AR|AP|20220611113300|1^Name|20220611|2022061110||1^Creator|" \
7
+ "1^Author|1^Typer|A^V02^UID^TC|A^V01^UID^TC|01|02|file.txt|C|P|AV|ST||" \
8
+ "2022061110|DC|AR|FileName|202206111011"
9
+ end
10
+ let(:filled_txa) { HL7::Message::Segment::TXA.new segment }
11
+
12
+ it 'allows access to an TXA segment' do
13
+ expect(filled_txa.set_id).to eq('1')
14
+ expect(filled_txa.document_type).to eq('AR')
15
+ expect(filled_txa.document_content_presentation).to eq('AP')
16
+ expect(filled_txa.activity_date_time).to eq('20220611113300')
17
+ expect(filled_txa.primary_activity_provider_code).to eq('1^Name')
18
+ expect(filled_txa.origination_date_time).to eq('20220611')
19
+ expect(filled_txa.transcription_date_time).to eq('2022061110')
20
+ expect(filled_txa.edit_date_time).to eq('')
21
+ expect(filled_txa.originator_code).to eq('1^Creator')
22
+ expect(filled_txa.assigned_document_authenticator).to eq('1^Author')
23
+ expect(filled_txa.transcriptionist_code).to eq('1^Typer')
24
+ expect(filled_txa.unique_document_number).to eq('A^V02^UID^TC')
25
+ expect(filled_txa.parent_document_number).to eq('A^V01^UID^TC')
26
+ expect(filled_txa.placer_order_number).to eq('01')
27
+ expect(filled_txa.filler_order_number).to eq('02')
28
+ expect(filled_txa.unique_document_file_name).to eq('file.txt')
29
+ expect(filled_txa.document_completion_status).to eq('C')
30
+ expect(filled_txa.document_confidentiality_status).to eq('P')
31
+ expect(filled_txa.document_availability_status).to eq('AV')
32
+ expect(filled_txa.document_storage_status).to eq('ST')
33
+ expect(filled_txa.document_change_reason).to eq('')
34
+ expect(filled_txa.authentication_person_time_stamp).to eq('2022061110')
35
+ expect(filled_txa.distributed_copies_code).to eq('DC')
36
+ expect(filled_txa.folder_assignment).to eq('AR')
37
+ expect(filled_txa.document_title).to eq('FileName')
38
+ expect(filled_txa.agreed_due_date_time).to eq('202206111011')
39
+ end
40
+
41
+ it 'allows creation of an TXA segment' do
42
+ txa = HL7::Message::Segment::TXA.new
43
+ txa.set_id = '1'
44
+ txa.document_type = 'AR'
45
+ txa.document_content_presentation = 'AP'
46
+ txa.activity_date_time = '20220611113300'
47
+ txa.primary_activity_provider_code = '1^Name'
48
+ txa.origination_date_time = '20220611'
49
+ txa.transcription_date_time = '2022061110'
50
+ txa.edit_date_time = ''
51
+ txa.originator_code = '1^Creator'
52
+ txa.assigned_document_authenticator = '1^Author'
53
+ txa.transcriptionist_code = '1^Typer'
54
+ txa.unique_document_number = 'A^V02^UID^TC'
55
+ txa.parent_document_number = 'A^V01^UID^TC'
56
+ txa.placer_order_number = '01'
57
+ txa.filler_order_number = '02'
58
+ txa.unique_document_file_name = 'file.txt'
59
+ txa.document_completion_status = 'C'
60
+ txa.document_confidentiality_status = 'P'
61
+ txa.document_availability_status = 'AV'
62
+ txa.document_storage_status = 'ST'
63
+ txa.document_change_reason = ''
64
+ txa.authentication_person_time_stamp = '2022061110'
65
+ txa.distributed_copies_code = 'DC'
66
+ txa.folder_assignment = 'AR'
67
+ txa.document_title = 'FileName'
68
+ txa.agreed_due_date_time = '202206111011'
69
+
70
+ expect(txa.to_s).to eq(segment)
71
+ end
72
+ end
metadata CHANGED
@@ -1,11 +1,11 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-hl7
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.2
4
+ version: 1.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mark Guzman
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
  date: 2014-09-09 00:00:00.000000000 Z
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '3.12'
61
+ version: '6.3'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '3.12'
68
+ version: '6.3'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rspec
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -186,6 +186,7 @@ files:
186
186
  - lib/segments/sft.rb
187
187
  - lib/segments/spm.rb
188
188
  - lib/segments/tq1.rb
189
+ - lib/segments/txa.rb
189
190
  - lib/test/hl7_messages.rb
190
191
  - ruby-hl7.gemspec
191
192
  - spec/ail_segment_spec.rb
@@ -226,6 +227,7 @@ files:
226
227
  - spec/spec_helper.rb
227
228
  - spec/speed_parsing_spec.rb
228
229
  - spec/spm_segment_spec.rb
230
+ - spec/txa_segment_spec.rb
229
231
  - test_data/adt_a01.hl7
230
232
  - test_data/cerner/cerner_bordetella.hl7
231
233
  - test_data/cerner/cerner_en.hl7
@@ -260,7 +262,7 @@ homepage: http://github.com/ruby-hl7/ruby-hl7
260
262
  licenses:
261
263
  - MIT
262
264
  metadata: {}
263
- post_install_message:
265
+ post_install_message:
264
266
  rdoc_options:
265
267
  - "--charset=UTF-8"
266
268
  require_paths:
@@ -276,8 +278,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
276
278
  - !ruby/object:Gem::Version
277
279
  version: '0'
278
280
  requirements: []
279
- rubygems_version: 3.0.4
280
- signing_key:
281
+ rubygems_version: 3.1.6
282
+ signing_key:
281
283
  specification_version: 4
282
284
  summary: Ruby HL7 Library
283
285
  test_files: []