change_health 0.13.0 → 0.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/change_health.rb +1 -0
- data/lib/change_health/extensions.rb +33 -0
- data/lib/change_health/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a751b8350dfaa3dbb36d0777baf2375a6678c6061a4dee2492cbd1bdf94bd00c
|
4
|
+
data.tar.gz: c4874a617233ec97a1818256ce96c68b720ed9c30dd560a8768c58e29c3c9944
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 13a2bc653d885961025918c443e1b8cd48e368f0c7a2588ac00625ddedb6c34df876450286aa850073bdbaa458b2559b6654fa3d446b55790c190863a1dc149f
|
7
|
+
data.tar.gz: c01d4247267625c8fe0fdf20fe33bc2445dfb466c9036f64ea48ae89e11b46ccd6d529686b131333ceace9f4fc1b1a44e97447ebe3e36a0eb9e8cfd997ff9485
|
data/CHANGELOG.md
CHANGED
@@ -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
|
data/lib/change_health.rb
CHANGED
@@ -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
|
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.
|
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-
|
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
|