roqua-healthy 1.1.5 → 1.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ChangeLog.md +4 -0
- data/bin/parse_local_xml +2 -2
- data/lib/roqua/healthy/a19/cdis_name_parser.rb +2 -2
- data/lib/roqua/healthy/a19/name_parser.rb +1 -1
- data/lib/roqua/healthy/version.rb +1 -1
- data/spec/integration/cdis_spec.rb +2 -2
- data/spec/integration/user_spec.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 689b3f9b5d71c11bea468ce05a820b1e276cb048
|
4
|
+
data.tar.gz: 58c43b3aa5be15936c51e4c24916642e16a9398f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b29a20d431090e462b0bdd8afa4574d484ec9e14e3946ca8edb3a02d281d536d84ac7741e1fd3bc046148ffa4bd30164fe9e1f1e9f08eea99f720dc7edaab8b1
|
7
|
+
data.tar.gz: f68cb0a4d89aa9550f76c4bb555627eb26c556ba4c83080681a0bb9664cd90ed943d715b4edd80d4880ff06d2a84db5f858d89e573a415482a603efec2790da9
|
data/ChangeLog.md
CHANGED
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
|
@@ -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('
|
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.
|
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-
|
11
|
+
date: 2014-08-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|