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/auth.yml
CHANGED
@@ -31,11 +31,11 @@ http_interactions:
|
|
31
31
|
Server:
|
32
32
|
- Werkzeug/0.9.4 Python/2.7.3
|
33
33
|
Date:
|
34
|
-
-
|
34
|
+
- Fri, 06 Jun 2014 17:15:35 GMT
|
35
35
|
body:
|
36
36
|
encoding: UTF-8
|
37
|
-
string: '{"access_token": "
|
38
|
-
"bearer", "expires":
|
37
|
+
string: '{"access_token": "wRjqVdn8ezPmx5uviVocwL2u1edtJ8g809Tn4Ob5", "token_type":
|
38
|
+
"bearer", "expires": 1402078535, "expires_in": 3600}'
|
39
39
|
http_version:
|
40
|
-
recorded_at:
|
40
|
+
recorded_at: Fri, 06 Jun 2014 17:15:35 GMT
|
41
41
|
recorded_with: VCR 2.9.2
|
data/vcr_cassettes/claims.yml
CHANGED
@@ -2,27 +2,18 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: http://localhost:5002/api/
|
5
|
+
uri: http://localhost:5002/api/v4/claims/
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string: '{"
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
Number"}],"state":"MA"},"claim":{"assignment_code":"Assigned","benefit_assignment_code":"Yes","claim_frequency_code":"1","claim_total_amount":{"amount":"40.0","currency":"USD"},"dates":[{"date_qualifier":"Onset
|
13
|
-
of Symptom or Illness","date_value":"04/15/2014"}],"facility_code_qualifier":"B","facility_code_value":"11","health_care_codes":[{"health_care_code_1":"BK:0340","health_care_code_2":"BF:V7389"}],"information_release_code":"Informed
|
14
|
-
Consent","patient_control_number":"26462967","provider_signature_on_file":"Y","ref":[{"id_code":"1234567890","id_type":"Claim
|
15
|
-
Number"}],"service_lines":[{"dates":[{"date_qualifier":"Service Date","date_value":"04/16/2014"}],"medical_charge_amount":{"amount":"40.0","currency":"USD"},"medical_diagnosis_code":"1","medical_procedure_identifier":"HC:99213","medical_service_quantity":"1.0","medical_service_unit":"Unit"}]},"payer":{"entity_identifier":"Payer","entity_type":"Non-Person","id_code":"HPHC","id_type":"Payor
|
16
|
-
Identification","last_org_name":"HARVARD PILGRIM HEALTH CARE"},"receiver":{"entity_identifier":"Receiver","entity_type":"Non-Person","id_code":"HPHC","id_type":"ETIN","last_org_name":"HPHC"},"submitter":{"entity_identifier":"Submitter","entity_type":"Non-Person","id_code":"123456789","id_type":"ETIN","last_org_name":"ACME,
|
17
|
-
INC."},"subscriber":{"address_line_1":"123 MAIN ST","birth_date":"Sat May 1
|
18
|
-
00:00:00 1943","city":"BURLINGTON","claim_filing_code":"Health Maintenance
|
19
|
-
Organization","entity_identifier":"Subscriber","entity_type":"Person","first_name":"TED","gender_code":"Male","group_number":"12312-A","id_code":"HP123456700","id_type":"Member
|
20
|
-
ID","is_patient":true,"last_org_name":"SMITH","payer_responsibility":"Primary","postal_code":"01803","relationship_code":"Self","state":"MA"},"trading_partner_id":"MOCKPAYER","transaction_purpose_code":"Original","transaction_type":"Reporting"}'
|
8
|
+
string: '{"transaction_code":"chargeable","trading_partner_id":"MOCKPAYER","billing_provider":{"taxonomy_code":"207Q00000X","first_name":"Jerome","last_name":"Aya-Ay","npi":"1467560003","address":{"address_lines":["8311
|
9
|
+
WARREN H ABERNATHY HWY"],"city":"SPARTANBURG","state":"SC","zipcode":"29301"},"tax_id":"123456789"},"subscriber":{"first_name":"Jane","last_name":"Doe","member_id":"W000000000","address":{"address_lines":["123
|
10
|
+
N MAIN ST"],"city":"SPARTANBURG","state":"SC","zipcode":"29301"},"birth_date":"1970-01-01","gender":"female"},"claim":{"total_charge_amount":60.0,"service_lines":[{"procedure_code":"99213","charge_amount":60.0,"unit_count":1.0,"diagnosis_codes":["487.1"],"service_date":"2014-06-01"}]},"payer":{"organization_name":"Acme
|
11
|
+
Ins Co","plan_id":"1234567890"}}'
|
21
12
|
headers:
|
22
13
|
User-Agent:
|
23
|
-
- pokitdok-ruby 0.
|
14
|
+
- pokitdok-ruby 0.4 ruby 2.1.1p76 (2014-02-24 revision 45161) [x86_64-darwin13.0]
|
24
15
|
Authorization:
|
25
|
-
- Bearer
|
16
|
+
- Bearer wRjqVdn8ezPmx5uviVocwL2u1edtJ8g809Tn4Ob5
|
26
17
|
Content-Type:
|
27
18
|
- application/json
|
28
19
|
Accept-Encoding:
|
@@ -37,7 +28,7 @@ http_interactions:
|
|
37
28
|
Content-Type:
|
38
29
|
- text/html; charset=utf-8
|
39
30
|
Content-Length:
|
40
|
-
- '
|
31
|
+
- '2075'
|
41
32
|
Mimetype:
|
42
33
|
- application/json
|
43
34
|
Charset:
|
@@ -45,55 +36,35 @@ http_interactions:
|
|
45
36
|
Server:
|
46
37
|
- Werkzeug/0.9.4 Python/2.7.3
|
47
38
|
Date:
|
48
|
-
-
|
39
|
+
- Fri, 06 Jun 2014 17:15:36 GMT
|
49
40
|
body:
|
50
41
|
encoding: UTF-8
|
51
|
-
string: '{"meta": {"rate_limit_amount":
|
52
|
-
"processing_time":
|
53
|
-
1}, "data": {"units_of_work": 1, "
|
54
|
-
"
|
55
|
-
|
56
|
-
"
|
57
|
-
[{"
|
58
|
-
"
|
59
|
-
"
|
60
|
-
"
|
61
|
-
"
|
62
|
-
"
|
63
|
-
"
|
64
|
-
|
65
|
-
"
|
66
|
-
"
|
67
|
-
|
68
|
-
"
|
69
|
-
"
|
70
|
-
"
|
71
|
-
"
|
72
|
-
"
|
73
|
-
|
74
|
-
|
75
|
-
"
|
76
|
-
"
|
77
|
-
2014", "client_id": "4nhMZTpLxBxmiocveVb5", "trading_partner_id": "MOCKPAYER",
|
78
|
-
"receiver": {"id_code": "HPHC", "entity_identifier": "Receiver", "id_type":
|
79
|
-
"ETIN", "last_org_name": "HPHC", "entity_type": "Non-Person"}, "submitter":
|
80
|
-
{"id_code": "123456789", "entity_identifier": "Submitter", "id_type": "ETIN",
|
81
|
-
"last_org_name": "ACME, INC.", "entity_type": "Non-Person"}, "billing_provider":
|
82
|
-
{"city": "BURLINGTON", "entity_identifier": "Billing Provider", "last_org_name":
|
83
|
-
"KATIE BRADFORD", "entity_type": "Non-Person", "provider_id_type": "Provider
|
84
|
-
Taxonomy Code", "id_code": "1730240128", "state": "MA", "provider_id_code":
|
85
|
-
"133V00000X", "postal_code": "018033744", "id_type": "NPI", "provider_code":
|
86
|
-
"Billing", "ref": [{"id_type": "Employee Identification Number", "id_code":
|
87
|
-
"587654321"}], "address_line_1": "418 FARMS DR"}, "app_transaction_id": "00000000001"},
|
88
|
-
"update_dt": "Tue Jun 3 20:30:49 2014", "remaining_transitions": ["generate",
|
89
|
-
"transmit", "wait", "receive", "process", "complete"], "major_version": "3",
|
90
|
-
"state": {"name": "pending", "title": "Pending Batch Transmission to Trading
|
91
|
-
Partner"}, "deleted": false, "correlation_id": "7c397f0b-4cd2-4455-8c90-b7cef091e92a",
|
92
|
-
"version": "3.0.0", "client_id": "4nhMZTpLxBxmiocveVb5", "trading_partner_id":
|
93
|
-
"MOCKPAYER", "_id": "538e307956c02c5ec974954b", "insert_dt": "Tue Jun 3 20:30:49
|
94
|
-
2014", "transition_path": ["batch", "generate", "transmit", "wait", "receive",
|
95
|
-
"process", "complete"], "history": [{"record_dt": "Tue Jun 3 20:30:49 2014",
|
96
|
-
"name": "init", "title": "Initializing"}]}}'
|
42
|
+
string: '{"meta": {"rate_limit_amount": 32, "rate_limit_reset": 1402077424,
|
43
|
+
"processing_time": 13, "rate_limit_cap": 8434, "credits_remaining": 9969,
|
44
|
+
"credits_billed": 1}, "data": {"units_of_work": 1, "name": "claims", "parameters":
|
45
|
+
{"claim": {"plan_participation": "assigned", "provider_signature": true, "total_charge_amount":
|
46
|
+
"60.0", "claim_frequency": "original", "place_of_service": "office", "direct_payment":
|
47
|
+
"y", "patient_signature_on_file": true, "information_release": "informed_consent",
|
48
|
+
"service_lines": [{"diagnosis_codes": ["487.1"], "unit_count": "1.0", "unit_type":
|
49
|
+
"units", "charge_amount": "60.0", "service_date": "2014-06-01", "procedure_code":
|
50
|
+
"99213"}]}, "trading_partner_id": "MOCKPAYER", "payer": {"organization_name":
|
51
|
+
"Acme Ins Co", "plan_id": "1234567890"}, "subscriber": {"first_name": "Jane",
|
52
|
+
"last_name": "Doe", "gender": "female", "member_id": "W000000000", "payer_responsibility":
|
53
|
+
"primary", "address": {"address_lines": ["123 N MAIN ST"], "state": "SC",
|
54
|
+
"zipcode": "29301", "city": "SPARTANBURG"}, "birth_date": "1970-01-01"}, "correlation_id":
|
55
|
+
"c5b39b6f-741c-425d-a67d-3bc505b3d638", "client_id": "4nhMZTpLxBxmiocveVb5",
|
56
|
+
"receiver": {"organization_name": "PD App", "id": "4nhMZTpLxBxmiocveVb5"},
|
57
|
+
"submitter": {"organization_name": "PokitDok, Inc.", "id": "453504565"}, "billing_provider":
|
58
|
+
{"first_name": "Jerome", "last_name": "Aya-Ay", "npi": "1467560003", "taxonomy_code":
|
59
|
+
"207Q00000X", "address": {"address_lines": ["8311 WARREN H ABERNATHY HWY"],
|
60
|
+
"state": "SC", "zipcode": "29301", "city": "SPARTANBURG"}, "tax_id": "123456789"},
|
61
|
+
"transaction_code": "chargeable"}, "remaining_transitions": ["generate", "store",
|
62
|
+
"transmit", "wait", "receive", "process", "complete"], "state": {"name": "scheduled",
|
63
|
+
"title": "Scheduled for next available transmission to Trading Partner"},
|
64
|
+
"trading_partner_id": "MOCKPAYER", "id": "5391f73856c02c1338283bbd", "transition_path":
|
65
|
+
["schedule", "generate", "store", "transmit", "wait", "receive", "process",
|
66
|
+
"complete"], "history": [{"record_dt": "2014-06-06T17:15:36.134800", "name":
|
67
|
+
"init", "title": "Initializing"}]}}'
|
97
68
|
http_version:
|
98
|
-
recorded_at:
|
69
|
+
recorded_at: Fri, 06 Jun 2014 17:15:36 GMT
|
99
70
|
recorded_with: VCR 2.9.2
|
@@ -2,17 +2,15 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: http://localhost:5002/api/
|
5
|
+
uri: http://localhost:5002/api/v4/eligibility/
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string: '{"
|
9
|
-
DOE","member_birth_date":"05-21-1975","service_types":["Health Benefit Plan
|
10
|
-
Coverage"]}'
|
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"}'
|
11
9
|
headers:
|
12
10
|
User-Agent:
|
13
|
-
- pokitdok-ruby 0.
|
11
|
+
- pokitdok-ruby 0.4 ruby 2.1.1p76 (2014-02-24 revision 45161) [x86_64-darwin13.0]
|
14
12
|
Authorization:
|
15
|
-
- Bearer
|
13
|
+
- Bearer wRjqVdn8ezPmx5uviVocwL2u1edtJ8g809Tn4Ob5
|
16
14
|
Content-Type:
|
17
15
|
- application/json
|
18
16
|
Accept-Encoding:
|
@@ -27,7 +25,7 @@ http_interactions:
|
|
27
25
|
Content-Type:
|
28
26
|
- text/html; charset=utf-8
|
29
27
|
Content-Length:
|
30
|
-
- '
|
28
|
+
- '5655'
|
31
29
|
Mimetype:
|
32
30
|
- application/json
|
33
31
|
Charset:
|
@@ -35,97 +33,79 @@ http_interactions:
|
|
35
33
|
Server:
|
36
34
|
- Werkzeug/0.9.4 Python/2.7.3
|
37
35
|
Date:
|
38
|
-
-
|
36
|
+
- Fri, 06 Jun 2014 17:15:36 GMT
|
39
37
|
body:
|
40
38
|
encoding: UTF-8
|
41
|
-
string: '{"meta": {"rate_limit_amount":
|
42
|
-
"processing_time":
|
43
|
-
"credits_billed": 1}, "data": {"
|
44
|
-
"
|
45
|
-
"
|
46
|
-
"
|
47
|
-
"
|
48
|
-
"
|
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
|
-
Visit - Office"], "messages": [{"message": "PRIMARY OFFICE"}], "in_plan_network":
|
75
|
-
"Y", "coverage_level_code": "ESP", "coverage_level": "Employee and Spouse"},
|
76
|
-
{"service_type_codes": ["98"], "service_types": ["Professional (Physician)
|
77
|
-
Visit - Office"], "messages": [{"message": "GYN OFFICE VS"}, {"message": "GYN
|
78
|
-
VISIT"}, {"message": "SPEC OFFICE"}, {"message": "SPEC VISIT"}, {"message":
|
79
|
-
"PRIME CARE VST"}, {"message": "Plan Requires PreCert"}, {"message": "Commercial"},
|
80
|
-
{"message": "Plan includes NAP"}, {"message": "Pre-Existing may apply"}],
|
81
|
-
"in_plan_network": "W", "coverage_level_code": "ESP", "coverage_level": "Employee
|
82
|
-
and Spouse"}], "deductibles": [{"messages": [{"message": "INT MED AND RX,GYN
|
39
|
+
string: '{"meta": {"rate_limit_amount": 30, "rate_limit_reset": 1402077424,
|
40
|
+
"processing_time": 86, "rate_limit_cap": 8434, "credits_remaining": 9961,
|
41
|
+
"credits_billed": 1}, "data": {"service_types": ["professional_physician_visit_office"],
|
42
|
+
"client_id": "4nhMZTpLxBxmiocveVb5", "payer": {"id": "MOCKPAYER", "name":
|
43
|
+
"MOCK PAYER INC"}, "subscriber": {"birth_date": "1970-01-01", "first_name":
|
44
|
+
"Jane", "last_name": "Doe", "id": "W000000000", "address": {"city": "SPARTANBURG",
|
45
|
+
"state": "SC", "zipcode": "29307", "address_lines": ["123 MAIN ST"]}}, "correlation_id":
|
46
|
+
"39d77716-110e-4c8e-b310-de921d53aef5", "trading_partner_id": "MOCKPAYER",
|
47
|
+
"provider": {"first_name": "JEROME", "last_name": "JEROME AYA-AY", "npi":
|
48
|
+
"1467560003"}, "coverage": {"plan_number": "0888188", "service_types": ["professional_physician_visit_office"],
|
49
|
+
"group_number": "088818801000013", "out_of_pocket": [{"in_plan_network": "yes",
|
50
|
+
"benefit_amount": {"currency": "USD", "amount": "3000"}, "coverage_level":
|
51
|
+
"individual"}, {"in_plan_network": "yes", "benefit_amount": {"currency": "USD",
|
52
|
+
"amount": "2983.57"}, "coverage_level": "individual", "time_period": "remaining"},
|
53
|
+
{"in_plan_network": "yes", "benefit_amount": {"currency": "USD", "amount":
|
54
|
+
"6000"}, "coverage_level": "family"}, {"in_plan_network": "yes", "benefit_amount":
|
55
|
+
{"currency": "USD", "amount": "5956.09"}, "coverage_level": "family", "time_period":
|
56
|
+
"remaining"}, {"in_plan_network": "no", "benefit_amount": {"currency": "USD",
|
57
|
+
"amount": "12500"}, "coverage_level": "individual"}, {"in_plan_network": "no",
|
58
|
+
"benefit_amount": {"currency": "USD", "amount": "12483.57"}, "coverage_level":
|
59
|
+
"individual", "time_period": "remaining"}, {"in_plan_network": "no", "benefit_amount":
|
60
|
+
{"currency": "USD", "amount": "25000"}, "coverage_level": "family"}, {"in_plan_network":
|
61
|
+
"no", "benefit_amount": {"currency": "USD", "amount": "24956.09"}, "coverage_level":
|
62
|
+
"family", "messages": [{"message": "Unlimited Lifetime Benefits"}], "time_period":
|
63
|
+
"remaining"}], "level": "employee_and_spouse", "copay": [{"in_plan_network":
|
64
|
+
"yes", "service_types": ["professional_physician_visit_office"], "coverage_level":
|
65
|
+
"employee_and_spouse", "messages": [{"message": "PRIMARY OFFICE"}]}, {"in_plan_network":
|
66
|
+
"not_applicable", "service_types": ["professional_physician_visit_office"],
|
67
|
+
"coverage_level": "employee_and_spouse", "messages": [{"message": "GYN OFFICE
|
68
|
+
VS"}, {"message": "GYN VISIT"}, {"message": "SPEC OFFICE"}, {"message": "SPEC
|
69
|
+
VISIT"}, {"message": "PRIME CARE VST"}, {"message": "Plan Requires PreCert"},
|
70
|
+
{"message": "Commercial"}, {"message": "Plan includes NAP"}, {"message": "Pre-Existing
|
71
|
+
may apply"}]}], "deductibles": [{"messages": [{"message": "INT MED AND RX,GYN
|
83
72
|
OFFICE VS,DED INCLUDED IN OOP,GYN VISIT,SPEC OFFICE,SPEC VISIT,PRIMARY OFFICE,PRIME
|
84
|
-
CARE VST"}], "in_plan_network": "
|
85
|
-
|
86
|
-
"
|
87
|
-
[{"message": "INT MED AND RX"}], "
|
88
|
-
"FAM", "time_period": "Remaining", "coverage_level": "Family", "benefit_amount":
|
73
|
+
CARE VST"}], "in_plan_network": "yes", "eligibility_date": "2013-01-01", "time_period":
|
74
|
+
"calendar_year", "coverage_level": "family", "benefit_amount": {"currency":
|
75
|
+
"USD", "amount": "6000"}}, {"in_plan_network": "yes", "time_period": "remaining",
|
76
|
+
"coverage_level": "family", "messages": [{"message": "INT MED AND RX"}], "benefit_amount":
|
89
77
|
{"currency": "USD", "amount": "5956.09"}}, {"messages": [{"message": "INT
|
90
78
|
MED AND RX,GYN OFFICE VS,DED INCLUDED IN OOP,GYN VISIT,SPEC OFFICE,SPEC VISIT,PRIMARY
|
91
|
-
OFFICE,PRIME CARE VST"}], "in_plan_network": "
|
92
|
-
|
93
|
-
|
94
|
-
"
|
95
|
-
"
|
96
|
-
"Individual", "benefit_amount": {"currency": "USD", "amount": "2983.57"}},
|
79
|
+
OFFICE,PRIME CARE VST"}], "in_plan_network": "yes", "eligibility_date": "2013-01-01",
|
80
|
+
"time_period": "calendar_year", "coverage_level": "individual", "benefit_amount":
|
81
|
+
{"currency": "USD", "amount": "3000"}}, {"in_plan_network": "yes", "time_period":
|
82
|
+
"remaining", "coverage_level": "individual", "messages": [{"message": "INT
|
83
|
+
MED AND RX"}], "benefit_amount": {"currency": "USD", "amount": "2983.57"}},
|
97
84
|
{"messages": [{"message": "INT MED AND RX,GYN OFFICE VS,DED INCLUDED IN OOP,GYN
|
98
|
-
VISIT,SPEC OFFICE,SPEC VISIT,PRIME CARE VST"}], "in_plan_network": "
|
99
|
-
"
|
100
|
-
|
101
|
-
"
|
102
|
-
"
|
103
|
-
"
|
104
|
-
|
105
|
-
|
106
|
-
"
|
107
|
-
|
108
|
-
"
|
109
|
-
"
|
110
|
-
"
|
111
|
-
"
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
"
|
121
|
-
|
122
|
-
POCKET"}, {"message": "PRIME CARE VST,COINS APPLIES TO OUT OF POCKET"}], "in_plan_network":
|
123
|
-
"N", "coverage_level_code": "ESP", "coverage_level": "Employee and Spouse"}],
|
124
|
-
"group_description": "MOCK INDIVIDUAL ADVANTAGE PLAN", "plan_number": "0888188",
|
125
|
-
"service_date": "Sat Aug 10 00:00:00 2013"}, "member_last_name": "DOE", "service_types":
|
126
|
-
["Professional (Physician) Visit - Office"], "insert_dt": "Tue Jun 3 20:30:50
|
127
|
-
2014", "major_version": "3", "member_birth_date": "Wed May 21 00:00:00 1975",
|
128
|
-
"member_id": "W34237875729", "_id": "538e307a56c02c5ec9749550"}}'
|
85
|
+
VISIT,SPEC OFFICE,SPEC VISIT,PRIME CARE VST"}], "in_plan_network": "no", "eligibility_date":
|
86
|
+
"2013-01-01", "time_period": "calendar_year", "coverage_level": "family",
|
87
|
+
"benefit_amount": {"currency": "USD", "amount": "12000"}}, {"in_plan_network":
|
88
|
+
"no", "time_period": "remaining", "coverage_level": "family", "messages":
|
89
|
+
[{"message": "INT MED AND RX"}], "benefit_amount": {"currency": "USD", "amount":
|
90
|
+
"11956.09"}}, {"messages": [{"message": "INT MED AND RX,GYN OFFICE VS,DED
|
91
|
+
INCLUDED IN OOP,GYN VISIT,SPEC OFFICE,SPEC VISIT,PRIME CARE VST"}], "in_plan_network":
|
92
|
+
"no", "eligibility_date": "2013-01-01", "time_period": "calendar_year", "coverage_level":
|
93
|
+
"individual", "benefit_amount": {"currency": "USD", "amount": "6000"}}, {"in_plan_network":
|
94
|
+
"no", "time_period": "remaining", "coverage_level": "individual", "messages":
|
95
|
+
[{"message": "INT MED AND RX"}], "benefit_amount": {"currency": "USD", "amount":
|
96
|
+
"5983.57"}}], "plan_begin_date": "2013-02-15", "eligibility_begin_date": "2012-02-01",
|
97
|
+
"coinsurance": [{"benefit_percent": 0.0, "service_types": ["professional_physician_visit_office"],
|
98
|
+
"coverage_level": "employee_and_spouse", "messages": [{"message": "GYN OFFICE
|
99
|
+
VS"}, {"message": "GYN VISIT"}, {"message": "SPEC OFFICE"}, {"message": "SPEC
|
100
|
+
VISIT"}, {"message": "PRIMARY OFFICE"}, {"message": "PRIME CARE VST"}], "in_plan_network":
|
101
|
+
"yes"}, {"benefit_percent": 0.5, "service_types": ["professional_physician_visit_office"],
|
102
|
+
"coverage_level": "employee_and_spouse", "messages": [{"message": "GYN OFFICE
|
103
|
+
VS,COINS APPLIES TO OUT OF POCKET"}, {"message": "GYN VISIT,COINS APPLIES
|
104
|
+
TO OUT OF POCKET"}, {"message": "SPEC OFFICE,COINS APPLIES TO OUT OF POCKET"},
|
105
|
+
{"message": "SPEC VISIT,COINS APPLIES TO OUT OF POCKET"}, {"message": "PRIME
|
106
|
+
CARE VST,COINS APPLIES TO OUT OF POCKET"}], "in_plan_network": "no"}], "group_description":
|
107
|
+
"MOCK INDIVIDUAL ADVANTAGE PLAN", "service_date": "2013-08-10"}, "valid_request":
|
108
|
+
true}}'
|
129
109
|
http_version:
|
130
|
-
recorded_at:
|
110
|
+
recorded_at: Fri, 06 Jun 2014 17:15:36 GMT
|
131
111
|
recorded_with: VCR 2.9.2
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: http://localhost:5002/api/
|
5
|
+
uri: http://localhost:5002/api/v4/enrollment/
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
8
|
string: '{"action":"Change","client_id":"x12parse","correlation_id":"123456789","deleted":false,"dependents":[],"insert_dt":"Wed
|
@@ -17,9 +17,9 @@ http_interactions:
|
|
17
17
|
Mar 26 22:18:47 2014"}'
|
18
18
|
headers:
|
19
19
|
User-Agent:
|
20
|
-
- pokitdok-ruby 0.
|
20
|
+
- pokitdok-ruby 0.4 ruby 2.1.1p76 (2014-02-24 revision 45161) [x86_64-darwin13.0]
|
21
21
|
Authorization:
|
22
|
-
- Bearer
|
22
|
+
- Bearer wRjqVdn8ezPmx5uviVocwL2u1edtJ8g809Tn4Ob5
|
23
23
|
Content-Type:
|
24
24
|
- application/json
|
25
25
|
Accept-Encoding:
|
@@ -34,7 +34,7 @@ http_interactions:
|
|
34
34
|
Content-Type:
|
35
35
|
- text/html; charset=utf-8
|
36
36
|
Content-Length:
|
37
|
-
- '
|
37
|
+
- '2535'
|
38
38
|
Mimetype:
|
39
39
|
- application/json
|
40
40
|
Charset:
|
@@ -42,44 +42,41 @@ http_interactions:
|
|
42
42
|
Server:
|
43
43
|
- Werkzeug/0.9.4 Python/2.7.3
|
44
44
|
Date:
|
45
|
-
-
|
45
|
+
- Fri, 06 Jun 2014 17:15:35 GMT
|
46
46
|
body:
|
47
47
|
encoding: UTF-8
|
48
|
-
string: '{"meta": {"rate_limit_amount":
|
49
|
-
"processing_time":
|
50
|
-
1}, "data": {"units_of_work": 1, "
|
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
|
-
"
|
80
|
-
2014", "transition_path": ["batch", "generate", "store", "transmit", "wait",
|
81
|
-
"receive", "process", "complete"], "history": [{"record_dt": "Tue Jun 3 20:30:49
|
82
|
-
2014", "name": "init", "title": "Initializing"}]}}'
|
48
|
+
string: '{"meta": {"rate_limit_amount": 28, "rate_limit_reset": 1402077424,
|
49
|
+
"processing_time": 10, "rate_limit_cap": 8434, "credits_remaining": 9942,
|
50
|
+
"credits_billed": 1}, "data": {"units_of_work": 1, "name": "enrollment", "parameters":
|
51
|
+
{"reference_number": "12456", "version": "4.0.0", "payer": {"tax_id": "654456654"},
|
52
|
+
"update_dt": "Wed Mar 26 22:18:47 2014", "deleted": false, "major_version":
|
53
|
+
"4", "subscriber": {"maintenance_type": "Addition", "first_name": "JOHN",
|
54
|
+
"last_name": "DOE", "benefits": [{"maintenance_type": "Addition", "late_enrollment":
|
55
|
+
false, "begin_date": "Sat Jun 1 00:00:00 1996", "benefit_type": "Health",
|
56
|
+
"coordination_of_benefits": [{"status": "Unknown", "group_or_policy_number":
|
57
|
+
"890111", "payer_responsibility": "Primary"}]}, {"maintenance_type": "Addition",
|
58
|
+
"late_enrollment": false, "begin_date": "Sat Jun 1 00:00:00 1996", "benefit_type":
|
59
|
+
"Dental"}, {"maintenance_type": "Addition", "late_enrollment": false, "begin_date":
|
60
|
+
"Sat Jun 1 00:00:00 1996", "benefit_type": "Vision"}], "relationship": "Self",
|
61
|
+
"contacts": [{"communication_type2": "Work Phone Number", "primary_communication_type":
|
62
|
+
"Home Phone Number", "communication_number2": "7172341240", "primary_communication_number":
|
63
|
+
"7172343334"}], "benefit_status": "Active", "gender": "Male", "employment_status":
|
64
|
+
"Full-time", "subscriber_number": "123456789", "group_or_policy_number": "123456001",
|
65
|
+
"maintenance_reason": "Active", "handicapped": false, "eligibility_begin_date":
|
66
|
+
"Thu May 23 00:00:00 1996", "ssn": "123456789", "tobacco_use": false, "member_id":
|
67
|
+
"123456789", "birth_date": "Fri Aug 16 00:00:00 1940", "middle_name": "P",
|
68
|
+
"substance_abuse": false, "address": {"city": "CAMP HILL", "line2": "APT 3G",
|
69
|
+
"county": "CUMBERLAND", "state": "PA", "postal_code": "17011", "line": "100
|
70
|
+
MARKET ST"}}, "correlation_id": "b3648059-40ca-43e5-919b-c0cb22910d80", "insert_dt":
|
71
|
+
"Wed Mar 26 22:18:47 2014", "client_id": "4nhMZTpLxBxmiocveVb5", "purpose":
|
72
|
+
"Original", "trading_partner_id": "MOCKPAYER", "action": "Change", "dependents":
|
73
|
+
[], "sponsor": {"tax_id": "999888777"}}, "remaining_transitions": ["generate",
|
74
|
+
"store", "transmit", "wait", "receive", "process", "complete"], "state": {"name":
|
75
|
+
"scheduled", "title": "Scheduled for next available transmission to Trading
|
76
|
+
Partner"}, "trading_partner_id": "MOCKPAYER", "id": "5391f73756c02c1338283bb9",
|
77
|
+
"transition_path": ["schedule", "generate", "store", "transmit", "wait", "receive",
|
78
|
+
"process", "complete"], "history": [{"record_dt": "2014-06-06T17:15:35.891977",
|
79
|
+
"name": "init", "title": "Initializing"}]}}'
|
83
80
|
http_version:
|
84
|
-
recorded_at:
|
81
|
+
recorded_at: Fri, 06 Jun 2014 17:15:35 GMT
|
85
82
|
recorded_with: VCR 2.9.2
|
data/vcr_cassettes/files.yml
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: http://localhost:5002/api/
|
5
|
+
uri: http://localhost:5002/api/v4/files/
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
8
|
string: "-------------RubyMultipartPost\r\nContent-Disposition: form-data; name=\"file\";
|
@@ -17,13 +17,13 @@ http_interactions:
|
|
17
17
|
Accept:
|
18
18
|
- "*/*"
|
19
19
|
User-Agent:
|
20
|
-
- pokitdok-ruby 0.
|
20
|
+
- pokitdok-ruby 0.4 ruby 2.1.1p76 (2014-02-24 revision 45161) [x86_64-darwin13.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 wRjqVdn8ezPmx5uviVocwL2u1edtJ8g809Tn4Ob5
|
27
27
|
response:
|
28
28
|
status:
|
29
29
|
code: 200
|
@@ -40,18 +40,18 @@ http_interactions:
|
|
40
40
|
Server:
|
41
41
|
- Werkzeug/0.9.4 Python/2.7.3
|
42
42
|
Date:
|
43
|
-
-
|
43
|
+
- Fri, 06 Jun 2014 17:15:35 GMT
|
44
44
|
body:
|
45
45
|
encoding: UTF-8
|
46
|
-
string: '{"meta": {"rate_limit_amount":
|
47
|
-
"processing_time":
|
46
|
+
string: '{"meta": {"rate_limit_amount": 27, "rate_limit_reset": 1402077424,
|
47
|
+
"processing_time": 431, "rate_limit_cap": 8434, "credits_remaining": -28,
|
48
48
|
"credits_billed": 1}, "data": {"units_of_work": 1, "name": "batch file", "remaining_transitions":
|
49
49
|
["process", "complete"], "state": {"name": "queued", "title": "In queue waiting
|
50
|
-
to start"}, "trading_partner_id": "MOCKPAYER", "id": "
|
50
|
+
to start"}, "trading_partner_id": "MOCKPAYER", "id": "5391f73756c02c1338283bb8",
|
51
51
|
"transition_path": ["store", "queue", "process", "complete"], "history": [{"record_dt":
|
52
|
-
"2014-06-
|
53
|
-
"2014-06-
|
52
|
+
"2014-06-06T17:15:35.814205", "name": "init", "title": "Initializing"}, {"record_dt":
|
53
|
+
"2014-06-06T17:15:35.815458", "name": "stored", "title": "Batch transactions
|
54
54
|
stored for later processing"}]}}'
|
55
55
|
http_version:
|
56
|
-
recorded_at:
|
56
|
+
recorded_at: Fri, 06 Jun 2014 17:15:35 GMT
|
57
57
|
recorded_with: VCR 2.9.2
|