trizetto-api 0.2.3 → 0.2.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 87af1600bb24eae74b2716e24ed723ac8a9a1093
4
- data.tar.gz: 5915c628da44fa3ba5d2cf0a3805e3fd82725894
3
+ metadata.gz: 97c3775490d21327b2a4cf47eed9564eb281992a
4
+ data.tar.gz: c75863ae3bf9be80ddc6e22c90c7ed2eda26ac5c
5
5
  SHA512:
6
- metadata.gz: d0464c10d4d023b893b0ede1d3c14e1885cea08bd653d57e70a49f4bdca77376a93d99eddaa8ae941842a0dc1534de8241698d4a1e026cee645da1276c24a7cc
7
- data.tar.gz: 398bd1504cecb5427109de946840a69823b513e506cb0ab66043f670b97c4258f32465d20641bed2284094658365c5ff1878f64fe0b12d434b651614c461139c
6
+ metadata.gz: 00b57e77bbe067412a344c9c4a3aca330387b952c29cbd1ff151edc3f0dfbfb5aa518b0e4243581a799dfd9a2c673cfbafa1bd75375401e613e60493d70cda67
7
+ data.tar.gz: 3877b3534ab5e40645e1c9af7dd198ed6f34d52e4b8c677efd6e12c5ead291027f57a8dc29ff03682ac2dc57e1fe297467c779e7667ae75891eb817cd29fad57
@@ -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
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- trizetto-api (0.2.3)
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.2)
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.1)
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.3)
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.0
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."]response.errors.validation_failures.first.affected_fields # => ["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? # => true
103
- response.success_code # => "Success"
104
- response.active_coverage_for?("30") # => false
105
- response.rejected? # => true
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
- patient&.trace_number(trace_id)
211
+ [subscriber, dependent].compact.map {|p| p.trace_number(trace_id) }.compact.first
212
212
  end
213
213
  end
214
214
  end
@@ -6,6 +6,7 @@ module Trizetto
6
6
  # A Patient is either a Subscriber or Depedent. This is the common
7
7
  # attributes between the two
8
8
  class Patient < Node
9
+ prepend Rejectable
9
10
 
10
11
  # @see PatientName
11
12
  attr_accessor :name
@@ -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
@@ -1,5 +1,5 @@
1
1
  module Trizetto
2
2
  module Api
3
- VERSION = "0.2.3"
3
+ VERSION = "0.2.4"
4
4
  end
5
5
  end
@@ -18,6 +18,8 @@ module Trizetto
18
18
  # API maybe case sensitive - im not sure
19
19
  convert_request_keys_to: :none,
20
20
 
21
+ ssl_version: :TLSv1_2,
22
+
21
23
  # Lots of PHI, so lets not log anything
22
24
  log: false,
23
25
  }.merge(options))
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.3
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-02 00:00:00.000000000 Z
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.6.13
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