change_health 5.6.0 → 5.8.0
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 +16 -5
- data/lib/change_health/request/submission.rb +17 -12
- data/lib/change_health/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4a22670dd997245072215efbd6d3b597e465800767b120b37a0fa8a480c775c7
|
4
|
+
data.tar.gz: a05c3f55926ce3430f24e83fe241b1c201a628e1ff367e7f8afda8d82edf1442
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4fee7e348ba8663eadefa445717cb09e5beb5a303ed1ca6316730c6b2592a8313861c6a42e62568be4270b8f1a9082d34365bfad3f45b22bb17f1e256a39956b
|
7
|
+
data.tar.gz: e2bfe19dc884ef8319236aff998968e9e76d3c1200730f6d92c1fe489d08be35735bc69142bfb131a4a161afda88d568a001e267aac15fc9ec5b8ef708a0bc97
|
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.8.0] - 2024-03-25
|
9
|
+
|
10
|
+
### Added
|
11
|
+
|
12
|
+
* Added configurable endpoint overide for claim report
|
13
|
+
|
14
|
+
# [5.7.0] - 2024-03-07
|
15
|
+
|
16
|
+
### Added
|
17
|
+
|
18
|
+
* providers - attending, billing, referring, rendering, and supervising - directly to ChangeHealth::Request::Claim::Submission
|
19
|
+
|
8
20
|
# [5.6.0] - 2024-03-06
|
9
21
|
|
10
22
|
### Added
|
@@ -613,6 +625,8 @@ Added the ability to hit professional claim submission API. For more details, se
|
|
613
625
|
* Authentication
|
614
626
|
* Configuration
|
615
627
|
|
628
|
+
[5.8.0]: https://github.com/WeInfuse/change_health/compare/v5.7.0...v5.8.0
|
629
|
+
[5.7.0]: https://github.com/WeInfuse/change_health/compare/v5.6.0...v5.7.0
|
616
630
|
[5.6.0]: https://github.com/WeInfuse/change_health/compare/v5.5.0...v5.6.0
|
617
631
|
[5.5.0]: https://github.com/WeInfuse/change_health/compare/v5.4.2...v5.5.0
|
618
632
|
[5.4.2]: https://github.com/WeInfuse/change_health/compare/v5.4.1...v5.4.2
|
@@ -6,21 +6,31 @@ module ChangeHealth
|
|
6
6
|
HEALTH_CHECK_ENDPOINT = ENDPOINT + '/healthcheck'.freeze
|
7
7
|
|
8
8
|
def self.report_list(headers: nil)
|
9
|
+
endpoint = ChangeHealth::Connection.endpoint_for(self)
|
9
10
|
final_headers = ChangeHealth::Request::Claim::Report.report_headers(headers)
|
10
11
|
ChangeHealth::Response::Claim::ReportListData.new(response: ChangeHealth::Connection.new.request(
|
11
|
-
endpoint:
|
12
|
+
endpoint: endpoint, verb: :get, headers: final_headers
|
12
13
|
))
|
13
14
|
end
|
14
15
|
|
15
|
-
def self.get_report(
|
16
|
+
def self.get_report(
|
17
|
+
report_name,
|
18
|
+
as_json_report: true,
|
19
|
+
headers: nil,
|
20
|
+
report_type: nil
|
21
|
+
)
|
16
22
|
return if report_name.nil? || report_name.empty?
|
17
23
|
|
18
24
|
final_headers = ChangeHealth::Request::Claim::Report.report_headers(headers)
|
19
25
|
|
20
|
-
|
26
|
+
endpoint = ChangeHealth::Connection.endpoint_for(self)
|
27
|
+
|
28
|
+
individual_report_endpoint = "#{endpoint}/#{report_name}"
|
21
29
|
|
22
30
|
# https://developers.changehealthcare.com/eligibilityandclaims/docs/what-file-types-does-this-api-get-from-the-mailbox
|
23
|
-
if
|
31
|
+
if report_type
|
32
|
+
individual_report_endpoint += "/#{report_type}"
|
33
|
+
elsif as_json_report
|
24
34
|
report_type = ChangeHealth::Response::Claim::ReportData.report_type(report_name)
|
25
35
|
individual_report_endpoint += "/#{report_type}"
|
26
36
|
end
|
@@ -53,7 +63,8 @@ module ChangeHealth
|
|
53
63
|
|
54
64
|
final_headers = ChangeHealth::Request::Claim::Report.report_headers(headers)
|
55
65
|
|
56
|
-
|
66
|
+
endpoint = ChangeHealth::Connection.endpoint_for(self)
|
67
|
+
individual_report_endpoint = "#{endpoint}/#{report_name}"
|
57
68
|
|
58
69
|
ChangeHealth::Connection.new.request(
|
59
70
|
endpoint: individual_report_endpoint,
|
@@ -15,20 +15,25 @@ module ChangeHealth
|
|
15
15
|
VALIDATION_ENDPOINT = ENDPOINT + '/validation'.freeze
|
16
16
|
# End Deprecated
|
17
17
|
|
18
|
-
property :
|
19
|
-
property :
|
18
|
+
property :attending
|
19
|
+
property :billing
|
20
|
+
property :billingPayToAddressName, from: :billing_pay_to_address_name
|
21
|
+
property :claimInformation, from: :claim_information
|
20
22
|
property :controlNumber, from: :control_number, required: true, default: ChangeHealth::Models::CONTROL_NUMBER
|
21
|
-
property :dependent
|
22
|
-
property :headers
|
23
|
-
property :payToAddress, from: :pay_to_address
|
24
|
-
property :providers
|
25
|
-
property :receiver
|
26
|
-
property :
|
27
|
-
property :
|
23
|
+
property :dependent
|
24
|
+
property :headers
|
25
|
+
property :payToAddress, from: :pay_to_address
|
26
|
+
property :providers
|
27
|
+
property :receiver
|
28
|
+
property :referring
|
29
|
+
property :rendering
|
30
|
+
property :submitter
|
31
|
+
property :subscriber
|
32
|
+
property :supervising
|
28
33
|
# Need one or the other, trading partner id or trading partner service id
|
29
|
-
property :tradingPartnerId, from: :trading_partner_id
|
30
|
-
property :tradingPartnerName, from: :trading_partner_name
|
31
|
-
property :tradingPartnerServiceId, from: :trading_partner_service_id
|
34
|
+
property :tradingPartnerId, from: :trading_partner_id
|
35
|
+
property :tradingPartnerName, from: :trading_partner_name
|
36
|
+
property :tradingPartnerServiceId, from: :trading_partner_service_id
|
32
37
|
|
33
38
|
def add_provider(provider)
|
34
39
|
self[:providers] ||= []
|
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.8.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: 2024-03-
|
11
|
+
date: 2024-03-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|