athena_health 1.0.20 → 1.0.21

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: f67fcf17e63e7e85cd4666703d6282b93149969a
4
- data.tar.gz: 56cadaa9cfa420e0e0ac2c800451e423db8e8666
3
+ metadata.gz: 1483af889978bbf12296b8a2d427057ed0c9bd55
4
+ data.tar.gz: bb9a9517beaf84ad097362ae9ebf9028fb12c205
5
5
  SHA512:
6
- metadata.gz: 12e868e1fcfa038c0676636eca335055c8e69f86be5abed89c1a9184c1bc23adea6d684279ce5eb923ae1f93321b750ac5de075784d7091e254df210cab6b12a
7
- data.tar.gz: 82a1730bea305f3adc5fe74ad7ff217f770148d64b46f1f1ec456e7077d7f7c68016b9502f7850938ad5d46b2870d3c7b23f7c7f35aaed53f3f80959d1159963
6
+ metadata.gz: 75e4b84962a1edda78bd5e53fcc3440648118bde094ff3c94835b8832978ae4bba83a1eba3b9d41f7c71a6dc9962470c94400d900615a0c3011e2316d8cadf85
7
+ data.tar.gz: c1b5fbef30ff672f3af1ae6e332246740394ec0f3d6ab1effff3af02b1d6eedff0795a3022ee2db9b984d1a97d4119a6410686fdd665766baf10fe7b68e58bbf
@@ -92,6 +92,19 @@ module AthenaHealth
92
92
  method: :post
93
93
  )
94
94
  end
95
+
96
+ def reschedule_appointment(practice_id:, patient_id:, appointment_id:, new_appointment_id:, params: {})
97
+ response = @api.call(
98
+ endpoint: "#{practice_id}/appointments/#{appointment_id}/reschedule",
99
+ method: :put,
100
+ params: params.merge!(
101
+ patientid: patient_id,
102
+ newappointmentid: new_appointment_id
103
+ )
104
+ )
105
+
106
+ Appointment.new(response.first)
107
+ end
95
108
  end
96
109
  end
97
110
  end
@@ -1,3 +1,3 @@
1
1
  module AthenaHealth
2
- VERSION = '1.0.20'.freeze
2
+ VERSION = '1.0.21'.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.20
4
+ version: 1.0.21
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-06-08 00:00:00.000000000 Z
11
+ date: 2016-06-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus