athena_health 1.0.29 → 1.0.30

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: d5c7e253b63dee849798bec906ed62c9f305e1bf
4
- data.tar.gz: 2c67a1d82067dcc60e8c198ffb1407138cbf0c38
3
+ metadata.gz: c61b9efbdabc9372b41298ea3fef1d883651081e
4
+ data.tar.gz: a0f9b5cf048e559a91d067f93c9cdd2c8fc93058
5
5
  SHA512:
6
- metadata.gz: 6331834158ff924cb187d351d3a10e1ab7c6a1e1cae34d4568f21f462c44b155e0da6e728b99e602c7155eec4fa4ef5a3b743dc9e4a8c5b9c3d910af5b6ffbee
7
- data.tar.gz: 352a27a1a468f11c34d22e237f413fd472ad12e8246ee89618666a7c8ebae4bacf054435b790748815cc5c47f38ef5c43d40fdfbe2d1fecd2b04693c829b1795
6
+ metadata.gz: 090afd1c5f39d767d26cf15ce198bd5f92c7d2ba46e61f342c1fddb0b1cae183dfefa0443ab8e139d11fda643093a3fb66e8a2c127469f9ae00410055500cc76
7
+ data.tar.gz: 28f16f4ca66f3cfb7213a331631d223aabc070c36f63148cacd97f9375496344769592e56620955b4cfa5a10538a3c744d2fff0d08255d33d2b3b524234dd111
@@ -63,6 +63,13 @@ require 'athena_health/insurance'
63
63
  require 'athena_health/insurance_collection'
64
64
  require 'athena_health/appointment_reminder'
65
65
  require 'athena_health/appointment_reminder_collection'
66
+ require 'athena_health/reaction'
67
+ require 'athena_health/user_allergy'
68
+ require 'athena_health/user_allergy_collection'
69
+ require 'athena_health/user_medication_event'
70
+ require 'athena_health/user_medication_sig'
71
+ require 'athena_health/user_medication'
72
+ require 'athena_health/user_medication_collection'
66
73
 
67
74
  module AthenaHealth
68
75
  end
@@ -239,6 +239,16 @@ module AthenaHealth
239
239
  SocialHistory.new(response)
240
240
  end
241
241
 
242
+ def patient_medications(practice_id:, department_id:, patient_id:, params: {})
243
+ response = @api.call(
244
+ endpoint: "#{practice_id}/chart/#{patient_id}/medications",
245
+ method: :get,
246
+ params: params.merge!(departmentid: department_id)
247
+ )
248
+
249
+ UserMedicationCollection.new(response)
250
+ end
251
+
242
252
  def add_patient_medication(practice_id:, department_id:, patient_id:, medication_id:, params: {})
243
253
  response = @api.call(
244
254
  endpoint: "#{practice_id}/chart/#{patient_id}/medications",
@@ -247,6 +257,16 @@ module AthenaHealth
247
257
  )
248
258
  end
249
259
 
260
+ def patient_allergies(practice_id:, department_id:, patient_id:, params: {})
261
+ response = @api.call(
262
+ endpoint: "#{practice_id}/chart/#{patient_id}/allergies",
263
+ method: :get,
264
+ params: params.merge!(departmentid: department_id)
265
+ )
266
+
267
+ UserAllergyCollection.new(response)
268
+ end
269
+
250
270
  def update_patient_allergies(practice_id:, department_id:, patient_id:, allergies:)
251
271
  response = @api.call(
252
272
  endpoint: "#{practice_id}/chart/#{patient_id}/allergies",
@@ -0,0 +1,6 @@
1
+ module AthenaHealth
2
+ class Reaction < BaseModel
3
+ attribute :reactionname, String
4
+ attribute :snomedcode, Integer
5
+ end
6
+ end
@@ -0,0 +1,9 @@
1
+ module AthenaHealth
2
+ class UserAllergy < BaseModel
3
+ attribute :allergenname, String
4
+ attribute :allergenid, Integer
5
+ attribute :onsetdate, String
6
+ attribute :note, String
7
+ attribute :reactions, Array[Reaction]
8
+ end
9
+ end
@@ -0,0 +1,8 @@
1
+ module AthenaHealth
2
+ class UserAllergyCollection < BaseModel
3
+ attribute :lastupdated, String
4
+ attribute :nkda, Boolean
5
+ attribute :sectionnote, String
6
+ attribute :allergies, Array[UserAllergy]
7
+ end
8
+ end
@@ -0,0 +1,18 @@
1
+ module AthenaHealth
2
+ class UserMedication < BaseModel
3
+ attribute :source, String
4
+ attribute :orderingmode, String
5
+ attribute :createdby, String
6
+ attribute :isstructuredsig, Boolean
7
+ attribute :medicationid, Integer
8
+ attribute :refillsallowed, Integer
9
+ attribute :route, String
10
+ attribute :encounterid, Integer
11
+ attribute :issafetorenew, Integer
12
+ attribute :medicationentryid, Integer
13
+ attribute :medication, String
14
+ attribute :unstructuredsig, String
15
+ attribute :structuredsig, UserMedicationSig
16
+ attribute :events, Array[UserMedicationEvent]
17
+ end
18
+ end
@@ -0,0 +1,6 @@
1
+ module AthenaHealth
2
+ class UserMedicationCollection < BaseModel
3
+ attribute :lastupdated, String
4
+ attribute :medications, Array[Array[UserMedication]]
5
+ end
6
+ end
@@ -0,0 +1,6 @@
1
+ module AthenaHealth
2
+ class UserMedicationEvent < BaseModel
3
+ attribute :type, String
4
+ attribute :eventdate, String
5
+ end
6
+ end
@@ -0,0 +1,11 @@
1
+ module AthenaHealth
2
+ class UserMedicationSig < BaseModel
3
+ attribute :dosageroute, String
4
+ attribute :dosageaction, String
5
+ attribute :dosageadditionalinstructions, String
6
+ attribute :dosagefrequencyunit, String
7
+ attribute :dosagequantityunit, String
8
+ attribute :dosagequantityvalue, Integer
9
+ attribute :dosagedurationunit, String
10
+ end
11
+ end
@@ -1,3 +1,3 @@
1
1
  module AthenaHealth
2
- VERSION = '1.0.29'.freeze
2
+ VERSION = '1.0.30'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: athena_health
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.29
4
+ version: 1.0.30
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mateusz Urbański
@@ -170,8 +170,15 @@ files:
170
170
  - lib/athena_health/provider_collection.rb
171
171
  - lib/athena_health/question.rb
172
172
  - lib/athena_health/question_collection.rb
173
+ - lib/athena_health/reaction.rb
173
174
  - lib/athena_health/social_history.rb
174
175
  - lib/athena_health/template.rb
176
+ - lib/athena_health/user_allergy.rb
177
+ - lib/athena_health/user_allergy_collection.rb
178
+ - lib/athena_health/user_medication.rb
179
+ - lib/athena_health/user_medication_collection.rb
180
+ - lib/athena_health/user_medication_event.rb
181
+ - lib/athena_health/user_medication_sig.rb
175
182
  - lib/athena_health/version.rb
176
183
  homepage: https://github.com/zywy/athena_health
177
184
  licenses: