change_health 0.13.0 → 0.14.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: c5da8e7e82bca8bab6f8f3374fa2dc61d4957d45b2ef6094b9a966a15845438f
4
- data.tar.gz: 6167ac5f1dfd966f4527b192bee617044ceab45fbc88872c039f3c2028c72dbe
3
+ metadata.gz: a751b8350dfaa3dbb36d0777baf2375a6678c6061a4dee2492cbd1bdf94bd00c
4
+ data.tar.gz: c4874a617233ec97a1818256ce96c68b720ed9c30dd560a8768c58e29c3c9944
5
5
  SHA512:
6
- metadata.gz: dc3f605678bb170c6bdabb88b46762e4619ff22bfa3af8b43223f6e260c64838dc36e33c4166b81e7cc8b130bbf6f7af550abd7d51504376e45c42203afd9da8
7
- data.tar.gz: 0bdccf4b39cb839decc0f9e74d39a89d98289ddde13f041e90e14983d0c9c40b91cefb48571331c2d4b23de441d8e9d16deb4badd6fc299ae72da15eed56ea4f
6
+ metadata.gz: 13a2bc653d885961025918c443e1b8cd48e368f0c7a2588ac00625ddedb6c34df876450286aa850073bdbaa458b2559b6654fa3d446b55790c190863a1dc149f
7
+ data.tar.gz: c01d4247267625c8fe0fdf20fe33bc2445dfb466c9036f64ea48ae89e11b46ccd6d529686b131333ceace9f4fc1b1a44e97447ebe3e36a0eb9e8cfd997ff9485
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
4
4
  The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
5
5
  and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
6
6
 
7
+ ## [0.14.0] - [2020-05-07]
8
+ ### Added
9
+ - Extensions - mixins for common overrides
10
+
7
11
  ## [0.13.0] - [2020-05-05]
8
12
  ### Changed
9
13
  - Removed `alias_method` for `where` helpers so you can override a single method
@@ -100,6 +104,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
100
104
  - Authentication
101
105
  - Configuration
102
106
 
107
+ [0.14.0]: https://github.com/WeInfuse/change_health/compare/v0.13.0...v0.14.0
103
108
  [0.13.0]: https://github.com/WeInfuse/change_health/compare/v0.12.0...v0.13.0
104
109
  [0.12.0]: https://github.com/WeInfuse/change_health/compare/v0.11.0...v0.12.0
105
110
  [0.11.0]: https://github.com/WeInfuse/change_health/compare/v0.10.0...v0.11.0
@@ -4,6 +4,7 @@ require 'change_health/version'
4
4
  require 'change_health/change_health_exception'
5
5
  require 'change_health/connection'
6
6
  require 'change_health/authentication'
7
+ require 'change_health/extensions'
7
8
  require 'change_health/models/model'
8
9
  require 'change_health/models/eligibility'
9
10
  require 'change_health/models/eligibility_data'
@@ -0,0 +1,33 @@
1
+ module ChangeHealth
2
+ module Extensions
3
+ module InNetworkW
4
+ def in_network
5
+ self.where(inPlanNetworkIndicatorCode: 'Y') + self.where(inPlanNetworkIndicatorCode: 'W')
6
+ end
7
+ end
8
+
9
+ module DeductiblesIgnoreSpecialistZero
10
+ def deductibles
11
+ super.where_not(serviceTypeCodes: '98', benefitAmount: '0')
12
+ end
13
+ end
14
+
15
+ module CopaymentsIgnoreSpecialistZero
16
+ def copayments
17
+ super.where_not(serviceTypeCodes: '98', benefitAmount: '0')
18
+ end
19
+ end
20
+
21
+ module CoinsurancesIgnoreSpecialistZero
22
+ def coinsurances
23
+ super.where_not(serviceTypeCodes: '98', benefitPercent: '0')
24
+ end
25
+ end
26
+
27
+ module IndividualsAllNonFamily
28
+ def individuals
29
+ self.where_not(coverageLevelCode: 'FAM')
30
+ end
31
+ end
32
+ end
33
+ end
@@ -1,3 +1,3 @@
1
1
  module ChangeHealth
2
- VERSION = '0.13.0'.freeze
2
+ VERSION = '0.14.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: 0.13.0
4
+ version: 0.14.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: 2020-05-05 00:00:00.000000000 Z
11
+ date: 2020-05-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty
@@ -146,6 +146,7 @@ files:
146
146
  - lib/change_health/authentication.rb
147
147
  - lib/change_health/change_health_exception.rb
148
148
  - lib/change_health/connection.rb
149
+ - lib/change_health/extensions.rb
149
150
  - lib/change_health/models/eligibility.rb
150
151
  - lib/change_health/models/eligibility_benefit.rb
151
152
  - lib/change_health/models/eligibility_benefits.rb