athena_health 0.9.4 → 0.9.5

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: 29d6394681a2b57c10ce78c46b9b0ac3db60ba16
4
- data.tar.gz: 75ba0678672a3deb40c0af75836f4fdde864b136
3
+ metadata.gz: 4400591e3b0dfc80dabc6f56864e0836a396e77b
4
+ data.tar.gz: fd89975dcb5bf52e4ae4dbbb325afa65c8892e9d
5
5
  SHA512:
6
- metadata.gz: e0ee62d3c8e45f94de184ee4ba8795f26e9f42aeba32b6c8ec78d95c90ade1b63c4ae5427ddaad6b107db73f2f7718a3191888f010192b973a8f1509f5c8b72b
7
- data.tar.gz: 6f28030f0d122a1578d50ea2e430426315860d0c83d52bb9e3d84a2266bf19e584ab28e174ed02562a0f623dd0a24c668e1840b1855d95d747c8ed80735768f2
6
+ metadata.gz: 2793a0deaab0192a84e2f0744e03a5fe8c4f85496ef1e537bd487f83fec8fe18de4e403962d70171611580ffd975cf57f0fb6ebb93c10020ac36a1dfaf7b0251
7
+ data.tar.gz: fc75c281e30139417c3cc4537d79d353a7d82764382bc954659fda4af4638145894e7f191e982b0e37e957ccb359d170e9b7aca8685e9e8b5f24bbaa7123d2ae
@@ -10,7 +10,9 @@ module AthenaHealth
10
10
  attribute :starttime, String
11
11
  attribute :duration, Integer
12
12
  attribute :appointmenttypeid, Integer
13
- attribute :patientappointmenttypename, Integer
13
+ attribute :patientappointmenttypename, String
14
+ attribute :lastmodified, String
15
+ attribute :scheduleddatetime, String
14
16
 
15
17
  def appointment_status
16
18
  {
@@ -43,6 +43,20 @@ module AthenaHealth
43
43
 
44
44
  PatientAppointmentReasonCollection.new(response)
45
45
  end
46
+
47
+ def booked_appointments(practice_id:, department_id:, start_date:, end_date:, params: {})
48
+ response = @api.call(
49
+ endpoint: "#{practice_id}/appointments/booked",
50
+ method: :get,
51
+ params: params.merge!(
52
+ departmentid: department_id,
53
+ startdate: start_date,
54
+ enddate: end_date
55
+ )
56
+ )
57
+
58
+ AppointmentCollection.new(response)
59
+ end
46
60
  end
47
61
  end
48
62
  end
@@ -1,3 +1,3 @@
1
1
  module AthenaHealth
2
- VERSION = '0.9.4'.freeze
2
+ VERSION = '0.9.5'.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.4
4
+ version: 0.9.5
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-07 00:00:00.000000000 Z
11
+ date: 2016-04-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus