eligible 3.0.0.beta11 → 3.0.0.beta16

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: 2b578b7a1d0fe41a7dfeafd2b2179c2174a48f35aaaab93f10713d31d8ab19dc
4
- data.tar.gz: 4376c50f437b69667236cde63fcad61733b7c4c9206bd75d6cc8e798e18b2310
3
+ metadata.gz: 0c6c01db2d68dda38fbc5dd5db33b02515fd85ed6ef386bba13a965e8254cf6e
4
+ data.tar.gz: 3967c3d073da77ce71df48b85d1761c81d5ee0ff99d92d1397405472c31586af
5
5
  SHA512:
6
- metadata.gz: 84e20e28d5fb73047022b2a3c92572679415908c10cceedf7a0e815e025c045f81b15fa63785a2b9b96b8c65d2c3aa2c701818f7384d4caf653ae37a24dd856e
7
- data.tar.gz: aca14a4a07d9bcfe20e69015777e8a2be20895e427d9d545b49b216d036d173c5f1a04aeabe162c51d0cce92a268db130fd5dc62c481c308e8106a7aa8c825cf
6
+ metadata.gz: 2a9b614991699f09b72718b1b721054fc311764b865374efc6efe8c27c8b520d68d4db34e653498256cce27b4063ec0f6ffaef46f6597f57ded44065636c223e
7
+ data.tar.gz: ea8b3d11b9396fafd4fe0dd4ead195d798560adec990a4a2bff7f99872bdc3cd266ee496efe6520ca30e384399f6fd85f9f5654f4a4b2a626455b805ac898093
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.beta16 - 2020-07-10
4
+ - Migrated "Patient" endpoint to "PatientRecord"
5
+
6
+ ## 3.0.0.beta15 - 2020-06-12
7
+ - Added support for patient questionnaire, patient questions API endpoints
8
+
9
+ ## 3.0.0.beta14 - 2020-06-08
10
+ - Added Fee and FeeRefund new REST API endpoints
11
+
12
+ ## 3.0.0.beta13 - 2020-06-05
13
+ - Added create, update, delete and validate endpoints support for rules
14
+
15
+ ## 3.0.0.beta12 - 2020-05-12
16
+ - Updated pinned GDS SSL certificate
17
+
3
18
  ## 3.0.0.beta11 - 2020-05-12
4
19
  - Added summary and escalate actions for Enrollments endpoint
5
20
  - Added Action endpoint
@@ -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'
@@ -86,8 +90,8 @@ module Eligible
86
90
  @@test = false
87
91
  @@api_version = '1.5'
88
92
  @@api_base = "https://gds.eligibleapi.com/v#{@@api_version}"
89
- @@fingerprints = %w(9df5f186fb20ad25ffd864942a6394840b02a480
90
- a1cd762a9f4be0f3b6bdd6300e52c6ce8d7d67f5
93
+ @@fingerprints = %w(a1cd762a9f4be0f3b6bdd6300e52c6ce8d7d67f5
94
+ 36d6b6f98a2b9bcdf4321d1978553e23cf044b53
91
95
  d93b7697100fe978ae0f78fbf2a2443cc1958ca3
92
96
  896ce24f7a83eb656c040985fdb50ce39f90b813)
93
97
  @@eligible_account = nil
@@ -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
@@ -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
@@ -5,16 +5,8 @@ module Eligible
5
5
  class Rule < RestAPIBase
6
6
  ENDPOINT_NAME = 'rules'.freeze
7
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"
8
+ def self.validate(params, opts = {})
9
+ send_request :post, "/#{endpoint_name}/validate", rest_api_params(params), opts
18
10
  end
19
11
  end
20
12
  end
@@ -1,3 +1,3 @@
1
1
  module Eligible
2
- VERSION = '3.0.0.beta11'.freeze
2
+ VERSION = '3.0.0.beta16'.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.beta11
4
+ version: 3.0.0.beta16
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-05-12 00:00:00.000000000 Z
13
+ date: 2020-07-13 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rest-client
@@ -166,12 +166,16 @@ 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
@@ -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