trizetto-api 0.1.1 → 0.1.2

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
  SHA1:
3
- metadata.gz: 6df121190be3fbb4983fc36e4864672f63e6d8c5
4
- data.tar.gz: f88c0595014114ef36f32ea4557bfc69914e9463
3
+ metadata.gz: e4fbff1ea29b8ff7be9a59a73684fbf34b4c4418
4
+ data.tar.gz: 6697e7baa4a73b991efb4462f880466ae5fbc858
5
5
  SHA512:
6
- metadata.gz: 68a2927c711b81b8be339e1778275150a0b1021350eeee765401221468a01f590362368e821f9766a0ee5cf0355f6bc6154f30ae22e8895f0a7c169085239b05
7
- data.tar.gz: 663f796bee4042a478ca13e5db2b3080ff28f390219253725ff88841a591b132b597ff808875c411756eb00a8a55d62097f910b7497e9b5ba7471cdd328b08cd
6
+ metadata.gz: eedcb3a711f90fdf8a1be47b85de37f4df7c4adcc55aba3ac3a387a362262f48da504bd7ad8144226789c8ed63afe155fff8cbd77af575a75ef953bb8e76807b
7
+ data.tar.gz: e9a45666b41c6cfd81f5b673f2aec1504021273a14db19b0e18cb3d682526c9899f18efe895b9062a2492b11d73bb08b2abd018fb98a89cf5a2c51a06a32682a
@@ -1,3 +1,8 @@
1
+ ## 0.1.2 (January 12, 2018) ##
2
+
3
+ * Have the non-COR II Eligiblity check return an XML document. YAY! We can
4
+ parse and understand XML without having to understand X12.
5
+
1
6
  ## 0.1.1 (January 11, 2018) ##
2
7
 
3
8
  * Initial implementation of 5 Trizetto API endpoints: Eligibility check with
data/README.md CHANGED
@@ -20,24 +20,11 @@ Or install it yourself as:
20
20
 
21
21
  ## Usage
22
22
 
23
- ### Use the CORE2 API with an X12 payload to check eligibility in realtime
24
-
25
- ```ruby
26
-
27
- require 'trizetto/api'
28
-
29
- Trizetto::Api.configure do |config|
30
- config.username = 'Not the real username'
31
- config.password = 'Super Top Secret'
32
- end
33
-
34
-
35
- client = Trizetto::Api::Eligibility::Core2.new
36
- client.check_eligibility(payload: x12_message)
37
- ```
38
-
39
23
  ### Use the Eligibility Web Service with an XML payload to check eligibility in realtime
40
24
 
25
+ This uses name/value pairs in a request and returns an XML docunment as a response.
26
+ You can force this API to return an X12 document if you like pain.
27
+
41
28
  ```ruby
42
29
  require 'trizetto/api'
43
30
 
@@ -60,9 +47,33 @@ response = client.do_inquiry({
60
47
  'InsuredDob': '19281118',
61
48
  'GediPayerId': 'N4222',
62
49
  })
50
+
51
+ puts response.to_hash[:do_inquiry_response][:do_inquiry_result][:success_code]
52
+
53
+ source = response.to_hash[:do_inquiry_response][:do_inquiry_result][:response_as_xml]
54
+ puts Nokogiri::XML(source).to_xml
63
55
  ```
64
56
 
65
57
 
58
+ ### Use the CORE2 API with an X12 payload to check eligibility in realtime
59
+
60
+ This returns an X12/271 response. You will need to understand how to build
61
+ X12/270 requests and parse X12/271 responses.
62
+
63
+ ```ruby
64
+
65
+ require 'trizetto/api'
66
+
67
+ Trizetto::Api.configure do |config|
68
+ config.username = 'Not the real username'
69
+ config.password = 'Super Top Secret'
70
+ end
71
+
72
+
73
+ client = Trizetto::Api::Eligibility::Core2.new
74
+ client.check_eligibility(payload: x12_message)
75
+ ```
76
+
66
77
  ### Ping the Payer List endpoint to see if it is up
67
78
 
68
79
  ```ruby
@@ -84,6 +95,8 @@ response = client.ping
84
95
 
85
96
  ### Fetch the Payer List
86
97
 
98
+ This API times out or errors out on the Trizetto server. But you may get it to work.
99
+
87
100
  ```ruby
88
101
  require 'trizetto/api'
89
102
 
@@ -58,28 +58,6 @@ module Trizetto
58
58
 
59
59
  # TODO: Understand the X12 format and allow options to be passed in, then generate the X12 message
60
60
  #
