eligible 3.0.0.beta13 → 3.0.0.beta18

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: aefce6db544898580f8d65ad3c0b553f30bd1afb63c677ddadca553bcd732132
4
- data.tar.gz: 76185674a4d1f96cb3358a9e12ffd367be8d616a01cd0c16de13e272712430b4
3
+ metadata.gz: a8c57fd811488f2050499f6d54989829cac578479e2d463fa4784909611f9913
4
+ data.tar.gz: b1d64e539b3905fb3cd360a1cb558b36f4e7195e74d19cb5124fc30e78b4a697
5
5
  SHA512:
6
- metadata.gz: 7069d579a3ab778da4cf7b6c31b235572ad5f80fd13df487d869895432272434aa1c3a985993b497df07788d6ba0e992ff38917765979f6eac3aa6bd650129b3
7
- data.tar.gz: 771c36b33ba389066e8318315239789e80f1eebcb8484b53a84cf4df8b7c28ff8fe704657275246882bf3eb99ef89f5cce61314fa6adfce9ea84c99a745969a6
6
+ metadata.gz: 027fdd3f290da7a679ac0c8f8e55aba1748204330be089a09e041d518848aa4ead23ca4a8a9c32be788b764130475c2e13655a677adbf54cb0727befd45e3e2f
7
+ data.tar.gz: 17c73894d9df42807f2b9ae78970c8bf7cbeb254fc04a8bd59452381b29297b89d11701a17cffcc709087b1da4f2402d3e6cc6f18de9417623f2ae15dea15da9
data/.gitignore CHANGED
@@ -17,3 +17,4 @@ test/tmp
17
17
  test/version_tmp
18
18
  tmp
19
19
  .idea
20
+ .DS_Store
@@ -1,5 +1,20 @@
1
1
  # Changelog
2
2
 
3
+ ## 3.0.0.beta18 - 2020-07-24
4
+ - Added claim_submit endpoint API url for PatientStatement endpoint
5
+
6
+ ## 3.0.0.beta17 - 2020-07-13
7
+ - Added support for report API endpoints
8
+
9
+ ## 3.0.0.beta16 - 2020-07-10
10
+ - Migrated "Patient" endpoint to "PatientRecord"
11
+
12
+ ## 3.0.0.beta15 - 2020-06-12
13
+ - Added support for patient questionnaire, patient questions API endpoints
14
+
15
+ ## 3.0.0.beta14 - 2020-06-08
16
+ - Added Fee and FeeRefund new REST API endpoints
17
+
3
18
  ## 3.0.0.beta13 - 2020-06-05
4
19
  - Added create, update, delete and validate endpoints support for rules
5
20
 
@@ -54,15 +54,19 @@ require 'eligible/v1_0/discount'
54
54
  require 'eligible/v1_0/enrollment'
55
55
  require 'eligible/v1_0/estimate'
56
56
  require 'eligible/v1_0/estimate_service_line'
57
+ require 'eligible/v1_0/fee'
58
+ require 'eligible/v1_0/fee_refund'
57
59
  require 'eligible/v1_0/file'
58
60
  require 'eligible/v1_0/file_link'
59
61
  require 'eligible/v1_0/insurance_company'
60
62
  require 'eligible/v1_0/insurance_company_alias'
61
63
  require 'eligible/v1_0/insurance_policy'
62
- require 'eligible/v1_0/patient'
64
+ require 'eligible/v1_0/patient_record'
63
65
  require 'eligible/v1_0/patient_statement'
64
66
  require 'eligible/v1_0/patient_statement_service_line'
65
67
  require 'eligible/v1_0/payment_report'
68
+ require 'eligible/v1_0/patient_question'
69
+ require 'eligible/v1_0/patient_questionnaire'
66
70
  require 'eligible/v1_0/product'
67
71
  require 'eligible/v1_0/provider'
68
72
  require 'eligible/v1_0/remark'
@@ -73,6 +77,9 @@ require 'eligible/v1_0/treatment'
73
77
  require 'eligible/v1_0/value_list'
74
78
  require 'eligible/v1_0/value_list_item'
75
79
  require 'eligible/v1_0/verification'
