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 +4 -4
- data/lib/athena_health.rb +7 -0
- data/lib/athena_health/endpoints/patients.rb +20 -0
- data/lib/athena_health/reaction.rb +6 -0
- data/lib/athena_health/user_allergy.rb +9 -0
- data/lib/athena_health/user_allergy_collection.rb +8 -0
- data/lib/athena_health/user_medication.rb +18 -0
- data/lib/athena_health/user_medication_collection.rb +6 -0
- data/lib/athena_health/user_medication_event.rb +6 -0
- data/lib/athena_health/user_medication_sig.rb +11 -0
- data/lib/athena_health/version.rb +1 -1
- metadata +8 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c61b9efbdabc9372b41298ea3fef1d883651081e
|
4
|
+
data.tar.gz: a0f9b5cf048e559a91d067f93c9cdd2c8fc93058
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 090afd1c5f39d767d26cf15ce198bd5f92c7d2ba46e61f342c1fddb0b1cae183dfefa0443ab8e139d11fda643093a3fb66e8a2c127469f9ae00410055500cc76
|
7
|
+
data.tar.gz: 28f16f4ca66f3cfb7213a331631d223aabc070c36f63148cacd97f9375496344769592e56620955b4cfa5a10538a3c744d2fff0d08255d33d2b3b524234dd111
|
data/lib/athena_health.rb
CHANGED
@@ -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,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,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
|
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.
|
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:
|