change_health 4.4.0 → 4.5.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 +7 -0
- data/lib/change_health/response/claim/report/report_835_data.rb +17 -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 +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 68e15b858191bfabed3f45ac2fe80d4f2137c4bb58789bea3b80167a9ec385ce
|
4
|
+
data.tar.gz: d25c361f6f0f162adbfcf09463ed3434bbb01cb91079fe89a26fab74f53d4994
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 80d929b4121aa32e2139e7c5838dffcf035fe4b314bd11a818d50a195b46621c8859945765cd23ec134c7839ae282dbfb41ff9d918f1b9b4f2680dec33b8d3c6
|
7
|
+
data.tar.gz: 2ac7d860aab488a88217bf7511de6c39ddd0a1b046f9c8316fd55de81e14e22a316a0aecb5812d89e0f9989e609cfc091683d330c6284a8257b0e6ce0cf0d870
|
data/CHANGELOG.md
CHANGED
@@ -5,6 +5,12 @@ 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.5.0] - 2022-08-29
|
9
|
+
|
10
|
+
### Added
|
11
|
+
|
12
|
+
* Report835Data - pull out provider adjustments
|
13
|
+
|
8
14
|
# [4.4.0] - 2022-08-29
|
9
15
|
|
10
16
|
### Added
|
@@ -418,6 +424,7 @@ Added the ability to hit professional claim submission API. For more details, se
|
|
418
424
|
* Authentication
|
419
425
|
* Configuration
|
420
426
|
|
427
|
+
[4.5.0]: https://github.com/WeInfuse/change_health/compare/v4.4.0...v4.5.0
|
421
428
|
[4.4.0]: https://github.com/WeInfuse/change_health/compare/v4.3.0...v4.4.0
|
422
429
|
[4.3.0]: https://github.com/WeInfuse/change_health/compare/v4.2.5...v4.3.0
|
423
430
|
[4.2.5]: https://github.com/WeInfuse/change_health/compare/v4.2.4...v4.2.5
|
@@ -35,7 +35,22 @@ 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|
|
@@ -148,6 +163,7 @@ module ChangeHealth
|
|
148
163
|
payer_identifier: payer_identifier,
|
149
164
|
payer_name: payer_name,
|
150
165
|
payment_method_code: payment_method_code,
|
166
|
+
provider_adjustments: provider_adjustments,
|
151
167
|
report_creation_date: report_creation_date,
|
152
168
|
report_name: report_name,
|
153
169
|
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,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: change_health
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.
|
4
|
+
version: 4.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mike Crockett
|
@@ -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
|