eligible 2.4.1 → 2.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/README.md +19 -6
- data/lib/eligible/payment.rb +1 -7
- data/lib/eligible/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f57a9483fbdff67eac7ce7f5cd75227ba44c4a0c
|
4
|
+
data.tar.gz: 72a0e0999755844f5d6dcb35343afb8aed18bdb7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 164f678fc348a9f5cbe928854ceb9ea2e31e02ff704970a0510e1872eafff289750876b3b7c94a5c3c681c37e17fdbf524dd1c4f48de21789708637ba1339d98
|
7
|
+
data.tar.gz: c2bbbaf2952e1164ec59d5a360b98c32d5eff979a80724d3c7061d10b8b26398ad1c7b21cb9a90d87dc6ea79f3e91f4d4e234f142c8cb5a009d243205d65400f
|
data/.gitignore
CHANGED
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(
|
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(
|
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://
|
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 = { :
|
459
|
-
|
460
|
-
|
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
|
data/lib/eligible/payment.rb
CHANGED
@@ -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
|
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
|
data/lib/eligible/version.rb
CHANGED
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.
|
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-
|
13
|
+
date: 2013-10-15 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: mocha
|