trizetto-api 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/Gemfile.lock +5 -5
- data/README.md +9 -8
- data/lib/trizetto/api/eligibility/web_service/do_inquiry_response.rb +1 -1
- data/lib/trizetto/api/eligibility/web_service/patient.rb +1 -0
- data/lib/trizetto/api/eligibility/web_service/subscriber.rb +0 -2
- data/lib/trizetto/api/version.rb +1 -1
- data/lib/trizetto/api/web_service.rb +2 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 97c3775490d21327b2a4cf47eed9564eb281992a
|
4
|
+
data.tar.gz: c75863ae3bf9be80ddc6e22c90c7ed2eda26ac5c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 00b57e77bbe067412a344c9c4a3aca330387b952c29cbd1ff151edc3f0dfbfb5aa518b0e4243581a799dfd9a2c673cfbafa1bd75375401e613e60493d70cda67
|
7
|
+
data.tar.gz: 3877b3534ab5e40645e1c9af7dd198ed6f34d52e4b8c677efd6e12c5ead291027f57a8dc29ff03682ac2dc57e1fe297467c779e7667ae75891eb817cd29fad57
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,10 @@
|
|
1
|
+
## 0.2.4 (Feb 23, 2018) ##
|
2
|
+
|
3
|
+
* When querying a dependent, using a subscriber's member number, if the member
|
4
|
+
number is invalid, rejections can come back in the dependent. Rejections
|
5
|
+
in the dependent now cause rejected? to be true on the response and the
|
6
|
+
rejection messages are included.
|
7
|
+
|
1
8
|
## 0.2.3 (Feb 02, 2018) ##
|
2
9
|
|
3
10
|
* Add helpers for extracting the group number and plan number from either a
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
trizetto-api (0.2.
|
4
|
+
trizetto-api (0.2.4)
|
5
5
|
savon (~> 2.0)
|
6
6
|
savon-multipart (~> 2.0)
|
7
7
|
|
@@ -16,7 +16,7 @@ GEM
|
|
16
16
|
diff-lcs (1.3)
|
17
17
|
gyoku (1.3.1)
|
18
18
|
builder (>= 2.1.2)
|
19
|
-
httpi (2.4.
|
19
|
+
httpi (2.4.3)
|
20
20
|
rack
|
21
21
|
socksify
|
22
22
|
mail (2.5.5)
|
@@ -24,11 +24,11 @@ GEM
|
|
24
24
|
treetop (~> 1.4.8)
|
25
25
|
mime-types (1.25.1)
|
26
26
|
mini_portile2 (2.3.0)
|
27
|
-
nokogiri (1.8.
|
27
|
+
nokogiri (1.8.2)
|
28
28
|
mini_portile2 (~> 2.3.0)
|
29
29
|
nori (2.6.0)
|
30
30
|
polyglot (0.3.5)
|
31
|
-
rack (2.0.
|
31
|
+
rack (2.0.4)
|
32
32
|
rake (10.5.0)
|
33
33
|
rspec (3.7.0)
|
34
34
|
rspec-core (~> 3.7.0)
|
@@ -73,4 +73,4 @@ DEPENDENCIES
|
|
73
73
|
trizetto-api!
|
74
74
|
|
75
75
|
BUNDLED WITH
|
76
|
-
1.16.
|
76
|
+
1.16.1
|
data/README.md
CHANGED
@@ -50,7 +50,7 @@ To simply check if the patient is covered by a health plan
|
|
50
50
|
|
51
51
|
```ruby
|
52
52
|
response = client.do_inquiry({...})
|
53
|
-
response.active_coverage_for?("30") #=> true | false
|
53
|
+
response.active_coverage_for?(service_type_code = "30") #=> true | false
|
54
54
|
```
|
55
55
|
|
56
56
|
```ruby
|
@@ -80,7 +80,8 @@ response = client.do_inquiry({
|
|
80
80
|
# Were there validation errors with the request?
|
81
81
|
response.success? # => false
|
82
82
|
response.success_code # => "ValidationFailure"
|
83
|
-
response.errors.messages # => ["Please enter InsuranceNum."]
|
83
|
+
response.errors.messages # => ["Please enter InsuranceNum."]
|
84
|
+
response.errors.validation_failures.first.affected_fields # => ["InsuranceNum"]
|
84
85
|
response.errors.validation_failures.first.message # => "Please enter InsuranceNum."
|
85
86
|
|
86
87
|
|
@@ -93,16 +94,16 @@ response.payer_name # => "BLUE CROSS BLUE SHIELD OF MASSACHUSETT
|
|
93
94
|
response.active_coverage_for?("30") # => true
|
94
95
|
|
95
96
|
# Did the response have group number for the subscriber or dependent?
|
96
|
-
response.subscriber&.group_number || response.dependent&.group_number # =>999999999A6AG999
|
97
|
+
response.subscriber&.group_number || response.dependent&.group_number # => "999999999A6AG999"
|
97
98
|
|
98
99
|
# What is the subscriber's member number?
|
99
|
-
response.subscriber.id # => XXP123456789
|
100
|
+
response.subscriber.id # => "XXP123456789"
|
100
101
|
|
101
102
|
# Was the response rejected? We got back an eligibility response, but probably the patient wasn't found
|
102
|
-
response.success?
|
103
|
-
response.success_code
|
104
|
-
response.active_coverage_for?("30")
|
105
|
-
response.rejected?
|
103
|
+
response.success? # => true
|
104
|
+
response.success_code # => "Success"
|
105
|
+
response.active_coverage_for?("30") # => false
|
106
|
+
response.rejected? # => true
|
106
107
|
response.rejections.count # => 1
|
107
108
|
response.rejections.first.reason # => "Patient Birth Date Does Not Match That for the Patient on the Database"
|
108
109
|
response.rejections.first.follow_up_action # => "Please Correct and Resubmit"
|
@@ -208,7 +208,7 @@ module Trizetto
|
|
208
208
|
#
|
209
209
|
# @return [String] - a number that can be given to support for help with this request
|
210
210
|
def trace_number(trace_id="99Trizetto")
|
211
|
-
|
211
|
+
[subscriber, dependent].compact.map {|p| p.trace_number(trace_id) }.compact.first
|
212
212
|
end
|
213
213
|
end
|
214
214
|
end
|
@@ -6,8 +6,6 @@ module Trizetto
|
|
6
6
|
# The subscriber is who holds the insurance. They may be the patient, or
|
7
7
|
# they may have dependents who are the patients.
|
8
8
|
class Subscriber < Patient
|
9
|
-
prepend Rejectable
|
10
|
-
|
11
9
|
def initialize(raw_hash = {})
|
12
10
|
# If we are in subscriber / depdent relationship, we get back subscribername
|
13
11
|
# instead of patientname (as the subscriber is _not_ the patient). For
|
data/lib/trizetto/api/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: trizetto-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- John Naegle
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-02-
|
11
|
+
date: 2018-02-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -161,7 +161,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
161
161
|
version: '0'
|
162
162
|
requirements: []
|
163
163
|
rubyforge_project:
|
164
|
-
rubygems_version: 2.
|
164
|
+
rubygems_version: 2.5.2.2
|
165
165
|
signing_key:
|
166
166
|
specification_version: 4
|
167
167
|
summary: Ruby wrapper for the Trizetto APIs
|