athena_health 1.0.22 → 1.0.23
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: 074e1f8b631298655ec9c539a28be14860cac5b0
|
4
|
+
data.tar.gz: de2486ee67b7f0c67aa1726a0615526793c3bc98
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e80472932ee143d0b9a0bd92dbb3aa8b5ccafd451b33c3e3e1fc31d1a5efa7118dc96c667947c534202218e8d46631af05401cd28f4fd20952d4ec9884f1e1bf
|
7
|
+
data.tar.gz: 7bb3a41de47f3b7dbe93812a7684676113dd830b14644303eeed497a49ba2de2f8da47276582852b8876ff373194cce022ba8bdd832d73221b8d599e3a0a6f83
|
data/lib/athena_health.rb
CHANGED
@@ -61,6 +61,8 @@ require 'athena_health/template'
|
|
61
61
|
require 'athena_health/social_history'
|
62
62
|
require 'athena_health/insurance'
|
63
63
|
require 'athena_health/insurance_collection'
|
64
|
+
require 'athena_health/appointment_reminder'
|
65
|
+
require 'athena_health/appointment_reminder_collection'
|
64
66
|
|
65
67
|
module AthenaHealth
|
66
68
|
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
module AthenaHealth
|
2
|
+
class AppointmentReminder < BaseModel
|
3
|
+
attribute :appointmentreminderid, Integer
|
4
|
+
attribute :providerid, Integer
|
5
|
+
attribute :appointmenttypeid, Integer
|
6
|
+
attribute :approximatedate, String
|
7
|
+
attribute :note, String
|
8
|
+
attribute :deleted, String
|
9
|
+
attribute :status, String
|
10
|
+
attribute :patientid, Integer
|
11
|
+
attribute :departmentid, Integer
|
12
|
+
attribute :patientinstructions, String
|
13
|
+
end
|
14
|
+
end
|
@@ -115,6 +115,49 @@ module AthenaHealth
|
|
115
115
|
|
116
116
|
Appointment.new(response.first)
|
117
117
|
end
|
118
|
+
|
119
|
+
|
120
|
+
def appointment_reminders(practice_id:, start_date:, end_date:, department_id:, params: {})
|
121
|
+
response = @api.call(
|
122
|
+
endpoint: "#{practice_id}/appointments/appointmentreminders",
|
123
|
+
method: :get,
|
124
|
+
params: params.merge!(
|
125
|
+
startdate: start_date,
|
126
|
+
enddate: end_date,
|
127
|
+
departmentid: department_id
|
128
|
+
)
|
129
|
+
)
|
130
|
+
|
131
|
+
AppointmentReminderCollection.new(response)
|
132
|
+
end
|
133
|
+
|
134
|
+
def find_appointment_reminder(practice_id:, appointment_reminder_id:)
|
135
|
+
response = @api.call(
|
136
|
+
endpoint: "#{practice_id}/appointments/appointmentreminders/#{appointment_reminder_id}",
|
137
|
+
method: :get
|
138
|
+
)
|
139
|
+
|
140
|
+
AppointmentReminder.new(response)
|
141
|
+
end
|
142
|
+
|
143
|
+
def create_appointment_reminder(practice_id:, approximate_date:, department_id:, patient_id:, params: {})
|
144
|
+
@api.call(
|
145
|
+
endpoint: "#{practice_id}/appointments/appointmentreminders",
|
146
|
+
method: :post,
|
147
|
+
body: params.merge!(
|
148
|
+
approximatedate: approximate_date,
|
149
|
+
departmentid: department_id,
|
150
|
+
patientid: patient_id
|
151
|
+
)
|
152
|
+
)
|
153
|
+
end
|
154
|
+
|
155
|
+
def delete_appointment_reminder(practice_id:, appointment_reminder_id:)
|
156
|
+
@api.call(
|
157
|
+
endpoint: "#{practice_id}/appointments/appointmentreminders/#{appointment_reminder_id}",
|
158
|
+
method: :delete
|
159
|
+
)
|
160
|
+
end
|
118
161
|
end
|
119
162
|
end
|
120
163
|
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.23
|
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-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -116,6 +116,8 @@ files:
|
|
116
116
|
- lib/athena_health/analyte_collection.rb
|
117
117
|
- lib/athena_health/appointment.rb
|
118
118
|
- lib/athena_health/appointment_collection.rb
|
119
|
+
- lib/athena_health/appointment_reminder.rb
|
120
|
+
- lib/athena_health/appointment_reminder_collection.rb
|
119
121
|
- lib/athena_health/appointment_type.rb
|
120
122
|
- lib/athena_health/appointment_type_collection.rb
|
121
123
|
- lib/athena_health/balance.rb
|