roqua-healthy 1.1.1 → 1.1.2
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/lib/roqua/healthy/a19/transformer.rb +5 -0
- data/lib/roqua/healthy/version.rb +1 -1
- data/spec/fixtures/cdis_jan_fictief.xml +1 -1
- data/spec/integration/cdis_spec.rb +1 -1
- data/spec/integration/comez_spec.rb +1 -1
- data/spec/integration/user_spec.rb +1 -1
- 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: e603a289862cc5ed41a951e56e040169cb27f3ad
|
4
|
+
data.tar.gz: e271603c076b1a9399f812aae6e5717dec953913
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d68bf8cd67c0037c49a6538c57b6761aeb00b4908892316f5e25560c7e82a0719d5ed9a61ce1cfbed4c917241e3e709b779b1f96d38ba7afe870f819ea80fcf9
|
7
|
+
data.tar.gz: fb6e76356ec6015f61ad7d9ba7da752b61e6ac3d4cc39e72f8e9c274946dfdd12418f7037f7799d6ae2dfe7ec0e12f83bed193a6d157fb34cd3bdd728a723a1a
|
data/ChangeLog.md
CHANGED
@@ -73,6 +73,11 @@ module Roqua
|
|
73
73
|
phone_cell_record = message.fetch('PID').fetch('PID.13').find do |record|
|
74
74
|
record.fetch('PID.13.2', :unknown_type_of_phone_record) == 'ORN'
|
75
75
|
end
|
76
|
+
|
77
|
+
phone_cell_record ||= message.fetch('PID').fetch('PID.13').find do |record|
|
78
|
+
record.fetch('PID.13.1', '') =~ /\A06/
|
79
|
+
end
|
80
|
+
|
76
81
|
return nil unless phone_cell_record
|
77
82
|
|
78
83
|
phone_cell_record.fetch('PID.13.1', "")
|
@@ -21,7 +21,7 @@ describe 'Fetching A19 from CDIS' do
|
|
21
21
|
it { expect(subject[:country]).to eq('') }
|
22
22
|
it { expect(subject[:birthdate]).to eq('19800101') }
|
23
23
|
it { expect(subject[:gender]).to eq('M') }
|
24
|
-
it { expect(subject[:phone_cell]).to
|
24
|
+
it { expect(subject[:phone_cell]).to eq('06-12345678') }
|
25
25
|
end
|
26
26
|
|
27
27
|
describe 'the patient Piet Fictief' do
|
@@ -21,6 +21,6 @@ describe 'Fetching A19 from Comez' do
|
|
21
21
|
it { expect(subject[:country]).to eq('NL') }
|
22
22
|
it { expect(subject[:birthdate]).to eq('17070415') }
|
23
23
|
it { expect(subject[:gender]).to eq('F') }
|
24
|
-
it { expect(subject[:phone_cell]).to
|
24
|
+
it { expect(subject[:phone_cell]).to eq('0612345678mdr') }
|
25
25
|
end
|
26
26
|
end
|
@@ -67,6 +67,6 @@ describe 'Fetching A19 from USER' do
|
|
67
67
|
it { expect(subject[:country]).to eq('6030') }
|
68
68
|
it { expect(subject[:birthdate]).to eq('17070415') }
|
69
69
|
it { expect(subject[:gender]).to eq('M') }
|
70
|
-
it { expect(subject[:phone_cell]).to
|
70
|
+
it { expect(subject[:phone_cell]).to eq('0611223344') }
|
71
71
|
end
|
72
72
|
end
|
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.2
|
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-03-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|