80
+ require 'eligible/v1_0/reports/accuracy_stats'
81
+ require 'eligible/v1_0/reports/estimate_friction'
82
+ require 'eligible/v1_0/reports/in_scope_distribution'
76
83
 
77
84
  # Errors
78
85
  require 'eligible/errors/eligible_error'
@@ -0,0 +1,21 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Eligible
4
+ module V1_0
5
+ class Fee < RestAPIBase
6
+ ENDPOINT_NAME = 'fees'.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
@@ -0,0 +1,29 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Eligible
4
+ module V1_0
5
+ class FeeRefund < RestAPIBase
6
+ ENDPOINT_NAME = 'fee_refunds'.freeze
7
+
8
+ def self.retrieve(params, opts = {})
9
+ send_request :get, "#{fee_url(params)}/fee_refunds/#{fee_refund_id(params)}", rest_api_params(params), opts.merge(required_params: [:id, :fee])
10
+ end
11
+
12
+ def self.create(params, opts = {})
13
+ send_request :post, "#{fee_url(params)}/fee_refunds", rest_api_params(params), opts.merge(required_params: [:fee])
14
+ end
15
+
16
+ def self.update(params, opts = {})
17
+ send_request :put, "#{fee_url(params)}/fee_refunds/#{fee_refund_id(params)}", rest_api_params(params), opts.merge(required_params: [:id, :fee])
18
+ end
19
+
20
+ def self.list(params, opts = {})
21
+ send_request :get, "#{fee_url(params)}/fee_refunds", rest_api_params(params), opts.merge(required_params: [:fee])
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
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Eligible
4
+ module V1_0
5
+ class PatientQuestion < RestAPIBase
6
+ ENDPOINT_NAME = 'rules/patient_questions'.freeze
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Eligible
4
+ module V1_0
5
+ class PatientQuestionnaire < RestAPIBase
6
+ ENDPOINT_NAME = 'rules/patient_questionnaires'.freeze
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Eligible
4
+ module V1_0
5
+ class PatientRecord < RestAPIBase
6
+ ENDPOINT_NAME = 'patient_records'.freeze
7
+ end
8
+ end
9
+ end
@@ -49,6 +49,11 @@ module Eligible
49
49
  def self.reestimate(params, opts = {})
50
50
  send_request :post, "/#{endpoint_name}/#{object_id(params)}/reestimate", rest_api_params(params), opts.merge(required_params: [:id])
51
51
  end
52
+
53
+ # Submit a claim for a patient statement
54
+ def self.submit_claim(params, opts = {})
55
+ send_request :post, "/#{endpoint_name}/#{object_id(params)}/submit_claim", rest_api_params(params), opts.merge(required_params: [:id])
56
+ end
52
57
  end
53
58
  end
54
59
  end
@@ -0,0 +1,23 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Eligible
4
+ module V1_0
5
+ module Reports
6
+ class AccuracyStats < RestAPIBase
7
+ ENDPOINT_NAME = 'reports/accuracy_stats'.freeze
8
+
9
+ def self.create(_params, _opts = {})
10
+ fail NotImplementedError, "Not an allowed operation for this endpoint"
11
+ end
12
+
13
+ def self.update(_params, _opts = {})
14
+ fail NotImplementedError, "Not an allowed operation for this endpoint"
15
+ end
16
+
17
+ def self.delete(_params, _opts = {})
18
+ fail NotImplementedError, "Not an allowed operation for this endpoint"
19
+ end
20
+ end
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,23 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Eligible
4
+ module V1_0
5
+ module Reports
6
+ class EstimateFriction < RestAPIBase
7
+ ENDPOINT_NAME = 'reports/estimate_frictions'.freeze
8
+
9
+ def self.create(_params, _opts = {})
10
+ fail NotImplementedError, "Not an allowed operation for this endpoint"
11
+ end
12
+
13
+ def self.update(_params, _opts = {})
14
+ fail NotImplementedError, "Not an allowed operation for this endpoint"
15
+ end
16
+
17
+ def self.delete(_params, _opts = {})
18
+ fail NotImplementedError, "Not an allowed operation for this endpoint"
19
+ end
20
+ end
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,23 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Eligible
4
+ module V1_0
5
+ module Reports
6
+ class InScopeDistribution < RestAPIBase
7
+ ENDPOINT_NAME = 'reports/in_scope_distributions'.freeze
8
+
9
+ def self.create(_params, _opts = {})
10
+ fail NotImplementedError, "Not an allowed operation for this endpoint"
11
+ end
12
+
13
+ def self.update(_params, _opts = {})
14
+ fail NotImplementedError, "Not an allowed operation for this endpoint"
15
+ end
16
+
17
+ def self.delete(_params, _opts = {})
18
+ fail NotImplementedError, "Not an allowed operation for this endpoint"
19
+ end
20
+ end
21
+ end
22
+ end
23
+ end
@@ -30,6 +30,15 @@ module Eligible
30
30
  def self.object_id(id_or_params)
31
31
  id_or_params.is_a?(Hash) ? Util.value(id_or_params, :id) : id_or_params
32
32
  end
33
+
34
+ def self.fee_refund_id(params)
35
+ Util.value(rest_api_params(params), :id)
36
+ end
37
+
38
+ def self.fee_url(params)
39
+ fee_id = Util.value(rest_api_params(params), :fee)
40
+ "/fees/#{fee_id}"
41
+ end
33
42
  end
34
43
  end
35
44
  end
@@ -1,3 +1,3 @@
1
1
  module Eligible
2
- VERSION = '3.0.0.beta13'.freeze
2
+ VERSION = '3.0.0.beta18'.freeze
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: 3.0.0.beta13
4
+ version: 3.0.0.beta18
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: 2020-06-05 00:00:00.000000000 Z
13
+ date: 2020-07-24 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rest-client
@@ -166,18 +166,25 @@ files:
166
166
  - lib/eligible/v1_0/enrollment.rb
167
167
  - lib/eligible/v1_0/estimate.rb
168
168
  - lib/eligible/v1_0/estimate_service_line.rb
169
+ - lib/eligible/v1_0/fee.rb
170
+ - lib/eligible/v1_0/fee_refund.rb
169
171
  - lib/eligible/v1_0/file.rb
170
172
  - lib/eligible/v1_0/file_link.rb
171
173
  - lib/eligible/v1_0/insurance_company.rb
172
174
  - lib/eligible/v1_0/insurance_company_alias.rb
173
175
  - lib/eligible/v1_0/insurance_policy.rb
174
- - lib/eligible/v1_0/patient.rb
176
+ - lib/eligible/v1_0/patient_question.rb
177
+ - lib/eligible/v1_0/patient_questionnaire.rb
178
+ - lib/eligible/v1_0/patient_record.rb
175
179
  - lib/eligible/v1_0/patient_statement.rb
176
180
  - lib/eligible/v1_0/patient_statement_service_line.rb
177
181
  - lib/eligible/v1_0/payment_report.rb
178
182
  - lib/eligible/v1_0/product.rb
179
183
  - lib/eligible/v1_0/provider.rb
180
184
  - lib/eligible/v1_0/remark.rb
185
+ - lib/eligible/v1_0/reports/accuracy_stats.rb
186
+ - lib/eligible/v1_0/reports/estimate_friction.rb
187
+ - lib/eligible/v1_0/reports/in_scope_distribution.rb
181
188
  - lib/eligible/v1_0/rest_api_base.rb
182
189
  - lib/eligible/v1_0/rule.rb
183
190
  - lib/eligible/v1_0/session.rb
@@ -208,7 +215,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
208
215
  - !ruby/object:Gem::Version
209
216
  version: 1.3.1
210
217
  requirements: []
211
- rubygems_version: 3.0.6
218
+ rubyforge_project:
219
+ rubygems_version: 2.7.10
212
220
  signing_key:
213
221
  specification_version: 4
214
222
  summary: Ruby wrapper for the Eligible API
@@ -1,9 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Eligible
4
- module V1_0
5
- class Patient < RestAPIBase
6
- ENDPOINT_NAME = 'patients'.freeze
7
- end
8
- end
9
- end