change_health 4.2.3 → 4.3.0

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: b059abf622d3d96ec78d14583cc9314685522a64dbe61c5a7128cb27a4cbe65a
4
- data.tar.gz: fb4c0fd30b948916bd8afe89f304bfc7a44645d4b7410daa4a0b774f818957e6
3
+ metadata.gz: c847271b7069a65df06a0d61b2c50d5700c1260a8ed772523a0a8388c8b2d877
4
+ data.tar.gz: 898a336cf9e50e168ccf2ac55e4b331cb8bcc3b28e43c354f5558a1009edf876
5
5
  SHA512:
6
- metadata.gz: 3132df55edb34e77aa510220e13a5ed4656dcc77e5b634e7f5f1798a6a8266557ab68bf032932b3a8b803a935781c83009630387b2963acabd9e2509a4b3834e
7
- data.tar.gz: 4c061079950821c04077e99621d70abad892fcf1b7f8af39e39a176f7f15fbdacc54e0a4a55db72ff7339d65f5af434d066509fee713e5c50fd43f9484aad7d8
6
+ metadata.gz: 7ffb725eb781443ad6d626ed064ce241db49def1cd2d9f986c929361c589d0a0d3f5b0bcd8292b3f751f2b4f54bf4b190d2d1d3efa7ea1fe7f8b97bc5a28acad
7
+ data.tar.gz: 5b2cf697ca016cd380cc7f1202eb8adaeb3c87521a35db1d60d3c2c4d579da8e69295963a2765742cba81c54902ce1018795bc2bb449155e5d3f36b738e28686
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
+ # [4.3.0] - 2022-08-08
9
+
10
+ ### Added
11
+
12
+ * Report835Data - add another way to get service_date_begin & service_date_end
13
+
14
+ # [4.2.5] - 2022-07-29
15
+
16
+ ### Fixed
17
+ * Report835Data can now handle when a service line doesn't have a service date
18
+
19
+ # [4.2.4] - 2022-07-28
20
+
21
+ * Removed all RARC Codes (HealthCareCheckRemarkCodes) from JSON
22
+
8
23
  # [4.2.3] - 2022-07-28
9
24
 
10
25
  * Adjusted `adjustmentAmount` in object returned from create_adjustment_detail_array to a `0` value instead of an empty string
@@ -397,7 +412,10 @@ Added the ability to hit professional claim submission API. For more details, se
397
412
  * Authentication
398
413
  * Configuration
399
414
 
400
- [4.2.2]: https://github.com/WeInfuse/change_health/compare/v4.2.2...v4.2.3
415
+ [4.3.0]: https://github.com/WeInfuse/change_health/compare/v4.2.5...v4.3.0
416
+ [4.2.5]: https://github.com/WeInfuse/change_health/compare/v4.2.4...v4.2.5
417
+ [4.2.4]: https://github.com/WeInfuse/change_health/compare/v4.2.3...v4.2.4
418
+ [4.2.3]: https://github.com/WeInfuse/change_health/compare/v4.2.2...v4.2.3
401
419
  [4.2.2]: https://github.com/WeInfuse/change_health/compare/v4.2.1...v4.2.2
402
420
  [4.2.1]: https://github.com/WeInfuse/change_health/compare/v4.2.0...v4.2.1
403
421
  [4.2.0]: https://github.com/WeInfuse/change_health/compare/v4.1.0...v4.2.0
@@ -66,10 +66,14 @@ module ChangeHealth
66
66
  service_date_end = nil
67
67
  service_lines = payment_info['serviceLines']&.map do |service_line|
68
68
  service_line_date = ChangeHealth::Models::PARSE_DATE.call(service_line['serviceDate'])
69
- if service_date_begin.nil? || service_line_date < service_date_begin
70
- service_date_begin = service_line_date
69
+ unless service_line_date.nil?
70
+ if service_date_begin.nil? || service_line_date < service_date_begin
71
+ service_date_begin = service_line_date
72
+ end
73
+ if service_date_end.nil? || service_date_end < service_line_date
74
+ service_date_end = service_line_date
75
+ end
71
76
  end
72
- service_date_end = service_line_date if service_date_end.nil? || service_date_end < service_line_date
73
77
 
74
78
  adjudicated_procedure_code = service_line.dig('servicePaymentInformation', 'adjudicatedProcedureCode')
75
79
  allowed_actual = service_line.dig('serviceSupplementalAmounts', 'allowedActual')
@@ -113,6 +117,11 @@ module ChangeHealth
113
117
  )
114
118
  end
115
119
 
120
+ if service_date_begin.nil? && service_date_end.nil?
121
+ service_date_begin = ChangeHealth::Models::PARSE_DATE.call(payment_info['claimStatementPeriodStart'])
122
+ service_date_end = ChangeHealth::Models::PARSE_DATE.call(payment_info['claimStatementPeriodEnd'])
123
+ end
124
+
116
125
  Report835Claim.new(
117
126
  claim_payment_remark_codes: claim_payment_remark_codes,
118
127
  patient_control_number: patient_control_number,
@@ -22,29 +22,11 @@ module ChangeHealth
22
22
  }
23
23
  end
24
24
 
25
- def create_remark_code_adjustments(remark_codes_array)
26
- adjustment_array = remark_codes_array.map do |_key, value|
27
- {
28
- adjustmentReasonCode: value,
29
- adjustmentAmount: "0"
30
- }
31
- end
32
- {
33
- adjustmentDetails: adjustment_array,
34
- adjustmentGroupCode: ""
35
- }
36
- end
37
-
38
25
  def create_adjustment_detail_array
39
26
  all_service_adjustments = self.service_adjustments
40
27
  adjustment_details = all_service_adjustments.map do |service_adjustments|
41
28
  create_group_adjustments(service_adjustments)
42
29
  end
43
-
44
- health_care_check_remark_codes = self[:health_care_check_remark_codes]
45
- health_care_check_remark_codes&.each do |remark_codes|
46
- adjustment_details << create_remark_code_adjustments(remark_codes)
47
- end
48
30
  adjustment_details
49
31
  end
50
32
  end
@@ -1,3 +1,3 @@
1
1
  module ChangeHealth
2
- VERSION = '4.2.3'.freeze
2
+ VERSION = '4.3.0'.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: 4.2.3
4
+ version: 4.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Crockett
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-07-28 00:00:00.000000000 Z
11
+ date: 2022-08-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty