athena_health 1.0.46 → 1.0.48

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
- SHA1:
3
- metadata.gz: 81657b426e89992c3a8bec56ab0e3deb98815ec2
4
- data.tar.gz: 6f943ca727c28761dc4552196ff798bd15bc1636
2
+ SHA256:
3
+ metadata.gz: 0a3db01db3800d67cecaf5fa22f8bf950464f40a5462cd7159dee81baf3ca070
4
+ data.tar.gz: 86e9a28cefe5c061cd6ae3ec502f802722d5fcbbc79b1dcff0382b9218753ce7
5
5
  SHA512:
6
- metadata.gz: d92cc56c7cb429ab7c6d8f3a557eb4af171bef01dfdd64a6691e3aa81c28d459632dd6cfaad95ee63411dd9dc8f840faf021d485eaffa11f4587a9cd848db8b6
7
- data.tar.gz: 950e7995a6a889a21b7671e384a8b5d17a210c813510001b26a3a63d1ac63b838ae67abfb7ca476ad9bb7061f2a3cccb898fba7385d0a80b662a6ea68faa87fc
6
+ metadata.gz: 1e65a0d9adc3602a19335331a2d5442158b619a4182f80870dece99e8c062e348b9ad1317bcbfb636d9bdd0750475708dd72660537409dfbc323f7fd7afabbfa
7
+ data.tar.gz: 634976ef4750d4ebba167e92f965593844e6e15a70c4c91275e95838563d01559cee8deb8a7c7535ed0006b3e6d48561ff24d02580d93589dcbf99e03daf89b6
data/README.md CHANGED
@@ -4,4 +4,34 @@
4
4
 
5
5
  # AthenaHealth
6
6
 
