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 +4 -4
- data/lib/athena_health/appointment.rb +3 -1
- data/lib/athena_health/endpoints/appointments.rb +14 -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: 4400591e3b0dfc80dabc6f56864e0836a396e77b
|
4
|
+
data.tar.gz: fd89975dcb5bf52e4ae4dbbb325afa65c8892e9d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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,
|
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
|
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.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-
|
11
|
+
date: 2016-04-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|