athena_health 0.9.1 → 0.9.2
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 +3 -4
- 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: 3de2b6b74fe81cca89fe56465147a5366213925e
|
4
|
+
data.tar.gz: c26ae59ba1a9050f160cc7ffd0a3d3805ca2c99e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 58f9b493eb466e88b3ff65b93b5b357c6ccfd6a211ec7d7c9333c9c24c8ee63e7e41406030765a88ab0128ab0ac29f69669011091a6fff4ac69f09862fdd2a37
|
7
|
+
data.tar.gz: 372f1a8e8aec8f273ee5d628caf01bd94378671ac41d0452b92ab40030b81607988f5d30dc55a6b50e21a0ac10b6c1f965ecd37f8c3d1e3a09e260881e0e4335
|
@@ -11,25 +11,24 @@ module AthenaHealth
|
|
11
11
|
AppointmentTypeCollection.new(response)
|
12
12
|
end
|
13
13
|
|
14
|
-
def open_appointment_slots(practice_id:, department_id:, provider_id:,
|
14
|
+
def open_appointment_slots(practice_id:, department_id:, provider_id:, params: {})
|
15
15
|
response = @api.call(
|
16
16
|
endpoint: "#{practice_id}/appointments/open",
|
17
17
|
method: :get,
|
18
18
|
params: params.merge(
|
19
19
|
departmentid: department_id,
|
20
20
|
providerid: provider_id,
|
21
|
-
reasonid: reason_id
|
22
21
|
)
|
23
22
|
)
|
24
23
|
|
25
24
|
AppointmentCollection.new(response)
|
26
25
|
end
|
27
26
|
|
28
|
-
def book_appointment(practice_id:, appointment_id:, patient_id:,
|
27
|
+
def book_appointment(practice_id:, appointment_id:, patient_id:, params: {})
|
29
28
|
response = @api.call(
|
30
29
|
endpoint: "#{practice_id}/appointments/#{appointment_id}",
|
31
30
|
method: :put,
|
32
|
-
params: params.merge(patientid: patient_id
|
31
|
+
params: params.merge(patientid: patient_id)
|
33
32
|
)
|
34
33
|
|
35
34
|
Appointment.new(response.first)
|
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
|
+
version: 0.9.2
|
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-
|
11
|
+
date: 2016-04-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|