change_health 4.13.0 → 4.13.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 +7 -0
- data/lib/change_health/request/submission.rb +31 -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: cefa3385bd0fc12684684383de2de39c4e0ef4ff67972ba9c81d1bc7a8345a01
|
4
|
+
data.tar.gz: 1c193080064802e59829060d926cdf3fd144d8db81699d48637138dc124acbdd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '08bee260e0a46761bf3dc1d25242613397a1128bd3015659aa31adc116e553699412aec0c539f92e3b87afacca3c4e66a173deebd260bfd8d3ae1886a092d1de'
|
7
|
+
data.tar.gz: 6404f63ab7ccd33e3ec8d5009ecb086b8e06abc1c5d3d55a4687baa85c126e95474a1641b3c0656af7cee549d71ff8def2d8e160166624055a2f70858b4be7b1
|
data/CHANGELOG.md
CHANGED
@@ -5,6 +5,12 @@ 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.13.1] - 2023-08-23
|
9
|
+
|
10
|
+
### Fixed
|
11
|
+
|
12
|
+
Added institional claim submission specific headers so that institutional claims that required headers will go through in production
|
13
|
+
|
8
14
|
# [4.13.0] - 2023-08-11
|
9
15
|
|
10
16
|
### Added
|
@@ -519,6 +525,7 @@ Added the ability to hit professional claim submission API. For more details, se
|
|
519
525
|
* Authentication
|
520
526
|
* Configuration
|
521
527
|
|
528
|
+
[4.13.1]: https://github.com/WeInfuse/change_health/compare/v4.13.0...v4.13.1
|
522
529
|
[4.13.0]: https://github.com/WeInfuse/change_health/compare/v4.12.0...v4.13.0
|
523
530
|
[4.12.0]: https://github.com/WeInfuse/change_health/compare/v4.11.0...v4.12.0
|
524
531
|
[4.11.0]: https://github.com/WeInfuse/change_health/compare/v4.10.1...v4.11.0
|
@@ -36,17 +36,25 @@ module ChangeHealth
|
|
36
36
|
def submission(is_professional: true)
|
37
37
|
endpoint = is_professional ? PROFESSIONAL_ENDPOINT : INSTITUTIONAL_ENDPOINT
|
38
38
|
endpoint += SUBMISSION_SUFFIX
|
39
|
-
ChangeHealth::Response::Claim::SubmissionData.new(
|
40
|
-
|
41
|
-
|
39
|
+
ChangeHealth::Response::Claim::SubmissionData.new(
|
40
|
+
response: ChangeHealth::Connection.new.request(
|
41
|
+
endpoint: endpoint,
|
42
|
+
body: to_h,
|
43
|
+
headers: is_professional ? professional_headers : institutional_headers
|
44
|
+
)
|
45
|
+
)
|
42
46
|
end
|
43
47
|
|
44
48
|
def validation(is_professional: true)
|
45
49
|
endpoint = is_professional ? PROFESSIONAL_ENDPOINT : INSTITUTIONAL_ENDPOINT
|
46
50
|
endpoint += VALIDATION_SUFFIX
|
47
|
-
ChangeHealth::Response::Claim::SubmissionData.new(
|
48
|
-
|
49
|
-
|
51
|
+
ChangeHealth::Response::Claim::SubmissionData.new(
|
52
|
+
response: ChangeHealth::Connection.new.request(
|
53
|
+
endpoint: endpoint,
|
54
|
+
body: to_h,
|
55
|
+
headers: is_professional ? professional_headers : institutional_headers
|
56
|
+
)
|
57
|
+
)
|
50
58
|
end
|
51
59
|
|
52
60
|
def self.health_check(is_professional: true)
|
@@ -62,12 +70,23 @@ module ChangeHealth
|
|
62
70
|
def professional_headers
|
63
71
|
return unless self[:headers]
|
64
72
|
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
73
|
+
{
|
74
|
+
'X-CHC-ClaimSubmission-BillerId' => self[:headers][:biller_id],
|
75
|
+
'X-CHC-ClaimSubmission-Pwd' => self[:headers][:password],
|
76
|
+
'X-CHC-ClaimSubmission-SubmitterId' => self[:headers][:submitter_id],
|
77
|
+
'X-CHC-ClaimSubmission-Username' => self[:headers][:username]
|
78
|
+
}
|
79
|
+
end
|
80
|
+
|
81
|
+
def institutional_headers
|
82
|
+
return unless self[:headers]
|
83
|
+
|
84
|
+
{
|
85
|
+
'X-CHC-InstitutionalClaims-BillerId' => self[:headers][:biller_id],
|
86
|
+
'X-CHC-InstitutionalClaims-Pwd' => self[:headers][:password],
|
87
|
+
'X-CHC-InstitutionalClaims-SubmitterId' => self[:headers][:submitter_id],
|
88
|
+
'X-CHC-InstitutionalClaims-Username' => self[:headers][:username]
|
89
|
+
}
|
71
90
|
end
|
72
91
|
end
|
73
92
|
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.13.
|
4
|
+
version: 4.13.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: 2023-08-
|
11
|
+
date: 2023-08-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|