athena_health 0.9.9 → 1.0.0
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 +2 -0
- data/lib/athena_health/client.rb +1 -0
- data/lib/athena_health/endpoints/configurations.rb +15 -0
- data/lib/athena_health/facility.rb +14 -0
- data/lib/athena_health/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9e08a67e751153b962cb8ebb2e29843018d0ca42
|
4
|
+
data.tar.gz: cdaa982b327877b2601a19249d889b91fc985d2a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8dfe869ce6f0b7c3f56837f87edad7d9e002c32a2b578967b05c3a7a2ba661fc36bf40a52ec4b84a8b3338f7000ffea200b25dba078f2c0f710552f687f3f4b7
|
7
|
+
data.tar.gz: 7a2d5ddca89d736b823545a39dbc8cd705f773893f4ac8cfaabd859438b6343c26f4aa42e899f1a3a61cbfb6289ee0ac52b0f2f9ddce02b323c7779ddc37340d
|
data/lib/athena_health.rb
CHANGED
@@ -11,6 +11,7 @@ require 'athena_health/endpoints/appointments'
|
|
11
11
|
require 'athena_health/endpoints/providers'
|
12
12
|
require 'athena_health/endpoints/insurance_packages'
|
13
13
|
require 'athena_health/endpoints/encounters'
|
14
|
+
require 'athena_health/endpoints/configurations'
|
14
15
|
require 'athena_health/client'
|
15
16
|
require 'athena_health/base_collection'
|
16
17
|
require 'athena_health/base_model'
|
@@ -48,6 +49,7 @@ require 'athena_health/prescription'
|
|
48
49
|
require 'athena_health/prescription_collection'
|
49
50
|
require 'athena_health/document'
|
50
51
|
require 'athena_health/document_collection'
|
52
|
+
require 'athena_health/facility'
|
51
53
|
|
52
54
|
module AthenaHealth
|
53
55
|
end
|
data/lib/athena_health/client.rb
CHANGED
@@ -0,0 +1,15 @@
|
|
1
|
+
module AthenaHealth
|
2
|
+
module Endpoints
|
3
|
+
module Configurations
|
4
|
+
def all_facilities(practice_id:, department_id:, order_type:, params: {})
|
5
|
+
response = @api.call(
|
6
|
+
endpoint: "#{practice_id}/chart/configuration/facilities",
|
7
|
+
method: :get,
|
8
|
+
params: params.merge!(departmentid: department_id, ordertype: order_type)
|
9
|
+
)
|
10
|
+
|
11
|
+
response.map {|facility| AthenaHealth::Facility.new(facility) }
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
module AthenaHealth
|
2
|
+
class Facility < BaseModel
|
3
|
+
attribute :facilityid, Integer
|
4
|
+
attribute :name, String
|
5
|
+
attribute :city, String
|
6
|
+
attribute :pharmacytype, String
|
7
|
+
attribute :faxnumber, String
|
8
|
+
attribute :address, String
|
9
|
+
attribute :distance, String
|
10
|
+
attribute :zipcode, String
|
11
|
+
attribute :state, String
|
12
|
+
attribute :phonenumber, 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.
|
4
|
+
version: 1.0.0
|
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-04-
|
11
|
+
date: 2016-04-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -143,6 +143,7 @@ files:
|
|
143
143
|
- lib/athena_health/encounter.rb
|
144
144
|
- lib/athena_health/encounter_collection.rb
|
145
145
|
- lib/athena_health/endpoints/appointments.rb
|
146
|
+
- lib/athena_health/endpoints/configurations.rb
|
146
147
|
- lib/athena_health/endpoints/departments.rb
|
147
148
|
- lib/athena_health/endpoints/encounters.rb
|
148
149
|
- lib/athena_health/endpoints/insurance_packages.rb
|
@@ -151,6 +152,7 @@ files:
|
|
151
152
|
- lib/athena_health/endpoints/providers.rb
|
152
153
|
- lib/athena_health/error.rb
|
153
154
|
- lib/athena_health/event.rb
|
155
|
+
- lib/athena_health/facility.rb
|
154
156
|
- lib/athena_health/insurance_package.rb
|
155
157
|
- lib/athena_health/insurance_package_collection.rb
|
156
158
|
- lib/athena_health/lab_result.rb
|