roqua-healthy 1.1.5 → 1.1.6

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: 3592ec2e660920a456d96a84c0592a2e06feb6a6
4
- data.tar.gz: 314df1d2cc8921c18b68e30b19f29d09047273b3
3
+ metadata.gz: 689b3f9b5d71c11bea468ce05a820b1e276cb048
4
+ data.tar.gz: 58c43b3aa5be15936c51e4c24916642e16a9398f
5
5
  SHA512:
6
- metadata.gz: 389a5a8552e049f2cbec4028ca093928625eea1eb8f56740a0b50db01767e5e8658d0a85b8d8d22621e7729a49aab21b146701028d905622878f7a4e1462a070
7
- data.tar.gz: edd69073fd2923ea17007687dd81b0c4cbb0c30200a3dea2fb4d9d57fc7ba05521a8e3478067d600304e6a2bf5b9dbe1f60166b00c07de7a79bf670d5348044c
6
+ metadata.gz: b29a20d431090e462b0bdd8afa4574d484ec9e14e3946ca8edb3a02d281d536d84ac7741e1fd3bc046148ffa4bd30164fe9e1f1e9f08eea99f720dc7edaab8b1
7
+ data.tar.gz: f68cb0a4d89aa9550f76c4bb555627eb26c556ba4c83080681a0bb9664cd90ed943d715b4edd80d4880ff06d2a84db5f858d89e573a415482a603efec2790da9
data/ChangeLog.md CHANGED
@@ -1,3 +1,7 @@
1
+ ### 1.1.6
2
+
3
+ * For CDIS name parser, now return last name that includes maiden name
4
+
1
5
  ### 1.1.5
2
6
 
3
7
  * Added support for QAK segments that signal that a patient record was not found
data/bin/parse_local_xml CHANGED
@@ -1,9 +1,9 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- require 'healthy'
3
+ require 'roqua-healthy'
4
4
  require 'ap'
5
5
 
6
6
  body = ARGF.read
7
7
  message = Hash.from_xml(body).fetch("HL7Message") { Hash.new }
8
8
 
9
- ap Healthy::A19::Transformer.new(message).to_patient
9
+ ap Roqua::Healthy::A19::Transformer.new(message).to_patient
@@ -15,9 +15,9 @@ module Roqua
15
15
  end
16
16
 
17
17
  def lastname
18
- names[:legal].fetch('PID.5.1').fetch('PID.5.1.3')
18
+ names[:legal].fetch('PID.5.1').fetch('PID.5.1.1')
19
19
  end
20
20
  end
21
21
  end
22
22
  end
23
- end
23
+ end
@@ -49,4 +49,4 @@ module Roqua
49
49
  end
50
50
  end
51
51
  end
52
- end
52
+ end
@@ -1,6 +1,6 @@
1
1
  module Roqua
2
2
  module Healthy
3
3
  # healthy version
4
- VERSION = "1.1.5"
4
+ VERSION = "1.1.6"
5
5
  end
6
6
  end
@@ -80,7 +80,7 @@ describe 'Fetching A19 from CDIS' do
80
80
  it { expect(subject[:identities]).to eq([{ident: "1234", authority: "PI"}]) }
81
81
  it { expect(subject[:firstname]).to eq('T.') }
82
82
  it { expect(subject[:initials]).to eq('T.') }
83
- it { expect(subject[:lastname]).to eq('Test') }
83
+ it { expect(subject[:lastname]).to eq('Tester') }
84
84
  it { expect(subject[:display_name]).to eq(nil) }
85
85
  it { expect(subject[:email]).to eq(nil) }
86
86
  it { expect(subject[:address_type]).to eq('M') }
@@ -92,4 +92,4 @@ describe 'Fetching A19 from CDIS' do
92
92
  it { expect(subject[:gender]).to eq('M') }
93
93
  it { expect(subject[:phone_cell]).to eq(nil) }
94
94
  end
95
- end
95
+ end
@@ -24,7 +24,7 @@ describe 'Fetching A19 from USER' do
24
24
  it { expect(subject[:phone_cell]).to be_nil }
25
25
  end
26
26
 
27
- describe 'a patient' do
27
+ describe 'a patient with a maiden name' do
28
28
  before { load_fixture 'user_patient_with_maiden_name', '00000123' }
29
29
  subject { Roqua::Healthy::A19.fetch("00000123") }
30
30
 
@@ -34,7 +34,7 @@ describe 'Fetching A19 from USER' do
34
34
  it { expect(subject[:identities]).to eq([{ident: '00000123', authority: 'PI'}]) }
35
35
  it { expect(subject[:firstname]).to eq('Babette') }
36
36
  it { expect(subject[:initials]).to eq('A.B.C.') }
37
- it { expect(subject[:lastname]).to eq('Achternaam') }
37
+ it { expect(subject[:lastname]).to eq('Meisjes-naam-Achternaam') }
38
38
  it { expect(subject[:display_name]).to be_nil }
39
39
  it { expect(subject[:email]).to be_nil }
40
40
  it { expect(subject[:address_type]).to eq('L') }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: roqua-healthy
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.5
4
+ version: 1.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marten Veldthuis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-05-08 00:00:00.000000000 Z
11
+ date: 2014-08-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport