athena_health 1.0.44 → 1.0.45

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: 0e32a76a0f7609065ff2901b8128078c527141e4
4
- data.tar.gz: 8598d390b7d6db4e26e465fdd184cffc97b721fc
3
+ metadata.gz: b456989570c4dc653982c1d3e3d9552eda412d41
4
+ data.tar.gz: 868cbbe1a3cb6bc725d38db1560700d5dad29598
5
5
  SHA512:
6
- metadata.gz: 4ff7f9bc3917546b849efe40ff179b36f744bb206241cc5433a224b4df9d3f8d2686c2362c9e78dde79501bc4cf3ff384666fec6ebf6f738bd3d02e496163ea4
7
- data.tar.gz: 67862b9b178aace8812b27c5987dba4811303a3aec565997147bd13024d1278553d0dad7077c6cadd6e4cc42509d2aef64ddfd35106d669676456d552776a42e
6
+ metadata.gz: f4fd02834ef5e153e86284a6c1c7820168fb86baff93586a94a6f8f01e2121094ac162988d8f2c49fc132e3b4252e94e105fe43c346b3b5ff61f46e57d6d38a2
7
+ data.tar.gz: 431efe745097d77c7c3d362fdb839dbb64b9c9e78576f7d62ecb4f6fb20a3aae840e17c2e3db221bb6f742f15533bc04fa0d595625f249af2b3e5c69f6765b10
@@ -313,11 +313,12 @@ module AthenaHealth
313
313
  end
314
314
 
315
315
  def create_patient_insurance(practice_id:, patient_id:, insurance_package_id:, sequence_number:, params: {})
316
- @api.call(
316
+ response = @api.call(
317
317
  endpoint: "#{practice_id}/patients/#{patient_id}/insurances",
318
318
  method: :post,
319
319
  body: params.merge!(insurancepackageid: insurance_package_id, sequencenumber: sequence_number)
320
320
  )
321
+ Insurance.new(response[0])
321
322
  end
322
323
 
323
324
  def update_patient_insurance(practice_id:, patient_id:, sequence_number:, params: {})
@@ -337,12 +338,11 @@ module AthenaHealth
337
338
  end
338
339
 
339
340
  def update_patient_insurance_card_image(practice_id:, patient_id:, insurance_id:, image:, params: {})
340
- response = @api.call(
341
- endpoint: "#{practice_id}/patients/#{patient_id}/insurances/#{insurance_id}/image",
341
+ @api.call(
342
+ endpoint: "#{practice_id}/patients/#{patient_id}/insurances/#{insurance_id}/image",
342
343
  method: :put,
343
344
  params: params.merge!(image: image)
344
345
  )
345
- Insurance.new(response)
346
346
  end
347
347
 
348
348
  def record_payment(practice_id:, department_id:, patient_id:, payment_method:, amount:, params: {})
@@ -1,3 +1,3 @@
1
1
  module AthenaHealth
2
- VERSION = '1.0.44'.freeze
2
+ VERSION = '1.0.45'.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.44
4
+ version: 1.0.45
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: 2017-02-02 00:00:00.000000000 Z
11
+ date: 2017-02-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus