change_health 5.13.1 → 5.13.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 10c380d9fef3de5468304fcf8ce2b034590d879fd66d077f457f4b35d8395781
4
- data.tar.gz: 55487124ee791ddf8fce1aede9d93368f6ed6823f0735a8153db170b0a0f4152
3
+ metadata.gz: 7702b4860062f9d920c9b92404599c3284b6ccb8bcb8253dc796f565091286b4
4
+ data.tar.gz: af12858fe1a4a3926a8eba27ddbaaabdf398e7de4f046f4430cd2c289740604a
5
5
  SHA512:
6
- metadata.gz: 2d2d34ed84b01a6c0e659c64ba13e511ace9cd6d6c4fe9867d375ecb0a8aa7676f74e9565d0b36690ef658048b6926e45b68cfef65fcc0a86c56b8c331247f66
7
- data.tar.gz: f32ac49184f9ef8c4768e2209633a918e2c73c3905c14752c9b5cfe56a892d0e7d514e2ac19a3da92c6b78c92179af1b9e473d58e87ada3f02abd65fa787e950
6
+ metadata.gz: 86dd0e8891c4d9f5a2cf0eaefc2f313879813b8d5cdd8e5eff38c72622f378ab0e82ada56f372735c4ad849f0f6598b1546e0c09f7be4b3edc96228d3dcb00ba
7
+ data.tar.gz: bd7c909af6015ee49ea629948e97a3c1c8911061a102bc731f278180fa62996a76e1f1312fa812d757decae855e2147fce6074b451de093df1479fee840e9d47
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.3] - 2024-05-20
9
+
10
+ ### Fixed
11
+
12
+ * Grab "id" per claim for ChangeHealth::Response::Claim::Report835Claim INSTEAD of per transaction. B/c each transaction is a payment, not a claim
13
+
14
+ # [5.13.2] - 2024-05-16
15
+
16
+ ### Fixed
17
+
18
+ * For ChangeHealth::Response::Claim::Report835Data, the following lists of values will now ignore empty "" in the json, even if the WHOLE field is empty
19
+ - claim_payment_remark_codes
20
+ - claim_adjustments
21
+ - service_adjustments
22
+
8
23
  # [5.13.1] - 2024-05-15
9
24
 
10
25
  ### Fixed
@@ -677,6 +692,8 @@ Added the ability to hit professional claim submission API. For more details, se
677
692
  * Authentication
678
693
  * Configuration
679
694
 
695
+ [5.13.3]: https://github.com/WeInfuse/change_health/compare/v5.13.2...v5.13.3
696
+ [5.13.2]: https://github.com/WeInfuse/change_health/compare/v5.13.1...v5.13.2
680
697
  [5.13.1]: https://github.com/WeInfuse/change_health/compare/v5.13.0...v5.13.1
681
698
  [5.13.0]: https://github.com/WeInfuse/change_health/compare/v5.12.1...v5.13.0
682
699
  [5.12.1]: https://github.com/WeInfuse/change_health/compare/v5.12.0...v5.12.1
@@ -28,7 +28,7 @@ module ChangeHealth
28
28
  report_payments = []
29
29
 
30
30
  transactions&.each do |transaction|
31
- id = transaction.dig('id')
31
+ payment_id = transaction.dig('id')
32
32
  check_or_eft_trace_number = transaction.dig('paymentAndRemitReassociationDetails', 'checkOrEFTTraceNumber')
33
33
  check_issue_or_eft_effective_date =
34
34
  ChangeHealth::Models::PARSE_DATE.call(
@@ -56,6 +56,7 @@ module ChangeHealth
56
56
  total_actual_provider_payment_amount =
57
57
  transaction.dig('financialInformation', 'totalActualProviderPaymentAmount')
58
58
  claims = transaction['detailInfo']&.flat_map do |detail_info|
59
+ claim_id = detail_info.dig('id')
59
60
  detail_info['paymentInfo']&.map do |payment_info|
60
61
  claim_payment_amount = payment_info.dig('claimPaymentInfo', 'claimPaymentAmount')
61
62
  claim_status_code = payment_info.dig('claimPaymentInfo', 'claimStatusCode')
@@ -110,13 +111,16 @@ module ChangeHealth
110
111
 
111
112
  service_adjustments = adjustments(service_line['serviceAdjustments'])
112
113
 
113
- health_care_check_remark_codes = service_line['healthCareCheckRemarkCodes']&.map do |health_care_check_remark_code|
114
+ health_care_check_remark_codes = presence(service_line['healthCareCheckRemarkCodes']&.filter_map do |health_care_check_remark_code|
115
+ remark_code = health_care_check_remark_code['remarkCode']
116
+ next unless presence(remark_code)
117
+
114
118
  Report835HealthCareCheckRemarkCode.new(
115
119
  code_list_qualifier_code: health_care_check_remark_code['codeListQualifierCode'],
116
120
  code_list_qualifier_code_value: health_care_check_remark_code['codeListQualifierCodeValue'],
117
- remark_code: health_care_check_remark_code['remarkCode']
121
+ remark_code: remark_code
118
122
  )
119
- end
123
+ end)
120
124
 
121
125
  Report835ServiceLine.new(
122
126
  adjudicated_procedure_code: adjudicated_procedure_code,
@@ -138,7 +142,7 @@ module ChangeHealth
138
142
  claim_payment_amount: claim_payment_amount,
139
143
  claim_payment_remark_codes: claim_payment_remark_codes,
140
144
  claim_status_code: claim_status_code,
141
- id: id,
145
+ id: claim_id,
142
146
  patient_control_number: patient_control_number,
143
147
  patient_first_name: patient_first_name,
144
148
  patient_last_name: patient_last_name,
@@ -160,7 +164,7 @@ module ChangeHealth
160
164
  check_issue_or_eft_effective_date: check_issue_or_eft_effective_date,
161
165
  check_or_eft_trace_number: check_or_eft_trace_number,
162
166
  claims: claims,
163
- id: id,
167
+ id: payment_id,
164
168
  payer_identifier: payer_identifier,
165
169
  payer_name: payer_name,
166
170
  payer_address: payer_address,
@@ -178,7 +182,7 @@ module ChangeHealth
178
182
  private
179
183
 
180
184
  def adjustments(list)
181
- list&.map do |adjustment|
185
+ presence(list&.filter_map do |adjustment|
182
186
  adjustments = {}
183
187
  adjustment_index = 1
184
188
  loop do
@@ -192,11 +196,13 @@ module ChangeHealth
192
196
 
193
197
  claim_adjustment_group_code = adjustment['claimAdjustmentGroupCode']
194
198
 
195
- Report835ServiceAdjustment.new(
196
- adjustments: adjustments,
197
- claim_adjustment_group_code: claim_adjustment_group_code
198
- )
199
- end
199
+ if presence(adjustments)
200
+ Report835ServiceAdjustment.new(
201
+ adjustments: adjustments,
202
+ claim_adjustment_group_code: claim_adjustment_group_code
203
+ )
204
+ end
205
+ end)
200
206
  end
201
207
  end
202
208
  end
@@ -1,3 +1,3 @@
1
1
  module ChangeHealth
2
- VERSION = '5.13.1'.freeze
2
+ VERSION = '5.13.3'.freeze
3
3
  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.13.1
4
+ version: 5.13.3
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-15 00:00:00.000000000 Z
11
+ date: 2024-05-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty