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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4f21e19e2a305b920187fcdd57d1d5924d1a24ea
4
- data.tar.gz: d5389eacaf2d370eccbe8df5f6bd6df622fc8f96
3
+ metadata.gz: fe5dae4a88fcb1d05eb6fb0f84c695f7f3e0acb2
4
+ data.tar.gz: e24a582cc3e315f7e02fdef8172f89b8110735c2
5
5
  SHA512:
6
- metadata.gz: 16e7dcb4cb2f557021a0cbfd1d287c4a4280aea105d2d290735dc8858b944a95330fb7b5c702b705e92faed5d467c5878ee0e49d874ae7d40e85ffebdd52cc28
7
- data.tar.gz: 1f1d3fad3c3d44cad2e8816cd4dbdbbc5434ce323a6601e156dbb5ec89225aeedbd5665ed040d4404bc5af276462a61b219bd7a5bd38c618efaf476f5be18864
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
@@ -1,3 +1,3 @@
1
1
  module AthenaHealth
2
- VERSION = '1.0.14'.freeze
2
+ VERSION = '1.0.15'.freeze
3
3
  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.14
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-19 00:00:00.000000000 Z
11
+ date: 2016-05-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus