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 +4 -4
- data/CHANGELOG.md +11 -2
- data/README.md +6 -0
- data/lib/change_health/connection.rb +6 -1
- data/lib/change_health/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 885bb7a5c9be915a2c51cc63d4b45a5eb013cc3a17f78571d0570eda35e905a6
|
4
|
+
data.tar.gz: b6b749cf7b8163c5a1dfd2e5342346bb5b8f3f80dc464c55c288cfcf394dc881
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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.
|
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
|
10
|
+
base_uri QA_ENDPOINT
|
6
11
|
|
7
12
|
headers 'Content-Type' => 'application/json;charset=UTF-8'
|
8
13
|
|