athena_health 1.0.4 → 1.0.5

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: 9a36875b263e3bbdcc65426d76596edbc50aad73
4
- data.tar.gz: 8cf7080271f235b56a629f27f86b312a88f25016
3
+ metadata.gz: 1225a3207b0b308de9bc85e4ce256a0baf304097
4
+ data.tar.gz: f7965eda22300a5724e66d96f7f036c7a51fe5ea
5
5
  SHA512:
6
- metadata.gz: 1637242281996ff403293b7c3a051112fe829bd1f0910f9a2da3dcb0fdd1e52743c1589c0516c4e1d3c4b2f2bbbb9849bb51b4323327d7ce11830a2d0a331421
7
- data.tar.gz: 7334fe32b3866b8c7b647cf23c29b7416530482d2ad0300577e68885ad678c4068ba431101a875547a24677b17706336343be92c0172a91d410c6b873200e068
6
+ metadata.gz: afe138d5dbe627cc235a9c15be2be077661e5f5a34d0b627865009da75f969ab677975e17fd40a74ebf3b445801ffcd07ab61b3669b60f8d7dcbc851107bd902
7
+ data.tar.gz: 18b78f8409f171bcc08dca6bfb4923e69f6a38c6f1650d437efeef86ba5d130db70b294b91cad7175972006d65465512a32f7ea377ee4859f7144e30a7351048
@@ -54,6 +54,7 @@ require 'athena_health/pharmacy'
54
54
  require 'athena_health/pharmacy_collection'
55
55
  require 'athena_health/medication'
56
56
  require 'athena_health/allergy'
57
+ require 'athena_health/laboratory'
57
58
 
58
59
  module AthenaHealth
59
60
  end
@@ -168,6 +168,24 @@ module AthenaHealth
168
168
  params: params.merge!(departmentid: department_id)
169
169
  )
170
170
  end
171
+
172
+ def patient_default_laboratory(practice_id:, department_id:, patient_id:)
173
+ response = @api.call(
174
+ endpoint: "#{practice_id}/chart/#{patient_id}/labs/default",
175
+ method: :get,
176
+ params: { departmentid: department_id }
177
+ )
178
+
179
+ Laboratory.new(response)
180
+ end
181
+
182
+ def set_patient_default_laboratory(practice_id:, department_id:, patient_id:, params: {})
183
+ @api.call(
184
+ endpoint: "#{practice_id}/chart/#{patient_id}/labs/default",
185
+ method: :put,
186
+ params: params.merge!(departmentid: department_id)
187
+ )
188
+ end
171
189
  end
172
190
  end
173
191
  end
@@ -0,0 +1,14 @@
1
+ module AthenaHealth
2
+ class Laboratory < BaseModel
3
+ attribute :clinicalproviderid, Integer
4
+ attribute :clinicalprovidername, String
5
+ attribute :address1, String
6
+ attribute :address2, String
7
+ attribute :city, String
8
+ attribute :state, String
9
+ attribute :zip, String
10
+ attribute :phonenumber, String
11
+ attribute :faxnumber, String
12
+ attribute :acceptfax, Boolean
13
+ end
14
+ end
@@ -1,3 +1,3 @@
1
1
  module AthenaHealth
2
- VERSION = '1.0.4'.freeze
2
+ VERSION = '1.0.5'.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.4
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mateusz Urbański
@@ -158,6 +158,7 @@ files:
158
158
  - lib/athena_health/insurance_package_collection.rb
159
159
  - lib/athena_health/lab_result.rb
160
160
  - lib/athena_health/lab_result_collection.rb
161
+ - lib/athena_health/laboratory.rb
161
162
  - lib/athena_health/medication.rb
162
163
  - lib/athena_health/order.rb
163
164
  - lib/athena_health/order_collection.rb