change_health 4.3.0 → 4.6.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 +21 -0
- data/README.md +4 -0
- data/lib/change_health/request/submission.rb +1 -0
- data/lib/change_health/response/claim/report/report_835_claim.rb +1 -0
- data/lib/change_health/response/claim/report/report_835_data.rb +19 -1
- data/lib/change_health/response/claim/report/report_835_payment.rb +1 -0
- data/lib/change_health/response/claim/report/report_835_provider_adjustment.rb +16 -0
- data/lib/change_health/version.rb +1 -1
- data/lib/change_health.rb +1 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4b91a782efe0d9f6f4d07ec367ace19adc417ada3199360f166e56ba7fba9e74
|
4
|
+
data.tar.gz: 0b87d4d9de882efdb9879486fc9bfcaf005ec1ff08d08260f1845a98d452eb17
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4db85de34f7588d6dd2cff48dbd4e69d5917f305ef0a173c101476b84492a0034f8c087267dee10bf1204841a54aaf8b370e559532be769d77ad388e0edc5b47
|
7
|
+
data.tar.gz: 69f64924085a8b3e672923c65f62975b027042524ef36ac7d59561e99a8a3f8db421e86cfb12962ee16718e969a5b25932f748e077dfa4e169794a689eb6fdc8
|
data/CHANGELOG.md
CHANGED
@@ -5,6 +5,24 @@ All notable changes to this project will be documented in this file.
|
|
5
5
|
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
|
6
6
|
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
|
7
7
|
|
8
|
+
# [4.6.0] - 2022-09-01
|
9
|
+
|
10
|
+
### Added
|
11
|
+
|
12
|
+
* Report835Data - extract claimStatusCode for Report835Claim
|
13
|
+
|
14
|
+
# [4.5.0] - 2022-08-29
|
15
|
+
|
16
|
+
### Added
|
17
|
+
|
18
|
+
* Report835Data - pull out provider adjustments
|
19
|
+
|
20
|
+
# [4.4.0] - 2022-08-29
|
21
|
+
|
22
|
+
### Added
|
23
|
+
|
24
|
+
* Claim Submission - add payToAddress field
|
25
|
+
|
8
26
|
# [4.3.0] - 2022-08-08
|
9
27
|
|
10
28
|
### Added
|
@@ -412,6 +430,9 @@ Added the ability to hit professional claim submission API. For more details, se
|
|
412
430
|
* Authentication
|
413
431
|
* Configuration
|
414
432
|
|
433
|
+
[4.6.0]: https://github.com/WeInfuse/change_health/compare/v4.5.0...v4.6.0
|
434
|
+
[4.5.0]: https://github.com/WeInfuse/change_health/compare/v4.4.0...v4.5.0
|
435
|
+
[4.4.0]: https://github.com/WeInfuse/change_health/compare/v4.3.0...v4.4.0
|
415
436
|
[4.3.0]: https://github.com/WeInfuse/change_health/compare/v4.2.5...v4.3.0
|
416
437
|
[4.2.5]: https://github.com/WeInfuse/change_health/compare/v4.2.4...v4.2.5
|
417
438
|
[4.2.4]: https://github.com/WeInfuse/change_health/compare/v4.2.3...v4.2.4
|
data/README.md
CHANGED
@@ -205,6 +205,7 @@ claim_submission = ChangeHealth::Request::Claim::Submission.new(
|
|
205
205
|
claim_information: claim_information,
|
206
206
|
dependent: dependent,
|
207
207
|
headers: professional_headers,
|
208
|
+
pay_to_address: address,
|
208
209
|
providers: [provider],
|
209
210
|
receiver: receiver,
|
210
211
|
submitter: claim_submitter,
|
@@ -318,6 +319,9 @@ claim835.procedure_codes
|
|
318
319
|
|
319
320
|
claim835.service_lines.map(&:line_item_charge_amount)
|
320
321
|
# ["3600", "1890", "1836", "1680"]
|
322
|
+
|
323
|
+
claim835.claim_status_code
|
324
|
+
# "19"
|
321
325
|
```
|
322
326
|
|
323
327
|
## Configuration
|
@@ -10,6 +10,7 @@ module ChangeHealth
|
|
10
10
|
property :claimInformation, from: :claim_information, required: false
|
11
11
|
property :controlNumber, from: :control_number, required: true, default: ChangeHealth::Models::CONTROL_NUMBER
|
12
12
|
property :dependent, required: false
|
13
|
+
property :payToAddress, from: :pay_to_address, required: false
|
13
14
|
property :providers, required: false
|
14
15
|
property :receiver, required: false
|
15
16
|
property :submitter, required: false
|
@@ -3,6 +3,7 @@ module ChangeHealth
|
|
3
3
|
module Claim
|
4
4
|
class Report835Claim < ReportClaim
|
5
5
|
property :claim_payment_remark_codes, required: false
|
6
|
+
property :claim_status_code, required: false
|
6
7
|
property :patient_control_number, required: false
|
7
8
|
property :payer_claim_control_number, required: false
|
8
9
|
property :service_lines, required: false
|
@@ -35,11 +35,27 @@ module ChangeHealth
|
|
35
35
|
)
|
36
36
|
payer_identifier = transaction.dig('financialInformation', 'payerIdentifier')
|
37
37
|
payment_method_code = transaction.dig('financialInformation', 'paymentMethodCode')
|
38
|
-
|
38
|
+
provider_adjustments = transaction['providerAdjustments']&.map do |provider_adjustment|
|
39
|
+
adjustments = provider_adjustment['adjustments']&.map do |adjustment|
|
40
|
+
{
|
41
|
+
amount: adjustment['providerAdjustmentAmount'],
|
42
|
+
identifier: adjustment['providerAdjustmentIdentifier'],
|
43
|
+
reason_code: adjustment['adjustmentReasonCode']
|
44
|
+
}
|
45
|
+
end
|
46
|
+
Report835ProviderAdjustment.new(
|
47
|
+
adjustments: adjustments,
|
48
|
+
fiscal_period_date: ChangeHealth::Models::PARSE_DATE.call(provider_adjustment['fiscalPeriodDate']),
|
49
|
+
provider_identifier: provider_adjustment['providerIdentifier']
|
50
|
+
)
|
51
|
+
end
|
52
|
+
|
53
|
+
report_creation_date = ChangeHealth::Models::PARSE_DATE.call(transaction['productionDate'])
|
39
54
|
total_actual_provider_payment_amount =
|
40
55
|
transaction.dig('financialInformation', 'totalActualProviderPaymentAmount')
|
41
56
|
claims = transaction['detailInfo']&.flat_map do |detail_info|
|
42
57
|
detail_info['paymentInfo']&.map do |payment_info|
|
58
|
+
claim_status_code = payment_info.dig('claimPaymentInfo', 'claimStatusCode')
|
43
59
|
patient_control_number = payment_info.dig('claimPaymentInfo', 'patientControlNumber')
|
44
60
|
patient_first_name = payment_info.dig('patientName', 'firstName')
|
45
61
|
patient_last_name = payment_info.dig('patientName', 'lastName')
|
@@ -124,6 +140,7 @@ module ChangeHealth
|
|
124
140
|
|
125
141
|
Report835Claim.new(
|
126
142
|
claim_payment_remark_codes: claim_payment_remark_codes,
|
143
|
+
claim_status_code: claim_status_code,
|
127
144
|
patient_control_number: patient_control_number,
|
128
145
|
patient_first_name: patient_first_name,
|
129
146
|
patient_last_name: patient_last_name,
|
@@ -148,6 +165,7 @@ module ChangeHealth
|
|
148
165
|
payer_identifier: payer_identifier,
|
149
166
|
payer_name: payer_name,
|
150
167
|
payment_method_code: payment_method_code,
|
168
|
+
provider_adjustments: provider_adjustments,
|
151
169
|
report_creation_date: report_creation_date,
|
152
170
|
report_name: report_name,
|
153
171
|
total_actual_provider_payment_amount: total_actual_provider_payment_amount
|
@@ -8,6 +8,7 @@ module ChangeHealth
|
|
8
8
|
property :payer_identifier, required: false
|
9
9
|
property :payer_name, required: false
|
10
10
|
property :payment_method_code, required: false
|
11
|
+
property :provider_adjustments, required: false
|
11
12
|
property :report_creation_date, required: false
|
12
13
|
property :report_name, required: false
|
13
14
|
property :total_actual_provider_payment_amount, required: false
|
@@ -0,0 +1,16 @@
|
|
1
|
+
module ChangeHealth
|
2
|
+
module Response
|
3
|
+
module Claim
|
4
|
+
class Report835ProviderAdjustment < Hashie::Trash
|
5
|
+
property :adjustments
|
6
|
+
property :fiscal_period_date, required: false
|
7
|
+
property :provider_identifier, required: false
|
8
|
+
|
9
|
+
def add_adjustment(adjustment)
|
10
|
+
self[:adjustments] ||= []
|
11
|
+
self[:adjustments] << adjustment
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
data/lib/change_health.rb
CHANGED
@@ -35,6 +35,7 @@ require 'change_health/response/claim/report/report_277_info_claim_status'
|
|
35
35
|
require 'change_health/response/claim/report/report_835_claim'
|
36
36
|
require 'change_health/response/claim/report/report_835_health_care_check_remark_code'
|
37
37
|
require 'change_health/response/claim/report/report_835_payment'
|
38
|
+
require 'change_health/response/claim/report/report_835_provider_adjustment'
|
38
39
|
require 'change_health/response/claim/report/report_835_service_adjustment'
|
39
40
|
require 'change_health/response/claim/report/report_835_service_line'
|
40
41
|
require 'change_health/response/eligibility/eligibility_benefit'
|
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: 4.
|
4
|
+
version: 4.6.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: 2022-
|
11
|
+
date: 2022-09-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|
@@ -171,6 +171,7 @@ files:
|
|
171
171
|
- lib/change_health/response/claim/report/report_835_data.rb
|
172
172
|
- lib/change_health/response/claim/report/report_835_health_care_check_remark_code.rb
|
173
173
|
- lib/change_health/response/claim/report/report_835_payment.rb
|
174
|
+
- lib/change_health/response/claim/report/report_835_provider_adjustment.rb
|
174
175
|
- lib/change_health/response/claim/report/report_835_service_adjustment.rb
|
175
176
|
- lib/change_health/response/claim/report/report_835_service_line.rb
|
176
177
|
- lib/change_health/response/claim/report/report_claim.rb
|