athena_health 0.8.2 → 0.8.3

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: 492bcc070fa7cc6e01ec6cba176b513bca95ec24
4
- data.tar.gz: 33d6c6323d4c4d31e26a200cf3f7dfa5cbd8cb01
3
+ metadata.gz: c9571d37fb5566710cc181bcb1a177e53e932f78
4
+ data.tar.gz: 31be850d26591b8877dec5a5a940ee5084b7540c
5
5
  SHA512:
6
- metadata.gz: 93be73a640a2ea9bf67d8a81e1c8cf5c9a5537fe5ac0712443dba69c7c99a468f823e0f9eb92563386ce8607bfd5a5e2a31c5b847c50ff0a1c304d2843bcdbd7
7
- data.tar.gz: aebc9680b7d8cf44451679079c0eb20bd62a20c912de36a61969d1d4397b286d76864252868aa6412d1bf9e84b25cd2edb3f657e88bd98e0dffbcc7140cb2bc2
6
+ metadata.gz: 9ef103c8ec98ce3337a925bee83f076691a14f06bb31be976470bf6b7d95f6ae43c811d7a906084baf8aefc8dad358de7829ce982ee35a3eaef74840edeca792
7
+ data.tar.gz: 67feb9a106c70c0c5dba53c838dd3820d902e706b67b0d9a33ea0d3ccbfad3a925497419b5b8ded1e43e4c1fc84c3cd549ef81f039fb8ac328d1fd7ff7d956a8
@@ -9,6 +9,7 @@ require 'athena_health/endpoints/departments'
9
9
  require 'athena_health/endpoints/patients'
10
10
  require 'athena_health/endpoints/appointments'
11
11
  require 'athena_health/endpoints/providers'
12
+ require 'athena_health/endpoints/insurance_packages'
12
13
  require 'athena_health/client'
13
14
  require 'athena_health/base_collection'
14
15
  require 'athena_health/base_model'
@@ -28,6 +29,8 @@ require 'athena_health/appointment_type'
28
29
  require 'athena_health/appointment_type_collection'
29
30
  require 'athena_health/appointment'
30
31
  require 'athena_health/appointment_collection'
32
+ require 'athena_health/insurance_package'
33
+ require 'athena_health/insurance_package_collection'
31
34
 
32
35
  module AthenaHealth
33
36
  end
@@ -9,5 +9,6 @@ module AthenaHealth
9
9
  include Endpoints::Patients
10
10
  include Endpoints::Appointments
11
11
  include Endpoints::Providers
12
+ include Endpoints::InsurancePackages
12
13
  end
13
14
  end
@@ -0,0 +1,15 @@
1
+ module AthenaHealth
2
+ module Endpoints
3
+ module InsurancePackages
4
+ def top_insurance_packages(practice_id:, params: {})
5
+ response = @api.call(
6
+ endpoint: "#{practice_id}/misc/topinsurancepackages",
7
+ method: :get,
8
+ params: params
9
+ )
10
+
11
+ InsurancePackageCollection.new(response)
12
+ end
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,14 @@
1
+ module AthenaHealth
2
+ class InsurancePackage < BaseModel
3
+ attribute :ranking, Integer
4
+ attribute :name, String
5
+ attribute :percentage, Float
6
+ attribute :insurancepackageid, Integer
7
+ attribute :phone, String
8
+ attribute :insuranceproducttypename, String
9
+ attribute :state, String
10
+ attribute :zip, String
11
+ attribute :city, String
12
+ attribute :address, String
13
+ end
14
+ end
@@ -0,0 +1,5 @@
1
+ module AthenaHealth
2
+ class InsurancePackageCollection < BaseCollection
3
+ attribute :insurancepackages, Array[InsurancePackage]
4
+ end
5
+ end
@@ -1,3 +1,3 @@
1
1
  module AthenaHealth
2
- VERSION = '0.8.2'.freeze
2
+ VERSION = '0.8.3'.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: 0.8.2
4
+ version: 0.8.3
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-02-25 00:00:00.000000000 Z
11
+ date: 2016-02-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -138,11 +138,14 @@ files:
138
138
  - lib/athena_health/department_collection.rb
139
139
  - lib/athena_health/endpoints/appointments.rb
140
140
  - lib/athena_health/endpoints/departments.rb
141
+ - lib/athena_health/endpoints/insurance_packages.rb
141
142
  - lib/athena_health/endpoints/patients.rb
142
143
  - lib/athena_health/endpoints/practices.rb
143
144
  - lib/athena_health/endpoints/providers.rb
144
145
  - lib/athena_health/error.rb
145
146
  - lib/athena_health/event.rb
147
+ - lib/athena_health/insurance_package.rb
148
+ - lib/athena_health/insurance_package_collection.rb
146
149
  - lib/athena_health/patient.rb
147
150
  - lib/athena_health/patient_collection.rb
148
151
  - lib/athena_health/patient_problem.rb