pokitdok-ruby 0.4.1 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/pokitdok.rb +14 -2
- data/pokitdok-ruby.gemspec +6 -4
- data/spec/pokitdok_spec.rb +33 -5
- data/vcr_cassettes/activities.yml +118 -1700
- data/vcr_cassettes/auth.yml +6 -6
- data/vcr_cassettes/cash_prices.yml +13 -13
- data/vcr_cassettes/claims.yml +16 -15
- data/vcr_cassettes/claims_status.yml +30 -24
- data/vcr_cassettes/eligibility.yml +36 -26
- data/vcr_cassettes/enrollment.yml +39 -38
- data/vcr_cassettes/files.yml +13 -12
- data/vcr_cassettes/insurance_prices.yml +11 -10
- data/vcr_cassettes/payers.yml +212 -237
- data/vcr_cassettes/providers.yml +19 -57
- data/vcr_cassettes/trading_partners_get.yml +44 -0
- data/vcr_cassettes/trading_partners_index.yml +337 -0
- metadata +44 -42
data/vcr_cassettes/auth.yml
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: http://
|
5
|
+
uri: http://oB7rLIqHmdoAXHRAmWtM:ZE8xqtUY5kYqmHIhd8lzdjqD1CPa8sRBPvmF9UuG@localhost:5002/oauth2/token
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
8
|
string: grant_type=client_credentials
|
@@ -14,7 +14,7 @@ http_interactions:
|
|
14
14
|
Accept-Encoding:
|
15
15
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
16
16
|
Accept:
|
17
|
-
-
|
17
|
+
- '*/*'
|
18
18
|
response:
|
19
19
|
status:
|
20
20
|
code: 200
|
@@ -31,11 +31,11 @@ http_interactions:
|
|
31
31
|
Server:
|
32
32
|
- Werkzeug/0.9.4 Python/2.7.3
|
33
33
|
Date:
|
34
|
-
- Tue,
|
34
|
+
- Tue, 12 Aug 2014 15:19:07 GMT
|
35
35
|
body:
|
36
36
|
encoding: UTF-8
|
37
|
-
string: '{"access_token": "
|
38
|
-
"bearer", "expires":
|
37
|
+
string: '{"access_token": "88CVCN9YDDAQdTC3GeQMcrMPyDJPErQZ3PECJcln", "token_type":
|
38
|
+
"bearer", "expires": 1407860348, "expires_in": 3600}'
|
39
39
|
http_version:
|
40
|
-
recorded_at: Tue,
|
40
|
+
recorded_at: Tue, 12 Aug 2014 15:19:07 GMT
|
41
41
|
recorded_with: VCR 2.9.2
|
@@ -8,13 +8,13 @@ http_interactions:
|
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
|
-
- pokitdok-ruby 0.4.1 ruby 2.
|
11
|
+
- pokitdok-ruby 0.4.1 ruby 2.0.0p451 (2014-02-24 revision 45167) [x86_64-darwin12.5.0]
|
12
12
|
Authorization:
|
13
|
-
- Bearer
|
13
|
+
- Bearer Nh8cm456MqkPChtV4bLiQrd2pFd8YnpWNN17zKkT
|
14
14
|
Accept-Encoding:
|
15
15
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
16
16
|
Accept:
|
17
|
-
-
|
17
|
+
- '*/*'
|
18
18
|
response:
|
19
19
|
status:
|
20
20
|
code: 200
|
@@ -23,7 +23,7 @@ http_interactions:
|
|
23
23
|
Content-Type:
|
24
24
|
- text/html; charset=utf-8
|
25
25
|
Content-Length:
|
26
|
-
- '
|
26
|
+
- '425'
|
27
27
|
Mimetype:
|
28
28
|
- application/json
|
29
29
|
Charset:
|
@@ -31,15 +31,15 @@ http_interactions:
|
|
31
31
|
Server:
|
32
32
|
- Werkzeug/0.9.4 Python/2.7.3
|
33
33
|
Date:
|
34
|
-
-
|
34
|
+
- Thu, 07 Aug 2014 14:24:46 GMT
|
35
35
|
body:
|
36
36
|
encoding: UTF-8
|
37
|
-
string: '{"meta": {"rate_limit_amount":
|
38
|
-
|
39
|
-
|
40
|
-
"
|
41
|
-
"
|
42
|
-
|
43
|
-
http_version:
|
44
|
-
recorded_at:
|
37
|
+
string: '{"meta": {"rate_limit_amount": 29, "rate_limit_reset": 1407424701,
|
38
|
+
"application_mode": "test", "processing_time": 11, "rate_limit_cap": 1000,
|
39
|
+
"credits_remaining": 9978, "activity_id": "53e38c2e56c02c25fd7bb462", "credits_billed":
|
40
|
+
1}, "data": [{"high": 85.0, "cpt_code": "12345", "geo_zip_area": "752", "payment_type":
|
41
|
+
"paid", "standard_deviation": 18.16, "average": 45.58, "payer_type": "cash",
|
42
|
+
"median": 42.0, "low": 25.0}]}'
|
43
|
+
http_version:
|
44
|
+
recorded_at: Thu, 07 Aug 2014 14:24:46 GMT
|
45
45
|
recorded_with: VCR 2.9.2
|
data/vcr_cassettes/claims.yml
CHANGED
@@ -11,15 +11,15 @@ http_interactions:
|
|
11
11
|
Ins Co","plan_id":"1234567890"}}'
|
12
12
|
headers:
|
13
13
|
User-Agent:
|
14
|
-
- pokitdok-ruby 0.4.1 ruby 2.
|
14
|
+
- pokitdok-ruby 0.4.1 ruby 2.0.0p451 (2014-02-24 revision 45167) [x86_64-darwin12.5.0]
|
15
15
|
Authorization:
|
16
|
-
- Bearer
|
16
|
+
- Bearer 88CVCN9YDDAQdTC3GeQMcrMPyDJPErQZ3PECJcln
|
17
17
|
Content-Type:
|
18
18
|
- application/json
|
19
19
|
Accept-Encoding:
|
20
20
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
21
21
|
Accept:
|
22
|
-
-
|
22
|
+
- '*/*'
|
23
23
|
response:
|
24
24
|
status:
|
25
25
|
code: 200
|
@@ -28,7 +28,7 @@ http_interactions:
|
|
28
28
|
Content-Type:
|
29
29
|
- text/html; charset=utf-8
|
30
30
|
Content-Length:
|
31
|
-
- '
|
31
|
+
- '2203'
|
32
32
|
Mimetype:
|
33
33
|
- application/json
|
34
34
|
Charset:
|
@@ -36,13 +36,14 @@ http_interactions:
|
|
36
36
|
Server:
|
37
37
|
- Werkzeug/0.9.4 Python/2.7.3
|
38
38
|
Date:
|
39
|
-
- Tue,
|
39
|
+
- Tue, 12 Aug 2014 15:19:09 GMT
|
40
40
|
body:
|
41
41
|
encoding: UTF-8
|
42
|
-
string: '{"meta": {"rate_limit_amount":
|
43
|
-
|
44
|
-
|
45
|
-
|
42
|
+
string: '{"meta": {"rate_limit_amount": 262, "rate_limit_reset": 1407856935,
|
43
|
+
"application_mode": "production", "processing_time": 17, "rate_limit_cap":
|
44
|
+
1000, "credits_remaining": 12972, "activity_id": "53ea306d56c02c23b5a3f755",
|
45
|
+
"credits_billed": 1}, "data": {"units_of_work": 1, "name": "claims", "parameters":
|
46
|
+
{"claim": {"plan_participation": "assigned", "provider_signature": true, "total_charge_amount":
|
46
47
|
"60.0", "claim_frequency": "original", "place_of_service": "office", "direct_payment":
|
47
48
|
"y", "patient_signature_on_file": true, "information_release": "informed_consent",
|
48
49
|
"service_lines": [{"diagnosis_codes": ["487.1"], "unit_count": "1.0", "unit_type":
|
@@ -52,20 +53,20 @@ http_interactions:
|
|
52
53
|
"last_name": "Doe", "gender": "female", "member_id": "W000000000", "payer_responsibility":
|
53
54
|
"primary", "address": {"address_lines": ["123 N MAIN ST"], "state": "SC",
|
54
55
|
"zipcode": "29301", "city": "SPARTANBURG"}, "birth_date": "1970-01-01"}, "correlation_id":
|
55
|
-
"
|
56
|
+
"e9c08ce8-f519-4818-b2dd-bf39f3ea5a55", "client_id": "oB7rLIqHmdoAXHRAmWtM",
|
56
57
|
"receiver": {"organization_name": "MOCKRECEIVER", "id": "MOCKRECEIVER"}, "submitter":
|
57
58
|
{"organization_name": "POKITDOK TESTING", "id": "POKITDOKTEST", "email": "support@pokitdok.com"},
|
58
|
-
"billing_provider": {"first_name": "Jerome", "last_name":
|
59
|
-
"1467560003", "taxonomy_code": "207Q00000X", "address": {"address_lines":
|
59
|
+
"async": false, "billing_provider": {"first_name": "Jerome", "last_name":
|
60
|
+
"Aya-Ay", "npi": "1467560003", "taxonomy_code": "207Q00000X", "address": {"address_lines":
|
60
61
|
["8311 WARREN H ABERNATHY HWY"], "state": "SC", "zipcode": "29301", "city":
|
61
62
|
"SPARTANBURG"}, "tax_id": "123456789"}, "transaction_code": "chargeable"},
|
62
63
|
"remaining_transitions": ["generate", "store", "transmit", "wait", "receive",
|
63
64
|
"process", "complete"], "state": {"name": "scheduled", "title": "Scheduled
|
64
65
|
for next available transmission to Trading Partner"}, "trading_partner_id":
|
65
|
-
"MOCKPAYER", "id": "
|
66
|
+
"MOCKPAYER", "id": "53ea306d56c02c23b5a3f755", "transition_path": ["schedule",
|
66
67
|
"generate", "store", "transmit", "wait", "receive", "process", "complete"],
|
67
|
-
"history": [{"record_dt": "2014-08-
|
68
|
+
"history": [{"record_dt": "2014-08-12T15:19:09.682930", "name": "init", "title":
|
68
69
|
"Initializing"}]}}'
|
69
70
|
http_version:
|
70
|
-
recorded_at: Tue,
|
71
|
+
recorded_at: Tue, 12 Aug 2014 15:19:09 GMT
|
71
72
|
recorded_with: VCR 2.9.2
|
@@ -8,15 +8,15 @@ http_interactions:
|
|
8
8
|
string: '{"patient":{"birth_date":"1970-01-01","first_name":"JANE","last_name":"DOE","id":"1234567890"},"provider":{"first_name":"Jerome","last_name":"Aya-Ay","npi":"1467560003"},"service_date":"2014-01-01","trading_partner_id":"MOCKPAYER"}'
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
|
-
- pokitdok-ruby 0.4.1 ruby 2.
|
11
|
+
- pokitdok-ruby 0.4.1 ruby 2.0.0p451 (2014-02-24 revision 45167) [x86_64-darwin12.5.0]
|
12
12
|
Authorization:
|
13
|
-
- Bearer
|
13
|
+
- Bearer 88CVCN9YDDAQdTC3GeQMcrMPyDJPErQZ3PECJcln
|
14
14
|
Content-Type:
|
15
15
|
- application/json
|
16
16
|
Accept-Encoding:
|
17
17
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
18
18
|
Accept:
|
19
|
-
-
|
19
|
+
- '*/*'
|
20
20
|
response:
|
21
21
|
status:
|
22
22
|
code: 200
|
@@ -25,7 +25,7 @@ http_interactions:
|
|
25
25
|
Content-Type:
|
26
26
|
- text/html; charset=utf-8
|
27
27
|
Content-Length:
|
28
|
-
- '
|
28
|
+
- '2061'
|
29
29
|
Mimetype:
|
30
30
|
- application/json
|
31
31
|
Charset:
|
@@ -33,29 +33,35 @@ http_interactions:
|
|
33
33
|
Server:
|
34
34
|
- Werkzeug/0.9.4 Python/2.7.3
|
35
35
|
Date:
|
36
|
-
- Tue,
|
36
|
+
- Tue, 12 Aug 2014 15:19:09 GMT
|
37
37
|
body:
|
38
38
|
encoding: UTF-8
|
39
|
-
string: '{"meta": {"rate_limit_amount":
|
40
|
-
|
41
|
-
|
42
|
-
"
|
39
|
+
string: '{"meta": {"rate_limit_amount": 261, "rate_limit_reset": 1407856935,
|
40
|
+
"application_mode": "production", "processing_time": 435, "rate_limit_cap":
|
41
|
+
1000, "credits_remaining": 12973, "activity_id": "53ea306d56c02c23b3a3f755",
|
42
|
+
"credits_billed": 1}, "data": {"patient": {"claims": [{"applied_to_deductible":
|
43
|
+
false, "total_claim_amount": {"currency": "USD", "amount": "150"}, "service_end_date":
|
44
|
+
"2014-01-01", "claim_control_number": "E1TWCYYMF00", "service_date": "2014-01-01",
|
45
|
+
"claim_payment_amount": {"currency": "USD", "amount": "125"}, "adjudication_finalized_date":
|
46
|
+
"2014-03-21", "statuses": [{"total_claim_amount": {"currency": "USD", "amount":
|
47
|
+
"150"}, "status_category": "Finalized/Payment-The claim/line has been paid.",
|
43
48
|
"status_code": "Processed according to contract provisions (Contract refers
|
44
49
|
to provisions that exist between the Health Plan and a Provider of Health
|
45
|
-
Care Services)", "
|
46
|
-
|
47
|
-
"
|
48
|
-
|
49
|
-
"
|
50
|
-
"
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
"payer": {"name": "MOCK PAYER INC", "id":
|
56
|
-
"
|
57
|
-
"
|
58
|
-
"
|
50
|
+
Care Services)", "claim_payment_amount": {"currency": "USD", "amount": "125"},
|
51
|
+
"adjudication_finalized_date": "2014-03-21", "status_effective_date": "2014-04-24",
|
52
|
+
"check_number": "08608-035632423", "remittance_date": "2014-04-09"}], "tracking_id":
|
53
|
+
"E1TWCYYMF", "services": [{"cpt_code": "99214", "service_end_date": "2014-03-05",
|
54
|
+
"payment_amount": {"currency": "USD", "amount": "125"}, "charge_amount": {"currency":
|
55
|
+
"USD", "amount": "150"}, "service_date": "2014-03-05", "statuses": [{"status_code":
|
56
|
+
"Processed according to contract provisions (Contract refers to provisions
|
57
|
+
that exist between the Health Plan and a Provider of Health Care Services)",
|
58
|
+
"status_category": "Finalized/Payment-The claim/line has been paid.", "status_effective_date":
|
59
|
+
"2014-04-24"}]}], "check_number": "08608-035632423", "remittance_date": "2014-04-09"}]},
|
60
|
+
"client_id": "oB7rLIqHmdoAXHRAmWtM", "payer": {"name": "MOCK PAYER INC", "id":
|
61
|
+
"MOCKPAYER"}, "providers": [{"first_name": "Jerome", "last_name": "Aya-Ay",
|
62
|
+
"npi": "1467560003"}], "correlation_id": "e24d39c3-bca6-44d8-8054-6575ed224f30",
|
63
|
+
"trading_partner_id": "MOCKPAYER", "submitter": {"first_name": "Jerome", "last_name":
|
64
|
+
"Aya-Ay", "id": "1467560003"}}}'
|
59
65
|
http_version:
|
60
|
-
recorded_at: Tue,
|
66
|
+
recorded_at: Tue, 12 Aug 2014 15:19:09 GMT
|
61
67
|
recorded_with: VCR 2.9.2
|
@@ -8,15 +8,15 @@ http_interactions:
|
|
8
8
|
string: '{"member":{"birth_date":"1970-01-01","first_name":"Jane","last_name":"Doe","id":"W000000000"},"provider":{"first_name":"JEROME","last_name":"AYA-AY","npi":"1467560003"},"service_types":["health_benefit_plan_coverage"],"trading_partner_id":"MOCKPAYER"}'
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
|
-
- pokitdok-ruby 0.4.1 ruby 2.
|
11
|
+
- pokitdok-ruby 0.4.1 ruby 2.0.0p451 (2014-02-24 revision 45167) [x86_64-darwin12.5.0]
|
12
12
|
Authorization:
|
13
|
-
- Bearer
|
13
|
+
- Bearer 88CVCN9YDDAQdTC3GeQMcrMPyDJPErQZ3PECJcln
|
14
14
|
Content-Type:
|
15
15
|
- application/json
|
16
16
|
Accept-Encoding:
|
17
17
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
18
18
|
Accept:
|
19
|
-
-
|
19
|
+
- '*/*'
|
20
20
|
response:
|
21
21
|
status:
|
22
22
|
code: 200
|
@@ -25,7 +25,7 @@ http_interactions:
|
|
25
25
|
Content-Type:
|
26
26
|
- text/html; charset=utf-8
|
27
27
|
Content-Length:
|
28
|
-
- '
|
28
|
+
- '6482'
|
29
29
|
Mimetype:
|
30
30
|
- application/json
|
31
31
|
Charset:
|
@@ -33,29 +33,39 @@ http_interactions:
|
|
33
33
|
Server:
|
34
34
|
- Werkzeug/0.9.4 Python/2.7.3
|
35
35
|
Date:
|
36
|
-
- Tue,
|
36
|
+
- Tue, 12 Aug 2014 15:19:08 GMT
|
37
37
|
body:
|
38
38
|
encoding: UTF-8
|
39
|
-
string: '{"meta": {"rate_limit_amount":
|
40
|
-
|
41
|
-
|
42
|
-
"
|
43
|
-
"
|
44
|
-
"
|
45
|
-
"
|
46
|
-
"
|
47
|
-
"
|
48
|
-
"
|
49
|
-
"
|
50
|
-
"
|
51
|
-
"
|
52
|
-
"amount": "
|
53
|
-
{"
|
54
|
-
"
|
55
|
-
{"
|
56
|
-
"
|
57
|
-
"
|
58
|
-
"
|
39
|
+
string: '{"meta": {"rate_limit_amount": 256, "rate_limit_reset": 1407856935,
|
40
|
+
"application_mode": "production", "processing_time": 405, "rate_limit_cap":
|
41
|
+
1000, "credits_remaining": 12975, "activity_id": "53ea306c56c02c23a7a3f755",
|
42
|
+
"credits_billed": 1}, "data": {"service_types": ["professional_physician_visit_office"],
|
43
|
+
"client_id": "oB7rLIqHmdoAXHRAmWtM", "payer": {"id": "MOCKPAYER", "name":
|
44
|
+
"MOCK PAYER INC"}, "summary": {"deductible": {"individual": {"in_network":
|
45
|
+
{"applied": {"currency": "USD", "amount": "16.43"}, "limit": {"currency":
|
46
|
+
"USD", "amount": "3000"}, "remaining": {"currency": "USD", "amount": "2983.57"}},
|
47
|
+
"out_of_network": {"applied": {"currency": "USD", "amount": "16.43"}, "limit":
|
48
|
+
{"currency": "USD", "amount": "6000"}, "remaining": {"currency": "USD", "amount":
|
49
|
+
"5983.57"}}}, "family": {"in_network": {"applied": {"currency": "USD", "amount":
|
50
|
+
"43.91"}, "limit": {"currency": "USD", "amount": "6000"}, "remaining": {"currency":
|
51
|
+
"USD", "amount": "5956.09"}}, "out_of_network": {"applied": {"currency": "USD",
|
52
|
+
"amount": "43.91"}, "limit": {"currency": "USD", "amount": "12000"}, "remaining":
|
53
|
+
{"currency": "USD", "amount": "11956.09"}}}}}, "subscriber": {"birth_date":
|
54
|
+
"1970-01-01", "first_name": "Jane", "last_name": "Doe", "id": "W000000000",
|
55
|
+
"address": {"city": "SPARTANBURG", "state": "SC", "zipcode": "29307", "address_lines":
|
56
|
+
["123 MAIN ST"]}}, "correlation_id": "ed490e9a-ad0c-4fc4-b92c-f6cdc1af9388",
|
57
|
+
"trading_partner_id": "MOCKPAYER", "provider": {"first_name": "JEROME", "last_name":
|
58
|
+
"JEROME AYA-AY", "npi": "1467560003"}, "coverage": {"plan_number": "0888188",
|
59
|
+
"service_types": ["professional_physician_visit_office"], "group_number":
|
60
|
+
"088818801000013", "out_of_pocket": [{"in_plan_network": "yes", "benefit_amount":
|
61
|
+
{"currency": "USD", "amount": "3000"}, "coverage_level": "individual"}, {"in_plan_network":
|
62
|
+
"yes", "benefit_amount": {"currency": "USD", "amount": "2983.57"}, "coverage_level":
|
63
|
+
"individual", "time_period": "remaining"}, {"in_plan_network": "yes", "benefit_amount":
|
64
|
+
{"currency": "USD", "amount": "6000"}, "coverage_level": "family"}, {"in_plan_network":
|
65
|
+
"yes", "benefit_amount": {"currency": "USD", "amount": "5956.09"}, "coverage_level":
|
66
|
+
"family", "time_period": "remaining"}, {"in_plan_network": "no", "benefit_amount":
|
67
|
+
{"currency": "USD", "amount": "12500"}, "coverage_level": "individual"}, {"in_plan_network":
|
68
|
+
"no", "benefit_amount": {"currency": "USD", "amount": "12483.57"}, "coverage_level":
|
59
69
|
"individual", "time_period": "remaining"}, {"in_plan_network": "no", "benefit_amount":
|
60
70
|
{"currency": "USD", "amount": "25000"}, "coverage_level": "family"}, {"in_plan_network":
|
61
71
|
"no", "benefit_amount": {"currency": "USD", "amount": "24956.09"}, "coverage_level":
|
@@ -107,5 +117,5 @@ http_interactions:
|
|
107
117
|
"MOCK INDIVIDUAL ADVANTAGE PLAN", "service_date": "2013-08-10"}, "valid_request":
|
108
118
|
true}}'
|
109
119
|
http_version:
|
110
|
-
recorded_at: Tue,
|
120
|
+
recorded_at: Tue, 12 Aug 2014 15:19:08 GMT
|
111
121
|
recorded_with: VCR 2.9.2
|
@@ -17,15 +17,15 @@ http_interactions:
|
|
17
17
|
Mar 26 22:18:47 2014"}'
|
18
18
|
headers:
|
19
19
|
User-Agent:
|
20
|
-
- pokitdok-ruby 0.4.1 ruby 2.
|
20
|
+
- pokitdok-ruby 0.4.1 ruby 2.0.0p451 (2014-02-24 revision 45167) [x86_64-darwin12.5.0]
|
21
21
|
Authorization:
|
22
|
-
- Bearer
|
22
|
+
- Bearer 88CVCN9YDDAQdTC3GeQMcrMPyDJPErQZ3PECJcln
|
23
23
|
Content-Type:
|
24
24
|
- application/json
|
25
25
|
Accept-Encoding:
|
26
26
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
27
27
|
Accept:
|
28
|
-
-
|
28
|
+
- '*/*'
|
29
29
|
response:
|
30
30
|
status:
|
31
31
|
code: 200
|
@@ -34,7 +34,7 @@ http_interactions:
|
|
34
34
|
Content-Type:
|
35
35
|
- text/html; charset=utf-8
|
36
36
|
Content-Length:
|
37
|
-
- '
|
37
|
+
- '2613'
|
38
38
|
Mimetype:
|
39
39
|
- application/json
|
40
40
|
Charset:
|
@@ -42,41 +42,42 @@ http_interactions:
|
|
42
42
|
Server:
|
43
43
|
- Werkzeug/0.9.4 Python/2.7.3
|
44
44
|
Date:
|
45
|
-
- Tue,
|
45
|
+
- Tue, 12 Aug 2014 15:19:07 GMT
|
46
46
|
body:
|
47
47
|
encoding: UTF-8
|
48
|
-
string: '{"meta": {"rate_limit_amount":
|
49
|
-
|
50
|
-
|
51
|
-
"
|
52
|
-
"
|
53
|
-
|
54
|
-
"
|
55
|
-
"
|
56
|
-
|
57
|
-
"
|
58
|
-
"
|
59
|
-
"
|
60
|
-
"
|
61
|
-
"
|
62
|
-
"
|
63
|
-
"
|
64
|
-
"
|
65
|
-
"
|
66
|
-
|
67
|
-
"
|
68
|
-
|
69
|
-
"
|
70
|
-
"
|
71
|
-
|
72
|
-
"
|
73
|
-
"
|
74
|
-
|
75
|
-
|
76
|
-
"
|
77
|
-
"
|
78
|
-
"
|
79
|
-
"
|
48
|
+
string: '{"meta": {"rate_limit_amount": 253, "rate_limit_reset": 1407856935,
|
49
|
+
"application_mode": "production", "processing_time": 15, "rate_limit_cap":
|
50
|
+
1000, "credits_remaining": 9970, "activity_id": "53ea306b56c02c23a1a3f755",
|
51
|
+
"credits_billed": 1}, "data": {"units_of_work": 1, "name": "enrollment", "parameters":
|
52
|
+
{"reference_number": "12456", "version": "4.0.0", "payer": {"tax_id": "654456654"},
|
53
|
+
"update_dt": "Wed Mar 26 22:18:47 2014", "deleted": false, "major_version":
|
54
|
+
"4", "subscriber": {"maintenance_type": "Addition", "first_name": "JOHN",
|
55
|
+
"last_name": "DOE", "benefits": [{"maintenance_type": "Addition", "late_enrollment":
|
56
|
+
false, "begin_date": "Sat Jun 1 00:00:00 1996", "benefit_type": "Health",
|
57
|
+
"coordination_of_benefits": [{"status": "Unknown", "group_or_policy_number":
|
58
|
+
"890111", "payer_responsibility": "Primary"}]}, {"maintenance_type": "Addition",
|
59
|
+
"late_enrollment": false, "begin_date": "Sat Jun 1 00:00:00 1996", "benefit_type":
|
60
|
+
"Dental"}, {"maintenance_type": "Addition", "late_enrollment": false, "begin_date":
|
61
|
+
"Sat Jun 1 00:00:00 1996", "benefit_type": "Vision"}], "relationship": "Self",
|
62
|
+
"contacts": [{"communication_type2": "Work Phone Number", "primary_communication_type":
|
63
|
+
"Home Phone Number", "communication_number2": "7172341240", "primary_communication_number":
|
64
|
+
"7172343334"}], "benefit_status": "Active", "gender": "Male", "employment_status":
|
65
|
+
"Full-time", "subscriber_number": "123456789", "group_or_policy_number": "123456001",
|
66
|
+
"maintenance_reason": "Active", "handicapped": false, "eligibility_begin_date":
|
67
|
+
"Thu May 23 00:00:00 1996", "ssn": "123456789", "tobacco_use": false, "member_id":
|
68
|
+
"123456789", "birth_date": "Fri Aug 16 00:00:00 1940", "middle_name": "P",
|
69
|
+
"substance_abuse": false, "address": {"city": "CAMP HILL", "line2": "APT 3G",
|
70
|
+
"county": "CUMBERLAND", "state": "PA", "postal_code": "17011", "line": "100
|
71
|
+
MARKET ST"}}, "correlation_id": "13e96862-855e-42ed-8a93-93e607797f85", "insert_dt":
|
72
|
+
"Wed Mar 26 22:18:47 2014", "trading_partner_id": "MOCKPAYER", "purpose":
|
73
|
+
"Original", "client_id": "oB7rLIqHmdoAXHRAmWtM", "action": "Change", "dependents":
|
74
|
+
[], "sponsor": {"tax_id": "999888777"}}, "remaining_transitions": ["generate",
|
75
|
+
"store", "transmit", "wait", "receive", "process", "complete"], "state": {"name":
|
76
|
+
"scheduled", "title": "Scheduled for next available transmission to Trading
|
77
|
+
Partner"}, "trading_partner_id": "MOCKPAYER", "id": "53ea306b56c02c23a1a3f755",
|
78
|
+
"transition_path": ["schedule", "generate", "store", "transmit", "wait", "receive",
|
79
|
+
"process", "complete"], "history": [{"record_dt": "2014-08-12T15:19:07.923201",
|
80
|
+
"name": "init", "title": "Initializing"}]}}'
|
80
81
|
http_version:
|
81
|
-
recorded_at: Tue,
|
82
|
+
recorded_at: Tue, 12 Aug 2014 15:19:07 GMT
|
82
83
|
recorded_with: VCR 2.9.2
|
data/vcr_cassettes/files.yml
CHANGED
@@ -15,15 +15,15 @@ http_interactions:
|
|
15
15
|
Accept-Encoding:
|
16
16
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
17
17
|
Accept:
|
18
|
-
-
|
18
|
+
- '*/*'
|
19
19
|
User-Agent:
|
20
|
-
- pokitdok-ruby 0.4.1 ruby 2.
|
20
|
+
- pokitdok-ruby 0.4.1 ruby 2.0.0p451 (2014-02-24 revision 45167) [x86_64-darwin12.5.0]
|
21
21
|
Content-Type:
|
22
22
|
- multipart/form-data; boundary=-----------RubyMultipartPost
|
23
23
|
Content-Length:
|
24
24
|
- '3266'
|
25
25
|
Authorization:
|
26
|
-
- Bearer
|
26
|
+
- Bearer 88CVCN9YDDAQdTC3GeQMcrMPyDJPErQZ3PECJcln
|
27
27
|
response:
|
28
28
|
status:
|
29
29
|
code: 200
|
@@ -32,7 +32,7 @@ http_interactions:
|
|
32
32
|
Content-Type:
|
33
33
|
- text/html; charset=utf-8
|
34
34
|
Content-Length:
|
35
|
-
- '
|
35
|
+
- '763'
|
36
36
|
Mimetype:
|
37
37
|
- application/json
|
38
38
|
Charset:
|
@@ -40,18 +40,19 @@ http_interactions:
|
|
40
40
|
Server:
|
41
41
|
- Werkzeug/0.9.4 Python/2.7.3
|
42
42
|
Date:
|
43
|
-
- Tue,
|
43
|
+
- Tue, 12 Aug 2014 15:19:09 GMT
|
44
44
|
body:
|
45
45
|
encoding: UTF-8
|
46
|
-
string: '{"meta": {"rate_limit_amount":
|
47
|
-
|
48
|
-
|
46
|
+
string: '{"meta": {"rate_limit_amount": 260, "rate_limit_reset": 1407856935,
|
47
|
+
"application_mode": "production", "processing_time": 521, "rate_limit_cap":
|
48
|
+
1000, "credits_remaining": 12974, "activity_id": "53ea306d56c02c23afa3f755",
|
49
|
+
"credits_billed": 1}, "data": {"units_of_work": 1, "name": "batch file", "remaining_transitions":
|
49
50
|
["process", "complete"], "state": {"name": "queued", "title": "In queue waiting
|
50
|
-
to start"}, "trading_partner_id": "MOCKPAYER", "id": "
|
51
|
+
to start"}, "trading_partner_id": "MOCKPAYER", "id": "53ea306d56c02c23afa3f755",
|
51
52
|
"transition_path": ["store", "queue", "process", "complete"], "history": [{"record_dt":
|
52
|
-
"2014-08-
|
53
|
-
"2014-08-
|
53
|
+
"2014-08-12T15:19:09.168442", "name": "init", "title": "Initializing"}, {"record_dt":
|
54
|
+
"2014-08-12T15:19:09.170534", "name": "stored", "title": "Batch transactions
|
54
55
|
stored for later processing"}]}}'
|
55
56
|
http_version:
|
56
|
-
recorded_at: Tue,
|
57
|
+
recorded_at: Tue, 12 Aug 2014 15:19:09 GMT
|
57
58
|
recorded_with: VCR 2.9.2
|