change_health 0.0.2 → 0.3.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: 052e20dfdfabf7bdf956f2572dba054ef7116e2d3e51e5f24871ec6d61cea229
4
- data.tar.gz: 0e57faf6e83afb05685f43d1b1712e67768b700ad88278a555aa7f793b7c5bc1
3
+ metadata.gz: 885bb7a5c9be915a2c51cc63d4b45a5eb013cc3a17f78571d0570eda35e905a6
4
+ data.tar.gz: b6b749cf7b8163c5a1dfd2e5342346bb5b8f3f80dc464c55c288cfcf394dc881
5
5
  SHA512:
6
- metadata.gz: cc74abedea032c14c1a1ea314822a5b10262c816b8e437a87a885450079d5bfcc165faad3fdc4ce5761fc12fbb2449d31498085a874ad4bae0abc77140e57b13
7
- data.tar.gz: 31b9d040d7d2d7e68b4161714a913c698b045b7cb7e51e111377c418756bd0b7d2b1f5db76fe59c1b0afd69be15021ff566eee45d968b18c20009cceb2319203
6
+ metadata.gz: d58a5992be29a372fc36fb718339f8bb54110337e90aaf908ecff6ad33ace0cdb97c140b7e3d313f6f2acfd668887248df0a93da054a1bb566cc7715accd1fd2
7
+ data.tar.gz: 14640d35e70012d1cb9ee8d5e7030d037e7fdae646b93be1cdf4a0610f701c7cbceaf5884aadc5f1ef4693ca2aff4802b5334a7c921ced6b12b568689c5ee96d
data/CHANGELOG.md CHANGED
@@ -4,7 +4,14 @@ 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.2.0] - [UNRELEASED]
7
+ ## [0.4.0] - [UNRELEASED]
8
+ ### Added
9
+
10
+ ## [0.3.0] - [2020-03-09]
11
+ ### Added
12
+ - Production endpoint
13
+
14
+ ## [0.2.0] - [2020-03-09]
8
15
  ### Added
9
16
  - EligibilityData
10
17
  - EligibilityBenefit
@@ -22,5 +29,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
22
29
  - Authentication
23
30
  - Configuration
24
31
 
25
- [0.2.0]: https://github.com/WeInfuse/change_health/compare/v0.1.0...HEAD
32
+ [0.4.0]: https://github.com/WeInfuse/change_health/compare/v0.3.0...HEAD
33
+ [0.3.0]: https://github.com/WeInfuse/change_health/compare/v0.2.0...v0.3.0
34
+ [0.2.0]: https://github.com/WeInfuse/change_health/compare/v0.1.0...v0.2.0
26
35
  [0.1.0]: https://github.com/WeInfuse/change_health/compare/v0.1.0
data/README.md CHANGED
@@ -33,9 +33,15 @@ provider = ChangeHealth::Models::Provider.new(npi: '0123456789', last_name: 'B
33
33
  subscriber = ChangeHealth::Models::Subscriber.new(member_id: '0000000000', first_name: 'johnOne', last_name: 'doeOne', date_of_birth: '18800102')
34
34
 
35
35
  edata = ChangeHealth::Models::Eligibility.new(tradingPartnerServiceId: '000050', provider: provider, subscriber: subscriber, encounter: encounter).query
36
+
37
+ edata.raw # Raw Hash of JSON response
36
38
  ```
37
39
 
38
40
  ### Benefit(s) objects
41
+ Benefits extends Array and provides a query-like interface.
42
+
43
+ Benefit extends Hash and provides helpers for single-benefit.
44
+
39
45
  ```
40
46
  edata.benefits # Returns Benefits querying object (extends Array)
41
47
 
@@ -1,8 +1,13 @@
1
1
  module ChangeHealth
2
2
  class Connection
3
+ URI_BUILDER = ->(host) { "https://#{host}apis.changehealthcare.com/".freeze }
4
+
5
+ QA_ENDPOINT = URI_BUILDER.call('sandbox.')
6
+ PROD_ENDPOINT = URI_BUILDER.call('')
7
+
3
8
  include HTTParty
4
9
 
5
- base_uri 'https://sandbox.apis.changehealthcare.com/'.freeze
10
+ base_uri QA_ENDPOINT
6
11
 
7
12
  headers 'Content-Type' => 'application/json;charset=UTF-8'
8
13
 
@@ -1,3 +1,3 @@
1
1
  module ChangeHealth
2
- VERSION = '0.0.2'.freeze
2
+ VERSION = '0.3.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: change_health
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Crockett