pokitdok-ruby 0.2.3

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.
@@ -0,0 +1,41 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://4nhMZTpLxBxmiocveVb5:HUIpG9fFf9Qku9mh0lO50SPSDiju3D9Cjx17oeCN@localhost:5002/oauth2/token
6
+ body:
7
+ encoding: UTF-8
8
+ string: grant_type=client_credentials
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.9.0
12
+ Content-Type:
13
+ - application/x-www-form-urlencoded
14
+ Accept-Encoding:
15
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
16
+ Accept:
17
+ - "*/*"
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ Content-Type:
24
+ - application/json;charset=UTF-8
25
+ Content-Length:
26
+ - '127'
27
+ Pragma:
28
+ - no-cache
29
+ Cache-Control:
30
+ - no-store
31
+ Server:
32
+ - Werkzeug/0.9.4 Python/2.7.3
33
+ Date:
34
+ - Tue, 03 Jun 2014 20:30:49 GMT
35
+ body:
36
+ encoding: UTF-8
37
+ string: '{"access_token": "BR8J2PXhCIVnkwWLRsESQWSI198fztONOGc6Evlf", "token_type":
38
+ "bearer", "expires": 1401831050, "expires_in": 3600}'
39
+ http_version:
40
+ recorded_at: Tue, 03 Jun 2014 20:30:49 GMT
41
+ recorded_with: VCR 2.9.2
@@ -0,0 +1,99 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://localhost:5002/api/v3/claims/
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"app_transaction_id":"00000000001","billing_provider":{"address_line_1":"418
9
+ FARMS DR","city":"BURLINGTON","entity_identifier":"Billing Provider","entity_type":"Non-Person","id_code":"1730240128","id_type":"NPI","last_org_name":"KATIE
10
+ BRADFORD","postal_code":"018033744","provider_code":"Billing","provider_id_code":"133V00000X","provider_id_type":"Provider
11
+ Taxonomy Code","ref":[{"id_code":"587654321","id_type":"Employee Identification
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"}'
21
+ headers:
22
+ User-Agent:
23
+ - pokitdok-ruby 0.2.1 ruby 2.1.1p76 (2014-02-24 revision 45161) [x86_64-darwin13.0]
24
+ Authorization:
25
+ - Bearer BR8J2PXhCIVnkwWLRsESQWSI198fztONOGc6Evlf
26
+ Content-Type:
27
+ - application/json
28
+ Accept-Encoding:
29
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
30
+ Accept:
31
+ - "*/*"
32
+ response:
33
+ status:
34
+ code: 200
35
+ message: OK
36
+ headers:
37
+ Content-Type:
38
+ - text/html; charset=utf-8
39
+ Content-Length:
40
+ - '3664'
41
+ Mimetype:
42
+ - application/json
43
+ Charset:
44
+ - utf-8
45
+ Server:
46
+ - Werkzeug/0.9.4 Python/2.7.3
47
+ Date:
48
+ - Tue, 03 Jun 2014 20:30:49 GMT
49
+ body:
50
+ encoding: UTF-8
51
+ string: '{"meta": {"rate_limit_amount": 28, "rate_limit_reset": 1401829297,
52
+ "processing_time": 9, "rate_limit_cap": 8434, "credits_remaining": 9983, "credits_billed":
53
+ 1}, "data": {"units_of_work": 1, "_type": "PlatformActivityModel", "name":
54
+ "claims", "parameters": {"claim": {"dates": [{"date_value": "Tue Apr 15 00:00:00
55
+ 2014", "date_qualifier": "Onset of Symptom or Illness"}], "facility_code_value":
56
+ "11", "claim_total_amount": {"currency": "USD", "amount": "40.0"}, "health_care_codes":
57
+ [{"health_care_code_1": "BK:0340", "health_care_code_2": "BF:V7389"}], "assignment_code":
58
+ "Assigned", "information_release_code": "Informed Consent", "facility_code_qualifier":
59
+ "B", "benefit_assignment_code": "Yes", "claim_frequency_code": "1", "provider_signature_on_file":
60
+ "Y", "service_lines": [{"medical_service_unit": "Unit", "medical_service_quantity":
61
+ "1.0", "medical_procedure_identifier": "HC:99213", "dates": [{"date_value":
62
+ "Wed Apr 16 00:00:00 2014", "date_qualifier": "Service Date"}], "medical_diagnosis_code":
63
+ "1", "medical_charge_amount": {"currency": "USD", "amount": "40.0"}}], "ref":
64
+ [{"id_type": "Claim Number", "id_code": "1234567890"}], "patient_control_number":
65
+ "26462967"}, "major_version": "3", "transaction_purpose_code": "Original",
66
+ "payer": {"id_code": "HPHC", "entity_identifier": "Payer", "id_type": "Payor
67
+ Identification", "last_org_name": "HARVARD PILGRIM HEALTH CARE", "entity_type":
68
+ "Non-Person"}, "update_dt": "Tue Jun 3 20:30:49 2014", "deleted": false,
69
+ "version": "3.0.0", "transaction_type": "Reporting", "subscriber": {"city":
70
+ "BURLINGTON", "first_name": "TED", "entity_identifier": "Subscriber", "last_org_name":
71
+ "SMITH", "entity_type": "Person", "group_number": "12312-A", "gender_code":
72
+ "Male", "id_code": "HP123456700", "relationship_code": "Self", "is_patient":
73
+ true, "state": "MA", "payer_responsibility": "Primary", "id_type": "Member
74
+ ID", "birth_date": "Sat May 1 00:00:00 1943", "postal_code": "01803", "claim_filing_code":
75
+ "Health Maintenance Organization", "address_line_1": "123 MAIN ST"}, "correlation_id":
76
+ "7c397f0b-4cd2-4455-8c90-b7cef091e92a", "insert_dt": "Tue Jun 3 20:30:49
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"}]}}'
97
+ http_version:
98
+ recorded_at: Tue, 03 Jun 2014 20:30:49 GMT
99
+ recorded_with: VCR 2.9.2
@@ -0,0 +1,131 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://localhost:5002/api/v3/eligibility/
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"trading_partner_id":"MOCKPAYER","member_id":"W34237875729","provider_id":"1467560003","provider_name":"AYA-AY","provider_first_name":"JEROME","provider_type":"Person","member_name":"JOHN
9
+ DOE","member_birth_date":"05-21-1975","service_types":["Health Benefit Plan
10
+ Coverage"]}'
11
+ headers:
12
+ User-Agent:
13
+ - pokitdok-ruby 0.2.1 ruby 2.1.1p76 (2014-02-24 revision 45161) [x86_64-darwin13.0]
14
+ Authorization:
15
+ - Bearer BR8J2PXhCIVnkwWLRsESQWSI198fztONOGc6Evlf
16
+ Content-Type:
17
+ - application/json
18
+ Accept-Encoding:
19
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
20
+ Accept:
21
+ - "*/*"
22
+ response:
23
+ status:
24
+ code: 200
25
+ message: OK
26
+ headers:
27
+ Content-Type:
28
+ - text/html; charset=utf-8
29
+ Content-Length:
30
+ - '7041'
31
+ Mimetype:
32
+ - application/json
33
+ Charset:
34
+ - utf-8
35
+ Server:
36
+ - Werkzeug/0.9.4 Python/2.7.3
37
+ Date:
38
+ - Tue, 03 Jun 2014 20:30:50 GMT
39
+ body:
40
+ encoding: UTF-8
41
+ string: '{"meta": {"rate_limit_amount": 33, "rate_limit_reset": 1401829297,
42
+ "processing_time": 350, "rate_limit_cap": 8434, "credits_remaining": 9975,
43
+ "credits_billed": 1}, "data": {"provider_id": "1467560003", "client_id": "4nhMZTpLxBxmiocveVb5",
44
+ "payer_name": "MOCK PAYER INC", "correlation_id": "e05cfdf6-e23e-4a7e-83e2-a275c1e81f95",
45
+ "member_first_name": "JOHN", "member_name": "JOHN DOE", "valid_request": true,
46
+ "update_dt": "Tue Jun 3 20:30:50 2014", "subscriber": {"first_name": "JOHN",
47
+ "last_name": "DOE", "address": {"city": "SPARTANBURG", "line": "123 MAIN ST",
48
+ "postal_code": "29307", "state": "SC"}, "member_id": "W34237875729", "birth_date":
49
+ "Wed May 21 00:00:00 1975"}, "dependent": {"address": {}}, "version": "3.0.0",
50
+ "provider_name": "JEROME AYA-AY", "provider_first_name": "JEROME", "trading_partner_id":
51
+ "MOCKPAYER", "provider_type": "Person", "_type": "Eligibility", "deleted":
52
+ false, "payer_id": "MOCKPAYER", "coverage": {"service_type_codes": ["98"],
53
+ "service_types": ["Professional (Physician) Visit - Office"], "group_number":
54
+ "088818801000013", "out_of_pocket": [{"messages": [], "in_plan_network": "Y",
55
+ "coverage_level_code": "IND", "coverage_level": "Individual", "benefit_amount":
56
+ {"currency": "USD", "amount": "3000"}}, {"messages": [], "in_plan_network":
57
+ "Y", "coverage_level_code": "IND", "time_period": "Remaining", "coverage_level":
58
+ "Individual", "benefit_amount": {"currency": "USD", "amount": "2983.57"}},
59
+ {"messages": [], "in_plan_network": "Y", "coverage_level_code": "FAM", "coverage_level":
60
+ "Family", "benefit_amount": {"currency": "USD", "amount": "6000"}}, {"messages":
61
+ [], "in_plan_network": "Y", "coverage_level_code": "FAM", "time_period": "Remaining",
62
+ "coverage_level": "Family", "benefit_amount": {"currency": "USD", "amount":
63
+ "5956.09"}}, {"messages": [], "in_plan_network": "N", "coverage_level_code":
64
+ "IND", "coverage_level": "Individual", "benefit_amount": {"currency": "USD",
65
+ "amount": "12500"}}, {"messages": [], "in_plan_network": "N", "coverage_level_code":
66
+ "IND", "time_period": "Remaining", "coverage_level": "Individual", "benefit_amount":
67
+ {"currency": "USD", "amount": "12483.57"}}, {"messages": [], "in_plan_network":
68
+ "N", "coverage_level_code": "FAM", "coverage_level": "Family", "benefit_amount":
69
+ {"currency": "USD", "amount": "25000"}}, {"messages": [{"message": "Unlimited
70
+ Lifetime Benefits"}], "in_plan_network": "N", "coverage_level_code": "FAM",
71
+ "time_period": "Remaining", "coverage_level": "Family", "benefit_amount":
72
+ {"currency": "USD", "amount": "24956.09"}}], "level": "Employee and Spouse",
73
+ "copay": [{"service_type_codes": ["98"], "service_types": ["Professional (Physician)
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
83
+ OFFICE VS,DED INCLUDED IN OOP,GYN VISIT,SPEC OFFICE,SPEC VISIT,PRIMARY OFFICE,PRIME
84
+ CARE VST"}], "in_plan_network": "Y", "eligibility_date": "Tue Jan 1 00:00:00
85
+ 2013", "coverage_level_code": "FAM", "time_period": "Calendar Year", "coverage_level":
86
+ "Family", "benefit_amount": {"currency": "USD", "amount": "6000"}}, {"messages":
87
+ [{"message": "INT MED AND RX"}], "in_plan_network": "Y", "coverage_level_code":
88
+ "FAM", "time_period": "Remaining", "coverage_level": "Family", "benefit_amount":
89
+ {"currency": "USD", "amount": "5956.09"}}, {"messages": [{"message": "INT
90
+ 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": "Y", "eligibility_date": "Tue
92
+ Jan 1 00:00:00 2013", "coverage_level_code": "IND", "time_period": "Calendar
93
+ Year", "coverage_level": "Individual", "benefit_amount": {"currency": "USD",
94
+ "amount": "3000"}}, {"messages": [{"message": "INT MED AND RX"}], "in_plan_network":
95
+ "Y", "coverage_level_code": "IND", "time_period": "Remaining", "coverage_level":
96
+ "Individual", "benefit_amount": {"currency": "USD", "amount": "2983.57"}},
97
+ {"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": "N", "eligibility_date":
99
+ "Tue Jan 1 00:00:00 2013", "coverage_level_code": "FAM", "time_period": "Calendar
100
+ Year", "coverage_level": "Family", "benefit_amount": {"currency": "USD", "amount":
101
+ "12000"}}, {"messages": [{"message": "INT MED AND RX"}], "in_plan_network":
102
+ "N", "coverage_level_code": "FAM", "time_period": "Remaining", "coverage_level":
103
+ "Family", "benefit_amount": {"currency": "USD", "amount": "11956.09"}}, {"messages":
104
+ [{"message": "INT MED AND RX,GYN OFFICE VS,DED INCLUDED IN OOP,GYN VISIT,SPEC
105
+ OFFICE,SPEC VISIT,PRIME CARE VST"}], "in_plan_network": "N", "eligibility_date":
106
+ "Tue Jan 1 00:00:00 2013", "coverage_level_code": "IND", "time_period": "Calendar
107
+ Year", "coverage_level": "Individual", "benefit_amount": {"currency": "USD",
108
+ "amount": "6000"}}, {"messages": [{"message": "INT MED AND RX"}], "in_plan_network":
109
+ "N", "coverage_level_code": "IND", "time_period": "Remaining", "coverage_level":
110
+ "Individual", "benefit_amount": {"currency": "USD", "amount": "5983.57"}}],
111
+ "plan_begin_date": "Fri Feb 15 00:00:00 2013", "eligibility_begin_date": "Wed
112
+ Feb 1 00:00:00 2012", "coinsurance": [{"service_type_codes": ["98"], "service_types":
113
+ ["Professional (Physician) Visit - Office"], "benefit_percent": 0.0, "messages":
114
+ [{"message": "GYN OFFICE VS"}, {"message": "GYN VISIT"}, {"message": "SPEC
115
+ OFFICE"}, {"message": "SPEC VISIT"}, {"message": "PRIMARY OFFICE"}, {"message":
116
+ "PRIME CARE VST"}], "in_plan_network": "Y", "coverage_level_code": "ESP",
117
+ "coverage_level": "Employee and Spouse"}, {"service_type_codes": ["98"], "service_types":
118
+ ["Professional (Physician) Visit - Office"], "benefit_percent": 0.5, "messages":
119
+ [{"message": "GYN OFFICE VS,COINS APPLIES TO OUT OF POCKET"}, {"message":
120
+ "GYN VISIT,COINS APPLIES TO OUT OF POCKET"}, {"message": "SPEC OFFICE,COINS
121
+ APPLIES TO OUT OF POCKET"}, {"message": "SPEC VISIT,COINS APPLIES TO OUT OF
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"}}'
129
+ http_version:
130
+ recorded_at: Tue, 03 Jun 2014 20:30:50 GMT
131
+ recorded_with: VCR 2.9.2
@@ -0,0 +1,85 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://localhost:5002/api/v3/enrollment/
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"action":"Change","client_id":"x12parse","correlation_id":"123456789","deleted":false,"dependents":[],"insert_dt":"Wed
9
+ Mar 26 22:18:47 2014","payer":{"tax_id":"654456654"},"purpose":"Original","reference_number":"12456","sponsor":{"tax_id":"999888777"},"subscriber":{"address":{"city":"CAMP
10
+ HILL","county":"CUMBERLAND","line":"100 MARKET ST","line2":"APT 3G","postal_code":"17011","state":"PA"},"benefit_status":"Active","benefits":[{"begin_date":"Sat
11
+ Jun 1 00:00:00 1996","benefit_type":"Health","coordination_of_benefits":[{"group_or_policy_number":"890111","payer_responsibility":"Primary","status":"Unknown"}],"late_enrollment":false,"maintenance_type":"Addition"},{"begin_date":"Sat
12
+ Jun 1 00:00:00 1996","benefit_type":"Dental","late_enrollment":false,"maintenance_type":"Addition"},{"begin_date":"Sat
13
+ Jun 1 00:00:00 1996","benefit_type":"Vision","late_enrollment":false,"maintenance_type":"Addition"}],"birth_date":"Fri
14
+ Aug 16 00:00:00 1940","contacts":[{"communication_number2":"7172341240","communication_type2":"Work
15
+ Phone Number","primary_communication_number":"7172343334","primary_communication_type":"Home
16
+ Phone Number"}],"eligibility_begin_date":"Thu May 23 00:00:00 1996","employment_status":"Full-time","first_name":"JOHN","gender":"Male","group_or_policy_number":"123456001","handicapped":false,"last_name":"DOE","maintenance_reason":"Active","maintenance_type":"Addition","member_id":"123456789","middle_name":"P","relationship":"Self","ssn":"123456789","subscriber_number":"123456789","substance_abuse":false,"tobacco_use":false},"trading_partner_id":"MOCKPAYER","update_dt":"Wed
17
+ Mar 26 22:18:47 2014"}'
18
+ headers:
19
+ User-Agent:
20
+ - pokitdok-ruby 0.2.1 ruby 2.1.1p76 (2014-02-24 revision 45161) [x86_64-darwin13.0]
21
+ Authorization:
22
+ - Bearer BR8J2PXhCIVnkwWLRsESQWSI198fztONOGc6Evlf
23
+ Content-Type:
24
+ - application/json
25
+ Accept-Encoding:
26
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
27
+ Accept:
28
+ - "*/*"
29
+ response:
30
+ status:
31
+ code: 200
32
+ message: OK
33
+ headers:
34
+ Content-Type:
35
+ - text/html; charset=utf-8
36
+ Content-Length:
37
+ - '2784'
38
+ Mimetype:
39
+ - application/json
40
+ Charset:
41
+ - utf-8
42
+ Server:
43
+ - Werkzeug/0.9.4 Python/2.7.3
44
+ Date:
45
+ - Tue, 03 Jun 2014 20:30:49 GMT
46
+ body:
47
+ encoding: UTF-8
48
+ string: '{"meta": {"rate_limit_amount": 29, "rate_limit_reset": 1401829297,
49
+ "processing_time": 8, "rate_limit_cap": 8434, "credits_remaining": 9955, "credits_billed":
50
+ 1}, "data": {"units_of_work": 1, "_type": "PlatformActivityModel", "name":
51
+ "enrollment", "parameters": {"reference_number": "12456", "major_version":
52
+ "3", "client_id": "4nhMZTpLxBxmiocveVb5", "payer": {"tax_id": "654456654"},
53
+ "update_dt": "Wed Mar 26 22:18:47 2014", "deleted": false, "version": "3.0.0",
54
+ "subscriber": {"maintenance_type": "Addition", "first_name": "JOHN", "last_name":
55
+ "DOE", "benefits": [{"maintenance_type": "Addition", "late_enrollment": false,
56
+ "begin_date": "Sat Jun 1 00:00:00 1996", "benefit_type": "Health", "coordination_of_benefits":
57
+ [{"status": "Unknown", "group_or_policy_number": "890111", "payer_responsibility":
58
+ "Primary"}]}, {"maintenance_type": "Addition", "late_enrollment": false, "begin_date":
59
+ "Sat Jun 1 00:00:00 1996", "benefit_type": "Dental"}, {"maintenance_type":
60
+ "Addition", "late_enrollment": false, "begin_date": "Sat Jun 1 00:00:00 1996",
61
+ "benefit_type": "Vision"}], "relationship": "Self", "contacts": [{"communication_type2":
62
+ "Work Phone Number", "primary_communication_type": "Home Phone Number", "communication_number2":
63
+ "7172341240", "primary_communication_number": "7172343334"}], "benefit_status":
64
+ "Active", "gender": "Male", "employment_status": "Full-time", "subscriber_number":
65
+ "123456789", "group_or_policy_number": "123456001", "maintenance_reason":
66
+ "Active", "handicapped": false, "eligibility_begin_date": "Thu May 23 00:00:00
67
+ 1996", "ssn": "123456789", "tobacco_use": false, "member_id": "123456789",
68
+ "birth_date": "Fri Aug 16 00:00:00 1940", "middle_name": "P", "substance_abuse":
69
+ false, "address": {"city": "CAMP HILL", "line2": "APT 3G", "county": "CUMBERLAND",
70
+ "state": "PA", "postal_code": "17011", "line": "100 MARKET ST"}}, "correlation_id":
71
+ "91590ade-a75c-4a39-9b13-598867806fd2", "insert_dt": "Wed Mar 26 22:18:47
72
+ 2014", "purpose": "Original", "trading_partner_id": "MOCKPAYER", "action":
73
+ "Change", "dependents": [], "sponsor": {"tax_id": "999888777"}}, "update_dt":
74
+ "Tue Jun 3 20:30:49 2014", "remaining_transitions": ["generate", "store",
75
+ "transmit", "wait", "receive", "process", "complete"], "major_version": "3",
76
+ "state": {"name": "pending", "title": "Pending Batch Transmission to Trading
77
+ Partner"}, "deleted": false, "correlation_id": "91590ade-a75c-4a39-9b13-598867806fd2",
78
+ "version": "3.0.0", "client_id": "4nhMZTpLxBxmiocveVb5", "trading_partner_id":
79
+ "MOCKPAYER", "_id": "538e307956c02c5ec974954c", "insert_dt": "Tue Jun 3 20:30:49
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"}]}}'
83
+ http_version:
84
+ recorded_at: Tue, 03 Jun 2014 20:30:49 GMT
85
+ recorded_with: VCR 2.9.2
@@ -0,0 +1,57 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://localhost:5002/api/v3/files/
6
+ body:
7
+ encoding: UTF-8
8
+ string: "-------------RubyMultipartPost\r\nContent-Disposition: form-data; name=\"file\";
9
+ filename=\"sample.270\"\r\nContent-Length: 2930\r\nContent-Type: application/EDI-X12\r\nContent-Transfer-Encoding:
10
+ binary\r\n\r\nISA*00* *00* *30*SENDER *30*RECEIVER
11
+ \ *140305*1953*^*00501*000000905*0*T*:~\nGS*HS*SENDER_ID*RECEIVER_ID*20140305*1953*CONTROL_ID*X*005010X279A1~\nST*270*0001*005010X279A1~\nBHT*0022*13*813785794*20140305*1953~\nHL*1**20*1~\nNM1*PR*2*MOCKPAYER*****PI*MOCKPAYER~\nHL*2*1*21*1~\nNM1*1P*2*Wuckert
12
+ Inc*****XX*581603684~\nHL*3*2*22*0~\nTRN*1*181399807*9324422845~\nNM1*IL*1*Tromp*Jerod****MI*545943979~\nDMG*D8*19960507~\nDTP*291*D8*20140305~\nEQ*30~\nHL*4*2*22*0~\nTRN*1*611822238*9324422845~\nNM1*IL*1*Walker*Hassan****MI*773415451~\nDMG*D8*19960613~\nDTP*291*D8*20140305~\nEQ*30~\nHL*5*2*22*0~\nTRN*1*530994264*9324422845~\nNM1*IL*1*Johns*Cathrine****MI*505837362~\nDMG*D8*19881001~\nDTP*291*D8*20140305~\nEQ*30~\nHL*6*2*22*0~\nTRN*1*145769779*9324422845~\nNM1*IL*1*Durgan*Stephon****MI*204791243~\nDMG*D8*19830509~\nDTP*291*D8*20140305~\nEQ*30~\nHL*7*2*22*0~\nTRN*1*853276515*9324422845~\nNM1*IL*1*Erdman*Bartholome****MI*994176438~\nDMG*D8*19930513~\nDTP*291*D8*20140305~\nEQ*30~\nHL*8*2*22*0~\nTRN*1*392506326*9324422845~\nNM1*IL*1*Padberg*Kaci****MI*331914222~\nDMG*D8*19920730~\nDTP*291*D8*20140305~\nEQ*30~\nHL*9*2*22*0~\nTRN*1*669106647*9324422845~\nNM1*IL*1*Donnelly*Kyleigh****MI*461763996~\nDMG*D8*19890712~\nDTP*291*D8*20140305~\nEQ*30~\nHL*10*2*22*0~\nTRN*1*915888295*9324422845~\nNM1*IL*1*Monahan*Jimmie****MI*315531994~\nDMG*D8*19950414~\nDTP*291*D8*20140305~\nEQ*30~\nHL*11*2*22*0~\nTRN*1*924598474*9324422845~\nNM1*IL*1*Bednar*Markus****MI*674957204~\nDMG*D8*19780109~\nDTP*291*D8*20140305~\nEQ*30~\nHL*12*2*22*0~\nTRN*1*218563674*9324422845~\nNM1*IL*1*McCullough*Leland****MI*789318226~\nDMG*D8*19800202~\nDTP*291*D8*20140305~\nEQ*30~\nHL*13*2*22*0~\nTRN*1*764225581*9324422845~\nNM1*IL*1*Macejkovic*Norwood****MI*605486216~\nDMG*D8*19890726~\nDTP*291*D8*20140305~\nEQ*30~\nHL*14*2*22*0~\nTRN*1*843675248*9324422845~\nNM1*IL*1*Ortiz*Keyon****MI*178470414~\nDMG*D8*19920126~\nDTP*291*D8*20140305~\nEQ*30~\nHL*15*2*22*0~\nTRN*1*575530276*9324422845~\nNM1*IL*1*Doyle*Olin****MI*727454392~\nDMG*D8*19890922~\nDTP*291*D8*20140305~\nEQ*30~\nHL*16*2*22*0~\nTRN*1*583253119*9324422845~\nNM1*IL*1*Doyle*Greg****MI*302952193~\nDMG*D8*19890228~\nDTP*291*D8*20140305~\nEQ*30~\nHL*17*2*22*0~\nTRN*1*494693024*9324422845~\nNM1*IL*1*Brekke*Nathanial****MI*228065686~\nDMG*D8*19910131~\nDTP*291*D8*20140305~\nEQ*30~\nHL*18*2*22*0~\nTRN*1*654387679*9324422845~\nNM1*IL*1*Herzog*Jayme****MI*653618078~\nDMG*D8*19871017~\nDTP*291*D8*20140305~\nEQ*30~\nHL*19*2*22*0~\nTRN*1*864981376*9324422845~\nNM1*IL*1*Ebert*Heaven****MI*548879156~\nDMG*D8*19930416~\nDTP*291*D8*20140305~\nEQ*30~\nHL*20*2*22*0~\nTRN*1*618055454*9324422845~\nNM1*IL*1*Cummerata*Hector****MI*688306042~\nDMG*D8*19780613~\nDTP*291*D8*20140305~\nEQ*30~\nHL*21*2*22*0~\nTRN*1*608414882*9324422845~\nNM1*IL*1*Kerluke*Enola****MI*687416329~\nDMG*D8*19960902~\nDTP*291*D8*20140305~\nEQ*30~\nHL*22*2*22*0~\nTRN*1*568364627*9324422845~\nNM1*IL*1*Wehner*Alyce****MI*728313788~\nDMG*D8*19701130~\nDTP*291*D8*20140305~\nEQ*30~\nSE*127*0001~\nGE*1*CONTROL_ID~\nIEA*1*000000905~\r\n-------------RubyMultipartPost\r\nContent-Disposition:
13
+ form-data; name=\"trading_partner_id\"\r\n\r\nMOCKPAYER\r\n-------------RubyMultipartPost--\r\n\r\n"
14
+ headers:
15
+ Accept-Encoding:
16
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
17
+ Accept:
18
+ - "*/*"
19
+ User-Agent:
20
+ - pokitdok-ruby 0.2.1 ruby 2.1.1p76 (2014-02-24 revision 45161) [x86_64-darwin13.0]
21
+ Content-Type:
22
+ - multipart/form-data; boundary=-----------RubyMultipartPost
23
+ Content-Length:
24
+ - '3266'
25
+ Authorization:
26
+ - Bearer BR8J2PXhCIVnkwWLRsESQWSI198fztONOGc6Evlf
27
+ response:
28
+ status:
29
+ code: 200
30
+ message: OK
31
+ headers:
32
+ Content-Type:
33
+ - text/html; charset=utf-8
34
+ Content-Length:
35
+ - '683'
36
+ Mimetype:
37
+ - application/json
38
+ Charset:
39
+ - utf-8
40
+ Server:
41
+ - Werkzeug/0.9.4 Python/2.7.3
42
+ Date:
43
+ - Tue, 03 Jun 2014 20:32:29 GMT
44
+ body:
45
+ encoding: UTF-8
46
+ string: '{"meta": {"rate_limit_amount": 39, "rate_limit_reset": 1401829297,
47
+ "processing_time": 458, "rate_limit_cap": 8434, "credits_remaining": -21,
48
+ "credits_billed": 1}, "data": {"units_of_work": 1, "name": "batch file", "remaining_transitions":
49
+ ["process", "complete"], "state": {"name": "queued", "title": "In queue waiting
50
+ to start"}, "trading_partner_id": "MOCKPAYER", "id": "538e30dd56c02c5ec9749555",
51
+ "transition_path": ["store", "queue", "process", "complete"], "history": [{"record_dt":
52
+ "2014-06-03T20:32:29.447696", "name": "init", "title": "Initializing"}, {"record_dt":
53
+ "2014-06-03T20:32:29.449003", "name": "stored", "title": "Batch transactions
54
+ stored for later processing"}]}}'
55
+ http_version:
56
+ recorded_at: Tue, 03 Jun 2014 20:32:29 GMT
57
+ recorded_with: VCR 2.9.2
@@ -0,0 +1,42 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://localhost:5002/api/v3/prices/insurance?cpt_code=12345&zip_code=54321
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - pokitdok-ruby 0.2.1 ruby 2.1.1p76 (2014-02-24 revision 45161) [x86_64-darwin13.0]
12
+ Authorization:
13
+ - Bearer BR8J2PXhCIVnkwWLRsESQWSI198fztONOGc6Evlf
14
+ Accept-Encoding:
15
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
16
+ Accept:
17
+ - "*/*"
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ Content-Type:
24
+ - text/html; charset=utf-8
25
+ Content-Length:
26
+ - '232'
27
+ Mimetype:
28
+ - application/json
29
+ Charset:
30
+ - utf-8
31
+ Server:
32
+ - Werkzeug/0.9.4 Python/2.7.3
33
+ Date:
34
+ - Tue, 03 Jun 2014 20:30:49 GMT
35
+ body:
36
+ encoding: UTF-8
37
+ string: '{"meta": {"rate_limit_amount": 30, "rate_limit_reset": 1401829297,
38
+ "processing_time": 6, "rate_limit_cap": 8434, "credits_remaining": 9959, "credits_billed":
39
+ 1}, "data": {"errors": "No price range was found for the given criteria"}}'
40
+ http_version:
41
+ recorded_at: Tue, 03 Jun 2014 20:30:49 GMT
42
+ recorded_with: VCR 2.9.2