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.
@@ -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', '00000123' }
6
- subject { Roqua::Healthy::A19.fetch("00000123") }
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: '000123', authority: 'PI'}]) }
12
- it { expect(subject[:firstname]).to eq('Alice') }
13
- it { expect(subject[:initials]).to eq('A.B.') }
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('Straatnaam 37') }
19
- it { expect(subject[:city]).to eq('PLAATSNAAM') }
20
- it { expect(subject[:zipcode]).to eq('1234 AB') }
21
- it { expect(subject[:country]).to eq('6030') }
22
- it { expect(subject[:birthdate]).to eq('17070415') }
23
- it { expect(subject[:gender]).to eq('M') }
24
- it { expect(subject[:phone_cell]).to be_nil }
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', '00000123' }
29
- subject { Roqua::Healthy::A19.fetch("00000123") }
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: '00000123', authority: 'PI'}]) }
35
- it { expect(subject[:firstname]).to eq('Babette') }
36
- it { expect(subject[:initials]).to eq('A.B.C.') }
37
- it { expect(subject[:lastname]).to eq('Meisjes-naam-Achternaam') }
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('Straatnaam 37') }
42
- it { expect(subject[:city]).to eq('PLAATSNAAM') }
43
- it { expect(subject[:zipcode]).to eq('1234 AB') }
44
- it { expect(subject[:country]).to eq('6030') }
45
- it { expect(subject[:birthdate]).to eq('17070415') }
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', '00000033' }
52
- subject { Roqua::Healthy::A19.fetch("00000033") }
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: '00000033', authority: 'PI'}]) }
58
- it { expect(subject[:firstname]).to eq('Albert') }
59
- it { expect(subject[:initials]).to eq('A.') }
60
- it { expect(subject[:lastname]).to eq("Pati\u00EBnt") }
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('apatient@info.nl') }
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('Straatnaam 37') }
65
- it { expect(subject[:city]).to eq('PLAATSNAAM') }
66
- it { expect(subject[:zipcode]).to eq('1234 AB') }
67
- it { expect(subject[:country]).to eq('6030') }
68
- it { expect(subject[:birthdate]).to eq('17070415') }
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.7
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: 2014-11-21 00:00:00.000000000 Z
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.0.0.beta1
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.0.0.beta1
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.4.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