change_health 6.3.0 → 6.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 842eb26f8f84dbe2228e051eac09b67c93dd90b5fdb166dbcc1ed34dd5de5a4c
4
- data.tar.gz: b3c7372e1aeb8d333fefeb22015f8f6f287a0045889aef49077f1b3ae658a2ee
3
+ metadata.gz: f3078cdf4fb2d282de47c8729d92580795f49d0683eba85889df51c96cca3040
4
+ data.tar.gz: 4094c1b12885436f0b3a5f4031093eef429ffe502096195daee9a84d0ba73f75
5
5
  SHA512:
6
- metadata.gz: dbd9d5ab48326a25f71db315d244821262c3701496e2e34c653cc81189c854202fec404aa2a33d5b592d4eeb7d62cfb61f3a7cfa4156a9bd12e974f1c9e17b94
7
- data.tar.gz: 1161128d839909708b6d0fb9c48c3b635febaa1083f9c4a2b571418d6c8f444da40e440c02c269e24b95c15b400113435fe9a78f333ca016ce9910977889a5fa
6
+ metadata.gz: '063177931fed5fb4a0dad4aaff49f29b830312062f62b6019026a72f7ec52c402c4b610c63513078dde6c756f3504d335f27c5b0c670888864f8bdb303ae5bd7'
7
+ data.tar.gz: 2500bd2ed193c5904ef9ff241aa717028d022a5dd7de483aaddc6521c9fa5234a06af08fbc2f9e37810374d24015285a032fc34bf31e232011db870c653fe4a2
data/CHANGELOG.md CHANGED
@@ -5,6 +5,22 @@ 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
+ # [6.4.1] - 2025-11-05
9
+
10
+ ### Bug Fix
11
+
12
+ * Doesn't throw on trading partner 'not found' response
13
+
14
+ # [6.4.0] - 2025-11-03
15
+
16
+ ### Added
17
+
18
+ * Added support for Other Payer Claim Control Number & Other Payer Secondary Identifier fields for claim submissions.
19
+
20
+ ### Changed
21
+
22
+ * SubmissionData now returns the request JSON in addition to the API reponse.
23
+
8
24
  # [6.3.0] - 2025-08-18
9
25
 
10
26
  ### Added
@@ -800,6 +816,8 @@ Added the ability to hit professional claim submission API. For more details, se
800
816
  * Authentication
801
817
  * Configuration
802
818
 
819
+ [6.4.1]: https://github.com/WeInfuse/change_health/compare/v6.4.0...v6.4.1
820
+ [6.4.0]: https://github.com/WeInfuse/change_health/compare/v6.3.0...v6.4.0
803
821
  [6.3.0]: https://github.com/WeInfuse/change_health/compare/v6.2.0...v6.3.0
804
822
  [6.2.0]: https://github.com/WeInfuse/change_health/compare/v6.1.2...v6.2.0
805
823
  [6.1.2]: https://github.com/WeInfuse/change_health/compare/v6.1.1...v6.1.2
@@ -4,9 +4,16 @@ module ChangeHealth
4
4
  module Models
5
5
  module Claim
6
6
  class OtherPayerName < Model
7
+ property :otherPayerClaimControlNumber, from: :other_payer_claim_control_number
7
8
  property :otherPayerIdentifier, from: :other_payer_identifier
8
9
  property :otherPayerIdentifierTypeCode, from: :other_payer_identifier_type_code
9
10
  property :otherPayerOrganizationName, from: :other_payer_organization_name
11
+ property :otherPayerSecondaryIdentifier, from: :other_payer_secondary_identifier
12
+
13
+ def add_other_payer_secondary_identifier(secondary_identifier)
14
+ self[:otherPayerSecondaryIdentifier] ||= []
15
+ self[:otherPayerSecondaryIdentifier] << secondary_identifier
16
+ end
10
17
  end
11
18
  end
12
19
  end
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ module ChangeHealth
4
+ module Models
5
+ module Claim
6
+ class OtherPayerSecondaryIdentifier < Model
7
+ property :qualifier
8
+ property :identifier
9
+ property :otherIdentifier, from: :other_identifier
10
+ end
11
+ end
12
+ end
13
+ end
@@ -46,6 +46,10 @@ module ChangeHealth
46
46
 
47
47
  error_codes.all?(&:retryable?)
48
48
  end
49
+
50
+ def request_body
51
+ @response.request.options[:body] unless @response&.request&.options.nil?
52
+ end
49
53
  end
50
54
  end
51
55
  end
@@ -4,7 +4,7 @@ module ChangeHealth
4
4
  module Response
5
5
  class TradingPartnersData < Array
6
6
  def initialize(trading_partners)
7
- super(trading_partners.map do |trading_partner|
7
+ super((trading_partners || []).map do |trading_partner|
8
8
  ChangeHealth::Response::TradingPartnerData.new(trading_partner)
9
9
  end)
10
10
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ChangeHealth
4
- VERSION = '6.3.0'
4
+ VERSION = '6.4.1'
5
5
  end
data/lib/change_health.rb CHANGED
@@ -21,6 +21,7 @@ require 'change_health/models/claim/submission/drug_identification'
21
21
  require 'change_health/models/claim/submission/institutional_service'
22
22
  require 'change_health/models/claim/submission/line_adjudication_information'
23
23
  require 'change_health/models/claim/submission/other_payer_name'
24
+ require 'change_health/models/claim/submission/other_payer_secondary_identifier'
24
25
  require 'change_health/models/claim/submission/other_subscriber_information'
25
26
  require 'change_health/models/claim/submission/other_subscriber_name'
26
27
  require 'change_health/models/claim/submission/professional_service'
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: 6.3.0
4
+ version: 6.4.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: 2025-08-19 00:00:00.000000000 Z
11
+ date: 2025-11-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: hashie
@@ -70,6 +70,7 @@ files:
70
70
  - lib/change_health/models/claim/submission/institutional_service.rb
71
71
  - lib/change_health/models/claim/submission/line_adjudication_information.rb
72
72
  - lib/change_health/models/claim/submission/other_payer_name.rb
73
+ - lib/change_health/models/claim/submission/other_payer_secondary_identifier.rb
73
74
  - lib/change_health/models/claim/submission/other_subscriber_information.rb
74
75
  - lib/change_health/models/claim/submission/other_subscriber_name.rb
75
76
  - lib/change_health/models/claim/submission/professional_service.rb