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 +4 -4
- data/lib/athena_health.rb +3 -0
- data/lib/athena_health/client.rb +1 -0
- data/lib/athena_health/endpoints/insurance_packages.rb +15 -0
- data/lib/athena_health/insurance_package.rb +14 -0
- data/lib/athena_health/insurance_package_collection.rb +5 -0
- data/lib/athena_health/version.rb +1 -1
- metadata +5 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c9571d37fb5566710cc181bcb1a177e53e932f78
|
4
|
+
data.tar.gz: 31be850d26591b8877dec5a5a940ee5084b7540c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9ef103c8ec98ce3337a925bee83f076691a14f06bb31be976470bf6b7d95f6ae43c811d7a906084baf8aefc8dad358de7829ce982ee35a3eaef74840edeca792
|
7
|
+
data.tar.gz: 67feb9a106c70c0c5dba53c838dd3820d902e706b67b0d9a33ea0d3ccbfad3a925497419b5b8ded1e43e4c1fc84c3cd549ef81f039fb8ac328d1fd7ff7d956a8
|
data/lib/athena_health.rb
CHANGED
@@ -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
|
data/lib/athena_health/client.rb
CHANGED
@@ -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
|
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.
|
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-
|
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
|