change_health 5.11.0 → 5.12.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +14 -0
- data/lib/change_health/request/report.rb +2 -2
- data/lib/change_health/response/claim/report/report_277_data.rb +2 -2
- data/lib/change_health/response/claim/report/report_835_data.rb +5 -5
- data/lib/change_health/response/claim/report/report_data.rb +6 -1
- data/lib/change_health/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cb17d07123fd8ef31ad758aa194d74a0cb0ecfc03d2d6bd47a92106fdbc33d73
|
4
|
+
data.tar.gz: 2de8f5bfebee2d7e716df18f2d5d0dbba858c0a40d597be103b27f993238d2cf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a1f777c85924feba44c6e27c313d67390e8fd23833e3b51c2532d08d720153b6ad5de16822f52a15fb6c9ad6ad7dd08ff40f42a7ea1c7010ba067d308a28402b
|
7
|
+
data.tar.gz: 7c966e5a7861c6656ea644393d804c9ff3922ea0c111d932cd64122f1c9fcfbbd6aed76ba843aa4236359f5c9c13a9936c2d27b54bb82d4fcbfc70a732423f67
|
data/CHANGELOG.md
CHANGED
@@ -5,6 +5,18 @@ 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.12.1] - 2024-05-10
|
9
|
+
|
10
|
+
### Fixed
|
11
|
+
|
12
|
+
* For ChangeHealth::Response::Claim::ReportData, if multiple json values can be used to find a value, it will now use other json values if the first choice is empty but not nil like `""`
|
13
|
+
|
14
|
+
# [5.12.0] - 2024-04-26
|
15
|
+
|
16
|
+
### Added
|
17
|
+
|
18
|
+
* more_url option to ChangeHealth::Request::Claim::Report
|
19
|
+
|
8
20
|
# [5.11.0] - 2024-04-23
|
9
21
|
|
10
22
|
### Added
|
@@ -650,6 +662,8 @@ Added the ability to hit professional claim submission API. For more details, se
|
|
650
662
|
* Authentication
|
651
663
|
* Configuration
|
652
664
|
|
665
|
+
[5.12.1]: https://github.com/WeInfuse/change_health/compare/v5.12.0...v5.12.1
|
666
|
+
[5.12.0]: https://github.com/WeInfuse/change_health/compare/v5.11.0...v5.12.0
|
653
667
|
[5.11.0]: https://github.com/WeInfuse/change_health/compare/v5.10.0...v5.11.0
|
654
668
|
[5.10.0]: https://github.com/WeInfuse/change_health/compare/v5.9.0...v5.10.0
|
655
669
|
[5.9.0]: https://github.com/WeInfuse/change_health/compare/v5.8.1...v5.9.0
|
@@ -5,8 +5,8 @@ module ChangeHealth
|
|
5
5
|
ENDPOINT = '/medicalnetwork/reports/v2'.freeze
|
6
6
|
HEALTH_CHECK_ENDPOINT = ENDPOINT + '/healthcheck'.freeze
|
7
7
|
|
8
|
-
def self.report_list(headers: nil)
|
9
|
-
endpoint = ChangeHealth::Connection.endpoint_for(self)
|
8
|
+
def self.report_list(headers: nil, more_url: nil)
|
9
|
+
endpoint = ChangeHealth::Connection.endpoint_for(self) + more_url.to_s
|
10
10
|
final_headers = ChangeHealth::Request::Claim::Report.report_headers(headers)
|
11
11
|
ChangeHealth::Response::Claim::ReportListData.new(response: ChangeHealth::Connection.new.request(
|
12
12
|
endpoint: endpoint, verb: :get, headers: final_headers
|
@@ -44,8 +44,8 @@ module ChangeHealth
|
|
44
44
|
referenced_transaction_trace_number = claim_status['referencedTransactionTraceNumber']
|
45
45
|
trading_partner_claim_number = claim_status['tradingPartnerClaimNumber']
|
46
46
|
|
47
|
-
service_date_begin = ChangeHealth::Models::PARSE_DATE.call(claim_status['claimServiceBeginDate'] || claim_status['claimServiceDate'])
|
48
|
-
service_date_end = ChangeHealth::Models::PARSE_DATE.call(claim_status['claimServiceEndDate'] || claim_status['claimServiceDate'])
|
47
|
+
service_date_begin = ChangeHealth::Models::PARSE_DATE.call(presence(claim_status['claimServiceBeginDate']) || presence(claim_status['claimServiceDate']))
|
48
|
+
service_date_end = ChangeHealth::Models::PARSE_DATE.call(presence(claim_status['claimServiceEndDate']) || presence(claim_status['claimServiceDate']))
|
49
49
|
|
50
50
|
info_claim_statuses = []
|
51
51
|
claim_status['informationClaimStatuses']&.each do |info_claim_status|
|
@@ -62,13 +62,13 @@ module ChangeHealth
|
|
62
62
|
patient_first_name = payment_info.dig('patientName', 'firstName')
|
63
63
|
patient_last_name = payment_info.dig('patientName', 'lastName')
|
64
64
|
patient_member_id =
|
65
|
-
payment_info.dig('patientName', 'memberId') ||
|
66
|
-
payment_info.dig('subscriber', 'memberId')
|
65
|
+
presence(payment_info.dig('patientName', 'memberId')) ||
|
66
|
+
presence(payment_info.dig('subscriber', 'memberId'))
|
67
67
|
payer_claim_control_number = payment_info.dig('claimPaymentInfo', 'payerClaimControlNumber')
|
68
68
|
service_provider_npi =
|
69
|
-
payment_info.dig('renderingProvider', 'npi') ||
|
70
|
-
detail_info.dig('providerSummaryInformation', 'providerIdentifier') ||
|
71
|
-
transaction.dig('payee', 'npi')
|
69
|
+
presence(payment_info.dig('renderingProvider', 'npi')) ||
|
70
|
+
presence(detail_info.dig('providerSummaryInformation', 'providerIdentifier')) ||
|
71
|
+
presence(transaction.dig('payee', 'npi'))
|
72
72
|
total_charge_amount = payment_info.dig('claimPaymentInfo', 'totalClaimChargeAmount')
|
73
73
|
|
74
74
|
claim_payment_remark_codes = []
|
@@ -3,7 +3,7 @@ module ChangeHealth
|
|
3
3
|
module Claim
|
4
4
|
class ReportData < ChangeHealth::Response::ResponseData
|
5
5
|
attr_reader :report_name, :json
|
6
|
-
|
6
|
+
alias json? json
|
7
7
|
|
8
8
|
def initialize(report_name, json, data: nil, response: nil)
|
9
9
|
super(data: data, response: response)
|
@@ -39,6 +39,11 @@ module ChangeHealth
|
|
39
39
|
def self.is_835?(report_name)
|
40
40
|
report_name.start_with?('R5')
|
41
41
|
end
|
42
|
+
|
43
|
+
# Ripped from rails Object#presence method
|
44
|
+
def presence(obj)
|
45
|
+
obj unless obj.respond_to?(:empty?) ? !!obj.empty? : !obj
|
46
|
+
end
|
42
47
|
end
|
43
48
|
end
|
44
49
|
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.
|
4
|
+
version: 5.12.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mike Crockett
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-05-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|
@@ -128,7 +128,7 @@ dependencies:
|
|
128
128
|
- - "~>"
|
129
129
|
- !ruby/object:Gem::Version
|
130
130
|
version: '0.9'
|
131
|
-
description:
|
131
|
+
description:
|
132
132
|
email:
|
133
133
|
- mike.crockett@weinfuse.com
|
134
134
|
executables: []
|
@@ -206,7 +206,7 @@ licenses:
|
|
206
206
|
- MIT
|
207
207
|
metadata:
|
208
208
|
allowed_push_host: https://rubygems.org
|
209
|
-
post_install_message:
|
209
|
+
post_install_message:
|
210
210
|
rdoc_options: []
|
211
211
|
require_paths:
|
212
212
|
- lib
|
@@ -222,7 +222,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
222
222
|
version: '0'
|
223
223
|
requirements: []
|
224
224
|
rubygems_version: 3.1.6
|
225
|
-
signing_key:
|
225
|
+
signing_key:
|
226
226
|
specification_version: 4
|
227
227
|
summary: Ruby wrapper for the ChangeHealth API
|
228
228
|
test_files: []
|