pokitdok-ruby 0.2.3 → 0.3.0

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.
@@ -31,11 +31,11 @@ http_interactions:
31
31
  Server:
32
32
  - Werkzeug/0.9.4 Python/2.7.3
33
33
  Date:
34
- - Tue, 03 Jun 2014 20:30:49 GMT
34
+ - Fri, 06 Jun 2014 17:15:35 GMT
35
35
  body:
36
36
  encoding: UTF-8
37
- string: '{"access_token": "BR8J2PXhCIVnkwWLRsESQWSI198fztONOGc6Evlf", "token_type":
38
- "bearer", "expires": 1401831050, "expires_in": 3600}'
37
+ string: '{"access_token": "wRjqVdn8ezPmx5uviVocwL2u1edtJ8g809Tn4Ob5", "token_type":
38
+ "bearer", "expires": 1402078535, "expires_in": 3600}'
39
39
  http_version:
40
- recorded_at: Tue, 03 Jun 2014 20:30:49 GMT
40
+ recorded_at: Fri, 06 Jun 2014 17:15:35 GMT
41
41
  recorded_with: VCR 2.9.2
@@ -2,27 +2,18 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: http://localhost:5002/api/v3/claims/
5
+ uri: http://localhost:5002/api/v4/claims/
6
6
  body:
7
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"}'
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.2.1 ruby 2.1.1p76 (2014-02-24 revision 45161) [x86_64-darwin13.0]
14
+ - pokitdok-ruby 0.4 ruby 2.1.1p76 (2014-02-24 revision 45161) [x86_64-darwin13.0]
24
15
  Authorization:
25
- - Bearer BR8J2PXhCIVnkwWLRsESQWSI198fztONOGc6Evlf
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
- - '3664'
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
- - Tue, 03 Jun 2014 20:30:49 GMT
39
+ - Fri, 06 Jun 2014 17:15:36 GMT
49
40
  body:
50
41
  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"}]}}'
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: Tue, 03 Jun 2014 20:30:49 GMT
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/v3/eligibility/
5
+ uri: http://localhost:5002/api/v4/eligibility/
6
6
  body:
7
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"]}'
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.2.1 ruby 2.1.1p76 (2014-02-24 revision 45161) [x86_64-darwin13.0]
11
+ - pokitdok-ruby 0.4 ruby 2.1.1p76 (2014-02-24 revision 45161) [x86_64-darwin13.0]
14
12
  Authorization:
15
- - Bearer BR8J2PXhCIVnkwWLRsESQWSI198fztONOGc6Evlf
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
- - '7041'
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
- - Tue, 03 Jun 2014 20:30:50 GMT
36
+ - Fri, 06 Jun 2014 17:15:36 GMT
39
37
  body:
40
38
  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
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": "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":
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": "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"}},
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": "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"}}'
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: Tue, 03 Jun 2014 20:30:50 GMT
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/v3/enrollment/
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.2.1 ruby 2.1.1p76 (2014-02-24 revision 45161) [x86_64-darwin13.0]
20
+ - pokitdok-ruby 0.4 ruby 2.1.1p76 (2014-02-24 revision 45161) [x86_64-darwin13.0]
21
21
  Authorization:
22
- - Bearer BR8J2PXhCIVnkwWLRsESQWSI198fztONOGc6Evlf
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
- - '2784'
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
- - Tue, 03 Jun 2014 20:30:49 GMT
45
+ - Fri, 06 Jun 2014 17:15:35 GMT
46
46
  body:
47
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"}]}}'
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: Tue, 03 Jun 2014 20:30:49 GMT
81
+ recorded_at: Fri, 06 Jun 2014 17:15:35 GMT
85
82
  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/v3/files/
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.2.1 ruby 2.1.1p76 (2014-02-24 revision 45161) [x86_64-darwin13.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 BR8J2PXhCIVnkwWLRsESQWSI198fztONOGc6Evlf
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
- - Tue, 03 Jun 2014 20:32:29 GMT
43
+ - Fri, 06 Jun 2014 17:15:35 GMT
44
44
  body:
45
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,
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": "538e30dd56c02c5ec9749555",
50
+ to start"}, "trading_partner_id": "MOCKPAYER", "id": "5391f73756c02c1338283bb8",
51
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
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: Tue, 03 Jun 2014 20:32:29 GMT
56
+ recorded_at: Fri, 06 Jun 2014 17:15:35 GMT
57
57
  recorded_with: VCR 2.9.2