eligible 2.4.1 → 2.4.2

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: b1ed13fe5084703a13e0d531de177e73e1f38a4e
4
- data.tar.gz: 43b6296949c68d3113f6ec1f1db1d5d6aaaf6d43
3
+ metadata.gz: f57a9483fbdff67eac7ce7f5cd75227ba44c4a0c
4
+ data.tar.gz: 72a0e0999755844f5d6dcb35343afb8aed18bdb7
5
5
  SHA512:
6
- metadata.gz: 5769440475201703b7162d82cf4d28156389e9e52c2e0c5ac83b3c560589848c014898bc41831383ce70a830a34fa26a1517e8b0c6fcaf877d83088d6e551a14
7
- data.tar.gz: da1097a703dc3d255c6fea2871c43e2ccc087f2ee3298252205113f5328981aa156624adf85d4b401bdc6660dafbd0814ebad35076b1c62ddf5c12db4841bbe1
6
+ metadata.gz: 164f678fc348a9f5cbe928854ceb9ea2e31e02ff704970a0510e1872eafff289750876b3b7c94a5c3c681c37e17fdbf524dd1c4f48de21789708637ba1339d98
7
+ data.tar.gz: c2bbbaf2952e1164ec59d5a360b98c32d5eff979a80724d3c7061d10b8b26398ad1c7b21cb9a90d87dc6ea79f3e91f4d4e234f142c8cb5a009d243205d65400f
data/.gitignore CHANGED
@@ -16,3 +16,4 @@ test/tmp
16
16
  test/version_tmp
17
17
  tmp
18
18
  .idea
19
+ test.rb
data/README.md CHANGED
@@ -68,7 +68,7 @@ Eligible.test = true
68
68
  On each api call, you can overwrite the api key or the test parameter, i.e.
69
69
 
70
70
  ```ruby
71
- Eligible::Demographic.get(params.merge({:api_key => 'NEW_KEY', :test => false})
71
+ Eligible::Demographic.get({:api_key => 'NEW_KEY', :test => false})
72
72
  ```
73
73
 
74
74
  ### Response Format
@@ -76,7 +76,7 @@ On each api call, you can overwrite the api key or the test parameter, i.e.
76
76
  By default, all the responses came in JSON, but you can request raw access to X12 by adding is as a parameter on the api call.
77
77
 
78
78
  ```ruby
79
- Eligible::Demographic.get(params.merge({:format => "x12"}))
79
+ Eligible::Demographic.get({:format => "x12"})
80
80
  ```
81
81
 
82
82
  ### Api Call Results
@@ -146,7 +146,7 @@ demographic.error # return error, if any
146
146
 
147
147
  ### Reference
148
148
 
149
- [https://eligibleapi.com/rest-api-v1-1/medicare#apiMedicare](https://eligibleapi.com/rest-api-v1-1/medicare#apiMedicare)
149
+ [https://github.com/EligibleAPI/tools/wiki/Medicare](https://github.com/EligibleAPI/tools/wiki/Medicare)
150
150
 
151
151
  ### Retrieve eligibility & benefit information from CMS Medicare for a patient.
152
152
 
@@ -455,9 +455,22 @@ claim = Eligible::Claim.get(params) # returns acknoweldement information on an i
455
455
  ### Retrieve Payment status
456
456
 
457
457
  ```ruby
458
- params = { :reference_id => "89898989" }
459
-
460
- Eligible::Payment.get(params) # returns status information on an individual payment identified by its reference_id
458
+ params = { :payer_id => '00001',
459
+ :provider_tax_id => '4373208923',
460
+ :provider_npi => '1234567890',
461
+ :provider_first_name => 'Thomas',
462
+ :provider_first_name => 'Thomas',
463
+ :member_id => '123',
464
+ :member_first_name => 'Benjamin',
465
+ :member_last_name => 'Franklin',
466
+ :member_dob => '01-01-1980',
467
+ :charge_amount => '100.00',
468
+ :start_date => '2013-03-25',
469
+ :end_date => '2013-03-25' }
470
+
471
+ result = Eligible::Payment.get(params)
472
+ result.to_hash # return the api call results
473
+ result.error # return error, if any
461
474
  ```
462
475
 
463
476
  ## X12
@@ -4,16 +4,10 @@ module Eligible
4
4
  class << self
5
5
 
6
6
  def get(params, api_key=nil)
7
- response, api_key = Eligible.request(:get, "/payment/status/#{params[:reference_id]}.json", api_key, params)
8
- Util.convert_to_eligible_object(response, api_key)
9
- end
10
-
11
- def all(api_key=nil)
12
- response, api_key = Eligible.request(:get, '/payment/status.json', api_key, {})
7
+ response, api_key = Eligible.request(:get, "/payment/status.json", api_key, params)
13
8
  Util.convert_to_eligible_object(response, api_key)
14
9
  end
15
10
 
16
11
  end
17
-
18
12
  end
19
13
  end
@@ -1,3 +1,3 @@
1
1
  module Eligible
2
- VERSION = '2.4.1'
2
+ VERSION = '2.4.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eligible
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.1
4
+ version: 2.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Katelyn Gleaon
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-08-28 00:00:00.000000000 Z
13
+ date: 2013-10-15 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: mocha