change_health 4.2.4 → 4.4.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: 5a4c04d63b5d1b40ebcd57353e31098ca6b27ae453f371e9b67c09e4f0c6033a
4
- data.tar.gz: cbe7ac2226e15502a5816a3fc87eb57fd498fcb4c8c379024affdda1a2d96f89
3
+ metadata.gz: 925c1aa8fb56ca2030f17a15859e2fdb82e75b446857b79bb65919e2dd90b264
4
+ data.tar.gz: 26f4bd0b3061f4a9bcf2862b38094f4bb2a9d2237e7f83fdc6f2286ce4b8b19f
5
5
  SHA512:
6
- metadata.gz: 15e4aa4b661a142eab4877e175e245393a40c2d12ec56f6287c6d62992e538e01bf402ca383168fe54bc084856d41eb6c0b3ce2ef9761d8485edb267a0464bf2
7
- data.tar.gz: 73360d910bde419b9afad65415c7fa0731ce470c117f7525215289aebb9a4404ef7e4f3866ad178c67938c0e322e7b7542ff7a844deb3da8fdbb6e3716f4932b
6
+ metadata.gz: 33cc945934d5be4c8a4dcd873808631e5fe05e4c7ab2e9223c0f2b1189b2508304760f618c589f6dd3fc1bcb9fff2011a2d2d99f2f1883283e6d6369a595ba41
7
+ data.tar.gz: ecd2f03947b4c36c955f2882b692363835578cd35d168f7405506f8315b75048c8d157b982ff36ab35345861992f86fd161a0ea454b56febf23be0ce5275911f
data/CHANGELOG.md CHANGED
@@ -5,6 +5,23 @@ 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.4.0] - 2022-08-29
9
+
10
+ ### Added
11
+
12
+ * Claim Submission - add payToAddress field
13
+
14
+ # [4.3.0] - 2022-08-08
15
+
16
+ ### Added
17
+
18
+ * Report835Data - add another way to get service_date_begin & service_date_end
19
+
20
+ # [4.2.5] - 2022-07-29
21
+
22
+ ### Fixed
23
+ * Report835Data can now handle when a service line doesn't have a service date
24
+
8
25
  # [4.2.4] - 2022-07-28
9
26
 
10
27
  * Removed all RARC Codes (HealthCareCheckRemarkCodes) from JSON
@@ -401,6 +418,9 @@ Added the ability to hit professional claim submission API. For more details, se
401
418
  * Authentication
402
419
  * Configuration
403
420
 
421
+ [4.4.0]: https://github.com/WeInfuse/change_health/compare/v4.3.0...v4.4.0
422
+ [4.3.0]: https://github.com/WeInfuse/change_health/compare/v4.2.5...v4.3.0
423
+ [4.2.5]: https://github.com/WeInfuse/change_health/compare/v4.2.4...v4.2.5
404
424
  [4.2.4]: https://github.com/WeInfuse/change_health/compare/v4.2.3...v4.2.4
405
425
  [4.2.3]: https://github.com/WeInfuse/change_health/compare/v4.2.2...v4.2.3
406
426
  [4.2.2]: https://github.com/WeInfuse/change_health/compare/v4.2.1...v4.2.2
data/README.md CHANGED
@@ -205,6 +205,7 @@ claim_submission = ChangeHealth::Request::Claim::Submission.new(
205
205
  claim_information: claim_information,
206
206
  dependent: dependent,
207
207
  headers: professional_headers,
208
+ pay_to_address: address,
208
209
  providers: [provider],
209
210
  receiver: receiver,
210
211
  submitter: claim_submitter,
@@ -10,6 +10,7 @@ module ChangeHealth
10
10
  property :claimInformation, from: :claim_information, required: false
11
11
  property :controlNumber, from: :control_number, required: true, default: ChangeHealth::Models::CONTROL_NUMBER
12
12
  property :dependent, required: false
13
+ property :payToAddress, from: :pay_to_address, required: false
13
14
  property :providers, required: false
14
15
  property :receiver, required: false
15
16
  property :submitter, required: false
@@ -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,
@@ -1,3 +1,3 @@
1
1
  module ChangeHealth
2
- VERSION = '4.2.4'.freeze
2
+ VERSION = '4.4.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.4
4
+ version: 4.4.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-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty