athena_health 1.0.39 → 1.0.41
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c003a74a76f503f46662eb6b56b843ca3ea29426
|
4
|
+
data.tar.gz: 208198fca66aa6f518572c6295faec98e00e76d8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 07e71684c2ad7e3080b716aca35a802f99de7ddbe94232dabddaf186dece37d19a988ac2d1673ff48a43d99a5ca95b68dcad0c4b3861e471e0af1db065feae84
|
7
|
+
data.tar.gz: b5a02af06709e7c03ab9842b9c1d305e70a2dc2aa0b86f1d6da1d5fc78de8e233225a3a7d52dd478e2ce6d996d3c9db123bf5255e9f7d581852a80d9913eecc8
|
@@ -33,6 +33,19 @@ module AthenaHealth
|
|
33
33
|
AppointmentCollection.new(response)
|
34
34
|
end
|
35
35
|
|
36
|
+
def create_appointment_slot(practice_id:, department_id:, appointment_date:, appointment_time:, provider_id:, body: {})
|
37
|
+
@api.call(
|
38
|
+
endpoint: "#{practice_id}/appointments/open",
|
39
|
+
method: :post,
|
40
|
+
body: body.merge(
|
41
|
+
departmentid: department_id,
|
42
|
+
appointmentdate: appointment_date,
|
43
|
+
appointmenttime: appointment_time,
|
44
|
+
providerid: provider_id
|
45
|
+
)
|
46
|
+
)
|
47
|
+
end
|
48
|
+
|
36
49
|
def book_appointment(practice_id:, appointment_id:, patient_id:, params: {})
|
37
50
|
response = @api.call(
|
38
51
|
endpoint: "#{practice_id}/appointments/#{appointment_id}",
|
@@ -67,6 +80,28 @@ module AthenaHealth
|
|
67
80
|
AppointmentCollection.new(response)
|
68
81
|
end
|
69
82
|
|
83
|
+
def multipledepartment_booked_appointments(practice_id:, department_id:, start_date:, end_date:, params: {})
|
84
|
+
response = @api.call(
|
85
|
+
endpoint: "#{practice_id}/appointments/booked/multipledepartment",
|
86
|
+
method: :get,
|
87
|
+
params: params.merge!(
|
88
|
+
departmentid: department_id,
|
89
|
+
startdate: start_date,
|
90
|
+
enddate: end_date
|
91
|
+
)
|
92
|
+
)
|
93
|
+
|
94
|
+
AppointmentCollection.new(response)
|
95
|
+
end
|
96
|
+
|
97
|
+
def cancel_appointment(practice_id:, appointment_id:, patient_id:, body: {})
|
98
|
+
@api.call(
|
99
|
+
endpoint: "#{practice_id}/appointments/#{appointment_id}/cancel",
|
100
|
+
method: :put,
|
101
|
+
body: body.merge!(patientid: patient_id)
|
102
|
+
)
|
103
|
+
end
|
104
|
+
|
70
105
|
def appointment_notes(practice_id:, appointment_id:, params: {})
|
71
106
|
response = @api.call(
|
72
107
|
endpoint: "#{practice_id}/appointments/#{appointment_id}/notes",
|
@@ -92,6 +127,13 @@ module AthenaHealth
|
|
92
127
|
)
|
93
128
|
end
|
94
129
|
|
130
|
+
def cancel_check_in(practice_id:, appointment_id:)
|
131
|
+
@api.call(
|
132
|
+
endpoint: "#{practice_id}/appointments/#{appointment_id}/cancelcheckin",
|
133
|
+
method: :post
|
134
|
+
)
|
135
|
+
end
|
136
|
+
|
95
137
|
def check_in(practice_id:, appointment_id:)
|
96
138
|
@api.call(
|
97
139
|
endpoint: "#{practice_id}/appointments/#{appointment_id}/checkin",
|
@@ -15,8 +15,10 @@ module AthenaHealth
|
|
15
15
|
endpoint: "#{practice_id}/chart/encounter/#{encounter_id}/orders",
|
16
16
|
method: :get
|
17
17
|
)
|
18
|
+
orders_collection = []
|
19
|
+
response.each {|x| orders_collection << OrderCollection.new(x)}
|
18
20
|
|
19
|
-
|
21
|
+
orders_collection
|
20
22
|
end
|
21
23
|
|
22
24
|
def encounter_order(practice_id:, encounter_id:, order_id:)
|
@@ -21,6 +21,16 @@ module AthenaHealth
|
|
21
21
|
Patient.new(response.first)
|
22
22
|
end
|
23
23
|
|
24
|
+
def find_bestmatch_patients(practice_id:, date_of_birth:, first_name:, last_name:, params: {})
|
25
|
+
response = @api.call(
|
26
|
+
endpoint: "#{practice_id}/patients/enhancedbestmatch",
|
27
|
+
method: :get,
|
28
|
+
params: params.merge!(firstname: first_name, lastname: last_name, dob: date_of_birth)
|
29
|
+
)
|
30
|
+
|
31
|
+
response.map{ |patient| Patient.new(patient) }
|
32
|
+
end
|
33
|
+
|
24
34
|
def create_patient(practice_id:, department_id:, params: {})
|
25
35
|
@api.call(
|
26
36
|
endpoint: "#{practice_id}/patients",
|
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.41
|
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-
|
11
|
+
date: 2016-09-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|