athena_health 1.0.17 → 1.0.18
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 50f33e38676b5b21a373d7e8ecdfd68e6535c3a2
|
4
|
+
data.tar.gz: b2050b29a24ffa65b6edfce716986af04fc7fb72
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d89b6ca5fb00c181b5a8f877aaff4d05f024129fe87fea9206c25e29b088dc201487adff318bd75aa400326b3ec58a757792f3bb1d79d4b4267c3c7d83ee8055
|
7
|
+
data.tar.gz: d99e80b915783403bd4488c059ef7ed125a4d4da745a99215a6799432d8da80812d00bc9a9904683e234c22320835877dc04809aa20c664647e41db64a654898
|
data/lib/athena_health.rb
CHANGED
@@ -59,6 +59,8 @@ require 'athena_health/note'
|
|
59
59
|
require 'athena_health/note_collection'
|
60
60
|
require 'athena_health/template'
|
61
61
|
require 'athena_health/social_history'
|
62
|
+
require 'athena_health/insurance'
|
63
|
+
require 'athena_health/insurance_collection'
|
62
64
|
|
63
65
|
module AthenaHealth
|
64
66
|
end
|
@@ -30,6 +30,20 @@ module AthenaHealth
|
|
30
30
|
|
31
31
|
response.map {|allergy| AthenaHealth::Allergy.new(allergy) }
|
32
32
|
end
|
33
|
+
|
34
|
+
def all_insurances(practice_id:, plan_name:, member_id:, state:, params: {})
|
35
|
+
response = @api.call(
|
36
|
+
endpoint: "#{practice_id}/insurancepackages",
|
37
|
+
method: :get,
|
38
|
+
params: params.merge!(
|
39
|
+
insuranceplanname: plan_name,
|
40
|
+
memberid: member_id,
|
41
|
+
stateofcoverage: state
|
42
|
+
)
|
43
|
+
)
|
44
|
+
|
45
|
+
AthenaHealth::InsuranceCollection.new(response)
|
46
|
+
end
|
33
47
|
end
|
34
48
|
end
|
35
49
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: athena_health
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.18
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mateusz Urbański
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-06-
|
11
|
+
date: 2016-06-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -140,6 +140,8 @@ files:
|
|
140
140
|
- lib/athena_health/error.rb
|
141
141
|
- lib/athena_health/event.rb
|
142
142
|
- lib/athena_health/facility.rb
|
143
|
+
- lib/athena_health/insurance.rb
|
144
|
+
- lib/athena_health/insurance_collection.rb
|
143
145
|
- lib/athena_health/insurance_package.rb
|
144
146
|
- lib/athena_health/insurance_package_collection.rb
|
145
147
|
- lib/athena_health/lab_result.rb
|