eligible 3.0.0.beta28 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.circleci/config.yml +1 -1
- data/.gitignore +0 -1
- data/.ruby-version +1 -1
- data/CHANGELOG.md +11 -99
- data/Gemfile +0 -4
- data/Gemfile.lock +36 -41
- data/README.md +54 -51
- data/eligible.gemspec +6 -6
- data/lib/eligible/api_resource.rb +6 -27
- data/lib/eligible/calculator_deploy_url.rb +2 -2
- data/lib/eligible/claim.rb +10 -10
- data/lib/eligible/coverage.rb +4 -8
- data/lib/eligible/coverage_resource.rb +4 -4
- data/lib/eligible/customer.rb +8 -8
- data/lib/eligible/enrollment.rb +8 -8
- data/lib/eligible/errors/eligible_error.rb +1 -2
- data/lib/eligible/icd.rb +6 -6
- data/lib/eligible/lockbox.rb +6 -6
- data/lib/eligible/ocr.rb +2 -2
- data/lib/eligible/original_signature_pdf.rb +10 -12
- data/lib/eligible/payer.rb +6 -6
- data/lib/eligible/payment.rb +4 -4
- data/lib/eligible/preauth_resource.rb +4 -4
- data/lib/eligible/precert.rb +2 -2
- data/lib/eligible/provider_model.rb +2 -2
- data/lib/eligible/public_key.rb +8 -8
- data/lib/eligible/received_pdf.rb +4 -6
- data/lib/eligible/risk_assessment.rb +6 -6
- data/lib/eligible/session_token.rb +4 -4
- data/lib/eligible/ticket.rb +12 -12
- data/lib/eligible/util.rb +3 -3
- data/lib/eligible/version.rb +1 -1
- data/lib/eligible/visit_type.rb +4 -4
- data/lib/eligible/x12.rb +2 -2
- data/lib/eligible.rb +38 -150
- metadata +17 -56
- data/lib/eligible/oauth_token.rb +0 -9
- data/lib/eligible/payer_mapping.rb +0 -37
- data/lib/eligible/v1_0/action.rb +0 -9
- data/lib/eligible/v1_0/attribute.rb +0 -9
- data/lib/eligible/v1_0/balance_capture.rb +0 -21
- data/lib/eligible/v1_0/charge.rb +0 -13
- data/lib/eligible/v1_0/claim.rb +0 -25
- data/lib/eligible/v1_0/claim_service_line.rb +0 -9
- data/lib/eligible/v1_0/contract.rb +0 -9
- data/lib/eligible/v1_0/device.rb +0 -9
- data/lib/eligible/v1_0/discount.rb +0 -9
- data/lib/eligible/v1_0/enrollment.rb +0 -17
- data/lib/eligible/v1_0/estimate.rb +0 -29
- data/lib/eligible/v1_0/estimate_service_line.rb +0 -17
- data/lib/eligible/v1_0/fee.rb +0 -21
- data/lib/eligible/v1_0/fee_refund.rb +0 -29
- data/lib/eligible/v1_0/file.rb +0 -17
- data/lib/eligible/v1_0/file_link.rb +0 -13
- data/lib/eligible/v1_0/insurance_company.rb +0 -21
- data/lib/eligible/v1_0/insurance_company_alias.rb +0 -9
- data/lib/eligible/v1_0/insurance_policy.rb +0 -9
- data/lib/eligible/v1_0/patient_question.rb +0 -9
- data/lib/eligible/v1_0/patient_questionnaire.rb +0 -9
- data/lib/eligible/v1_0/patient_record.rb +0 -9
- data/lib/eligible/v1_0/patient_statement.rb +0 -59
- data/lib/eligible/v1_0/patient_statement_service_line.rb +0 -13
- data/lib/eligible/v1_0/payment_report.rb +0 -21
- data/lib/eligible/v1_0/product.rb +0 -9
- data/lib/eligible/v1_0/provider.rb +0 -9
- data/lib/eligible/v1_0/refund.rb +0 -21
- data/lib/eligible/v1_0/remark.rb +0 -21
- data/lib/eligible/v1_0/rest_api_base.rb +0 -44
- data/lib/eligible/v1_0/rule.rb +0 -13
- data/lib/eligible/v1_0/session.rb +0 -21
- data/lib/eligible/v1_0/transaction.rb +0 -21
- data/lib/eligible/v1_0/treatment.rb +0 -9
- data/lib/eligible/v1_0/value_list.rb +0 -9
- data/lib/eligible/v1_0/value_list_item.rb +0 -9
- data/lib/eligible/v1_0/verification.rb +0 -17
data/lib/eligible.rb
CHANGED
@@ -25,10 +25,8 @@ require 'eligible/ticket'
|
|
25
25
|
require 'eligible/customer'
|
26
26
|
require 'eligible/ocr'
|
27
27
|
require 'eligible/original_signature_pdf'
|
28
|
-
require 'eligible/oauth_token'
|
29
28
|
require 'eligible/received_pdf'
|
30
29
|
require 'eligible/payer'
|
31
|
-
require 'eligible/payer_mapping'
|
32
30
|
require 'eligible/preauth_resource'
|
33
31
|
require 'eligible/precert'
|
34
32
|
require 'eligible/referral'
|
@@ -41,45 +39,6 @@ require 'eligible/calculator_deploy_url'
|
|
41
39
|
require 'eligible/risk_assessment'
|
42
40
|
require 'eligible/icd'
|
43
41
|
|
44
|
-
# New REST API Endpoints
|
45
|
-
require 'eligible/v1_0/rest_api_base'
|
46
|
-
require 'eligible/v1_0/action'
|
47
|
-
require 'eligible/v1_0/attribute'
|
48
|
-
require 'eligible/v1_0/balance_capture'
|
49
|
-
require 'eligible/v1_0/charge'
|
50
|
-
require 'eligible/v1_0/claim'
|
51
|
-
require 'eligible/v1_0/claim_service_line'
|
52
|
-
require 'eligible/v1_0/contract'
|
53
|
-
require 'eligible/v1_0/device'
|
54
|
-
require 'eligible/v1_0/discount'
|
55
|
-
require 'eligible/v1_0/enrollment'
|
56
|
-
require 'eligible/v1_0/estimate'
|
57
|
-
require 'eligible/v1_0/estimate_service_line'
|
58
|
-
require 'eligible/v1_0/fee'
|
59
|
-
require 'eligible/v1_0/fee_refund'
|
60
|
-
require 'eligible/v1_0/file'
|
61
|
-
require 'eligible/v1_0/file_link'
|
62
|
-
require 'eligible/v1_0/insurance_company'
|
63
|
-
require 'eligible/v1_0/insurance_company_alias'
|
64
|
-
require 'eligible/v1_0/insurance_policy'
|
65
|
-
require 'eligible/v1_0/patient_record'
|
66
|
-
require 'eligible/v1_0/patient_statement'
|
67
|
-
require 'eligible/v1_0/patient_statement_service_line'
|
68
|
-
require 'eligible/v1_0/payment_report'
|
69
|
-
require 'eligible/v1_0/patient_question'
|
70
|
-
require 'eligible/v1_0/patient_questionnaire'
|
71
|
-
require 'eligible/v1_0/product'
|
72
|
-
require 'eligible/v1_0/provider'
|
73
|
-
require 'eligible/v1_0/refund'
|
74
|
-
require 'eligible/v1_0/remark'
|
75
|
-
require 'eligible/v1_0/rule'
|
76
|
-
require 'eligible/v1_0/session'
|
77
|
-
require 'eligible/v1_0/transaction'
|
78
|
-
require 'eligible/v1_0/treatment'
|
79
|
-
require 'eligible/v1_0/value_list'
|
80
|
-
require 'eligible/v1_0/value_list_item'
|
81
|
-
require 'eligible/v1_0/verification'
|
82
|
-
|
83
42
|
# Errors
|
84
43
|
require 'eligible/errors/eligible_error'
|
85
44
|
require 'eligible/errors/api_connection_error'
|
@@ -92,35 +51,14 @@ module Eligible
|
|
92
51
|
@@test = false
|
93
52
|
@@api_version = '1.5'
|
94
53
|
@@api_base = "https://gds.eligibleapi.com/v#{@@api_version}"
|
95
|
-
@@fingerprints = %w(
|
54
|
+
@@fingerprints = %w(1fe04161ed657b55ac29a0c48da4cf246f8e657b
|
55
|
+
1a1b7d4faa43ecdeab40cc8d203583624d5917f4
|
56
|
+
b4225ee59dc7ede4d68e7b2c75c6e6ac79649416
|
96
57
|
75132c1ab844500c6ad1f26b49c11d36933ce868
|
97
|
-
|
98
|
-
a1cd762a9f4be0f3b6bdd6300e52c6ce8d7d67f5
|
99
|
-
36d6b6f98a2b9bcdf4321d1978553e23cf044b53
|
100
|
-
d93b7697100fe978ae0f78fbf2a2443cc1958ca3
|
101
|
-
896ce24f7a83eb656c040985fdb50ce39f90b813)
|
102
|
-
@@eligible_account = nil
|
103
|
-
@@eligible_account_id = nil
|
104
|
-
|
105
|
-
def self.api_url(url = '', rest_api_version = nil)
|
106
|
-
api_base = rest_api_version ? @@api_base.gsub(/v(\d).(\d)/, "v#{rest_api_version}") : @@api_base
|
107
|
-
api_base + url.to_s
|
108
|
-
end
|
58
|
+
a1cd762a9f4be0f3b6bdd6300e52c6ce8d7d67f5)
|
109
59
|
|
110
|
-
def self.
|
111
|
-
@@
|
112
|
-
end
|
113
|
-
|
114
|
-
def self.eligible_account_id
|
115
|
-
@@eligible_account_id
|
116
|
-
end
|
117
|
-
|
118
|
-
def self.eligible_account=(eligible_account)
|
119
|
-
@@eligible_account = eligible_account
|
120
|
-
end
|
121
|
-
|
122
|
-
def self.eligible_account_id=(eligible_account_id)
|
123
|
-
@@eligible_account_id = eligible_account_id
|
60
|
+
def self.api_url(url = '')
|
61
|
+
@@api_base + url.to_s
|
124
62
|
end
|
125
63
|
|
126
64
|
def self.api_key
|
@@ -176,18 +114,12 @@ module Eligible
|
|
176
114
|
Util.key?(params, :api_key)
|
177
115
|
end
|
178
116
|
|
179
|
-
def self.rest_api_version?(params)
|
180
|
-
Util.key?(params, :rest_api_version)
|
181
|
-
end
|
182
|
-
|
183
117
|
def self.request(method, url, api_key, params = {}, headers = {})
|
184
118
|
session_token = Util.value(params, :session_token)
|
185
119
|
api_key ||= @@api_key unless session_token
|
186
120
|
test = self.test
|
187
121
|
api_key = Util.value(params, :api_key) if api_key?(params)
|
188
122
|
test = Util.value(params, :test) if test_key?(params)
|
189
|
-
rest_api_version = Util.value(params, :rest_api_version) if rest_api_version?(params)
|
190
|
-
basic_auth = true if rest_api_version?(params)
|
191
123
|
|
192
124
|
fail AuthenticationError, 'No API key provided. (HINT: set your API key using "Eligible.api_key = <API-KEY>".' unless api_key || session_token
|
193
125
|
|
@@ -201,13 +133,39 @@ module Eligible
|
|
201
133
|
uname: uname
|
202
134
|
}
|
203
135
|
|
204
|
-
#
|
205
|
-
|
206
|
-
|
207
|
-
|
136
|
+
# GET requests, parameters on the query string
|
137
|
+
# POST requests, parameters as json in the body
|
138
|
+
url = api_url(url)
|
139
|
+
case method.to_s.downcase.to_sym
|
140
|
+
when :get, :head, :delete
|
141
|
+
url += "?api_key=#{api_key}"
|
142
|
+
if params && params.count > 0
|
143
|
+
query_string = Util.flatten_params(params).collect { |key, value| "#{key}=#{Util.url_encode(value)}" }.join('&')
|
144
|
+
url += "&#{query_string}"
|
145
|
+
end
|
146
|
+
url += "&test=#{test}"
|
147
|
+
payload = nil
|
148
|
+
else
|
149
|
+
params.merge!('api_key' => api_key, 'test' => test)
|
150
|
+
payload = Util.key?(params, :file) ? params : Eligible::JSON.dump(params)
|
151
|
+
end
|
152
|
+
|
153
|
+
begin
|
154
|
+
headers = { x_eligible_debuginfo: Eligible::JSON.dump(debug_info) }.merge(headers)
|
155
|
+
rescue => e
|
156
|
+
headers = {
|
157
|
+
x_eligible_client_raw_user_agent: debug_info.inspect,
|
158
|
+
error: "#{e} (#{e.class})"
|
159
|
+
}.merge(headers)
|
160
|
+
end
|
161
|
+
|
162
|
+
headers = {
|
163
|
+
user_agent: "eligible-ruby/#{Eligible::VERSION}",
|
164
|
+
authorization: "Bearer #{api_key}",
|
165
|
+
content_type: 'application/json'
|
166
|
+
}.merge(headers)
|
208
167
|
|
209
|
-
|
210
|
-
headers = generate_request_headers(headers, debug_info, basic_auth, { api_key: api_key, session_token: session_token })
|
168
|
+
headers[:eligible_version] = api_version if api_version
|
211
169
|
|
212
170
|
opts = {
|
213
171
|
method: method,
|
@@ -262,76 +220,6 @@ module Eligible
|
|
262
220
|
return [ resp, api_key ]
|
263
221
|
end
|
264
222
|
|
265
|
-
def self.generate_request_url_and_payload(method, url, params, options)
|
266
|
-
# GET requests, parameters on the query string
|
267
|
-
# POST requests, parameters as json in the body
|
268
|
-
url = api_url(url, options[:rest_api_version])
|
269
|
-
# Used rest_api_version param only to identify new REST API version, and is not required to make calls for new REST api endpoints
|
270
|
-
params.delete(:rest_api_version)
|
271
|
-
case method.to_s.downcase.to_sym
|
272
|
-
when :get, :head, :delete
|
273
|
-
url = fetch_url_with_query_string(params, url, options)
|
274
|
-
payload = nil
|
275
|
-
else
|
276
|
-
payload = request_payload(options, params)
|
277
|
-
end
|
278
|
-
|
279
|
-
[url, payload]
|
280
|
-
end
|
281
|
-
|
282
|
-
def self.fetch_url_with_query_string(params, url, options)
|
283
|
-
url += options_query_string(options)
|
284
|
-
return url unless params || params.count == 0
|
285
|
-
|
286
|
-
query_string = params_query_string(params)
|
287
|
-
url += options[:basic_auth] ? "?#{query_string}" : "&#{query_string}"
|
288
|
-
url
|
289
|
-
end
|
290
|
-
|
291
|
-
def self.options_query_string(options)
|
292
|
-
options[:basic_auth] ? '' : "?test=#{options[:test]}&api_key=#{options[:api_key]}"
|
293
|
-
end
|
294
|
-
|
295
|
-
def self.params_query_string(params)
|
296
|
-
Util.flatten_params(params).collect { |key, value| "#{key}=#{Util.url_encode(value)}" }.join('&')
|
297
|
-
end
|
298
|
-
|
299
|
-
def self.request_payload(options, params)
|
300
|
-
params.merge!('test' => options[:test], 'api_key' => options[:api_key]) unless options[:basic_auth]
|
301
|
-
Util.key?(params, :file) ? params : Eligible::JSON.dump(params)
|
302
|
-
end
|
303
|
-
|
304
|
-
def self.generate_request_headers(headers, debug_info, basic_auth, auth_options)
|
305
|
-
begin
|
306
|
-
headers = { x_eligible_debuginfo: Eligible::JSON.dump(debug_info) }.merge(headers)
|
307
|
-
rescue => e
|
308
|
-
headers = {
|
309
|
-
x_eligible_client_raw_user_agent: debug_info.inspect,
|
310
|
-
error: "#{e} (#{e.class})"
|
311
|
-
}.merge(headers)
|
312
|
-
end
|
313
|
-
|
314
|
-
headers = {
|
315
|
-
user_agent: "eligible-ruby/#{Eligible::VERSION}",
|
316
|
-
content_type: 'application/json'
|
317
|
-
}.merge(headers)
|
318
|
-
|
319
|
-
headers[:authorization] = authorization_header(basic_auth, auth_options)
|
320
|
-
headers[:eligible_version] = api_version if api_version
|
321
|
-
headers[:eligible_account] = eligible_account if eligible_account
|
322
|
-
headers[:eligible_account_id] = eligible_account_id if eligible_account_id
|
323
|
-
headers
|
324
|
-
end
|
325
|
-
|
326
|
-
def self.authorization_header(basic_auth, auth_options)
|
327
|
-
# Using Bearer scheme for Session Token Auth for new REST API endpoints (v1.0)
|
328
|
-
return "Bearer #{auth_options[:session_token]}" if basic_auth && auth_options[:session_token]
|
329
|
-
|
330
|
-
# Using Basic Auth for new REST API endpoints (v1.0)
|
331
|
-
basic_auth_token = Base64.strict_encode64("#{auth_options[:api_key]}:")
|
332
|
-
"Basic #{basic_auth_token}" if basic_auth
|
333
|
-
end
|
334
|
-
|
335
223
|
def self.verify_certificate
|
336
224
|
lambda do |preverify_ok, certificate_store|
|
337
225
|
return true if test == 'true'
|
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: 3.0.0
|
4
|
+
version: 3.0.0
|
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:
|
13
|
+
date: 2024-01-18 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rest-client
|
@@ -18,84 +18,84 @@ dependencies:
|
|
18
18
|
requirements:
|
19
19
|
- - "~>"
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: 2.
|
21
|
+
version: 2.1.0
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
25
|
requirements:
|
26
26
|
- - "~>"
|
27
27
|
- !ruby/object:Gem::Version
|
28
|
-
version: 2.
|
28
|
+
version: 2.1.0
|
29
29
|
- !ruby/object:Gem::Dependency
|
30
30
|
name: multi_json
|
31
31
|
requirement: !ruby/object:Gem::Requirement
|
32
32
|
requirements:
|
33
33
|
- - "~>"
|
34
34
|
- !ruby/object:Gem::Version
|
35
|
-
version:
|
35
|
+
version: 1.15.0
|
36
36
|
type: :runtime
|
37
37
|
prerelease: false
|
38
38
|
version_requirements: !ruby/object:Gem::Requirement
|
39
39
|
requirements:
|
40
40
|
- - "~>"
|
41
41
|
- !ruby/object:Gem::Version
|
42
|
-
version:
|
42
|
+
version: 1.15.0
|
43
43
|
- !ruby/object:Gem::Dependency
|
44
44
|
name: rake
|
45
45
|
requirement: !ruby/object:Gem::Requirement
|
46
46
|
requirements:
|
47
47
|
- - "~>"
|
48
48
|
- !ruby/object:Gem::Version
|
49
|
-
version:
|
49
|
+
version: 13.0.6
|
50
50
|
type: :development
|
51
51
|
prerelease: false
|
52
52
|
version_requirements: !ruby/object:Gem::Requirement
|
53
53
|
requirements:
|
54
54
|
- - "~>"
|
55
55
|
- !ruby/object:Gem::Version
|
56
|
-
version:
|
56
|
+
version: 13.0.6
|
57
57
|
- !ruby/object:Gem::Dependency
|
58
58
|
name: rspec
|
59
59
|
requirement: !ruby/object:Gem::Requirement
|
60
60
|
requirements:
|
61
61
|
- - "~>"
|
62
62
|
- !ruby/object:Gem::Version
|
63
|
-
version:
|
63
|
+
version: 3.11.0
|
64
64
|
type: :development
|
65
65
|
prerelease: false
|
66
66
|
version_requirements: !ruby/object:Gem::Requirement
|
67
67
|
requirements:
|
68
68
|
- - "~>"
|
69
69
|
- !ruby/object:Gem::Version
|
70
|
-
version:
|
70
|
+
version: 3.11.0
|
71
71
|
- !ruby/object:Gem::Dependency
|
72
72
|
name: rspec_junit_formatter
|
73
73
|
requirement: !ruby/object:Gem::Requirement
|
74
74
|
requirements:
|
75
75
|
- - "~>"
|
76
76
|
- !ruby/object:Gem::Version
|
77
|
-
version: 0.
|
77
|
+
version: 0.5.1x
|
78
78
|
type: :development
|
79
79
|
prerelease: false
|
80
80
|
version_requirements: !ruby/object:Gem::Requirement
|
81
81
|
requirements:
|
82
82
|
- - "~>"
|
83
83
|
- !ruby/object:Gem::Version
|
84
|
-
version: 0.
|
84
|
+
version: 0.5.1x
|
85
85
|
- !ruby/object:Gem::Dependency
|
86
86
|
name: simplecov
|
87
87
|
requirement: !ruby/object:Gem::Requirement
|
88
88
|
requirements:
|
89
89
|
- - "~>"
|
90
90
|
- !ruby/object:Gem::Version
|
91
|
-
version:
|
91
|
+
version: 0.21.2
|
92
92
|
type: :development
|
93
93
|
prerelease: false
|
94
94
|
version_requirements: !ruby/object:Gem::Requirement
|
95
95
|
requirements:
|
96
96
|
- - "~>"
|
97
97
|
- !ruby/object:Gem::Version
|
98
|
-
version:
|
98
|
+
version: 0.21.2
|
99
99
|
description: Eligible is a developer-friendly way to process health care eligibility
|
100
100
|
checks. Learn more at https://eligible.com
|
101
101
|
email:
|
@@ -139,11 +139,9 @@ files:
|
|
139
139
|
- lib/eligible/json.rb
|
140
140
|
- lib/eligible/lockbox.rb
|
141
141
|
- lib/eligible/medicare.rb
|
142
|
-
- lib/eligible/oauth_token.rb
|
143
142
|
- lib/eligible/ocr.rb
|
144
143
|
- lib/eligible/original_signature_pdf.rb
|
145
144
|
- lib/eligible/payer.rb
|
146
|
-
- lib/eligible/payer_mapping.rb
|
147
145
|
- lib/eligible/payment.rb
|
148
146
|
- lib/eligible/preauth_resource.rb
|
149
147
|
- lib/eligible/precert.rb
|
@@ -155,43 +153,6 @@ files:
|
|
155
153
|
- lib/eligible/session_token.rb
|
156
154
|
- lib/eligible/ticket.rb
|
157
155
|
- lib/eligible/util.rb
|
158
|
-
- lib/eligible/v1_0/action.rb
|
159
|
-
- lib/eligible/v1_0/attribute.rb
|
160
|
-
- lib/eligible/v1_0/balance_capture.rb
|
161
|
-
- lib/eligible/v1_0/charge.rb
|
162
|
-
- lib/eligible/v1_0/claim.rb
|
163
|
-
- lib/eligible/v1_0/claim_service_line.rb
|
164
|
-
- lib/eligible/v1_0/contract.rb
|
165
|
-
- lib/eligible/v1_0/device.rb
|
166
|
-
- lib/eligible/v1_0/discount.rb
|
167
|
-
- lib/eligible/v1_0/enrollment.rb
|
168
|
-
- lib/eligible/v1_0/estimate.rb
|
169
|
-
- lib/eligible/v1_0/estimate_service_line.rb
|
170
|
-
- lib/eligible/v1_0/fee.rb
|
171
|
-
- lib/eligible/v1_0/fee_refund.rb
|
172
|
-
- lib/eligible/v1_0/file.rb
|
173
|
-
- lib/eligible/v1_0/file_link.rb
|
174
|
-
- lib/eligible/v1_0/insurance_company.rb
|
175
|
-
- lib/eligible/v1_0/insurance_company_alias.rb
|
176
|
-
- lib/eligible/v1_0/insurance_policy.rb
|
177
|
-
- lib/eligible/v1_0/patient_question.rb
|
178
|
-
- lib/eligible/v1_0/patient_questionnaire.rb
|
179
|
-
- lib/eligible/v1_0/patient_record.rb
|
180
|
-
- lib/eligible/v1_0/patient_statement.rb
|
181
|
-
- lib/eligible/v1_0/patient_statement_service_line.rb
|
182
|
-
- lib/eligible/v1_0/payment_report.rb
|
183
|
-
- lib/eligible/v1_0/product.rb
|
184
|
-
- lib/eligible/v1_0/provider.rb
|
185
|
-
- lib/eligible/v1_0/refund.rb
|
186
|
-
- lib/eligible/v1_0/remark.rb
|
187
|
-
- lib/eligible/v1_0/rest_api_base.rb
|
188
|
-
- lib/eligible/v1_0/rule.rb
|
189
|
-
- lib/eligible/v1_0/session.rb
|
190
|
-
- lib/eligible/v1_0/transaction.rb
|
191
|
-
- lib/eligible/v1_0/treatment.rb
|
192
|
-
- lib/eligible/v1_0/value_list.rb
|
193
|
-
- lib/eligible/v1_0/value_list_item.rb
|
194
|
-
- lib/eligible/v1_0/verification.rb
|
195
156
|
- lib/eligible/version.rb
|
196
157
|
- lib/eligible/visit_type.rb
|
197
158
|
- lib/eligible/x12.rb
|
@@ -210,11 +171,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
210
171
|
version: '0'
|
211
172
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
212
173
|
requirements:
|
213
|
-
- - "
|
174
|
+
- - ">="
|
214
175
|
- !ruby/object:Gem::Version
|
215
|
-
version:
|
176
|
+
version: '0'
|
216
177
|
requirements: []
|
217
|
-
rubygems_version: 3.
|
178
|
+
rubygems_version: 3.3.3
|
218
179
|
signing_key:
|
219
180
|
specification_version: 4
|
220
181
|
summary: Ruby wrapper for the Eligible API
|
data/lib/eligible/oauth_token.rb
DELETED
@@ -1,37 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module Eligible
|
4
|
-
class PayerMapping < APIResource
|
5
|
-
def self.mapper(params, opts = {})
|
6
|
-
send_request :post, '/payer_mapping/mapper', params, opts
|
7
|
-
end
|
8
|
-
|
9
|
-
def self.mapper_batch(params, opts = {})
|
10
|
-
send_request :post, '/payer_mapping/mapper/batch', params, opts
|
11
|
-
end
|
12
|
-
|
13
|
-
def self.search(params, opts = {})
|
14
|
-
send_request :post, '/payer_mapping/search', params, opts
|
15
|
-
end
|
16
|
-
|
17
|
-
def self.search_batch(params, opts = {})
|
18
|
-
send_request :post, '/payer_mapping/search/batch', params, opts
|
19
|
-
end
|
20
|
-
|
21
|
-
def self.normalize(params, opts = {})
|
22
|
-
send_request :post, '/payer_mapping/normalize', params, opts
|
23
|
-
end
|
24
|
-
|
25
|
-
def self.normalize_batch(params, opts = {})
|
26
|
-
send_request :post, '/payer_mapping/normalize/batch', params, opts
|
27
|
-
end
|
28
|
-
|
29
|
-
def self.normalize_cased(params, opts = {})
|
30
|
-
send_request :post, '/payer_mapping/normalize_cased', params, opts
|
31
|
-
end
|
32
|
-
|
33
|
-
def self.normalize_cased_batch(params, opts = {})
|
34
|
-
send_request :post, '/payer_mapping/normalize_cased/batch', params, opts
|
35
|
-
end
|
36
|
-
end
|
37
|
-
end
|
data/lib/eligible/v1_0/action.rb
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module Eligible
|
4
|
-
module V1_0
|
5
|
-
class BalanceCapture < RestAPIBase
|
6
|
-
ENDPOINT_NAME = 'balance_captures'.freeze
|
7
|
-
|
8
|
-
def self.create(_params, _opts = {})
|
9
|
-
fail NotImplementedError, "Not an allowed operation for this endpoint"
|
10
|
-
end
|
11
|
-
|
12
|
-
def self.update(_params, _opts = {})
|
13
|
-
fail NotImplementedError, "Not an allowed operation for this endpoint"
|
14
|
-
end
|
15
|
-
|
16
|
-
def self.delete(_params, _opts = {})
|
17
|
-
fail NotImplementedError, "Not an allowed operation for this endpoint"
|
18
|
-
end
|
19
|
-
end
|
20
|
-
end
|
21
|
-
end
|
data/lib/eligible/v1_0/charge.rb
DELETED
@@ -1,13 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module Eligible
|
4
|
-
module V1_0
|
5
|
-
class Charge < RestAPIBase
|
6
|
-
ENDPOINT_NAME = 'charges'.freeze
|
7
|
-
|
8
|
-
def self.delete(_params, _opts = {})
|
9
|
-
fail NotImplementedError, "Not an allowed operation for this endpoint"
|
10
|
-
end
|
11
|
-
end
|
12
|
-
end
|
13
|
-
end
|
data/lib/eligible/v1_0/claim.rb
DELETED
@@ -1,25 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module Eligible
|
4
|
-
module V1_0
|
5
|
-
class Claim < RestAPIBase
|
6
|
-
ENDPOINT_NAME = 'claims'.freeze
|
7
|
-
|
8
|
-
def self.delete(_params, _opts = {})
|
9
|
-
fail NotImplementedError, "Not an allowed operation for this endpoint"
|
10
|
-
end
|
11
|
-
|
12
|
-
def self.submit(id, opts = {})
|
13
|
-
send_request :post, "/#{endpoint_name}/#{object_id(id)}/submit", rest_api_params(id), opts.merge(required_params: [:id])
|
14
|
-
end
|
15
|
-
|
16
|
-
def self.correct(id, opts = {})
|
17
|
-
send_request :post, "/#{endpoint_name}/#{object_id(id)}/correct", rest_api_params(id), opts.merge(required_params: [:id])
|
18
|
-
end
|
19
|
-
|
20
|
-
def self.cancel(id, opts = {})
|
21
|
-
send_request :delete, "/#{endpoint_name}/#{object_id(id)}/cancel", rest_api_params(id), opts.merge(required_params: [:id])
|
22
|
-
end
|
23
|
-
end
|
24
|
-
end
|
25
|
-
end
|
data/lib/eligible/v1_0/device.rb
DELETED
@@ -1,17 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module Eligible
|
4
|
-
module V1_0
|
5
|
-
class Enrollment < RestAPIBase
|
6
|
-
ENDPOINT_NAME = 'enrollments'.freeze
|
7
|
-
|
8
|
-
def self.summary(params, opts = {})
|
9
|
-
send_request :get, "/#{endpoint_name}/summary", rest_api_params(params), opts
|
10
|
-
end
|
11
|
-
|
12
|
-
def self.escalate(id, opts = {})
|
13
|
-
send_request :post, "/#{endpoint_name}/#{object_id(id)}/escalate", rest_api_params(id), opts.merge(required_params: [:id])
|
14
|
-
end
|
15
|
-
end
|
16
|
-
end
|
17
|
-
end
|
@@ -1,29 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module Eligible
|
4
|
-
module V1_0
|
5
|
-
class Estimate < RestAPIBase
|
6
|
-
ENDPOINT_NAME = 'estimates'.freeze
|
7
|
-
|
8
|
-
def self.process(id, opts = {})
|
9
|
-
send_request :post, "/#{endpoint_name}/#{object_id(id)}/process", rest_api_params(id), opts.merge(required_params: [:id])
|
10
|
-
end
|
11
|
-
|
12
|
-
def self.reestimate(id, opts = {})
|
13
|
-
send_request :post, "/#{endpoint_name}/#{object_id(id)}/reestimate", rest_api_params(id), opts.merge(required_params: [:id])
|
14
|
-
end
|
15
|
-
|
16
|
-
def self.convert(id, opts = {})
|
17
|
-
send_request :post, "/#{endpoint_name}/#{object_id(id)}/convert", rest_api_params(id), opts.merge(required_params: [:id])
|
18
|
-
end
|
19
|
-
|
20
|
-
def self.update(_params, _opts = {})
|
21
|
-
fail NotImplementedError, "Not an allowed operation for this endpoint"
|
22
|
-
end
|
23
|
-
|
24
|
-
def self.delete(_params, _opts = {})
|
25
|
-
fail NotImplementedError, "Not an allowed operation for this endpoint"
|
26
|
-
end
|
27
|
-
end
|
28
|
-
end
|
29
|
-
end
|
@@ -1,17 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module Eligible
|
4
|
-
module V1_0
|
5
|
-
class EstimateServiceLine < RestAPIBase
|
6
|
-
ENDPOINT_NAME = 'estimate_service_lines'.freeze
|
7
|
-
end
|
8
|
-
|
9
|
-
def self.update(_params, _opts = {})
|
10
|
-
fail NotImplementedError, "Not an allowed operation for this endpoint"
|
11
|
-
end
|
12
|
-
|
13
|
-
def self.delete(_params, _opts = {})
|
14
|
-
fail NotImplementedError, "Not an allowed operation for this endpoint"
|
15
|
-
end
|
16
|
-
end
|
17
|
-
end
|