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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6913da1c9c2ce23c5fef5d04bebd5120af9d9ef8
4
- data.tar.gz: d9f636b96e42b4e559afe325b465676aeabe65ab
3
+ metadata.gz: 9e08a67e751153b962cb8ebb2e29843018d0ca42
4
+ data.tar.gz: cdaa982b327877b2601a19249d889b91fc985d2a
5
5
  SHA512:
6
- metadata.gz: d191b1b1895a3659f322b5c5f3e62610f55ac844338700d045b29e16b204ce05005fcc849287e06db089e6141fe82409a6e039ea3b8eb45350f6a7663ba32929
7
- data.tar.gz: 4c05ab7dfa26ca38e7666caf575f0440b9f6291c3f9d295c1f30cb9588cc3ce8dd73c3a8aa2a7382c0a267784d827bfb9561a08e0ba28cceee3ee64f7a7d16e2
6
+ metadata.gz: 8dfe869ce6f0b7c3f56837f87edad7d9e002c32a2b578967b05c3a7a2ba661fc36bf40a52ec4b84a8b3338f7000ffea200b25dba078f2c0f710552f687f3f4b7
7
+ data.tar.gz: 7a2d5ddca89d736b823545a39dbc8cd705f773893f4ac8cfaabd859438b6343c26f4aa42e899f1a3a61cbfb6289ee0ac52b0f2f9ddce02b323c7779ddc37340d
@@ -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
@@ -11,5 +11,6 @@ module AthenaHealth
11
11
  include Endpoints::Providers
12
12
  include Endpoints::InsurancePackages
13
13
  include Endpoints::Encounters
14
+ include Endpoints::Configurations
14
15
  end
15
16
  end
@@ -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
@@ -1,3 +1,3 @@
1
1
  module AthenaHealth
2
- VERSION = '0.9.9'.freeze
2
+ VERSION = '1.0.0'.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.9.9
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-14 00:00:00.000000000 Z
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