change_health 4.9.0 → 4.10.1
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5368482e5ea5cd508f1448ea914dec036dd67db3e53c66aed82efdca2f7d4566
|
4
|
+
data.tar.gz: 35464f0f12f0ccb4c1bdbf044d52fe77cb8b3c830afa2ff303e8be94821c0439
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 250e8192015dfe385e6e30c0d65fa2f76a6b0ae63d3caf25de10ed9a378429414799089aeeae6b384b0f31bbd760e84b92c73553c0ee12a692c06fec1ca1b87d
|
7
|
+
data.tar.gz: 6987b337861f82b104617e80c53b5c5fae07bc180c7d9774c89afdad9c464b92fec9c391842771c5585a1e06329cb7d46568e7a661506b960af0e861b7337c6d
|
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
|
+
# [4.10.1] - 2022-12-29
|
9
|
+
|
10
|
+
### Fixed
|
11
|
+
|
12
|
+
* Report835ServiceLine - nil exception for create_adjustment_detail_array when there are no service_adjustments
|
13
|
+
|
14
|
+
# [4.10.0] - 2022-12-01
|
15
|
+
|
16
|
+
### Added
|
17
|
+
|
18
|
+
* Request Report - can now pull back any kind of report, not just 277 or 835
|
19
|
+
|
8
20
|
# [4.9.0] - 2022-11-11
|
9
21
|
|
10
22
|
### Added
|
@@ -448,7 +460,9 @@ Added the ability to hit professional claim submission API. For more details, se
|
|
448
460
|
* Authentication
|
449
461
|
* Configuration
|
450
462
|
|
451
|
-
[4.
|
463
|
+
[4.10.1]: https://github.com/WeInfuse/change_health/compare/v4.10.0...v4.10.1
|
464
|
+
[4.10.0]: https://github.com/WeInfuse/change_health/compare/v4.9.0...v4.10.0
|
465
|
+
[4.9.0]: https://github.com/WeInfuse/change_health/compare/v4.8.0...v4.9.0
|
452
466
|
[4.8.0]: https://github.com/WeInfuse/change_health/compare/v4.7.0...v4.8.0
|
453
467
|
[4.7.0]: https://github.com/WeInfuse/change_health/compare/v4.6.0...v4.7.0
|
454
468
|
[4.6.0]: https://github.com/WeInfuse/change_health/compare/v4.5.0...v4.6.0
|
@@ -7,32 +7,44 @@ module ChangeHealth
|
|
7
7
|
|
8
8
|
def self.report_list(headers: nil)
|
9
9
|
final_headers = ChangeHealth::Request::Claim::Report.report_headers(headers)
|
10
|
-
ChangeHealth::Response::Claim::ReportListData.new(response: ChangeHealth::Connection.new.request(
|
10
|
+
ChangeHealth::Response::Claim::ReportListData.new(response: ChangeHealth::Connection.new.request(
|
11
|
+
endpoint: ENDPOINT, verb: :get, headers: final_headers
|
12
|
+
))
|
11
13
|
end
|
12
14
|
|
13
15
|
def self.get_report(report_name, as_json_report: true, headers: nil)
|
14
16
|
return if report_name.nil? || report_name.empty?
|
15
|
-
final_headers = ChangeHealth::Request::Claim::Report.report_headers(headers)
|
16
17
|
|
17
|
-
|
18
|
-
return if report_type.nil?
|
18
|
+
final_headers = ChangeHealth::Request::Claim::Report.report_headers(headers)
|
19
19
|
|
20
|
-
individual_report_endpoint = ENDPOINT
|
20
|
+
individual_report_endpoint = "#{ENDPOINT}/#{report_name}"
|
21
21
|
|
22
22
|
# https://developers.changehealthcare.com/eligibilityandclaims/docs/what-file-types-does-this-api-get-from-the-mailbox
|
23
|
-
|
23
|
+
if as_json_report
|
24
|
+
report_type = ChangeHealth::Response::Claim::ReportData.report_type(report_name)
|
25
|
+
individual_report_endpoint += "/#{report_type}"
|
26
|
+
end
|
24
27
|
|
25
|
-
response = ChangeHealth::Connection.new.request(
|
28
|
+
response = ChangeHealth::Connection.new.request(
|
29
|
+
endpoint: individual_report_endpoint,
|
30
|
+
verb: :get,
|
31
|
+
headers: final_headers
|
32
|
+
)
|
26
33
|
if ChangeHealth::Response::Claim::ReportData.is_277?(report_name)
|
27
34
|
ChangeHealth::Response::Claim::Report277Data
|
28
35
|
.new(report_name,
|
29
36
|
as_json_report,
|
30
37
|
response: response)
|
31
|
-
|
38
|
+
elsif ChangeHealth::Response::Claim::ReportData.is_835?(report_name)
|
32
39
|
ChangeHealth::Response::Claim::Report835Data
|
33
40
|
.new(report_name,
|
34
41
|
as_json_report,
|
35
42
|
response: response)
|
43
|
+
else
|
44
|
+
ChangeHealth::Response::Claim::ReportData
|
45
|
+
.new(report_name,
|
46
|
+
as_json_report,
|
47
|
+
response: response)
|
36
48
|
end
|
37
49
|
end
|
38
50
|
|
@@ -41,17 +53,15 @@ module ChangeHealth
|
|
41
53
|
end
|
42
54
|
|
43
55
|
def self.ping
|
44
|
-
|
56
|
+
health_check
|
45
57
|
end
|
46
58
|
|
47
59
|
def self.report_headers(headers)
|
48
60
|
if headers
|
49
61
|
extra_headers = {}
|
50
|
-
extra_headers[
|
51
|
-
extra_headers[
|
62
|
+
extra_headers['X-CHC-Reports-Username'] = headers[:username]
|
63
|
+
extra_headers['X-CHC-Reports-Password'] = headers[:password]
|
52
64
|
extra_headers
|
53
|
-
else
|
54
|
-
nil
|
55
65
|
end
|
56
66
|
end
|
57
67
|
end
|
@@ -23,11 +23,9 @@ module ChangeHealth
|
|
23
23
|
end
|
24
24
|
|
25
25
|
def create_adjustment_detail_array
|
26
|
-
|
27
|
-
adjustment_details = all_service_adjustments.map do |service_adjustments|
|
26
|
+
service_adjustments&.map do |service_adjustments|
|
28
27
|
create_group_adjustments(service_adjustments)
|
29
|
-
end
|
30
|
-
adjustment_details
|
28
|
+
end || []
|
31
29
|
end
|
32
30
|
end
|
33
31
|
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.
|
4
|
+
version: 4.10.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: 2022-
|
11
|
+
date: 2022-12-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|