7
- Ruby wrapper for Athenahealth API.
7
+ Ruby wrapper for [Athenahealth API](http://www.athenahealth.com/developer-portal).
8
+
9
+ ## Examples
10
+
11
+ For some examples of how to use this library, check out [the project wiki](https://github.com/HealthTechDevelopers/athena_health/wiki).
12
+
13
+ ## Contributing
14
+
15
+ ### Local development
16
+
17
+ - Check out the repository
18
+ - Ensure you have Ruby and the Bundler gem installed
19
+ - Install the gem dependencies with `bundle`
20
+ - Setup Environment Variables before testing new endpoints, you'll need the following:
21
+ - ATHENA_TEST_KEY
22
+ - ATHENA_TEST_SECRET
23
+ - ATHENA_TEST_ACCESS_TOKEN
24
+
25
+ #### Testing
26
+
27
+ You can run all of the tests using `rake`.
28
+
29
+ ### Overview
30
+
31
+ Contributions from the community are very welcome, including but not limited to new endpoints, new/better documentation and refactoring.
32
+
33
+ Forking the repo and submitting pull requests is just fine.
34
+
35
+ There is no specific roadmap and so far features have been added when the community needed them.
36
+
37
+ We have tried to have all the versions be backward compatible so far. If we're going to have breaking changes, we can revisit when we have a pull request.
@@ -30,6 +30,7 @@ require 'athena_health/provider_collection'
30
30
  require 'athena_health/appointment_type'
31
31
  require 'athena_health/appointment_type_collection'
32
32
  require 'athena_health/appointment'
33
+ require 'athena_health/appointment_waitlist'
33
34
  require 'athena_health/appointment_collection'
34
35
  require 'athena_health/insurance_package'
35
36
  require 'athena_health/insurance_package_collection'
@@ -40,6 +41,7 @@ require 'athena_health/encounter_collection'
40
41
  require 'athena_health/encounter_summary'
41
42
  require 'athena_health/order'
42
43
  require 'athena_health/order_collection'
44
+ require 'athena_health/order_type'
43
45
  require 'athena_health/analyte'
44
46
  require 'athena_health/analyte_collection'
45
47
  require 'athena_health/lab_result'
@@ -0,0 +1,17 @@
1
+ module AthenaHealth
2
+ class AppointmentWaitlist < BaseModel
3
+ attribute :allowanydepartment, Boolean
4
+ attribute :appointmentid, Integer
5
+ attribute :appointmenttypeid, Integer
6
+ attribute :created, String
7
+ attribute :dayofweekids, Array
8
+ attribute :departmentid, Integer
9
+ attribute :hourfrom, Integer
10
+ attribute :hourto, Integer
11
+ attribute :note, String
12
+ attribute :patientid, Integer
13
+ attribute :priority, String
14
+ attribute :providerid, Integer
15
+ attribute :waitlistid, Integer
16
+ end
17
+ end
@@ -236,6 +236,14 @@ module AthenaHealth
236
236
 
237
237
  AppointmentCollection.new(response)
238
238
  end
239
+
240
+ def create_appointment_waitlist(practice_id:, params: {})
241
+ @api.call(
242
+ endpoint: "#{practice_id}/appointments/waitlist",
243
+ method: :post,
244
+ body: params
245
+ )
246
+ end
239
247
  end
240
248
  end
241
249
  end
@@ -44,6 +44,16 @@ module AthenaHealth
44
44
 
45
45
  AthenaHealth::InsuranceCollection.new(response)
46
46
  end
47
+
48
+ def all_order_types(practice_id:, search_value:)
49
+ response = @api.call(
50
+ endpoint: "#{practice_id}/reference/order/lab",
51
+ method: :get,
52
+ params: { searchvalue: search_value }
53
+ )
54
+
55
+ response.map { |ordertype| AthenaHealth::OrderType.new(ordertype) }
56
+ end
47
57
  end
48
58
  end
49
59
  end
@@ -37,6 +37,14 @@ module AthenaHealth
37
37
  )
38
38
  EncounterSummary.new(response)
39
39
  end
40
+
41
+ def create_encounter_order_lab(practice_id:, encounter_id:, body: {})
42
+ @api.call(
43
+ endpoint: "#{practice_id}/chart/encounter/#{encounter_id}/orders/lab",
44
+ method: :post,
45
+ body: body
46
+ )
47
+ end
40
48
  end
41
49
  end
42
50
  end
@@ -10,6 +10,16 @@ module AthenaHealth
10
10
 
11
11
  InsurancePackageCollection.new(response)
12
12
  end
13
+
14
+ def common_insurance_packages(practice_id:, params: {})
15
+ response = @api.call(
16
+ endpoint: "#{practice_id}/misc/commoninsurancepackages",
17
+ method: :get,
18
+ params: params
19
+ )
20
+
21
+ InsurancePackageCollection.new(response)
22
+ end
13
23
  end
14
24
  end
15
25
  end
@@ -0,0 +1,6 @@
1
+ module AthenaHealth
2
+ class OrderType < BaseModel
3
+ attribute :ordertypeid, Integer
4
+ attribute :name, String
5
+ end
6
+ end
@@ -1,3 +1,3 @@
1
1
  module AthenaHealth
2
- VERSION = '1.0.46'.freeze
2
+ VERSION = '1.0.48'.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.46
4
+ version: 1.0.48
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: 2017-02-06 00:00:00.000000000 Z
11
+ date: 2019-03-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -120,6 +120,7 @@ files:
120
120
  - lib/athena_health/appointment_reminder_collection.rb
121
121
  - lib/athena_health/appointment_type.rb
122
122
  - lib/athena_health/appointment_type_collection.rb
123
+ - lib/athena_health/appointment_waitlist.rb
123
124
  - lib/athena_health/balance.rb
124
125
  - lib/athena_health/base_collection.rb
125
126
  - lib/athena_health/base_model.rb
@@ -155,6 +156,7 @@ files:
155
156
  - lib/athena_health/note_collection.rb
156
157
  - lib/athena_health/order.rb
157
158
  - lib/athena_health/order_collection.rb
159
+ - lib/athena_health/order_type.rb
158
160
  - lib/athena_health/patient.rb
159
161
  - lib/athena_health/patient_appointment_reason.rb
160
162
  - lib/athena_health/patient_appointment_reason_collection.rb
@@ -200,8 +202,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
200
202
  - !ruby/object:Gem::Version
201
203
  version: '0'
202
204
  requirements: []
203
- rubyforge_project:
204
- rubygems_version: 2.5.1
205
+ rubygems_version: 3.0.2
205
206
  signing_key:
206
207
  specification_version: 4
207
208
  summary: Ruby wrapper for Athenahealth API.