61
- # Required Field:
62
- # +ProviderLastName+ - Provider Last Name/Organization Name
63
- # +NPI+ - National Provider Identifier
64
- #
65
- # Situational Fields:
66
- #
67
- # +ProviderFirstName+ - Provider First Name
68
- # +InsuredFirstName+ - Subscriber First Name
69
- # +InsuredLastName+ - Subscriber Last Name
70
- # +InsuranceNum+ - Subscriber Id
71
- # +InsuredDob+ - Subscriber DOB
72
- # +InsuredGender+ - Subscriber Gender
73
- # +DependentFirstName+ - Dependent First Name
74
- # +DependentLastName+ - Dependent Last Name
75
- # +DependentDob+ - Dependent DOB
76
- # +DependentGender+ - Dependent Gender
77
- #
78
- # Note: Some payers require additional information than those listed above. Please refer to the
79
- # companion guide for the additional parameters required by few payers. A valid inquiry submitted
80
- # to those payers must also account for the additional payer specific parameters. “InsuranceNum,” in
81
- # particular, is not a required field for all transactions, but is required by almost all payers.
82
- #
83
61
  def check_eligibility(options = {})
84
62
  @client.call(:real_time_transaction, message: {
85
63
  'PayloadType': 'X12_270_Request_005010X279A1',
@@ -30,11 +30,36 @@ module Trizetto
30
30
  }))
31
31
  end
32
32
 
33
+ # Required Field:
34
+ # +GediPayerId+ - The Gateway EDI specific payer identifier
35
+ # +ProviderLastName+ - Provider Last Name/Organization Name
36
+ # +NPI+ - National Provider Identifier
37
+ #
38
+ # Situational Fields:
39
+ #
40
+ # +ProviderFirstName+ - Provider First Name
41
+ # +InsuredFirstName+ - Subscriber First Name
42
+ # +InsuredLastName+ - Subscriber Last Name
43
+ # +InsuranceNum+ - Subscriber Id
44
+ # +InsuredDob+ - Subscriber DOB
45
+ # +InsuredGender+ - Subscriber Gender
46
+ # +DependentFirstName+ - Dependent First Name
47
+ # +DependentLastName+ - Dependent Last Name
48
+ # +DependentDob+ - Dependent DOB
49
+ # +DependentGender+ - Dependent Gender
50
+ #
51
+ # Note: Some payers require additional information than those listed above. Please refer to the
52
+ # companion guide for the additional parameters required by few payers. A valid inquiry submitted
53
+ # to those payers must also account for the additional payer specific parameters. “InsuranceNum,” in
54
+ # particular, is not a required field for all transactions, but is required by almost all payers.
55
+ #
33
56
  # See Also:
34
57
  #
35
58
  # - Service Description: https://services.gatewayedi.com/eligibility/service.asmx?op=DoInquiry
36
59
  def do_inquiry(parameters={})
37
- @client.call(:do_inquiry, message: { 'Inquiry': {'Parameters': {
60
+ @client.call(:do_inquiry, message: { 'Inquiry': {
61
+ 'ResponseDataType': 'Xml',
62
+ 'Parameters': {
38
63
  'MyNameValue': parameters.map do |name, value|
39
64
  {'Name': name, 'Value': value}
40
65
  end
@@ -29,6 +29,20 @@ module Trizetto
29
29
  # Retrieves all Gateway EDI recognized payers along with their supported transaction types and
30
30
  # servicing states and links to their enrollment documentation, if it exists.
31
31
  #
32
+ # The service provides the following information for each payer
33
+ # Type – HCFA or UB.
34
+ # - Payer ID – The Gateway EDI payer identification number.
35
+ # - Payer Name – The payer name.
36
+ # - Nation Wide – Yes or No.
37
+ # - Servicing States – List of supported states.
38
+ # - Supported Transactions – List of supported transactions.
39
+ # -- Description – A description of the available transactions. Transaction include Claims, Real-time Claim Status, Remittance Advice, Real-time Eligibility, and Electronic COB.
40
+ # -- Enrollment Required – Yes or No.
41
+ # -- Enrollment Agreement – A http link to the enrollment documentation.
42
+ # -- Authorization Required – Yes or No.
43
+ # - Provider ID Required – Yes or No.
44
+ # - NPI Enabled – Yes or No.
45
+ # - Last Date Modified – Last date that payer information was modified.
32
46
  # Note: You probably need to set a long timeout to make this call
33
47
  def payer_list
34
48
  @client.call(:get_xml_payer_list, message: {})
@@ -1,5 +1,5 @@
1
1
  module Trizetto
2
2
  module Api
3
- VERSION = "0.1.1"
3
+ VERSION = "0.1.2"
4
4
  end
5
5
  end
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.1.1
4
+ version: 0.1.2
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-01-11 00:00:00.000000000 Z
11
+ date: 2018-01-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler