roqua-healthy 1.1.7 → 1.1.8
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/get_old_mirth_processing_result +2 -2
- data/bin/get_xml_for_patient +2 -2
- data/bin/parse_local_xml +2 -2
- data/lib/roqua/healthy/a19/impulse_name_parser.rb +15 -0
- data/lib/roqua/healthy/a19/transformer.rb +5 -2
- data/lib/roqua/healthy/version.rb +1 -1
- data/roqua-healthy.gemspec +1 -1
- data/spec/fixtures/user_patient.xml +435 -35
- data/spec/fixtures/user_patient_with_gsm_and_email.xml +422 -41
- data/spec/fixtures/user_patient_with_maiden_name.xml +443 -52
- data/spec/integration/user_spec.rb +36 -36
- metadata +6 -5
@@ -2,70 +2,70 @@ require 'spec_helper'
|
|
2
2
|
|
3
3
|
describe 'Fetching A19 from USER' do
|
4
4
|
describe 'a patient' do
|
5
|
-
before { load_fixture 'user_patient', '
|
6
|
-
subject { Roqua::Healthy::A19.fetch("
|
5
|
+
before { load_fixture 'user_patient', '111111' }
|
6
|
+
subject { Roqua::Healthy::A19.fetch("111111") }
|
7
7
|
|
8
8
|
it { expect(subject[:status]).to eq('SUCCESS') }
|
9
9
|
it { expect(subject[:error]).to be_nil }
|
10
10
|
it { expect(subject[:source]).to eq('IMPULSE') }
|
11
|
-
it { expect(subject[:identities]).to eq([{ident:
|
12
|
-
it { expect(subject[:firstname]).to eq('
|
13
|
-
it { expect(subject[:initials]).to eq('
|
14
|
-
it { expect(subject[:lastname]).to eq('Achternaam') }
|
11
|
+
it { expect(subject[:identities]).to eq([{ident: "111111", authority: "PI"}, {ident: "111111", authority: "NNNLD"}]) }
|
12
|
+
it { expect(subject[:firstname]).to eq('Eerste') }
|
13
|
+
it { expect(subject[:initials]).to eq('E. T.') }
|
14
|
+
it { expect(subject[:lastname]).to eq('de Achternaam') }
|
15
15
|
it { expect(subject[:display_name]).to be_nil }
|
16
16
|
it { expect(subject[:email]).to be_nil }
|
17
17
|
it { expect(subject[:address_type]).to eq('L') }
|
18
|
-
it { expect(subject[:street]).to eq('
|
19
|
-
it { expect(subject[:city]).to eq('
|
20
|
-
it { expect(subject[:zipcode]).to eq('
|
21
|
-
it { expect(subject[:country]).to eq('
|
22
|
-
it { expect(subject[:birthdate]).to eq('
|
23
|
-
it { expect(subject[:gender]).to eq('
|
24
|
-
it { expect(subject[:phone_cell]).to
|
18
|
+
it { expect(subject[:street]).to eq('Van Straatstraat 8') }
|
19
|
+
it { expect(subject[:city]).to eq('GRONINGEN') }
|
20
|
+
it { expect(subject[:zipcode]).to eq('9711 XX') }
|
21
|
+
it { expect(subject[:country]).to eq('NL') }
|
22
|
+
it { expect(subject[:birthdate]).to eq('19511101') }
|
23
|
+
it { expect(subject[:gender]).to eq('F') }
|
24
|
+
it { expect(subject[:phone_cell]).to eq(nil) }
|
25
25
|
end
|
26
26
|
|
27
27
|
describe 'a patient with a maiden name' do
|
28
|
-
before { load_fixture 'user_patient_with_maiden_name', '
|
29
|
-
subject { Roqua::Healthy::A19.fetch("
|
28
|
+
before { load_fixture 'user_patient_with_maiden_name', '111115' }
|
29
|
+
subject { Roqua::Healthy::A19.fetch("111115") }
|
30
30
|
|
31
31
|
it { expect(subject[:status]).to eq('SUCCESS') }
|
32
32
|
it { expect(subject[:error]).to be_nil }
|
33
33
|
it { expect(subject[:source]).to eq('IMPULSE') }
|
34
|
-
it { expect(subject[:identities]).to eq([{ident:
|
35
|
-
it { expect(subject[:firstname]).to eq(
|
36
|
-
it { expect(subject[:initials]).to eq('
|
37
|
-
it { expect(subject[:lastname]).to eq('
|
34
|
+
it { expect(subject[:identities]).to eq([{ident: "111115", authority: "PI"}, {ident: "111111112", authority: "NNNLD"}]) }
|
35
|
+
it { expect(subject[:firstname]).to eq(nil) }
|
36
|
+
it { expect(subject[:initials]).to eq('D.') }
|
37
|
+
it { expect(subject[:lastname]).to eq('Meisjesnaam-Getrouwdenaam') }
|
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') }
|
41
|
-
it { expect(subject[:street]).to eq('
|
42
|
-
it { expect(subject[:city]).to eq('
|
43
|
-
it { expect(subject[:zipcode]).to eq('
|
44
|
-
it { expect(subject[:country]).to eq('
|
45
|
-
it { expect(subject[:birthdate]).to eq('
|
41
|
+
it { expect(subject[:street]).to eq('Wegweg 2') }
|
42
|
+
it { expect(subject[:city]).to eq('\'T DORP') }
|
43
|
+
it { expect(subject[:zipcode]).to eq('8999 FF') }
|
44
|
+
it { expect(subject[:country]).to eq('NL') }
|
45
|
+
it { expect(subject[:birthdate]).to eq('19200101') }
|
46
46
|
it { expect(subject[:gender]).to eq('F') }
|
47
47
|
it { expect(subject[:phone_cell]).to be_nil }
|
48
48
|
end
|
49
49
|
|
50
50
|
describe 'a patient with gsm number and email address' do
|
51
|
-
before { load_fixture 'user_patient_with_gsm_and_email', '
|
52
|
-
subject { Roqua::Healthy::A19.fetch("
|
51
|
+
before { load_fixture 'user_patient_with_gsm_and_email', '111111' }
|
52
|
+
subject { Roqua::Healthy::A19.fetch("111111") }
|
53
53
|
|
54
54
|
it { expect(subject[:status]).to eq('SUCCESS') }
|
55
55
|
it { expect(subject[:error]).to be_nil }
|
56
56
|
it { expect(subject[:source]).to eq('IMPULSE') }
|
57
|
-
it { expect(subject[:identities]).to eq([{ident:
|
58
|
-
it { expect(subject[:firstname]).to eq('
|
59
|
-
it { expect(subject[:initials]).to eq('
|
60
|
-
it { expect(subject[:lastname]).to eq("
|
57
|
+
it { expect(subject[:identities]).to eq([{ident: "111111", authority: "PI"}, {ident: "1111111", authority: "NNNLD"}]) }
|
58
|
+
it { expect(subject[:firstname]).to eq('Voornaam') }
|
59
|
+
it { expect(subject[:initials]).to eq('V. R.S.') }
|
60
|
+
it { expect(subject[:lastname]).to eq("Achternaam") }
|
61
61
|
it { expect(subject[:display_name]).to be_nil }
|
62
|
-
it { expect(subject[:email]).to eq('
|
62
|
+
it { expect(subject[:email]).to eq('test@roqua.nl') }
|
63
63
|
it { expect(subject[:address_type]).to eq('L') }
|
64
|
-
it { expect(subject[:street]).to eq('
|
65
|
-
it { expect(subject[:city]).to eq('
|
66
|
-
it { expect(subject[:zipcode]).to eq('
|
67
|
-
it { expect(subject[:country]).to eq('
|
68
|
-
it { expect(subject[:birthdate]).to eq('
|
64
|
+
it { expect(subject[:street]).to eq('Straatstraat 9') }
|
65
|
+
it { expect(subject[:city]).to eq('LELYSTAD') }
|
66
|
+
it { expect(subject[:zipcode]).to eq('8111 FF') }
|
67
|
+
it { expect(subject[:country]).to eq('NL') }
|
68
|
+
it { expect(subject[:birthdate]).to eq('19800101') }
|
69
69
|
it { expect(subject[:gender]).to eq('M') }
|
70
70
|
it { expect(subject[:phone_cell]).to eq('0611223344') }
|
71
71
|
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.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Marten Veldthuis
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-09-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -92,14 +92,14 @@ dependencies:
|
|
92
92
|
requirements:
|
93
93
|
- - "~>"
|
94
94
|
- !ruby/object:Gem::Version
|
95
|
-
version: 3.
|
95
|
+
version: 3.3.0
|
96
96
|
type: :development
|
97
97
|
prerelease: false
|
98
98
|
version_requirements: !ruby/object:Gem::Requirement
|
99
99
|
requirements:
|
100
100
|
- - "~>"
|
101
101
|
- !ruby/object:Gem::Version
|
102
|
-
version: 3.
|
102
|
+
version: 3.3.0
|
103
103
|
- !ruby/object:Gem::Dependency
|
104
104
|
name: yard
|
105
105
|
requirement: !ruby/object:Gem::Requirement
|
@@ -255,6 +255,7 @@ files:
|
|
255
255
|
- lib/roqua/healthy/a19/cdis_name_parser.rb
|
256
256
|
- lib/roqua/healthy/a19/correct_patient_check.rb
|
257
257
|
- lib/roqua/healthy/a19/fetcher.rb
|
258
|
+
- lib/roqua/healthy/a19/impulse_name_parser.rb
|
258
259
|
- lib/roqua/healthy/a19/name_parser.rb
|
259
260
|
- lib/roqua/healthy/a19/response_parser.rb
|
260
261
|
- lib/roqua/healthy/a19/response_validator.rb
|
@@ -323,7 +324,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
323
324
|
version: '0'
|
324
325
|
requirements: []
|
325
326
|
rubyforge_project:
|
326
|
-
rubygems_version: 2.
|
327
|
+
rubygems_version: 2.2.2
|
327
328
|
signing_key:
|
328
329
|
specification_version: 4
|
329
330
|
summary: Arranges communication between Mirth and RoQua
|