change_health 5.3.1 → 5.4.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: '0698ecf8b4fabbd1e1ceb2ec680bc141c39181f5928e16b8d3ea746e4f88b990'
4
- data.tar.gz: e5a3d44c93694f57a1d40245a3390dfcc6ed23f85039606d120fd9793d9ac03f
3
+ metadata.gz: 398de32d2b4fe0978758a49b290afacc32b47045a193418fe1374f140460b551
4
+ data.tar.gz: cb465e4241ba019379743b4ee47f6934f06a8fc7bf0e775d828bd402758fd142
5
5
  SHA512:
6
- metadata.gz: 0ccee7b54c6d45058badfbdd0105e1f90c341a35a0d653360125bc6c9d1cf58ea90e5327061947c59df48f5df99490dc6351920ce344b22553a37b0664ba3d9d
7
- data.tar.gz: 0fedb6d3fbd4629143015fa9c8777dd8e5a80cf72ecbe8555785e60aee3e32cd069b439fba4f39f28da53cd98f91d26cc6b7a4db7cff46062c740804aff24a99
6
+ metadata.gz: 2dedd5e1485a79bd248254ebbade06360091206e8f3c234956564def8e8901ecab9297ad9e9d4b9c76e38aa27a9625e472f67ff93b539fa8f180218d59bd8979
7
+ data.tar.gz: 4568865fe255802676ae68a11b2082941354fef4d1ae4af9493096c3caed3b224c1bc0be5374bd7d9b84eb99d830e54e13881e9159e01f7f54a338ca389d7263
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
+ # [5.4.0] - 2023-10-27
9
+
10
+ ### Added
11
+
12
+ * Added clearingHouse and serviceName query param to trading_partner query method
13
+
8
14
  # [5.3.1] - 2023-10-25
9
15
 
10
16
  ### Added
@@ -580,6 +586,7 @@ Added the ability to hit professional claim submission API. For more details, se
580
586
  * Authentication
581
587
  * Configuration
582
588
 
589
+ [5.4.0]: https://github.com/WeInfuse/change_health/compare/v5.3.1...v5.4.0
583
590
  [5.3.1]: https://github.com/WeInfuse/change_health/compare/v5.3.0...v5.3.1
584
591
  [5.3.0]: https://github.com/WeInfuse/change_health/compare/v5.2.0...v5.3.0
585
592
  [5.2.0]: https://github.com/WeInfuse/change_health/compare/v5.1.0...v5.2.0
data/README.md CHANGED
@@ -88,7 +88,8 @@ edata.raw == edata.response.parsed_response
88
88
  ```ruby
89
89
  # Query trading partners using a wildcard search
90
90
  # Returns Array of ChangeHealth::Models::TradingPartner Objects
91
- trading_partners = ChangeHealth::Request::TradingPartner.query("Aetna")
91
+ # Query params: term, service_name(default: 'Eligibility'), clearing_house(default: 'npd')
92
+ trading_partners = ChangeHealth::Request::TradingPartner.query("Aetna", service_name: 'Eligibility', clearing_house: 'dbq')
92
93
 
93
94
  trading_partners.first.name
94
95
  # "Aetna"
@@ -3,11 +3,11 @@ module ChangeHealth
3
3
  class TradingPartner < Hashie::Trash
4
4
  ENDPOINT = '/medicalnetwork/payerfinder/v1/payers'.freeze
5
5
 
6
- def self.query(term)
6
+ def self.query(term, service_name: 'Eligibility', clearing_house: 'npd')
7
7
  params = {
8
8
  businessName: term,
9
- serviceName: 'Eligibility',
10
- clearingHouse: 'dbq'
9
+ serviceName: service_name,
10
+ clearingHouse: clearing_house
11
11
  }
12
12
 
13
13
  response = ChangeHealth::Connection.new.request(endpoint: ENDPOINT, verb: :get, query: params)
@@ -1,3 +1,3 @@
1
1
  module ChangeHealth
2
- VERSION = '5.3.1'.freeze
2
+ VERSION = '5.4.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.3.1
4
+ version: 5.4.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: 2023-10-26 00:00:00.000000000 Z
11
+ date: 2023-10-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty