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 +4 -4
- data/lib/athena_health.rb +1 -0
- data/lib/athena_health/endpoints/patients.rb +18 -0
- data/lib/athena_health/laboratory.rb +14 -0
- data/lib/athena_health/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1225a3207b0b308de9bc85e4ce256a0baf304097
|
4
|
+
data.tar.gz: f7965eda22300a5724e66d96f7f036c7a51fe5ea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: afe138d5dbe627cc235a9c15be2be077661e5f5a34d0b627865009da75f969ab677975e17fd40a74ebf3b445801ffcd07ab61b3669b60f8d7dcbc851107bd902
|
7
|
+
data.tar.gz: 18b78f8409f171bcc08dca6bfb4923e69f6a38c6f1650d437efeef86ba5d130db70b294b91cad7175972006d65465512a32f7ea377ee4859f7144e30a7351048
|
data/lib/athena_health.rb
CHANGED
@@ -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
|
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.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
|