change_health 5.12.1 → 5.13.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +17 -0
- data/lib/change_health/response/claim/report/report_277_data.rb +2 -0
- data/lib/change_health/response/claim/report/report_835_data.rb +21 -10
- data/lib/change_health/response/claim/report/report_835_payment.rb +12 -11
- data/lib/change_health/response/claim/report/report_claim.rb +11 -10
- data/lib/change_health/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 10c380d9fef3de5468304fcf8ce2b034590d879fd66d077f457f4b35d8395781
|
4
|
+
data.tar.gz: 55487124ee791ddf8fce1aede9d93368f6ed6823f0735a8153db170b0a0f4152
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2d2d34ed84b01a6c0e659c64ba13e511ace9cd6d6c4fe9867d375ecb0a8aa7676f74e9565d0b36690ef658048b6926e45b68cfef65fcc0a86c56b8c331247f66
|
7
|
+
data.tar.gz: f32ac49184f9ef8c4768e2209633a918e2c73c3905c14752c9b5cfe56a892d0e7d514e2ac19a3da92c6b78c92179af1b9e473d58e87ada3f02abd65fa787e950
|
data/CHANGELOG.md
CHANGED
@@ -5,6 +5,21 @@ 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
|
+
# [5.13.1] - 2024-05-15
|
9
|
+
|
10
|
+
### Fixed
|
11
|
+
|
12
|
+
* For ChangeHealth::Response::Claim::Report835Data, the following lists of values will now ignore empty "" in the json
|
13
|
+
- claim_payment_remark_codes
|
14
|
+
- claim_adjustments
|
15
|
+
- service_adjustments
|
16
|
+
|
17
|
+
# [5.13.0] - 2024-05-13
|
18
|
+
|
19
|
+
### Added
|
20
|
+
|
21
|
+
* Grab "id" per transaction for ChangeHealth::Response::Claim::Report835Claim, ChangeHealth::Response::Claim::Report835Payment, and ChangeHealth::Response::Claim::Report277Claim
|
22
|
+
|
8
23
|
# [5.12.1] - 2024-05-10
|
9
24
|
|
10
25
|
### Fixed
|
@@ -662,6 +677,8 @@ Added the ability to hit professional claim submission API. For more details, se
|
|
662
677
|
* Authentication
|
663
678
|
* Configuration
|
664
679
|
|
680
|
+
[5.13.1]: https://github.com/WeInfuse/change_health/compare/v5.13.0...v5.13.1
|
681
|
+
[5.13.0]: https://github.com/WeInfuse/change_health/compare/v5.12.1...v5.13.0
|
665
682
|
[5.12.1]: https://github.com/WeInfuse/change_health/compare/v5.12.0...v5.12.1
|
666
683
|
[5.12.0]: https://github.com/WeInfuse/change_health/compare/v5.11.0...v5.12.0
|
667
684
|
[5.11.0]: https://github.com/WeInfuse/change_health/compare/v5.10.0...v5.11.0
|
@@ -20,6 +20,7 @@ module ChangeHealth
|
|
20
20
|
report_claims = []
|
21
21
|
|
22
22
|
transactions&.each do |transaction|
|
23
|
+
id = transaction.dig('id')
|
23
24
|
report_creation_date = ChangeHealth::Models::PARSE_DATE.call(transaction['transactionSetCreationDate'])
|
24
25
|
transaction['payers']&.each do |payer|
|
25
26
|
payer_identification = payer['payerIdentification']
|
@@ -67,6 +68,7 @@ module ChangeHealth
|
|
67
68
|
end
|
68
69
|
report_claims << Report277Claim.new(
|
69
70
|
clearinghouse_trace_number: clearinghouse_trace_number,
|
71
|
+
id: id,
|
70
72
|
info_claim_statuses: info_claim_statuses,
|
71
73
|
patient_account_number: patient_account_number,
|
72
74
|
patient_first_name: patient_first_name,
|
@@ -28,6 +28,7 @@ module ChangeHealth
|
|
28
28
|
report_payments = []
|
29
29
|
|
30
30
|
transactions&.each do |transaction|
|
31
|
+
id = transaction.dig('id')
|
31
32
|
check_or_eft_trace_number = transaction.dig('paymentAndRemitReassociationDetails', 'checkOrEFTTraceNumber')
|
32
33
|
check_issue_or_eft_effective_date =
|
33
34
|
ChangeHealth::Models::PARSE_DATE.call(
|
@@ -73,10 +74,16 @@ module ChangeHealth
|
|
73
74
|
|
74
75
|
claim_payment_remark_codes = []
|
75
76
|
claim_payment_remark_codes_index = 1
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
77
|
+
|
78
|
+
loop do
|
79
|
+
current_claim_payment_remark_code = payment_info
|
80
|
+
.dig(
|
81
|
+
'outpatientAdjudication',
|
82
|
+
"claimPaymentRemarkCode#{claim_payment_remark_codes_index}"
|
83
|
+
)
|
84
|
+
break unless presence(current_claim_payment_remark_code)
|
85
|
+
|
86
|
+
claim_payment_remark_codes << current_claim_payment_remark_code
|
80
87
|
claim_payment_remark_codes_index += 1
|
81
88
|
end
|
82
89
|
|
@@ -131,6 +138,7 @@ module ChangeHealth
|
|
131
138
|
claim_payment_amount: claim_payment_amount,
|
132
139
|
claim_payment_remark_codes: claim_payment_remark_codes,
|
133
140
|
claim_status_code: claim_status_code,
|
141
|
+
id: id,
|
134
142
|
patient_control_number: patient_control_number,
|
135
143
|
patient_first_name: patient_first_name,
|
136
144
|
patient_last_name: patient_last_name,
|
@@ -152,6 +160,7 @@ module ChangeHealth
|
|
152
160
|
check_issue_or_eft_effective_date: check_issue_or_eft_effective_date,
|
153
161
|
check_or_eft_trace_number: check_or_eft_trace_number,
|
154
162
|
claims: claims,
|
163
|
+
id: id,
|
155
164
|
payer_identifier: payer_identifier,
|
156
165
|
payer_name: payer_name,
|
157
166
|
payer_address: payer_address,
|
@@ -171,12 +180,14 @@ module ChangeHealth
|
|
171
180
|
def adjustments(list)
|
172
181
|
list&.map do |adjustment|
|
173
182
|
adjustments = {}
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
183
|
+
adjustment_index = 1
|
184
|
+
loop do
|
185
|
+
current_adjustment_reason = adjustment["adjustmentReasonCode#{adjustment_index}"]
|
186
|
+
break unless presence(current_adjustment_reason)
|
187
|
+
|
188
|
+
adjustment_amount = adjustment["adjustmentAmount#{adjustment_index}"]
|
189
|
+
adjustments[current_adjustment_reason] = adjustment_amount
|
190
|
+
adjustment_index += 1
|
180
191
|
end
|
181
192
|
|
182
193
|
claim_adjustment_group_code = adjustment['claimAdjustmentGroupCode']
|
@@ -2,17 +2,18 @@ module ChangeHealth
|
|
2
2
|
module Response
|
3
3
|
module Claim
|
4
4
|
class Report835Payment < Hashie::Trash
|
5
|
-
property :check_issue_or_eft_effective_date
|
6
|
-
property :check_or_eft_trace_number
|
7
|
-
property :claims
|
8
|
-
property :
|
9
|
-
property :
|
10
|
-
property :
|
11
|
-
property :
|
12
|
-
property :
|
13
|
-
property :
|
14
|
-
property :
|
15
|
-
property :
|
5
|
+
property :check_issue_or_eft_effective_date
|
6
|
+
property :check_or_eft_trace_number
|
7
|
+
property :claims
|
8
|
+
property :id
|
9
|
+
property :payer_identifier
|
10
|
+
property :payer_name
|
11
|
+
property :payment_method_code
|
12
|
+
property :payer_address
|
13
|
+
property :provider_adjustments
|
14
|
+
property :report_creation_date
|
15
|
+
property :report_name
|
16
|
+
property :total_actual_provider_payment_amount
|
16
17
|
end
|
17
18
|
end
|
18
19
|
end
|
@@ -2,16 +2,17 @@ module ChangeHealth
|
|
2
2
|
module Response
|
3
3
|
module Claim
|
4
4
|
class ReportClaim < Hashie::Trash
|
5
|
-
property :
|
6
|
-
property :
|
7
|
-
property :
|
8
|
-
property :
|
9
|
-
property :
|
10
|
-
property :
|
11
|
-
property :
|
12
|
-
property :
|
13
|
-
property :
|
14
|
-
property :
|
5
|
+
property :id
|
6
|
+
property :patient_first_name
|
7
|
+
property :patient_last_name
|
8
|
+
property :patient_member_id
|
9
|
+
property :payer_identification
|
10
|
+
property :payer_name
|
11
|
+
property :report_creation_date
|
12
|
+
property :report_name
|
13
|
+
property :service_date_begin
|
14
|
+
property :service_date_end
|
15
|
+
property :service_provider_npi
|
15
16
|
end
|
16
17
|
end
|
17
18
|
end
|
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: 5.
|
4
|
+
version: 5.13.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mike Crockett
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-05-
|
11
|
+
date: 2024-05-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|