change_health 5.13.1 → 5.13.2

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: 0c95b37ea0d630e1b501ad965c147d322c1be1bbd9298b5c0da933fd9aa445b5
4
+ data.tar.gz: 33c0714782d1d1aca7c5ea4653ca02886287c885d66922a863ab18d5cc4a31a5
5
5
  SHA512:
6
- metadata.gz: 2d2d34ed84b01a6c0e659c64ba13e511ace9cd6d6c4fe9867d375ecb0a8aa7676f74e9565d0b36690ef658048b6926e45b68cfef65fcc0a86c56b8c331247f66
7
- data.tar.gz: f32ac49184f9ef8c4768e2209633a918e2c73c3905c14752c9b5cfe56a892d0e7d514e2ac19a3da92c6b78c92179af1b9e473d58e87ada3f02abd65fa787e950
6
+ metadata.gz: 921d83689411006e810ffd34ef3bab0be2b6442ca1623f0b2be26035433d1915cb7bcd3a58e98cc61a53f0300a16766cd90215701c08a14c49b68ae258261fb0
7
+ data.tar.gz: 58ed6ee76be49d56149b2b0329a81fe5d71c9d6736170fc311f1027cf0feb304b2c5fa29f17a3965a9cf91a2b08a29f20d906223eebc3482cc619ce559c5a431
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.2] - 2024-05-16
9
+
10
+ ### Fixed
11
+
12
+ * For ChangeHealth::Response::Claim::Report835Data, the following lists of values will now ignore empty "" in the json, even if the WHOLE field is empty
13
+ - claim_payment_remark_codes
14
+ - claim_adjustments
15
+ - service_adjustments
16
+
8
17
  # [5.13.1] - 2024-05-15
9
18
 
10
19
  ### Fixed
@@ -677,6 +686,7 @@ Added the ability to hit professional claim submission API. For more details, se
677
686
  * Authentication
678
687
  * Configuration
679
688
 
689
+ [5.13.2]: https://github.com/WeInfuse/change_health/compare/v5.13.1...v5.13.2
680
690
  [5.13.1]: https://github.com/WeInfuse/change_health/compare/v5.13.0...v5.13.1
681
691
  [5.13.0]: https://github.com/WeInfuse/change_health/compare/v5.12.1...v5.13.0
682
692
  [5.12.1]: https://github.com/WeInfuse/change_health/compare/v5.12.0...v5.12.1
@@ -110,13 +110,16 @@ module ChangeHealth
110
110
 
111
111
  service_adjustments = adjustments(service_line['serviceAdjustments'])
112
112
 
113
- health_care_check_remark_codes = service_line['healthCareCheckRemarkCodes']&.map do |health_care_check_remark_code|
113
+ health_care_check_remark_codes = presence(service_line['healthCareCheckRemarkCodes']&.filter_map do |health_care_check_remark_code|
114
+ remark_code = health_care_check_remark_code['remarkCode']
115
+ next unless presence(remark_code)
116
+
114
117
  Report835HealthCareCheckRemarkCode.new(
115
118
  code_list_qualifier_code: health_care_check_remark_code['codeListQualifierCode'],
116
119
  code_list_qualifier_code_value: health_care_check_remark_code['codeListQualifierCodeValue'],
117
- remark_code: health_care_check_remark_code['remarkCode']
120
+ remark_code: remark_code
118
121
  )
119
- end
122
+ end)
120
123
 
121
124
  Report835ServiceLine.new(
122
125
  adjudicated_procedure_code: adjudicated_procedure_code,
@@ -178,7 +181,7 @@ module ChangeHealth
178
181
  private
179
182
 
180
183
  def adjustments(list)
181
- list&.map do |adjustment|
184
+ presence(list&.filter_map do |adjustment|
182
185
  adjustments = {}
183
186
  adjustment_index = 1
184
187
  loop do
@@ -192,11 +195,13 @@ module ChangeHealth
192
195
 
193
196
  claim_adjustment_group_code = adjustment['claimAdjustmentGroupCode']
194
197
 
195
- Report835ServiceAdjustment.new(
196
- adjustments: adjustments,
197
- claim_adjustment_group_code: claim_adjustment_group_code
198
- )
199
- end
198
+ if presence(adjustments)
199
+ Report835ServiceAdjustment.new(
200
+ adjustments: adjustments,
201
+ claim_adjustment_group_code: claim_adjustment_group_code
202
+ )
203
+ end
204
+ end)
200
205
  end
201
206
  end
202
207
  end
@@ -1,3 +1,3 @@
1
1
  module ChangeHealth
2
- VERSION = '5.13.1'.freeze
2
+ VERSION = '5.13.2'.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.2
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-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty