change_health 0.14.0 → 0.15.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: a751b8350dfaa3dbb36d0777baf2375a6678c6061a4dee2492cbd1bdf94bd00c
4
- data.tar.gz: c4874a617233ec97a1818256ce96c68b720ed9c30dd560a8768c58e29c3c9944
3
+ metadata.gz: 23b7246464a9cee50b55cda5e50f5f39360f12ab3185bead7d17d1138b7be6d6
4
+ data.tar.gz: 4642b90b2cea31a84180093211abba8017fb690a53077e8b563f52fc153eeb00
5
5
  SHA512:
6
- metadata.gz: 13a2bc653d885961025918c443e1b8cd48e368f0c7a2588ac00625ddedb6c34df876450286aa850073bdbaa458b2559b6654fa3d446b55790c190863a1dc149f
7
- data.tar.gz: c01d4247267625c8fe0fdf20fe33bc2445dfb466c9036f64ea48ae89e11b46ccd6d529686b131333ceace9f4fc1b1a44e97447ebe3e36a0eb9e8cfd997ff9485
6
+ metadata.gz: 0cdcd134c67d6e935da27de8db74a3371368477d2548cd9252ca5d6b1ee62d6469a6db473f0454cf457564513d6bb2570a4af1bc438d1ea0995a81b019d6ff5f
7
+ data.tar.gz: 9bdbc8f2cc8373896c07c614ea954f43a7684ddfa9e95d13842055158b86c16bee6871111e212b400c5a9f8f65739f35c1a8d988cbc9c2dc960441fb5c6a3713
@@ -4,6 +4,13 @@ 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.15.0] - [2020-06-12]
8
+ ### Added
9
+ - Extensions - InNetworkMissing for plans that don't provide in network indicators.
10
+
11
+ ### Fixed
12
+ - Bug where active codes with no service codes cause exception.
13
+
7
14
  ## [0.14.0] - [2020-05-07]
8
15
  ### Added
9
16
  - Extensions - mixins for common overrides
@@ -104,6 +111,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
104
111
  - Authentication
105
112
  - Configuration
106
113
 
114
+ [0.15.0]: https://github.com/WeInfuse/change_health/compare/v0.14.0...v0.15.0
107
115
  [0.14.0]: https://github.com/WeInfuse/change_health/compare/v0.13.0...v0.14.0
108
116
  [0.13.0]: https://github.com/WeInfuse/change_health/compare/v0.12.0...v0.13.0
109
117
  [0.12.0]: https://github.com/WeInfuse/change_health/compare/v0.11.0...v0.12.0
@@ -6,6 +6,12 @@ module ChangeHealth
6
6
  end
7
7
  end
8
8
 
9
+ module InNetworkMissing
10
+ def in_network
11
+ self.where_not(inPlanNetworkIndicatorCode: 'N')
12
+ end
13
+ end
14
+
9
15
  module DeductiblesIgnoreSpecialistZero
10
16
  def deductibles
11
17
  super.where_not(serviceTypeCodes: '98', benefitAmount: '0')
@@ -18,6 +18,7 @@ module ChangeHealth
18
18
  EMPLOYEE_AND_SPOUSE = 'ESP'
19
19
 
20
20
  VISIT = '27'
21
+ SERVICE_YEAR = '22'
21
22
  YEAR = '23'
22
23
  YTD = '24'
23
24
  DAY = '7'
@@ -65,7 +65,7 @@ module ChangeHealth
65
65
  end
66
66
 
67
67
  def plan_status(service_code: )
68
- self.planStatus&.find {|plan| plan.dig('serviceTypeCodes').include?(service_code) } || {}
68
+ self.planStatus&.find {|plan| plan.dig('serviceTypeCodes')&.include?(service_code) } || {}
69
69
  end
70
70
 
71
71
  def benefits
@@ -1,3 +1,3 @@
1
1
  module ChangeHealth
2
- VERSION = '0.14.0'.freeze
2
+ VERSION = '0.15.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.14.0
4
+ version: 0.15.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-07 00:00:00.000000000 Z
11
+ date: 2020-06-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty