change_health 5.8.1 → 5.10.0

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: f0bf0c65663038f50cad4015b808443f1ed0f1d157021568b377358a9d5226aa
4
- data.tar.gz: f741f92c0e951b8b8b65c10f2a3cad24dec9d211d13684d64351a3504cb1666f
3
+ metadata.gz: 76afe5541df02b6df0d1b83cb4199df529a216afba9ba9d4a3ae7b057eda0ebe
4
+ data.tar.gz: c7b13eb6537243998082cd540402d3d8a154bd6ee1b1a69755f7eb5defec2f59
5
5
  SHA512:
6
- metadata.gz: 339019aae2ac50da301e079790af4179ee84502ae2253d6d0502ae06832e6bf7747006298fe10f9ce26816bdee53272b84308f21970278762be8a343e0fffdad
7
- data.tar.gz: d222cbb2ffd4613fe0abd532cda576b95b5816611af2537ff1877d6be59cc32243a030038fbd1bb778185e4b1b57e07bdb6bde99520b1a5d7e8f0e98e31586f2
6
+ metadata.gz: f5ae3ef5eb904290ec804e31979503343b70ef3ee9cb12b528aed2227486f1fce976acb6442678492dad9b6932d51af181e5c281cdf64d99cf01a417d48d4ba4
7
+ data.tar.gz: c6fbdfd8f6ad5bbe9f77d83cb7e65aed4bc100327836b345b34cd4c562caab1c2ea6eb66f02c3bcef8987db7e06af39eee4c51a6b9c9f2da6f142a21f00cb314
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.10.0] - 2024-04-23
9
+
10
+ ### Added
11
+
12
+ * Support date format YYYY-MM-DD
13
+
14
+ # [5.9.0] - 2024-04-19
15
+
16
+ ### Added
17
+
18
+ * Ability to accept headers in submission.
19
+
8
20
  # [5.8.1] - 2024-04-02
9
21
 
10
22
  ### Fixed
@@ -632,6 +644,8 @@ Added the ability to hit professional claim submission API. For more details, se
632
644
  * Authentication
633
645
  * Configuration
634
646
 
647
+ [5.10.0]: https://github.com/WeInfuse/change_health/compare/v5.9.0...v5.10.0
648
+ [5.9.0]: https://github.com/WeInfuse/change_health/compare/v5.8.1...v5.9.0
635
649
  [5.8.1]: https://github.com/WeInfuse/change_health/compare/v5.8.0...v5.8.1
636
650
  [5.8.0]: https://github.com/WeInfuse/change_health/compare/v5.7.0...v5.8.0
637
651
  [5.7.0]: https://github.com/WeInfuse/change_health/compare/v5.6.0...v5.7.0
data/README.md CHANGED
@@ -511,4 +511,4 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
511
511
 
512
512
  # Contributing
513
513
 
514
- Bug reports and pull requests are welcome on GitHub at https://github.com/WeInfuse/change\_health.
514
+ Bug reports and pull requests are welcome on GitHub at https://github.com/WeInfuse/change_health.
@@ -34,7 +34,7 @@ module ChangeHealth
34
34
 
35
35
  PARSE_DATE = lambda { |d|
36
36
  begin
37
- d = Date.strptime(d, ChangeHealth::Models::DATE_FORMAT)
37
+ d = Date.strptime(d.tr('-', ''), ChangeHealth::Models::DATE_FORMAT)
38
38
  rescue StandardError
39
39
  end
40
40
 
@@ -40,7 +40,8 @@ module ChangeHealth
40
40
  self[:providers] << provider
41
41
  end
42
42
 
43
- def submission(is_professional: true)
43
+ def submission(is_professional: true, headers: nil)
44
+ headers ||= is_professional ? professional_headers : institutional_headers
44
45
  ChangeHealth::Response::Claim::SubmissionData.new(
45
46
  response: ChangeHealth::Connection.new.request(
46
47
  endpoint: self.class.endpoint(
@@ -48,7 +49,7 @@ module ChangeHealth
48
49
  suffix: SUBMISSION_SUFFIX
49
50
  ),
50
51
  body: to_h,
51
- headers: is_professional ? professional_headers : institutional_headers
52
+ headers: headers
52
53
  )
53
54
  )
54
55
  end
@@ -1,3 +1,3 @@
1
1
  module ChangeHealth
2
- VERSION = '5.8.1'.freeze
2
+ VERSION = '5.10.0'.freeze
3
3
  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.8.1
4
+ version: 5.10.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-04-02 00:00:00.000000000 Z
11
+ date: 2024-04-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty
@@ -221,7 +221,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
221
221
  - !ruby/object:Gem::Version
222
222
  version: '0'
223
223
  requirements: []
224
- rubygems_version: 3.0.3.1
224
+ rubygems_version: 3.1.6
225
225
  signing_key:
226
226
  specification_version: 4
227
227
  summary: Ruby wrapper for the ChangeHealth API