change_health 5.13.0 → 5.13.1

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: a2afd60953fdaab441ccf82bcecc024147a7065df20501b41d0cfe223b658682
4
- data.tar.gz: fdbcef78612c5a0eb1f88ecd131e6eb158741f09af327483d9c2ab569586de01
3
+ metadata.gz: 10c380d9fef3de5468304fcf8ce2b034590d879fd66d077f457f4b35d8395781
4
+ data.tar.gz: 55487124ee791ddf8fce1aede9d93368f6ed6823f0735a8153db170b0a0f4152
5
5
  SHA512:
6
- metadata.gz: 56f2e448c14a68c7e9b3389ac6cd2768f0e627c3a436a243cb0838e6005173b57b92024987cfd654204238c48e5729e2c731bd46822361e0b14c316bb4efcc96
7
- data.tar.gz: cf7a26b79c1b36b9656329c4420a9c494c384423ffa6e3d40db5defe8fe80d9ec2165fa58f6b275c32db0f0936acef2f34a71802cdb062cc5ffc259050bf363a
6
+ metadata.gz: 2d2d34ed84b01a6c0e659c64ba13e511ace9cd6d6c4fe9867d375ecb0a8aa7676f74e9565d0b36690ef658048b6926e45b68cfef65fcc0a86c56b8c331247f66
7
+ data.tar.gz: f32ac49184f9ef8c4768e2209633a918e2c73c3905c14752c9b5cfe56a892d0e7d514e2ac19a3da92c6b78c92179af1b9e473d58e87ada3f02abd65fa787e950
data/CHANGELOG.md CHANGED
@@ -5,6 +5,15 @@ 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
+
8
17
  # [5.13.0] - 2024-05-13
9
18
 
10
19
  ### Added
@@ -668,6 +677,7 @@ Added the ability to hit professional claim submission API. For more details, se
668
677
  * Authentication
669
678
  * Configuration
670
679
 
680
+ [5.13.1]: https://github.com/WeInfuse/change_health/compare/v5.13.0...v5.13.1
671
681
  [5.13.0]: https://github.com/WeInfuse/change_health/compare/v5.12.1...v5.13.0
672
682
  [5.12.1]: https://github.com/WeInfuse/change_health/compare/v5.12.0...v5.12.1
673
683
  [5.12.0]: https://github.com/WeInfuse/change_health/compare/v5.11.0...v5.12.0
@@ -74,10 +74,16 @@ module ChangeHealth
74
74
 
75
75
  claim_payment_remark_codes = []
76
76
  claim_payment_remark_codes_index = 1
77
- while payment_info.dig('outpatientAdjudication',
78
- "claimPaymentRemarkCode#{claim_payment_remark_codes_index}")
79
- claim_payment_remark_codes << payment_info.dig('outpatientAdjudication',
80
- "claimPaymentRemarkCode#{claim_payment_remark_codes_index}")
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
81
87
  claim_payment_remark_codes_index += 1
82
88
  end
83
89
 
@@ -174,12 +180,14 @@ module ChangeHealth
174
180
  def adjustments(list)
175
181
  list&.map do |adjustment|
176
182
  adjustments = {}
177
- service_adjustment_index = 1
178
- while adjustment["adjustmentReasonCode#{service_adjustment_index}"]
179
- adjustment_reason = adjustment["adjustmentReasonCode#{service_adjustment_index}"]
180
- adjustment_amount = adjustment["adjustmentAmount#{service_adjustment_index}"]
181
- adjustments[adjustment_reason] = adjustment_amount
182
- service_adjustment_index += 1
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
183
191
  end
184
192
 
185
193
  claim_adjustment_group_code = adjustment['claimAdjustmentGroupCode']
@@ -1,3 +1,3 @@
1
1
  module ChangeHealth
2
- VERSION = '5.13.0'.freeze
2
+ VERSION = '5.13.1'.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.0
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-14 00:00:00.000000000 Z
11
+ date: 2024-05-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty