athena_health 1.0.26 → 1.0.27

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: 2b5e97ac2abb236109809f09f3317dbc3993648a
4
- data.tar.gz: 9004deae8e46a3728a4552611495dac9c9854213
3
+ metadata.gz: e525481e02aa901ce295489fe955b9d49c334585
4
+ data.tar.gz: d78f258427d1b5fdb04340ffa17b632a32c23857
5
5
  SHA512:
6
- metadata.gz: 6c2c5e0ff5da0769b6eb67d8d93551a48d47e67672fdc07a7dac1a8e27b93b0a582addeb54580d14a9d2faeb21714b56cb807855fa82070b38465674393f4419
7
- data.tar.gz: 875bd36e8e8d22c5fd138371ff7809689d0525b61404a0cb0a769f7c1dcd5c28e8e5f97c7f4e71fe0575f3330b4d83d6f2cd6e681f4376d052e3e7cf7669a4c9
6
+ metadata.gz: 20dfc4930c899c184825dcfabcd2fa09916bec1d75e20a7ff12fe6f3dc25cf5c2d311c29f059fd0ee33f0e8d7626107a6014fc944a797899d260c969f87f6720
7
+ data.tar.gz: b736a03384bec0ed3cc6ed1d8d3585976844ff351ed0c018bbebb6b693ba2b0ace610b42177eb9d5aff738ccebcba2319de2da4840f245f2174ea2652c39acd1
@@ -264,13 +264,29 @@ module AthenaHealth
264
264
  end
265
265
 
266
266
  def create_patient_insurance(practice_id:, patient_id:, insurance_package_id:, sequence_number:, params: {})
267
- response = @api.call(
267
+ @api.call(
268
268
  endpoint: "#{practice_id}/patients/#{patient_id}/insurances",
269
269
  method: :post,
270
270
  body: params.merge!(insurancepackageid: insurance_package_id, sequencenumber: sequence_number)
271
271
  )
272
272
  end
273
273
 
274
+ def update_patient_insurance(practice_id:, patient_id:, sequence_number:, params: {})
275
+ @api.call(
276
+ endpoint: "#{practice_id}/patients/#{patient_id}/insurances",
277
+ method: :put,
278
+ params: params.merge!(sequencenumber: sequence_number)
279
+ )
280
+ end
281
+
282
+ def delete_patient_insurance(practice_id:, patient_id:, sequence_number:, params: {})
283
+ @api.call(
284
+ endpoint: "#{practice_id}/patients/#{patient_id}/insurances",
285
+ method: :delete,
286
+ params: params.merge!(sequencenumber: sequence_number)
287
+ )
288
+ end
289
+
274
290
  def record_payment(practice_id:, department_id:, patient_id:, payment_method:, amount:, params: {})
275
291
  @api.call(
276
292
  endpoint: "#{practice_id}/patients/#{patient_id}/recordpayment",
@@ -1,3 +1,3 @@
1
1
  module AthenaHealth
2
- VERSION = '1.0.26'.freeze
2
+ VERSION = '1.0.27'.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.26
4
+ version: 1.0.27
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-06-21 00:00:00.000000000 Z
11
+ date: 2016-06-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus