change_health 4.10.1 → 4.12.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 +15 -0
- data/README.md +10 -0
- data/lib/change_health/models/claim/submission/subscriber.rb +1 -0
- data/lib/change_health/request/report.rb +20 -6
- 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: 3ddaef653d42e435de01803eb4f3a7b812967cb8d8383a21ea9e1c175e86be30
|
4
|
+
data.tar.gz: 9be3f9f9bb5bb344c9bde71b8e325042f50d35ef19587b7a9f4a4cffbabe5848
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a385d3b63df90dc06370f4574a09d374647db7ecce46c804cb9b51e5c8e163f69a407932c8834612414467b940d7d47d411b1acd277dcd0023a6378b825174b2
|
7
|
+
data.tar.gz: 210616ed27e31f680a2c213f6a0de92f011b43b2c5a80f2f58a938ade23db70fa92262389eb991b8551fbc4a8873257d0137860e9c8b85ae43f1679326416a5c
|
data/CHANGELOG.md
CHANGED
@@ -5,6 +5,19 @@ 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.12.0] - 2023-1-23
|
9
|
+
|
10
|
+
### Added
|
11
|
+
|
12
|
+
* Property `insuranceTypeCode` for ChangeHealth::Models::Claim::Subscriber
|
13
|
+
|
14
|
+
|
15
|
+
# [4.11.0] - 2022-12-30
|
16
|
+
|
17
|
+
### Added
|
18
|
+
|
19
|
+
* ChangeHealth::Request::Claim::Report - delete a report
|
20
|
+
|
8
21
|
# [4.10.1] - 2022-12-29
|
9
22
|
|
10
23
|
### Fixed
|
@@ -460,6 +473,8 @@ Added the ability to hit professional claim submission API. For more details, se
|
|
460
473
|
* Authentication
|
461
474
|
* Configuration
|
462
475
|
|
476
|
+
[4.12.0]: https://github.com/WeInfuse/change_health/compare/v4.11.0...v4.12.0
|
477
|
+
[4.11.0]: https://github.com/WeInfuse/change_health/compare/v4.10.1...v4.11.0
|
463
478
|
[4.10.1]: https://github.com/WeInfuse/change_health/compare/v4.10.0...v4.10.1
|
464
479
|
[4.10.0]: https://github.com/WeInfuse/change_health/compare/v4.9.0...v4.10.0
|
465
480
|
[4.9.0]: https://github.com/WeInfuse/change_health/compare/v4.8.0...v4.9.0
|
data/README.md
CHANGED
@@ -324,6 +324,16 @@ claim835.claim_status_code
|
|
324
324
|
# "19"
|
325
325
|
```
|
326
326
|
|
327
|
+
### Delete Reports
|
328
|
+
[Delete Endpoint FAQ](https://developers.changehealthcare.com/eligibilityandclaims/docs/claims-responses-and-reports-faq#delete-http-endpoint)
|
329
|
+
|
330
|
+
[Delete Endpoint API Reference](https://developers.changehealthcare.com/eligibilityandclaims/reference/delete_single_report_v2_reports__filename__delete)
|
331
|
+
|
332
|
+
|
333
|
+
```ruby
|
334
|
+
ChangeHealth::Request::Claim::Report.delete_report("R5000000.XY")
|
335
|
+
```
|
336
|
+
|
327
337
|
## Configuration
|
328
338
|
|
329
339
|
```ruby
|
@@ -7,6 +7,7 @@ module ChangeHealth
|
|
7
7
|
property :firstName, from: :first_name, required: false
|
8
8
|
property :gender, required: false
|
9
9
|
property :groupNumber, from: :group_number, required: false
|
10
|
+
property :insuranceTypeCode, from: :insurance_type_code, required: false
|
10
11
|
property :lastName, from: :last_name, required: false
|
11
12
|
property :memberId, from: :member_id, required: false
|
12
13
|
property :paymentResponsibilityLevelCode, from: :payment_responsibility_level_code, required: false
|
@@ -48,6 +48,20 @@ module ChangeHealth
|
|
48
48
|
end
|
49
49
|
end
|
50
50
|
|
51
|
+
def self.delete_report(report_name, headers: nil)
|
52
|
+
return if report_name.nil? || report_name.empty?
|
53
|
+
|
54
|
+
final_headers = ChangeHealth::Request::Claim::Report.report_headers(headers)
|
55
|
+
|
56
|
+
individual_report_endpoint = "#{ENDPOINT}/#{report_name}"
|
57
|
+
|
58
|
+
ChangeHealth::Connection.new.request(
|
59
|
+
endpoint: individual_report_endpoint,
|
60
|
+
verb: :delete,
|
61
|
+
headers: final_headers
|
62
|
+
)
|
63
|
+
end
|
64
|
+
|
51
65
|
def self.health_check
|
52
66
|
ChangeHealth::Connection.new.request(endpoint: HEALTH_CHECK_ENDPOINT, verb: :get)
|
53
67
|
end
|
@@ -57,12 +71,12 @@ module ChangeHealth
|
|
57
71
|
end
|
58
72
|
|
59
73
|
def self.report_headers(headers)
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
74
|
+
return unless headers
|
75
|
+
|
76
|
+
extra_headers = {}
|
77
|
+
extra_headers['X-CHC-Reports-Username'] = headers[:username]
|
78
|
+
extra_headers['X-CHC-Reports-Password'] = headers[:password]
|
79
|
+
extra_headers
|
66
80
|
end
|
67
81
|
end
|
68
82
|
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.12.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:
|
11
|
+
date: 2023-01-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|