roqua-healthy 1.1.6 → 1.1.7
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/client.rb +2 -2
- data/lib/roqua/healthy/version.rb +1 -1
- data/roqua-healthy.gemspec +1 -1
- data/spec/fixtures/medo_patient.xml +4 -0
- data/spec/integration/medo_spec.rb +3 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d242737c6ab0e73bbf5ce97ba1b94f5294e460f8
|
4
|
+
data.tar.gz: 60a2a253d212fe09e7b3e051361c5a9c560ce6c8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a930d8b55130a248c0a6af93318f2e95be1305793aa25c44d3b13b37d82c903f26e7074ca369a4c8cfb7600a5648f45087c0487ab9c3c0cf40f7e5160b6b7757
|
7
|
+
data.tar.gz: f70a6e89247c82b83193063f9771df2dfdbeefc4b1a25f79d68cbc2d474008005cd90cc7f556e171c7d8b3ebd7c776458b64cb55a1f6f41ca2f69aa01a990f38
|
data/ChangeLog.md
CHANGED
data/lib/roqua/healthy/client.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
module Roqua
|
2
2
|
module Healthy
|
3
3
|
class Client
|
4
|
-
include ::Roqua::
|
4
|
+
include ::Roqua::Support::Instrumentation
|
5
5
|
|
6
6
|
attr_accessor :a19_endpoint
|
7
7
|
|
@@ -14,7 +14,7 @@ module Roqua
|
|
14
14
|
end
|
15
15
|
|
16
16
|
def fetch_a19(patient_id)
|
17
|
-
|
17
|
+
with_instrumentation 'hl7.a19', patient_id: patient_id do
|
18
18
|
message = A19::Fetcher.new(patient_id, self).fetch
|
19
19
|
patient = A19::Transformer.new(message).to_patient
|
20
20
|
patient
|
data/roqua-healthy.gemspec
CHANGED
@@ -19,7 +19,7 @@ Gem::Specification.new do |gem|
|
|
19
19
|
|
20
20
|
gem.add_dependency 'activesupport', '>= 3.2', '< 5.0'
|
21
21
|
gem.add_dependency 'addressable', '~> 2.3'
|
22
|
-
gem.add_dependency 'roqua-support', '~> 0.1.
|
22
|
+
gem.add_dependency 'roqua-support', '~> 0.1.18'
|
23
23
|
|
24
24
|
gem.add_development_dependency 'bundler', '~> 1.0'
|
25
25
|
gem.add_development_dependency 'rake', '~> 10.0'
|
@@ -1,5 +1,6 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
|
+
# rubocop:disable Blocks,BlockAlignment
|
3
4
|
describe 'Fetching A19 from Medo' do
|
4
5
|
describe 'a patient' do
|
5
6
|
before { load_fixture 'medo_patient', 'md-cdae5d100d8e0131d2623c075478eb56' }
|
@@ -8,7 +9,8 @@ describe 'Fetching A19 from Medo' do
|
|
8
9
|
it { expect(subject[:status]).to eq('SUCCESS') }
|
9
10
|
it { expect(subject[:error]).to be_nil }
|
10
11
|
it { expect(subject[:source]).to eq('RGOC') }
|
11
|
-
it { expect(subject[:identities]).to eq([{ident: 'md-cdae5d100d8e0131d2623c075478eb56', authority: 'epd'}
|
12
|
+
it { expect(subject[:identities]).to eq([{ident: 'md-cdae5d100d8e0131d2623c075478eb56', authority: 'epd'},
|
13
|
+
{ident: 'research-id-123', authority: 'medo-research-number'}]) }
|
12
14
|
it { expect(subject[:firstname]).to eq('Jan') }
|
13
15
|
it { expect(subject[:initials]).to eq('J.') }
|
14
16
|
it { expect(subject[:lastname]).to eq('Fictief') }
|
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.7
|
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-11-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -50,14 +50,14 @@ dependencies:
|
|
50
50
|
requirements:
|
51
51
|
- - "~>"
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version: 0.1.
|
53
|
+
version: 0.1.18
|
54
54
|
type: :runtime
|
55
55
|
prerelease: false
|
56
56
|
version_requirements: !ruby/object:Gem::Requirement
|
57
57
|
requirements:
|
58
58
|
- - "~>"
|
59
59
|
- !ruby/object:Gem::Version
|
60
|
-
version: 0.1.
|
60
|
+
version: 0.1.18
|
61
61
|
- !ruby/object:Gem::Dependency
|
62
62
|
name: bundler
|
63
63
|
requirement: !ruby/object:Gem::Requirement
|
@@ -323,7 +323,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
323
323
|
version: '0'
|
324
324
|
requirements: []
|
325
325
|
rubyforge_project:
|
326
|
-
rubygems_version: 2.
|
326
|
+
rubygems_version: 2.4.2
|
327
327
|
signing_key:
|
328
328
|
specification_version: 4
|
329
329
|
summary: Arranges communication between Mirth and RoQua
|