athena_health 1.0.14 → 1.0.15
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/patients.rb +24 -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: fe5dae4a88fcb1d05eb6fb0f84c695f7f3e0acb2
|
4
|
+
data.tar.gz: e24a582cc3e315f7e02fdef8172f89b8110735c2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5e8d787949aba1083935ee57e4e0055ec97bddd90db651f4bafec77c1e06c4b2bec89bdab75193d95bc339c96b3519551e9d4bfcf511de01a40f7a986996130d
|
7
|
+
data.tar.gz: c8b0b59548666fc19ad134a14b09ceccdb873c78f46378dda70955c4968beda1d06fdf6686a6ffbe3538eeb6e005b784e3b18955805801c7dbe3abb14fe337b8
|
@@ -93,6 +93,14 @@ module AthenaHealth
|
|
93
93
|
QuestionCollection.new(response)
|
94
94
|
end
|
95
95
|
|
96
|
+
def update_patient_medical_history(practice_id:, department_id:, patient_id:, questions:)
|
97
|
+
response = @api.call(
|
98
|
+
endpoint: "#{practice_id}/chart/#{patient_id}/medicalhistory",
|
99
|
+
method: :put,
|
100
|
+
params: { departmentid: department_id, questions: questions.to_json }
|
101
|
+
)
|
102
|
+
end
|
103
|
+
|
96
104
|
def patient_prescriptions(practice_id:, department_id:, patient_id:, params: {})
|
97
105
|
response = @api.call(
|
98
106
|
endpoint: "#{practice_id}/patients/#{patient_id}/documents/prescription",
|
@@ -230,6 +238,22 @@ module AthenaHealth
|
|
230
238
|
|
231
239
|
SocialHistory.new(response)
|
232
240
|
end
|
241
|
+
|
242
|
+
def add_patient_medication(practice_id:, department_id:, patient_id:, medication_id:, params: {})
|
243
|
+
response = @api.call(
|
244
|
+
endpoint: "#{practice_id}/chart/#{patient_id}/medications",
|
245
|
+
method: :post,
|
246
|
+
body: params.merge!(departmentid: department_id, medicationid: medication_id)
|
247
|
+
)
|
248
|
+
end
|
249
|
+
|
250
|
+
def update_patient_allergies(practice_id:, department_id:, patient_id:, allergies:)
|
251
|
+
response = @api.call(
|
252
|
+
endpoint: "#{practice_id}/chart/#{patient_id}/allergies",
|
253
|
+
method: :put,
|
254
|
+
params: { departmentid: department_id, allergies: allergies.to_json }
|
255
|
+
)
|
256
|
+
end
|
233
257
|
end
|
234
258
|
end
|
235
259
|
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.15
|
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-05-
|
11
|
+
date: 2016-05-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|