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: 22e5ec1ea84b98db48810c0793c7c9ae28e70230
4
- data.tar.gz: ddac79b9e6be3655e97097f2c967f390106e0e6d
3
+ metadata.gz: 50f33e38676b5b21a373d7e8ecdfd68e6535c3a2
4
+ data.tar.gz: b2050b29a24ffa65b6edfce716986af04fc7fb72
5
5
  SHA512:
6
- metadata.gz: 79dfc2a848bb3a467ae3118ddb7392933c83884ccb8769bd48badba777e1245096c91a559644f569909bf9cbd3dd4338c1c93aaaa240b5d8dcc2487592d91e84
7
- data.tar.gz: ff7619086646f986dc219a473a7c4a7a585483959786ac9d91bfd7d0f26977cc3d2cb8d3148c165cb721844dfe2ae3a2bd625c5a7f513daaec42c0545885f726
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
@@ -0,0 +1,8 @@
1
+ module AthenaHealth
2
+ class Insurance < BaseModel
3
+ attribute :affiliations, Array
4
+ attribute :insuranceplanname, String
5
+ attribute :insurancepackageid, Integer
6
+ attribute :addresslist, Array
7
+ end
8
+ end
@@ -0,0 +1,5 @@
1
+ module AthenaHealth
2
+ class InsuranceCollection < BaseCollection
3
+ attribute :insurances, Array[Insurance]
4
+ end
5
+ end
@@ -1,3 +1,3 @@
1
1
  module AthenaHealth
2
- VERSION = '1.0.17'.freeze
2
+ VERSION = '1.0.18'.freeze
3
3
  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.17
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-01 00:00:00.000000000 Z
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