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 +4 -4
- data/lib/athena_health/endpoints/appointments.rb +13 -0
- data/lib/athena_health/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1483af889978bbf12296b8a2d427057ed0c9bd55
|
4
|
+
data.tar.gz: bb9a9517beaf84ad097362ae9ebf9028fb12c205
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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.
|
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-
|
11
|
+
date: 2016-06-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|