change_health 2.2.1 → 2.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +32 -22
- data/README.md +33 -5
- data/lib/change_health/connection.rb +4 -3
- data/lib/change_health/request/report.rb +17 -9
- data/lib/change_health/response/claim/report/report_277_data.rb +78 -0
- data/lib/change_health/response/claim/report/report_835_data.rb +8 -0
- data/lib/change_health/response/claim/report/report_claim.rb +47 -0
- data/lib/change_health/response/claim/report/report_info_claim_status.rb +16 -0
- data/lib/change_health/version.rb +1 -1
- data/lib/change_health.rb +7 -3
- metadata +7 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1cd3562c44027bac8e01ce8e9f68b0ec67ea6052f3786181539e9d0b579d10bd
|
4
|
+
data.tar.gz: 11760dc5ac46e4bde8d2a98608e83efecd5ba4fee02bfd5dfbfcca63c3902a8f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7ec84c09d24a87c7d38709eaf6b5fd53ada29455541563f88a760c926a3a29c30bc138e1e0c5f2287368faad53127830eb8c155291118ec9c87b239a2209a2d6
|
7
|
+
data.tar.gz: 88a92b73cfb2159b6e091e9ab74b05067c461fa8be27c853a5387646e5049a8d4dc71dd178e6e20b282b50b06116c78b79468531d3340cbd15ac3458775ac5a2
|
data/CHANGELOG.md
CHANGED
@@ -4,24 +4,32 @@ All notable changes to this project will be documented in this file.
|
|
4
4
|
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
|
5
5
|
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
|
6
6
|
|
7
|
-
## [2.
|
7
|
+
## [2.3.0] - 2021-11-18
|
8
|
+
### Added
|
9
|
+
* Specific classes for 277 & 835 reports - Report277Data & Report835Data
|
10
|
+
* ReportClaim & ReportInfoClaimStatus- only works for json 277 reports
|
11
|
+
|
12
|
+
### Fixed
|
13
|
+
* Headers can now be nil for requests
|
14
|
+
|
15
|
+
## [2.2.1] - 2021-11-15
|
8
16
|
### Added
|
9
17
|
Custom Headers for Reports API and Professional Claims API
|
10
18
|
* Report
|
11
19
|
* Submission
|
12
20
|
|
13
|
-
## [2.2.0] -
|
21
|
+
## [2.2.0] - 2021-11-04
|
14
22
|
### Added
|
15
23
|
Ability to hit [Claim Responses and Reports](https://developers.changehealthcare.com/eligibilityandclaims/docs/claims-responses-and-reports-getting-started)
|
16
24
|
* Report
|
17
25
|
* ReportListData
|
18
26
|
* ReportData
|
19
27
|
|
20
|
-
## [2.1.0] -
|
28
|
+
## [2.1.0] - 2021-10-12
|
21
29
|
### Changed
|
22
30
|
Model#to_h enhanced to change empty values AKA "" to nil. Reason: If a field is empty, Change Healthcare responds with an error - `Invalid value. Item must not be blank value.`. If the empty field is optional, Change Healthcare will accept the field as nil without error. If the empty field is required, Change Healthcare will return an error if the value is empty or nil.
|
23
31
|
|
24
|
-
## [2.0.0] -
|
32
|
+
## [2.0.0] - 2021-10-08
|
25
33
|
### Added
|
26
34
|
#### Models
|
27
35
|
* ResponseData - for responses from calling change healthcare api used by EligibilityData and SubmissionData
|
@@ -52,50 +60,50 @@ Added the ability to hit professional claim submission API. For more details, se
|
|
52
60
|
### Fixed
|
53
61
|
* Eligibility#add_dependent actually works
|
54
62
|
|
55
|
-
## [1.0.3] -
|
63
|
+
## [1.0.3] - 2021-04-26
|
56
64
|
### Added
|
57
65
|
- Model::Error#represents_down? - adds ability to distinguish error representing down state
|
58
66
|
- Model::Error#retryable? - retryable when down
|
59
67
|
- EligibilityData#recommend_retry? - recommend retry when down
|
60
68
|
|
61
|
-
## [1.0.2] -
|
69
|
+
## [1.0.2] - 2021-04-06
|
62
70
|
### Added
|
63
71
|
- EligibilityData#recommend_retry? - fix a bug in the search statement
|
64
72
|
|
65
|
-
## [1.0.1] -
|
73
|
+
## [1.0.1] - 2021-03-24
|
66
74
|
### Added
|
67
75
|
- EligibilityData#plan_status - adds ability to select instead of find
|
68
76
|
- EligibilityData#inactive? active? - use new plan_status select
|
69
77
|
|
70
|
-
## [1.0.0] -
|
78
|
+
## [1.0.0] - 2021-03-17
|
71
79
|
### Added
|
72
80
|
- Model::Error - help with error codes
|
73
81
|
- EligibilityData#recommend_retry? - if it looks like you can retry the exact same request
|
74
82
|
- EligibilityData#inactive? - looks for plan status 6
|
75
83
|
|
76
|
-
## [0.15.0] -
|
84
|
+
## [0.15.0] - 2020-06-12
|
77
85
|
### Added
|
78
86
|
- Extensions - InNetworkMissing for plans that don't provide in network indicators.
|
79
87
|
|
80
88
|
### Fixed
|
81
89
|
- Bug where active codes with no service codes cause exception.
|
82
90
|
|
83
|
-
## [0.14.0] -
|
91
|
+
## [0.14.0] - 2020-05-07
|
84
92
|
### Added
|
85
93
|
- Extensions - mixins for common overrides
|
86
94
|
|
87
|
-
## [0.13.0] -
|
95
|
+
## [0.13.0] - 2020-05-05
|
88
96
|
### Changed
|
89
97
|
- Removed `alias_method` for `where` helpers so you can override a single method
|
90
98
|
- Added type Year to Date type 24
|
91
99
|
- Added type Day type 7
|
92
100
|
|
93
|
-
## [0.12.0] -
|
101
|
+
## [0.12.0] - 2020-04-30
|
94
102
|
### Added
|
95
103
|
- EligibilityData#errors
|
96
104
|
- EligibilityData#errors?
|
97
105
|
|
98
|
-
## [0.11.0] -
|
106
|
+
## [0.11.0] - 2020-04-24
|
99
107
|
### Added
|
100
108
|
- EligibilityData#medicare?
|
101
109
|
- EligibilityData#plan\_id
|
@@ -110,7 +118,7 @@ Added the ability to hit professional claim submission API. For more details, se
|
|
110
118
|
- EligibilityData initialize now checks for sub-classes of EligibilityBenefits with trading partner responds to `factory` to choose sub-class
|
111
119
|
- EligibilityBenefits initializes `self.class` type in case it's a subclass
|
112
120
|
|
113
|
-
## [0.10.0] -
|
121
|
+
## [0.10.0] - 2020-04-09
|
114
122
|
### Added
|
115
123
|
- Add Trading Partner API querying capability
|
116
124
|
- Request::TradingPartner
|
@@ -118,7 +126,7 @@ Added the ability to hit professional claim submission API. For more details, se
|
|
118
126
|
- Response::TradingPartnersData
|
119
127
|
- Models::TradingPartner
|
120
128
|
|
121
|
-
## [0.9.0] -
|
129
|
+
## [0.9.0] - 2020-04-08
|
122
130
|
### Added
|
123
131
|
- Added EligibilityBenefit#medicare?
|
124
132
|
- Added EligibilityData#medicare?
|
@@ -127,20 +135,20 @@ Added the ability to hit professional claim submission API. For more details, se
|
|
127
135
|
- EligibilityBenefit(s)#individual returns true for medicare in benefit and queries that look for 'IND'
|
128
136
|
- EligibilityBenefit(s)#in\_network returns true for medicare in benefit and queries that look for 'Y'
|
129
137
|
|
130
|
-
## [0.8.0] -
|
138
|
+
## [0.8.0] - 2020-04-04
|
131
139
|
### Changed
|
132
140
|
- Attempt to serialize all properties with 'date' in the name to ChangeHealth date format
|
133
141
|
|
134
|
-
## [0.7.0] -
|
142
|
+
## [0.7.0] - 2020-04-03
|
135
143
|
### Changed
|
136
144
|
- Fixed bug in serializing date on subscriber and encounter
|
137
145
|
|
138
|
-
## [0.6.0] -
|
146
|
+
## [0.6.0] - 2020-04-02
|
139
147
|
### Changed
|
140
148
|
- Added Indifferent Access to hashes
|
141
149
|
- Fixed bug with Authentication endpoint
|
142
150
|
|
143
|
-
## [0.5.0] -
|
151
|
+
## [0.5.0] - 2020-03-11
|
144
152
|
### Added
|
145
153
|
- EligibilityBenefit Deductible information
|
146
154
|
- EligibilityBenefit benefits date information
|
@@ -152,17 +160,17 @@ Added the ability to hit professional claim submission API. For more details, se
|
|
152
160
|
### Changed
|
153
161
|
- Broke EligibilityBenefit and EligibilityBenefits into separate files
|
154
162
|
|
155
|
-
## [0.4.0] -
|
163
|
+
## [0.4.0] - 2020-03-10
|
156
164
|
### Added
|
157
165
|
- EligibilityBenefit(s) Employee information
|
158
166
|
- EligibilityData plan date information
|
159
167
|
- EligibilityData eligibility, plan and service date helpers on date info
|
160
168
|
|
161
|
-
## [0.3.0] -
|
169
|
+
## [0.3.0] - 2020-03-09
|
162
170
|
### Added
|
163
171
|
- Production endpoint
|
164
172
|
|
165
|
-
## [0.0.2] -
|
173
|
+
## [0.0.2] - 2020-03-09
|
166
174
|
### Added
|
167
175
|
- EligibilityData
|
168
176
|
- EligibilityBenefit
|
@@ -180,6 +188,8 @@ Added the ability to hit professional claim submission API. For more details, se
|
|
180
188
|
- Authentication
|
181
189
|
- Configuration
|
182
190
|
|
191
|
+
[2.3.0]: https://github.com/WeInfuse/change_health/compare/v2.2.1...v2.3.0
|
192
|
+
[2.2.1]: https://github.com/WeInfuse/change_health/compare/v2.2.0...v2.2.1
|
183
193
|
[2.2.0]: https://github.com/WeInfuse/change_health/compare/v2.1.0...v2.2.0
|
184
194
|
[2.1.0]: https://github.com/WeInfuse/change_health/compare/v2.0.0...v2.1.0
|
185
195
|
[2.0.0]: https://github.com/WeInfuse/change_health/compare/v1.0.3...v2.0.0
|
data/README.md
CHANGED
@@ -67,13 +67,13 @@ edata.response
|
|
67
67
|
#<HTTParty::Response:0x7fa354c1fbe8>
|
68
68
|
|
69
69
|
edata.response.ok?
|
70
|
-
true
|
70
|
+
# true
|
71
71
|
|
72
72
|
edata.individual_oop_remaining(service_code: '30')
|
73
|
-
1344.88
|
73
|
+
# 1344.88
|
74
74
|
|
75
75
|
edata.raw == edata.response.parsed_response
|
76
|
-
true
|
76
|
+
# true
|
77
77
|
```
|
78
78
|
|
79
79
|
### Trading Partners
|
@@ -198,6 +198,8 @@ validation = claim_submission.validation
|
|
198
198
|
|
199
199
|
### Claim Reports
|
200
200
|
[Change Healthcare Claim Responses and Reports Guide](https://developers.changehealthcare.com/eligibilityandclaims/docs/claims-responses-and-reports-getting-started)
|
201
|
+
|
202
|
+
#### Get Reports
|
201
203
|
```ruby
|
202
204
|
ChangeHealth::Request::Claim::Report.ping # Test your connection
|
203
205
|
|
@@ -211,10 +213,10 @@ report_list = ChangeHealth::Request::Claim::Report.report_list(headers: report_h
|
|
211
213
|
report_list.report_names
|
212
214
|
# ["X3000000.XX", "R5000000.XY", "R5000000.XX", "X3000000.AB", "X3000000.AC", "X3000000.ZZ", "R5000000.XZ", "R5000000.YZ", "R5000000.WA", "R5000000.WB", "R5000000.WC"]
|
213
215
|
|
214
|
-
|
216
|
+
report0_edi = ChangeHealth::Request::Claim::Report.get_report(report_list.report_names.first, as_json_report: false)
|
215
217
|
# Report in edi format
|
216
218
|
|
217
|
-
|
219
|
+
report0_json = ChangeHealth::Request::Claim::Report.get_report(report_list.report_names.first, as_json_report: true)
|
218
220
|
# Report in json format
|
219
221
|
|
220
222
|
reports_json = report_list.report_names.map {|report_name| ChangeHealth::Request::Claim::Report.get_report(report_name, headers: report_headers)}
|
@@ -224,6 +226,32 @@ reports_edi = report_list.report_names.map {|report_name| ChangeHealth::Request:
|
|
224
226
|
# all reports in edi format
|
225
227
|
```
|
226
228
|
|
229
|
+
#### Review Individual Claims
|
230
|
+
Currently only works for json 277 reports. json 835 reports coming soon!
|
231
|
+
|
232
|
+
From a report, you can get an array of claims. For a full list of fields, see `ChangeHealth::Response::Claim::ReportClaim`
|
233
|
+
|
234
|
+
```ruby
|
235
|
+
report_claims = ChangeHealth::Request::Claim::Report.get_report("X3000000.AB", as_json_report: true).claims
|
236
|
+
# list of claims in the report
|
237
|
+
|
238
|
+
claim = report_claims.first
|
239
|
+
claim.payer_org_name
|
240
|
+
# "PREMERA"
|
241
|
+
|
242
|
+
claim.subscriber_first_name
|
243
|
+
# "JOHNONE"
|
244
|
+
|
245
|
+
claim.transaction_set_creation_date
|
246
|
+
# Tue, 01 Dec 2020
|
247
|
+
|
248
|
+
claim.latest_status_category_codes
|
249
|
+
# ["F1"]
|
250
|
+
|
251
|
+
claim.latest_total_charge_amount
|
252
|
+
# "100"
|
253
|
+
```
|
254
|
+
|
227
255
|
### Configuration
|
228
256
|
|
229
257
|
```ruby
|
@@ -13,11 +13,12 @@ module ChangeHealth
|
|
13
13
|
|
14
14
|
format :json
|
15
15
|
|
16
|
-
def request(endpoint
|
16
|
+
def request(endpoint:, query: nil, body: nil, headers: {}, auth: true, verb: :post)
|
17
17
|
body = body.to_json if body.is_a?(Hash)
|
18
|
+
headers = {} if headers.nil?
|
18
19
|
headers = auth_header.merge(headers) if auth
|
19
20
|
|
20
|
-
self.class.send(
|
21
|
+
self.class.send(verb.to_s, endpoint, query: query, body: body, headers: headers)
|
21
22
|
end
|
22
23
|
|
23
24
|
private
|
@@ -25,7 +26,7 @@ module ChangeHealth
|
|
25
26
|
def auth_header
|
26
27
|
@auth ||= Authentication.new
|
27
28
|
|
28
|
-
|
29
|
+
@auth.authenticate.access_header
|
29
30
|
end
|
30
31
|
end
|
31
32
|
end
|
@@ -14,18 +14,26 @@ module ChangeHealth
|
|
14
14
|
return if report_name.nil? || report_name.empty?
|
15
15
|
final_headers = ChangeHealth::Request::Claim::Report.report_headers(headers)
|
16
16
|
|
17
|
+
report_type = ChangeHealth::Response::Claim::ReportData.report_type(report_name)
|
18
|
+
return if report_type.nil?
|
19
|
+
|
17
20
|
individual_report_endpoint = ENDPOINT + '/' + report_name
|
18
|
-
if as_json_report
|
19
|
-
# https://developers.changehealthcare.com/eligibilityandclaims/docs/what-file-types-does-this-api-get-from-the-mailbox
|
20
|
-
report_type = ChangeHealth::Response::Claim::ReportData.report_type(report_name)
|
21
|
-
return if report_type.nil?
|
22
21
|
|
23
|
-
|
24
|
-
|
22
|
+
# https://developers.changehealthcare.com/eligibilityandclaims/docs/what-file-types-does-this-api-get-from-the-mailbox
|
23
|
+
individual_report_endpoint += '/' + report_type if as_json_report
|
25
24
|
|
26
|
-
ChangeHealth::
|
27
|
-
|
28
|
-
|
25
|
+
response = ChangeHealth::Connection.new.request(endpoint: individual_report_endpoint, verb: :get, headers: final_headers)
|
26
|
+
if ChangeHealth::Response::Claim::ReportData.is_277?(report_name)
|
27
|
+
ChangeHealth::Response::Claim::Report277Data
|
28
|
+
.new(report_name,
|
29
|
+
as_json_report,
|
30
|
+
response: response)
|
31
|
+
else
|
32
|
+
ChangeHealth::Response::Claim::Report835Data
|
33
|
+
.new(report_name,
|
34
|
+
as_json_report,
|
35
|
+
response: response)
|
36
|
+
end
|
29
37
|
end
|
30
38
|
|
31
39
|
def self.health_check
|
@@ -0,0 +1,78 @@
|
|
1
|
+
module ChangeHealth
|
2
|
+
module Response
|
3
|
+
module Claim
|
4
|
+
# Methods only return meaningful data for json reports
|
5
|
+
class Report277Data < ChangeHealth::Response::Claim::ReportData
|
6
|
+
def transactions
|
7
|
+
@raw['transactions']
|
8
|
+
end
|
9
|
+
|
10
|
+
# Only one payer per report
|
11
|
+
def payer_org_name
|
12
|
+
transactions&.first&.dig('payers')&.first&.dig('organizationName')
|
13
|
+
end
|
14
|
+
|
15
|
+
def claims
|
16
|
+
report_claims = []
|
17
|
+
|
18
|
+
transactions&.each do |transaction|
|
19
|
+
transaction_set_creation_date = ChangeHealth::Models::PARSE_DATE.call(transaction['transactionSetCreationDate'])
|
20
|
+
transaction['payers']&.each do |payer|
|
21
|
+
payer_org_name = payer['organizationName']
|
22
|
+
payer['claimStatusTransactions']&.each do |claim_status_txn|
|
23
|
+
claim_status_txn['claimStatusDetails']&.each do |claim_status_detail|
|
24
|
+
service_provider_npi = claim_status_detail.dig('serviceProvider', 'npi')
|
25
|
+
claim_status_detail['patientClaimStatusDetails']&.each do |patient_claim_status_detail|
|
26
|
+
subscriber_first_name = patient_claim_status_detail.dig('subscriber', 'firstName')
|
27
|
+
subscriber_last_name = patient_claim_status_detail.dig('subscriber', 'lastName')
|
28
|
+
patient_claim_status_detail['claims']&.each do |claim|
|
29
|
+
procedure_codes = []
|
30
|
+
claim['serviceLines']&.each do |service_line|
|
31
|
+
procedure_codes << service_line.dig('service', 'procedureCode')
|
32
|
+
end
|
33
|
+
claim_status = claim['claimStatus']
|
34
|
+
next if claim_status.nil?
|
35
|
+
|
36
|
+
service_begin_date = ChangeHealth::Models::PARSE_DATE.call(claim_status['claimServiceBeginDate'] || claim_status['claimServiceDate'])
|
37
|
+
service_end_date = ChangeHealth::Models::PARSE_DATE.call(claim_status['claimServiceEndDate'] || claim_status['claimServiceDate'])
|
38
|
+
|
39
|
+
info_claim_statuses = []
|
40
|
+
claim_status['informationClaimStatuses']&.each do |info_claim_status|
|
41
|
+
status_information_effective_date = ChangeHealth::Models::PARSE_DATE.call(info_claim_status['statusInformationEffectiveDate'])
|
42
|
+
total_charge_amount = info_claim_status['totalClaimChargeAmount']
|
43
|
+
|
44
|
+
status_category_codes = []
|
45
|
+
info_claim_status['informationStatuses']&.each do |info_status|
|
46
|
+
status_category_codes << info_status['healthCareClaimStatusCategoryCode']
|
47
|
+
end
|
48
|
+
|
49
|
+
info_claim_statuses << ReportInfoClaimStatus.new(
|
50
|
+
status_category_codes: status_category_codes,
|
51
|
+
total_charge_amount: total_charge_amount,
|
52
|
+
status_information_effective_date: status_information_effective_date
|
53
|
+
)
|
54
|
+
end
|
55
|
+
report_claims << ReportClaim.new(
|
56
|
+
transaction_set_creation_date: transaction_set_creation_date,
|
57
|
+
payer_org_name: payer_org_name,
|
58
|
+
service_provider_npi: service_provider_npi,
|
59
|
+
subscriber_first_name: subscriber_first_name,
|
60
|
+
subscriber_last_name: subscriber_last_name,
|
61
|
+
procedure_codes: procedure_codes,
|
62
|
+
service_begin_date: service_begin_date,
|
63
|
+
service_end_date: service_end_date,
|
64
|
+
info_claim_statuses: info_claim_statuses
|
65
|
+
)
|
66
|
+
end
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|
70
|
+
end
|
71
|
+
end
|
72
|
+
|
73
|
+
report_claims
|
74
|
+
end
|
75
|
+
end
|
76
|
+
end
|
77
|
+
end
|
78
|
+
end
|
@@ -0,0 +1,47 @@
|
|
1
|
+
module ChangeHealth
|
2
|
+
module Response
|
3
|
+
module Claim
|
4
|
+
class ReportClaim < Hashie::Trash
|
5
|
+
property :transaction_set_creation_date, required: false
|
6
|
+
property :payer_org_name, required: false
|
7
|
+
property :service_provider_npi, required: false
|
8
|
+
property :subscriber_first_name, required: false
|
9
|
+
property :subscriber_last_name, required: false
|
10
|
+
property :procedure_codes, required: false
|
11
|
+
property :service_begin_date, required: false
|
12
|
+
property :service_end_date, required: false
|
13
|
+
property :info_claim_statuses, required: false
|
14
|
+
|
15
|
+
def add_procedure_code(procedure_code)
|
16
|
+
self[:procedure_codes] ||= []
|
17
|
+
self[:procedure_codes] << procedure_code
|
18
|
+
end
|
19
|
+
|
20
|
+
def add_info_claim_status(info_claim_status)
|
21
|
+
self[:info_claim_statuses] ||= []
|
22
|
+
self[:info_claim_statuses] << info_claim_status
|
23
|
+
end
|
24
|
+
|
25
|
+
def latest_status_category_codes
|
26
|
+
latest_info_claim_status&.status_category_codes
|
27
|
+
end
|
28
|
+
|
29
|
+
def latest_total_charge_amount
|
30
|
+
latest_info_claim_status&.total_charge_amount
|
31
|
+
end
|
32
|
+
|
33
|
+
def latest_status_info_effective_date
|
34
|
+
latest_info_claim_status&.status_information_effective_date
|
35
|
+
end
|
36
|
+
|
37
|
+
def latest_info_claim_status
|
38
|
+
info_claim_statuses&.select do |info|
|
39
|
+
!info.status_information_effective_date.nil? &&
|
40
|
+
info.status_information_effective_date.is_a?(Date) &&
|
41
|
+
info.status_information_effective_date <= Date.today
|
42
|
+
end&.max_by(&:status_information_effective_date)
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
module ChangeHealth
|
2
|
+
module Response
|
3
|
+
module Claim
|
4
|
+
class ReportInfoClaimStatus < Hashie::Trash
|
5
|
+
property :status_category_codes, required: false
|
6
|
+
property :total_charge_amount, required: false
|
7
|
+
property :status_information_effective_date, required: false
|
8
|
+
|
9
|
+
def add_status_category_code(status_category_code)
|
10
|
+
self[:status_category_codes] ||= []
|
11
|
+
self[:status_category_codes] << status_category_code
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
data/lib/change_health.rb
CHANGED
@@ -24,6 +24,10 @@ require 'change_health/response/response_data'
|
|
24
24
|
require 'change_health/response/claim/submission/submission_data'
|
25
25
|
require 'change_health/response/claim/report/report_list_data'
|
26
26
|
require 'change_health/response/claim/report/report_data'
|
27
|
+
require 'change_health/response/claim/report/report_277_data'
|
28
|
+
require 'change_health/response/claim/report/report_835_data'
|
29
|
+
require 'change_health/response/claim/report/report_claim'
|
30
|
+
require 'change_health/response/claim/report/report_info_claim_status'
|
27
31
|
require 'change_health/response/eligibility/eligibility_benefit'
|
28
32
|
require 'change_health/response/eligibility/eligibility_benefits'
|
29
33
|
require 'change_health/response/eligibility/eligibility_data'
|
@@ -45,11 +49,11 @@ module ChangeHealth
|
|
45
49
|
end
|
46
50
|
|
47
51
|
def api_endpoint
|
48
|
-
|
52
|
+
Connection.base_uri
|
49
53
|
end
|
50
54
|
|
51
55
|
def to_h
|
52
|
-
|
56
|
+
{
|
53
57
|
client_id: @client_id,
|
54
58
|
client_secret: @client_secret,
|
55
59
|
grant_type: @grant_type,
|
@@ -63,7 +67,7 @@ module ChangeHealth
|
|
63
67
|
self.grant_type = h[:grant_type]
|
64
68
|
self.api_endpoint = h[:api_endpoint]
|
65
69
|
|
66
|
-
|
70
|
+
self
|
67
71
|
end
|
68
72
|
end
|
69
73
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: change_health
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mike Crockett
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-11-
|
11
|
+
date: 2021-11-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|
@@ -162,7 +162,11 @@ files:
|
|
162
162
|
- lib/change_health/request/report.rb
|
163
163
|
- lib/change_health/request/submission.rb
|
164
164
|
- lib/change_health/request/trading_partner.rb
|
165
|
+
- lib/change_health/response/claim/report/report_277_data.rb
|
166
|
+
- lib/change_health/response/claim/report/report_835_data.rb
|
167
|
+
- lib/change_health/response/claim/report/report_claim.rb
|
165
168
|
- lib/change_health/response/claim/report/report_data.rb
|
169
|
+
- lib/change_health/response/claim/report/report_info_claim_status.rb
|
166
170
|
- lib/change_health/response/claim/report/report_list_data.rb
|
167
171
|
- lib/change_health/response/claim/submission/submission_data.rb
|
168
172
|
- lib/change_health/response/eligibility/eligibility_benefit.rb
|
@@ -192,8 +196,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
192
196
|
- !ruby/object:Gem::Version
|
193
197
|
version: '0'
|
194
198
|
requirements: []
|
195
|
-
|
196
|
-
rubygems_version: 2.7.6
|
199
|
+
rubygems_version: 3.1.6
|
197
200
|
signing_key:
|
198
201
|
specification_version: 4
|
199
202
|
summary: Ruby wrapper for the ChangeHealth API
|