pokitdok-ruby 0.2.3 → 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/.travis.yml +1 -2
- data/Gemfile +1 -0
- data/Gemfile.lock +13 -0
- data/Guardfile +4 -4
- data/README.md +32 -15
- data/Rakefile +3 -0
- data/VERSION +1 -1
- data/lib/pokitdok.rb +17 -32
- data/pokitdok-ruby.gemspec +6 -4
- data/spec/fixtures/claim.json +44 -114
- data/spec/pokitdok_spec.rb +35 -38
- data/vcr_cassettes/activities.yml +202 -333
- data/vcr_cassettes/auth.yml +4 -4
- data/vcr_cassettes/claims.yml +36 -65
- data/vcr_cassettes/eligibility.yml +73 -93
- data/vcr_cassettes/enrollment.yml +38 -41
- data/vcr_cassettes/files.yml +10 -10
- data/vcr_cassettes/payers.yml +81 -77
- data/vcr_cassettes/providers.yml +308 -297
- metadata +16 -3
- data/vcr_cassettes/insurance_prices.yml +0 -42
data/vcr_cassettes/payers.yml
CHANGED
@@ -2,15 +2,15 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: http://localhost:5002/api/
|
5
|
+
uri: http://localhost:5002/api/v4/payers?state=CA
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
|
-
- pokitdok-ruby 0.
|
11
|
+
- pokitdok-ruby 0.4 ruby 2.1.1p76 (2014-02-24 revision 45161) [x86_64-darwin13.0]
|
12
12
|
Authorization:
|
13
|
-
- Bearer
|
13
|
+
- Bearer wRjqVdn8ezPmx5uviVocwL2u1edtJ8g809Tn4Ob5
|
14
14
|
Accept-Encoding:
|
15
15
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
16
16
|
Accept:
|
@@ -25,31 +25,31 @@ http_interactions:
|
|
25
25
|
Content-Length:
|
26
26
|
- '297'
|
27
27
|
Location:
|
28
|
-
- http://localhost:5002/api/
|
28
|
+
- http://localhost:5002/api/v4/payers/?state=CA
|
29
29
|
Server:
|
30
30
|
- Werkzeug/0.9.4 Python/2.7.3
|
31
31
|
Date:
|
32
|
-
-
|
32
|
+
- Fri, 06 Jun 2014 17:15:35 GMT
|
33
33
|
body:
|
34
34
|
encoding: UTF-8
|
35
35
|
string: |-
|
36
36
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
|
37
37
|
<title>Redirecting...</title>
|
38
38
|
<h1>Redirecting...</h1>
|
39
|
-
<p>You should be redirected automatically to target URL: <a href="http://localhost:5002/api/
|
39
|
+
<p>You should be redirected automatically to target URL: <a href="http://localhost:5002/api/v4/payers/?state=CA">http://localhost:5002/api/v4/payers/?state=CA</a>. If not click the link.
|
40
40
|
http_version:
|
41
|
-
recorded_at:
|
41
|
+
recorded_at: Fri, 06 Jun 2014 17:15:35 GMT
|
42
42
|
- request:
|
43
43
|
method: get
|
44
|
-
uri: http://localhost:5002/api/
|
44
|
+
uri: http://localhost:5002/api/v4/payers/?state=CA
|
45
45
|
body:
|
46
46
|
encoding: US-ASCII
|
47
47
|
string: ''
|
48
48
|
headers:
|
49
49
|
User-Agent:
|
50
|
-
- pokitdok-ruby 0.
|
50
|
+
- pokitdok-ruby 0.4 ruby 2.1.1p76 (2014-02-24 revision 45161) [x86_64-darwin13.0]
|
51
51
|
Authorization:
|
52
|
-
- Bearer
|
52
|
+
- Bearer wRjqVdn8ezPmx5uviVocwL2u1edtJ8g809Tn4Ob5
|
53
53
|
Accept-Encoding:
|
54
54
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
55
55
|
Accept:
|
@@ -62,7 +62,7 @@ http_interactions:
|
|
62
62
|
Content-Type:
|
63
63
|
- text/html; charset=utf-8
|
64
64
|
Content-Length:
|
65
|
-
- '
|
65
|
+
- '7218'
|
66
66
|
Mimetype:
|
67
67
|
- application/json
|
68
68
|
Charset:
|
@@ -70,94 +70,98 @@ http_interactions:
|
|
70
70
|
Server:
|
71
71
|
- Werkzeug/0.9.4 Python/2.7.3
|
72
72
|
Date:
|
73
|
-
-
|
73
|
+
- Fri, 06 Jun 2014 17:15:35 GMT
|
74
74
|
body:
|
75
75
|
encoding: UTF-8
|
76
|
-
string: '{"meta": {"processing_time":
|
76
|
+
string: '{"meta": {"processing_time": 14}, "data": [{"supported_transactions":
|
77
77
|
["270", "276"], "payer_name": "Blue Cross Blue Shield of Colorado BLUE CROSS
|
78
|
-
BLUE SHIELD CO", "payer_key": "bccoc", "production_status": false, "
|
78
|
+
BLUE SHIELD CO", "payer_key": "bccoc", "production_status": false, "trading_partner_id":
|
79
79
|
"BCCOC"}, {"supported_transactions": ["270", "276"], "payer_name": "Blue Cross
|
80
80
|
Blue Shield of Kentucky BCBS OF KY", "payer_key": "bckyc", "production_status":
|
81
|
-
false, "
|
82
|
-
"Blue Cross Blue Shield of Pennsylvania - Highmark BLUE CROSS
|
83
|
-
PA", "payer_key": "highmark_penn", "production_status": false,
|
84
|
-
"440"}, {"supported_transactions": ["270", "276"], "payer_name":
|
85
|
-
Blue Shield of Nebraska BLUE CROSS BLUE SHIELD OF NEBRASKA", "payer_key":
|
86
|
-
"bcbsne", "production_status": false, "
|
81
|
+
false, "trading_partner_id": "BCKYC"}, {"supported_transactions": ["270"],
|
82
|
+
"payer_name": "Blue Cross Blue Shield of Pennsylvania - Highmark BLUE CROSS
|
83
|
+
BLUE SHIELD PA", "payer_key": "highmark_penn", "production_status": false,
|
84
|
+
"trading_partner_id": "440"}, {"supported_transactions": ["270", "276"], "payer_name":
|
85
|
+
"Blue Cross Blue Shield of Nebraska BLUE CROSS BLUE SHIELD OF NEBRASKA", "payer_key":
|
86
|
+
"bcbsne", "production_status": false, "trading_partner_id": "BCNEC"}, {"supported_transactions":
|
87
87
|
["270", "276"], "payer_name": "ANTHEM BLUE CROSS", "payer_key": "bcca", "production_status":
|
88
|
-
false, "
|
89
|
-
"MVP Health Plan of NY MVP HEALTH CARE NY", "payer_key": "MVP",
|
90
|
-
false, "
|
91
|
-
"Blue Cross Blue Shield of Wisconsin (Anthem)
|
92
|
-
"payer_key": "bcwic", "production_status": false,
|
93
|
-
["270"], "payer_name":
|
94
|
-
|
95
|
-
|
96
|
-
"
|
97
|
-
|
98
|
-
|
99
|
-
"
|
88
|
+
false, "trading_partner_id": "39"}, {"supported_transactions": ["270", "276"],
|
89
|
+
"payer_name": "MVP Health Plan of NY MVP HEALTH CARE NY", "payer_key": "MVP",
|
90
|
+
"production_status": false, "trading_partner_id": "432"}, {"supported_transactions":
|
91
|
+
["270", "276"], "payer_name": "Blue Cross Blue Shield of Wisconsin (Anthem)
|
92
|
+
BLUE CROSS BLUE SHIELD WI", "payer_key": "bcwic", "production_status": false,
|
93
|
+
"trading_partner_id": "BCWIC"}, {"supported_transactions": ["270"], "payer_name":
|
94
|
+
"Blue Cross Blue Shield of Iowa BLUE CROSS BLUE SHEILD IA", "payer_key": "bciac",
|
95
|
+
"production_status": false, "trading_partner_id": "BCIAC"}, {"supported_transactions":
|
96
|
+
["270", "276"], "payer_name": "CIGNA CIGNA ", "payer_key": "CIGNA", "production_status":
|
97
|
+
false, "trading_partner_id": "1"}, {"supported_transactions": ["834", "835",
|
98
|
+
"837", "270", "271", "276", "277", "278"], "payer_name": "Mock Payer with
|
99
|
+
eligibility inquiry rejection", "payer_key": "MOCKPAYER_PARSE_ERROR", "production_status":
|
100
|
+
false, "trading_partner_id": "MOCKPAYER_PARSE_ERROR"}, {"supported_transactions":
|
100
101
|
["834", "835", "837", "270", "271", "276", "277", "278"], "payer_name": "Mock
|
101
102
|
Payer with Implementation Acknowledgement", "payer_key": "MOCKPAYER_ACK",
|
102
|
-
"production_status": false, "
|
103
|
+
"production_status": false, "trading_partner_id": "MOCKPAYER_ACK"}, {"supported_transactions":
|
103
104
|
["837"], "payer_name": "Independence Blue Cross INDEPENDENCE BLUE CROSS",
|
104
|
-
"payer_key": "bcibc", "production_status": false, "
|
105
|
-
["270", "276"], "payer_name": "Blue Cross Blue
|
106
|
-
BLUE SHIELD NV", "payer_key": "bcnvc", "production_status":
|
107
|
-
"BCNVC"}, {"supported_transactions": ["834",
|
108
|
-
"277", "278"], "payer_name": "Mock Payer
|
109
|
-
"payer_key": "MOCKPAYER_COMMERROR", "production_status":
|
110
|
-
|
111
|
-
"271", "276", "277", "278"], "payer_name": "Mock
|
112
|
-
rejection", "payer_key": "MOCKPAYER_REJECTION",
|
113
|
-
"
|
114
|
-
"payer_name": "Blue Cross Blue
|
115
|
-
|
116
|
-
|
117
|
-
|
105
|
+
"payer_key": "bcibc", "production_status": false, "trading_partner_id": "BCIBC"},
|
106
|
+
{"supported_transactions": ["270", "276"], "payer_name": "Blue Cross Blue
|
107
|
+
Shield of Nevada BLUE CROSS BLUE SHIELD NV", "payer_key": "bcnvc", "production_status":
|
108
|
+
false, "trading_partner_id": "BCNVC"}, {"supported_transactions": ["834",
|
109
|
+
"835", "837", "270", "271", "276", "277", "278"], "payer_name": "Mock Payer
|
110
|
+
for Communication Error Testing", "payer_key": "MOCKPAYER_COMMERROR", "production_status":
|
111
|
+
false, "trading_partner_id": "MOCKPAYER_COMMERROR"}, {"supported_transactions":
|
112
|
+
["834", "835", "837", "270", "271", "276", "277", "278"], "payer_name": "Mock
|
113
|
+
Payer with eligibility inquiry rejection", "payer_key": "MOCKPAYER_REJECTION",
|
114
|
+
"production_status": false, "trading_partner_id": "MOCKPAYER_REJECTION"},
|
115
|
+
{"supported_transactions": ["270", "276"], "payer_name": "Blue Cross Blue
|
116
|
+
Shield of Maine BLUE CROSS BLUE SHIELD ME", "payer_key": "bcmec", "production_status":
|
117
|
+
false, "trading_partner_id": "BCMEC"}, {"supported_transactions": ["270",
|
118
|
+
"276"], "payer_name": "Blue Cross Blue Shield of Connecticut BLUE CROSS BLUE
|
119
|
+
SHIELD CT", "payer_key": "bcctc", "production_status": false, "trading_partner_id":
|
118
120
|
"BCCTC"}, {"supported_transactions": ["270"], "payer_name": "Blue Cross Blue
|
119
121
|
Shield of Louisiana BLUE CROSS BLUE SHIELD LA", "payer_key": "bcbsla", "production_status":
|
120
|
-
false, "
|
121
|
-
"Blue Cross Blue Shield of Kansas City BCBS KS CITY", "payer_key":
|
122
|
-
"production_status": false, "
|
122
|
+
false, "trading_partner_id": "83"}, {"supported_transactions": ["270", "276"],
|
123
|
+
"payer_name": "Blue Cross Blue Shield of Kansas City BCBS KS CITY", "payer_key":
|
124
|
+
"bcbskc", "production_status": false, "trading_partner_id": "BCKCC"}, {"supported_transactions":
|
123
125
|
["270", "276"], "payer_name": "Aetna AETNA", "payer_key": "AETNA", "production_status":
|
124
|
-
false, "
|
126
|
+
false, "trading_partner_id": "2"}, {"supported_transactions": ["270"], "payer_name":
|
125
127
|
"Blue Cross Blue Shield of North Carolina BCBS NC", "payer_key": "BCBSNC",
|
126
|
-
"production_status": false, "
|
128
|
+
"production_status": false, "trading_partner_id": "BCNCC"}, {"supported_transactions":
|
127
129
|
["270", "276"], "payer_name": "Oxford Health Plans OXFORD HEALTH PLANS", "payer_key":
|
128
|
-
"OXFORD", "production_status": false, "
|
130
|
+
"OXFORD", "production_status": false, "trading_partner_id": "16"}, {"supported_transactions":
|
129
131
|
["270", "276"], "payer_name": "Blue Cross Blue Shield of New Hampshire BLUE
|
130
|
-
CROSS BLUE SHIELD NH", "payer_key": "bcnhc", "production_status": false, "
|
132
|
+
CROSS BLUE SHIELD NH", "payer_key": "bcnhc", "production_status": false, "trading_partner_id":
|
131
133
|
"BCNHC"}, {"supported_transactions": ["834", "835", "837", "270", "271", "276",
|
132
134
|
"277", "278"], "payer_name": "Mock Payer for Testing", "payer_key": "MOCKPAYER",
|
133
|
-
"production_status": false, "
|
135
|
+
"production_status": false, "trading_partner_id": "MOCKPAYER"}, {"supported_transactions":
|
134
136
|
["270", "276", "834", "837"], "payer_name": "PREMERA", "payer_key": "PREMERA",
|
135
|
-
"production_status": false, "
|
137
|
+
"production_status": false, "trading_partner_id": "PREMERA"}, {"supported_transactions":
|
136
138
|
["270", "276"], "payer_name": "Blue Cross Blue Shield of Georgia BCBS OF GEORGIA",
|
137
|
-
"payer_key": "bcbsga", "production_status": false, "
|
138
|
-
["270", "276"], "payer_name": "Blue Cross Blue
|
139
|
-
BLUE SHIELD VA", "payer_key": "bcvac", "production_status":
|
140
|
-
"BCVAC"}, {"supported_transactions": ["270",
|
141
|
-
Blue Shield of Indiana BLUE CROSS BLUE SHIELD
|
142
|
-
"
|
143
|
-
["270"], "payer_name": "Blue Shield of
|
144
|
-
|
145
|
-
|
146
|
-
"
|
139
|
+
"payer_key": "bcbsga", "production_status": false, "trading_partner_id": "151"},
|
140
|
+
{"supported_transactions": ["270", "276"], "payer_name": "Blue Cross Blue
|
141
|
+
Shield of Virginia BLUE CROSS BLUE SHIELD VA", "payer_key": "bcvac", "production_status":
|
142
|
+
false, "trading_partner_id": "BCVAC"}, {"supported_transactions": ["270",
|
143
|
+
"276"], "payer_name": "Blue Cross Blue Shield of Indiana BLUE CROSS BLUE SHIELD
|
144
|
+
INDIANA", "payer_key": "bcinc", "production_status": false, "trading_partner_id":
|
145
|
+
"BCINC"}, {"supported_transactions": ["270"], "payer_name": "Blue Shield of
|
146
|
+
California BLUE SHIELD OF CALIFORNIA", "payer_key": "BSCA", "production_status":
|
147
|
+
false, "trading_partner_id": "00361"}, {"supported_transactions": ["270",
|
148
|
+
"276"], "payer_name": "Blue Cross Blue Shield of Kansas BCBS KANSAS", "payer_key":
|
149
|
+
"bcbsks", "production_status": false, "trading_partner_id": "BCKSC"}, {"supported_transactions":
|
147
150
|
["270", "276"], "payer_name": "UnitedHealthcare UNITED HEALTH CARE", "payer_key":
|
148
|
-
"UNITED", "production_status": false, "
|
151
|
+
"UNITED", "production_status": false, "trading_partner_id": "112"}, {"supported_transactions":
|
149
152
|
["270", "276"], "payer_name": "Blue Cross Blue Shield of Ohio BLUE CROSS BLUE
|
150
|
-
SHIELD OH", "payer_key": "bcohc", "production_status": false, "
|
153
|
+
SHIELD OH", "payer_key": "bcohc", "production_status": false, "trading_partner_id":
|
151
154
|
"BCOHC"}, {"supported_transactions": ["270", "276"], "payer_name": "EMPIRE
|
152
155
|
HEALTH CHOICE ASSURANCE, INC", "payer_key": "bcbsny", "production_status":
|
153
|
-
false, "
|
154
|
-
"FIDELIS CARE NEW YORK", "payer_key": "FIDELIS", "production_status":
|
155
|
-
"
|
156
|
-
"Blue Cross Blue Shield of Missouri BLUE CROSS BLUE
|
157
|
-
"
|
158
|
-
["834", "835", "837", "270", "271", "276",
|
159
|
-
Payer with Random I/O wait for Testing",
|
160
|
-
"
|
156
|
+
false, "trading_partner_id": "44"}, {"supported_transactions": ["270", "276"],
|
157
|
+
"payer_name": "FIDELIS CARE NEW YORK", "payer_key": "FIDELIS", "production_status":
|
158
|
+
false, "trading_partner_id": "11315"}, {"supported_transactions": ["270",
|
159
|
+
"276"], "payer_name": "Blue Cross Blue Shield of Missouri BLUE CROSS BLUE
|
160
|
+
SHIELD MO", "payer_key": "bcmoc", "production_status": false, "trading_partner_id":
|
161
|
+
"BCMOC"}, {"supported_transactions": ["834", "835", "837", "270", "271", "276",
|
162
|
+
"277", "278"], "payer_name": "Mock Payer with Random I/O wait for Testing",
|
163
|
+
"payer_key": "MOCKPAYER_RANDOM_WAIT", "production_status": false, "trading_partner_id":
|
164
|
+
"MOCKPAYER_RANDOM_WAIT"}]}'
|
161
165
|
http_version:
|
162
|
-
recorded_at:
|
166
|
+
recorded_at: Fri, 06 Jun 2014 17:15:35 GMT
|
163
167
|
recorded_with: VCR 2.9.2
|