change_health 5.3.1 → 5.4.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: '0698ecf8b4fabbd1e1ceb2ec680bc141c39181f5928e16b8d3ea746e4f88b990'
4
- data.tar.gz: e5a3d44c93694f57a1d40245a3390dfcc6ed23f85039606d120fd9793d9ac03f
3
+ metadata.gz: 662e2ffab8b29a602148c99d26a99b1d19bf4ddb8fdf70f8307e0099ea39283b
4
+ data.tar.gz: 7d521347d6d866e0bf47bf592d1ec4ba18a008311a81a2d3835be048b92ef54e
5
5
  SHA512:
6
- metadata.gz: 0ccee7b54c6d45058badfbdd0105e1f90c341a35a0d653360125bc6c9d1cf58ea90e5327061947c59df48f5df99490dc6351920ce344b22553a37b0664ba3d9d
7
- data.tar.gz: 0fedb6d3fbd4629143015fa9c8777dd8e5a80cf72ecbe8555785e60aee3e32cd069b439fba4f39f28da53cd98f91d26cc6b7a4db7cff46062c740804aff24a99
6
+ metadata.gz: '064021867b8b53a42d923fb58285698360313fb7742022fe625487bde8d372c8aa7ccdf2aca67f9cf68fce45678943e4ba5466d1449ead7175b45ceb56365c2f'
7
+ data.tar.gz: 1846e1127af573bcc7373f277aea0e668b7c1554318f37f43a4e120fc6603e8dfa57d08c39511397c148accf14914dd52061ef64e74d42611df284e1a037c75e
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
+ # [5.4.1] - 2023-10-30
9
+
10
+ ### Added
11
+
12
+ * Moved serviceDate, serviceDateEnd attributes from ChangeHealth::Models::Claim::InstitutionalService to ChangeHealth::Models::Claim::ServiceLine
13
+
14
+ # [5.4.0] - 2023-10-27
15
+
16
+ ### Added
17
+
18
+ * Added clearingHouse and serviceName query param to trading_partner query method
19
+
20
+
8
21
  # [5.3.1] - 2023-10-25
9
22
 
10
23
  ### Added
@@ -580,6 +593,8 @@ Added the ability to hit professional claim submission API. For more details, se
580
593
  * Authentication
581
594
  * Configuration
582
595
 
596
+ [5.4.1]: https://github.com/WeInfuse/change_health/compare/v5.4.0...v5.4.1
597
+ [5.4.0]: https://github.com/WeInfuse/change_health/compare/v5.3.1...v5.4.0
583
598
  [5.3.1]: https://github.com/WeInfuse/change_health/compare/v5.3.0...v5.3.1
584
599
  [5.3.0]: https://github.com/WeInfuse/change_health/compare/v5.2.0...v5.3.0
585
600
  [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"
@@ -180,6 +181,7 @@ service_line1 = ChangeHealth::Models::Claim::ServiceLine.new(
180
181
 
181
182
  service_line2 = ChangeHealth::Models::Claim::ServiceLine.new(
182
183
  service_date: "20180514",
184
+ service_date_end: "20180514",
183
185
  professional_service: ChangeHealth::Models::Claim::ProfessionalService.new(
184
186
  line_item_charge_amount: "3.75",
185
187
  measurement_unit: "UN",
@@ -269,8 +271,6 @@ service_line1 = ChangeHealth::Models::Claim::ServiceLine.new(
269
271
  measurement_unit: "UN",
270
272
  procedure_code: "E0570",
271
273
  procedure_identifier: "HC",
272
- service_date: "2018-05-14",
273
- service_date_end: "2018-05-14",
274
274
  service_line_revenue_code: "X",
275
275
  service_unit_count: "1",
276
276
  )
@@ -8,8 +8,6 @@ module ChangeHealth
8
8
  property :procedureCode, from: :procedure_code
9
9
  property :procedureIdentifier, from: :procedure_identifier
10
10
  property :procedureModifiers, from: :procedure_modifiers
11
- property :serviceDate, from: :service_date, required: false
12
- property :serviceDateEnd, from: :service_date_end, required: false
13
11
  property :serviceLineRevenueCode, from: :service_line_revenue_code
14
12
  property :serviceUnitCount, from: :service_unit_count
15
13
  end
@@ -9,6 +9,7 @@ module ChangeHealth
9
9
  property :professionalService, from: :professional_service
10
10
  property :renderingProvider, from: :rendering_provider
11
11
  property :serviceDate, from: :service_date
12
+ property :serviceDateEnd, from: :service_date_end, required: false
12
13
  end
13
14
  end
14
15
  end
@@ -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.1'.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.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Crockett
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-10-26 00:00:00.000000000 Z
11
+ date: 2023-10-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty
@@ -128,7 +128,7 @@ dependencies:
128
128
  - - "~>"
129
129
  - !ruby/object:Gem::Version
130
130
  version: '0.9'
131
- description:
131
+ description:
132
132
  email:
133
133
  - mike.crockett@weinfuse.com
134
134
  executables: []
@@ -206,7 +206,7 @@ licenses:
206
206
  - MIT
207
207
  metadata:
208
208
  allowed_push_host: https://rubygems.org
209
- post_install_message:
209
+ post_install_message:
210
210
  rdoc_options: []
211
211
  require_paths:
212
212
  - lib
@@ -221,8 +221,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
221
221
  - !ruby/object:Gem::Version
222
222
  version: '0'
223
223
  requirements: []
224
- rubygems_version: 3.4.10
225
- signing_key:
224
+ rubygems_version: 3.1.6
225
+ signing_key:
226
226
  specification_version: 4
227
227
  summary: Ruby wrapper for the ChangeHealth API
228
228
  test_files: []