athena_health 1.0.38 → 1.0.39

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: ab42c668e0ecd01a0a7a564fd177e4e0c58ddcaf
4
- data.tar.gz: 4d08fe3279bb52f31115011f1aa3de9170654811
3
+ metadata.gz: 4303e543b9b076f03fbdf0abd5d993431793fd9d
4
+ data.tar.gz: 5624f9997a5cf915d385d1622a0e65ab0151a259
5
5
  SHA512:
6
- metadata.gz: 48f62a38faeea6d7879003767c5fd723eb1ce4e9787c648b9ccedad60a78bcbc1e1603fc5f80369423c0195bde7090961f627779273e11005a742a6e1e31618e
7
- data.tar.gz: 5e3c6ed94b0e795dbf41eb9a02512f3540b71bccbf5a35b294becb5c8426a43935897ceebefbead08a88851038ba63919e0fc79ec468518642d2e17a71214124
6
+ metadata.gz: 492fe1275acfec86202e3f04206a5aa80e45c55499a76822ef6764155ea6c2cd93182452b1bacb3fe54481639a5f47c319b4f718610539e207e1b33b51b1675f
7
+ data.tar.gz: 8d82f8db91b52a0cb4567e13244a276c3edbf931b94b1459ffda127f8a414aad4f65dfd7678e5f4a56616b84b3f1ca93a8fc7eda7a8d1febdde17b767e0f9908
@@ -16,5 +16,7 @@ module AthenaHealth
16
16
  attribute :lastmodifieddatetime, String
17
17
  attribute :documentsubclass, String
18
18
  attribute :orderid, Integer
19
+ attribute :labresultid, Integer
20
+ attribute :observations, Array[Analyte]
19
21
  end
20
22
  end
@@ -174,6 +174,26 @@ module AthenaHealth
174
174
 
175
175
  InsuranceCollection.new(response)
176
176
  end
177
+
178
+ def create_appointment_subscription(practice_id:, params: {})
179
+ @api.call(
180
+ endpoint: "#{practice_id}/appointments/changed/subscription",
181
+ method: :post,
182
+ params: params
183
+ )
184
+ end
185
+
186
+ def changed_appointments(practice_id:, department_id:, params: {})
187
+ response = @api.call(
188
+ endpoint: "#{practice_id}/appointments/changed",
189
+ method: :get,
190
+ params: params.merge!(
191
+ departmentid: department_id
192
+ )
193
+ )
194
+
195
+ AppointmentCollection.new(response)
196
+ end
177
197
  end
178
198
  end
179
199
  end
@@ -83,6 +83,15 @@ module AthenaHealth
83
83
  LabResultCollection.new(response)
84
84
  end
85
85
 
86
+ def patient_lab_result_document(practice_id:, patient_id:, lab_result_id:)
87
+ response = @api.call(
88
+ endpoint: "#{practice_id}/patients/#{patient_id}/documents/labresult/#{lab_result_id}",
89
+ method: :get
90
+ ).first
91
+
92
+ Document.new(response)
93
+ end
94
+
86
95
  def patient_medical_history(practice_id:, department_id:, patient_id:)
87
96
  response = @api.call(
88
97
  endpoint: "#{practice_id}/chart/#{patient_id}/medicalhistory",
@@ -1,3 +1,3 @@
1
1
  module AthenaHealth
2
- VERSION = '1.0.38'.freeze
2
+ VERSION = '1.0.39'.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.38
4
+ version: 1.0.39
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-07-21 00:00:00.000000000 Z
11
+ date: 2016-08-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus