diff --git a/build/resources/test/betamax/tapes/activities.yaml b/build/resources/test/betamax/tapes/activities.yaml new file mode 100644 index 0000000..515f5ba --- /dev/null +++ b/build/resources/test/betamax/tapes/activities.yaml @@ -0,0 +1,116 @@ +!tape +name: activities +interactions: +- recorded: 2014-11-14T16:48:20.398Z + request: + method: POST + uri: http://me.pokitdok.com:5002/oauth2/token + headers: + Accept-Encoding: gzip,deflate + Authorization: Basic a2NpcVhhUDFnSGQ3Q3BCa2FJcEQ6NVc0WW1tZVFrelJld3U2NGNZSE5reEZ1a0FZZXdGM2lab01nY29XMg== + Content-Length: '29' + Content-Type: application/x-www-form-urlencoded + Host: me.pokitdok.com:5002 + Proxy-Connection: Keep-Alive + User-Agent: pokitdok-java 0.6.1 jvm version 1.8.0_25 + body: grant_type=client_credentials + response: + status: 200 + headers: + Cache-Control: no-store + Content-Type: application/json;charset=UTF-8 + Date: Fri, 14 Nov 2014 16:48:20 GMT + Pragma: no-cache + Server: Werkzeug/0.9.4 Python/2.7.3 + body: '{"access_token": "zlCyYYnagW9fbOcdGN4kZAEe5mpQDyM4K2120HIP", "token_type": "bearer", "expires": 1415987300, "expires_in": 3600}' +- recorded: 2014-11-14T16:48:20.472Z + request: + method: GET + uri: http://me.pokitdok.com:5002/api/v4/activities + headers: + Accept-Encoding: gzip,deflate + Authorization: Bearer zlCyYYnagW9fbOcdGN4kZAEe5mpQDyM4K2120HIP + Host: me.pokitdok.com:5002 + Proxy-Connection: Keep-Alive + User-Agent: pokitdok-java 0.6.1 jvm version 1.8.0_25 + response: + status: 200 + headers: + Content-Type: text/html; charset=utf-8 + Date: Fri, 14 Nov 2014 16:48:20 GMT + Server: Werkzeug/0.9.4 Python/2.7.3 + charset: utf-8 + mimetype: application/json + body: '{"meta": {"rate_limit_amount": 22, "rate_limit_reset": 1415986686, "application_mode": "test", "processing_time": 26, "rate_limit_cap": 1000, "result_count": 208, "activity_id": "5466325456c02c26308ca855", "next": "http://me.pokitdok.com:5002/api/v4/activities/?offset=20"}, + "data": [{"units_of_work": 1, "name": "plans", "parameters": {"state": "TX", "plan_type": "PPO"}, "state": {"name": "completed", "title": "Completed"}, "trading_partner_id": "PokitDok", "id": "5462326756c02c46668a0999", "transition_path": ["process", "complete"], + "history": [{"record_dt": "2014-11-11T15:59:35.572000", "name": "init", "title": "Initializing"}, {"record_dt": "2014-11-11T15:59:35.574000", "name": "processing", "title": "Processing transactions"}]}, {"units_of_work": 1, "name": "providers", "parameters": + {"npi": "1467560003"}, "state": {"name": "completed", "title": "Completed"}, "trading_partner_id": "PokitDok", "id": "54623c1356c02c48f48a0999", "transition_path": ["process", "complete"], "history": [{"record_dt": "2014-11-11T16:40:51.226000", "name": + "init", "title": "Initializing"}, {"record_dt": "2014-11-11T16:40:51.227000", "name": "processing", "title": "Processing transactions"}]}, {"units_of_work": 1, "name": "cash_prices", "parameters": {"cpt_code": "87799", "zip_code": "75201"}, "state": {"name": + "completed", "title": "Completed"}, "trading_partner_id": "PokitDok", "id": "54623c1256c02c48ef8a0999", "transition_path": ["process", "complete"], "history": [{"record_dt": "2014-11-11T16:40:50.104000", "name": "init", "title": "Initializing"}, {"record_dt": + "2014-11-11T16:40:50.107000", "name": "processing", "title": "Processing transactions"}]}, {"units_of_work": 1, "name": "insurance_prices", "parameters": {"cpt_code": "87799", "zip_code": "29403"}, "state": {"name": "completed", "title": "Completed"}, + "trading_partner_id": "PokitDok", "id": "54623c1256c02c48f18a0999", "transition_path": ["process", "complete"], "history": [{"record_dt": "2014-11-11T16:40:50.663000", "name": "init", "title": "Initializing"}, {"record_dt": "2014-11-11T16:40:50.665000", + "name": "processing", "title": "Processing transactions"}]}, {"units_of_work": 1, "name": "activities", "state": {"name": "completed", "title": "Completed"}, "trading_partner_id": "PokitDok", "id": "54623c1556c02c48fe8a0999", "transition_path": ["process", + "complete"], "history": [{"record_dt": "2014-11-11T16:40:53.642000", "name": "init", "title": "Initializing"}, {"record_dt": "2014-11-11T16:40:53.652000", "name": "processing", "title": "Processing transactions"}]}, {"units_of_work": 1, "name": "payers", + "state": {"name": "completed", "title": "Completed"}, "trading_partner_id": "PokitDok", "id": "54623c1656c02c49018a0999", "transition_path": ["process", "complete"], "history": [{"record_dt": "2014-11-11T16:40:54.219000", "name": "init", "title": "Initializing"}, + {"record_dt": "2014-11-11T16:40:54.226000", "name": "processing", "title": "Processing transactions"}]}, {"units_of_work": 1, "name": "tradingpartners", "state": {"name": "completed", "title": "Completed"}, "trading_partner_id": "PokitDok", "id": "54623c1656c02c49038a0999", + "transition_path": ["process", "complete"], "history": [{"record_dt": "2014-11-11T16:40:54.785000", "name": "init", "title": "Initializing"}, {"record_dt": "2014-11-11T16:40:54.789000", "name": "processing", "title": "Processing transactions"}]}, {"units_of_work": + 1, "name": "plans", "state": {"name": "completed", "title": "Completed"}, "trading_partner_id": "PokitDok", "id": "54623c1756c02c49098a0999", "transition_path": ["process", "complete"], "history": [{"record_dt": "2014-11-11T16:40:55.909000", "name": "init", + "title": "Initializing"}, {"record_dt": "2014-11-11T16:40:55.911000", "name": "processing", "title": "Processing transactions"}]}, {"units_of_work": 1, "name": "tradingpartners", "parameters": {"id": "MOCKPAYER"}, "state": {"name": "completed", "title": + "Completed"}, "trading_partner_id": "PokitDok", "id": "54623c1756c02c49068a0999", "transition_path": ["process", "complete"], "history": [{"record_dt": "2014-11-11T16:40:55.346000", "name": "init", "title": "Initializing"}, {"record_dt": "2014-11-11T16:40:55.348000", + "name": "processing", "title": "Processing transactions"}]}, {"units_of_work": 1, "name": "providers", "parameters": {"npi": "1467560003"}, "state": {"name": "completed", "title": "Completed"}, "trading_partner_id": "PokitDok", "id": "54623d4456c02c495f8a0999", + "transition_path": ["process", "complete"], "history": [{"record_dt": "2014-11-11T16:45:56.018000", "name": "init", "title": "Initializing"}, {"record_dt": "2014-11-11T16:45:56.019000", "name": "processing", "title": "Processing transactions"}]}, {"units_of_work": + 1, "name": "plans", "parameters": {"state": "TX", "plan_type": "PPO"}, "state": {"name": "completed", "title": "Completed"}, "trading_partner_id": "PokitDok", "id": "54623c1856c02c490c8a0999", "transition_path": ["process", "complete"], "history": [{"record_dt": + "2014-11-11T16:40:56.475000", "name": "init", "title": "Initializing"}, {"record_dt": "2014-11-11T16:40:56.476000", "name": "processing", "title": "Processing transactions"}]}, {"units_of_work": 1, "name": "eligibility", "parameters": {"service_types": + ["health_benefit_plan_coverage"], "trading_partner_id": "MOCKPAYER", "payer": {"id": "MOCKPAYER", "name": "Mockpayer For Testing"}, "member": {"birth_date": "1970-01-01", "first_name": "Jane", "last_name": "Doe", "id": "W000000000"}, "correlation_id": + "f7c2c4a2-7846-4f8d-8fbf-d9677b17d4c7", "client_id": "kciqXaP1gHd7CpBkaIpD", "provider": {"first_name": "JEROME", "last_name": "AYA-AY", "npi": "1467560003"}, "async": false, "transaction_code": "request"}, "state": {"name": "completed", "title": "Completed"}, + "result": {"service_types": ["professional_physician_visit_office"], "client_id": "kciqXaP1gHd7CpBkaIpD", "payer": {"id": "MOCKPAYER", "name": "MOCK PAYER INC"}, "summary": {"deductible": {"individual": {"in_network": {"applied": {"currency": "USD", "amount": + "16.43"}, "limit": {"currency": "USD", "amount": "3000"}, "remaining": {"currency": "USD", "amount": "2983.57"}}, "out_of_network": {"applied": {"currency": "USD", "amount": "16.43"}, "limit": {"currency": "USD", "amount": "6000"}, "remaining": {"currency": + "USD", "amount": "5983.57"}}}, "family": {"in_network": {"applied": {"currency": "USD", "amount": "43.91"}, "limit": {"currency": "USD", "amount": "6000"}, "remaining": {"currency": "USD", "amount": "5956.09"}}, "out_of_network": {"applied": {"currency": + "USD", "amount": "43.91"}, "limit": {"currency": "USD", "amount": "12000"}, "remaining": {"currency": "USD", "amount": "11956.09"}}}}}, "subscriber": {"birth_date": "1970-01-01", "first_name": "Jane", "last_name": "Doe", "id": "W000000000", "address": + {"city": "SPARTANBURG", "state": "SC", "zipcode": "29307", "address_lines": ["123 MAIN ST"]}}, "correlation_id": "f7c2c4a2-7846-4f8d-8fbf-d9677b17d4c7", "trading_partner_id": "MOCKPAYER", "provider": {"first_name": "JEROME", "last_name": "JEROME AYA-AY", + "npi": "1467560003"}, "coverage": {"service_types": ["professional_physician_visit_office"], "group_number": "088818801000013", "out_of_pocket": [{"in_plan_network": "yes", "benefit_amount": {"currency": "USD", "amount": "3000"}, "coverage_level": "individual"}, + {"in_plan_network": "yes", "benefit_amount": {"currency": "USD", "amount": "2983.57"}, "coverage_level": "individual", "time_period": "remaining"}, {"in_plan_network": "yes", "benefit_amount": {"currency": "USD", "amount": "6000"}, "coverage_level": "family"}, + {"in_plan_network": "yes", "benefit_amount": {"currency": "USD", "amount": "5956.09"}, "coverage_level": "family", "time_period": "remaining"}, {"in_plan_network": "no", "benefit_amount": {"currency": "USD", "amount": "12500"}, "coverage_level": "individual"}, + {"in_plan_network": "no", "benefit_amount": {"currency": "USD", "amount": "12483.57"}, "coverage_level": "individual", "time_period": "remaining"}, {"in_plan_network": "no", "benefit_amount": {"currency": "USD", "amount": "25000"}, "coverage_level": "family"}, + {"in_plan_network": "no", "benefit_amount": {"currency": "USD", "amount": "24956.09"}, "coverage_level": "family", "messages": [{"message": "Unlimited Lifetime Benefits"}], "time_period": "remaining"}], "level": "employee_and_spouse", "copay": [{"in_plan_network": + "yes", "service_types": ["professional_physician_visit_office"], "coverage_level": "employee_and_spouse", "messages": [{"message": "PRIMARY OFFICE"}]}, {"in_plan_network": "not_applicable", "service_types": ["professional_physician_visit_office"], "coverage_level": + "employee_and_spouse", "messages": [{"message": "GYN OFFICE VS"}, {"message": "GYN VISIT"}, {"message": "SPEC OFFICE"}, {"message": "SPEC VISIT"}, {"message": "PRIME CARE VST"}, {"message": "Plan Requires PreCert"}, {"message": "Commercial"}, {"message": + "Plan includes NAP"}, {"message": "Pre-Existing may apply"}]}], "deductibles": [{"service_types": ["health_benefit_plan_coverage"], "messages": [{"message": "INT MED AND RX,GYN OFFICE VS,DED INCLUDED IN OOP,GYN VISIT,SPEC OFFICE,SPEC VISIT,PRIMARY OFFICE,PRIME + CARE VST"}], "in_plan_network": "yes", "eligibility_date": "2013-01-01", "time_period": "calendar_year", "coverage_level": "family", "benefit_amount": {"currency": "USD", "amount": "6000"}}, {"service_types": ["health_benefit_plan_coverage"], "messages": + [{"message": "INT MED AND RX"}], "in_plan_network": "yes", "time_period": "remaining", "coverage_level": "family", "benefit_amount": {"currency": "USD", "amount": "5956.09"}}, {"service_types": ["health_benefit_plan_coverage"], "messages": [{"message": + "INT MED AND RX,GYN OFFICE VS,DED INCLUDED IN OOP,GYN VISIT,SPEC OFFICE,SPEC VISIT,PRIMARY OFFICE,PRIME CARE VST"}], "in_plan_network": "yes", "eligibility_date": "2013-01-01", "time_period": "calendar_year", "coverage_level": "individual", "benefit_amount": + {"currency": "USD", "amount": "3000"}}, {"service_types": ["health_benefit_plan_coverage"], "messages": [{"message": "INT MED AND RX"}], "in_plan_network": "yes", "time_period": "remaining", "coverage_level": "individual", "benefit_amount": {"currency": + "USD", "amount": "2983.57"}}, {"service_types": ["health_benefit_plan_coverage"], "messages": [{"message": "INT MED AND RX,GYN OFFICE VS,DED INCLUDED IN OOP,GYN VISIT,SPEC OFFICE,SPEC VISIT,PRIME CARE VST"}], "in_plan_network": "no", "eligibility_date": + "2013-01-01", "time_period": "calendar_year", "coverage_level": "family", "benefit_amount": {"currency": "USD", "amount": "12000"}}, {"service_types": ["health_benefit_plan_coverage"], "messages": [{"message": "INT MED AND RX"}], "in_plan_network": "no", + "time_period": "remaining", "coverage_level": "family", "benefit_amount": {"currency": "USD", "amount": "11956.09"}}, {"service_types": ["health_benefit_plan_coverage"], "messages": [{"message": "INT MED AND RX,GYN OFFICE VS,DED INCLUDED IN OOP,GYN VISIT,SPEC + OFFICE,SPEC VISIT,PRIME CARE VST"}], "in_plan_network": "no", "eligibility_date": "2013-01-01", "time_period": "calendar_year", "coverage_level": "individual", "benefit_amount": {"currency": "USD", "amount": "6000"}}, {"service_types": ["health_benefit_plan_coverage"], + "messages": [{"message": "INT MED AND RX"}], "in_plan_network": "no", "time_period": "remaining", "coverage_level": "individual", "benefit_amount": {"currency": "USD", "amount": "5983.57"}}], "plan_begin_date": "2013-02-15", "eligibility_begin_date": "2012-02-01", + "coinsurance": [{"benefit_percent": 0.0, "service_types": ["professional_physician_visit_office"], "coverage_level": "employee_and_spouse", "messages": [{"message": "GYN OFFICE VS"}, {"message": "GYN VISIT"}, {"message": "SPEC OFFICE"}, {"message": "SPEC + VISIT"}, {"message": "PRIMARY OFFICE"}, {"message": "PRIME CARE VST"}], "in_plan_network": "yes"}, {"benefit_percent": 0.5, "service_types": ["professional_physician_visit_office"], "coverage_level": "employee_and_spouse", "messages": [{"message": "GYN + OFFICE VS,COINS APPLIES TO OUT OF POCKET"}, {"message": "GYN VISIT,COINS APPLIES TO OUT OF POCKET"}, {"message": "SPEC OFFICE,COINS APPLIES TO OUT OF POCKET"}, {"message": "SPEC VISIT,COINS APPLIES TO OUT OF POCKET"}, {"message": "PRIME CARE VST,COINS + APPLIES TO OUT OF POCKET"}], "in_plan_network": "no"}], "group_description": "MOCK INDIVIDUAL ADVANTAGE PLAN", "plan_number": "0888188", "service_date": "2013-08-10"}, "valid_request": true}, "trading_partner_id": "MOCKPAYER", "id": "54623c1356c02c48f68a0999", + "transition_path": ["generate", "transmit", "wait", "receive", "process", "complete"], "history": [{"record_dt": "2014-11-11T16:40:51.781000", "name": "init", "title": "Initializing"}, {"record_dt": "2014-11-11T16:40:51.842000", "name": "generating", "title": + "Generating transactions"}, {"record_dt": "2014-11-11T16:40:51.843000", "name": "transmitting", "title": "Transmitting transactions to Trading Partner"}, {"record_dt": "2014-11-11T16:40:51.845000", "name": "waiting", "title": "Waiting on Trading Partner + Response"}, {"record_dt": "2014-11-11T16:40:51.847000", "name": "receiving", "title": "Receiving transactions from Trading Partner"}, {"record_dt": "2014-11-11T16:40:51.963000", "name": "processing", "title": "Processing transactions"}]}, {"units_of_work": + 1, "name": "cash_prices", "parameters": {"cpt_code": "87799", "zip_code": "75201"}, "state": {"name": "completed", "title": "Completed"}, "trading_partner_id": "PokitDok", "id": "54623d4256c02c49598a0999", "transition_path": ["process", "complete"], "history": + [{"record_dt": "2014-11-11T16:45:54.902000", "name": "init", "title": "Initializing"}, {"record_dt": "2014-11-11T16:45:54.904000", "name": "processing", "title": "Processing transactions"}]}, {"units_of_work": 1, "name": "insurance_prices", "parameters": + {"cpt_code": "87799", "zip_code": "29403"}, "state": {"name": "completed", "title": "Completed"}, "trading_partner_id": "PokitDok", "id": "54623d4356c02c495c8a0999", "transition_path": ["process", "complete"], "history": [{"record_dt": "2014-11-11T16:45:55.452000", + "name": "init", "title": "Initializing"}, {"record_dt": "2014-11-11T16:45:55.453000", "name": "processing", "title": "Processing transactions"}]}, {"units_of_work": 1, "name": "activities", "state": {"name": "completed", "title": "Completed"}, "trading_partner_id": + "PokitDok", "id": "54623d4656c02c49688a0999", "transition_path": ["process", "complete"], "history": [{"record_dt": "2014-11-11T16:45:58.415000", "name": "init", "title": "Initializing"}, {"record_dt": "2014-11-11T16:45:58.434000", "name": "processing", + "title": "Processing transactions"}]}, {"units_of_work": 1, "name": "payers", "state": {"name": "completed", "title": "Completed"}, "trading_partner_id": "PokitDok", "id": "54623d4756c02c496b8a0999", "transition_path": ["process", "complete"], "history": + [{"record_dt": "2014-11-11T16:45:59.007000", "name": "init", "title": "Initializing"}, {"record_dt": "2014-11-11T16:45:59.011000", "name": "processing", "title": "Processing transactions"}]}, {"units_of_work": 1, "name": "tradingpartners", "state": {"name": + "completed", "title": "Completed"}, "trading_partner_id": "PokitDok", "id": "54623d4756c02c496d8a0999", "transition_path": ["process", "complete"], "history": [{"record_dt": "2014-11-11T16:45:59.569000", "name": "init", "title": "Initializing"}, {"record_dt": + "2014-11-11T16:45:59.573000", "name": "processing", "title": "Processing transactions"}]}, {"units_of_work": 1, "name": "referrals", "parameters": {"patient": {"birth_date": "1970-01-01", "first_name": "JANE", "last_name": "DOE", "id": "1234567890"}, "trading_partner_id": + "MOCKPAYER", "payer": {"organization_name": "Mock Payer for Testing", "id": "MOCKPAYER"}, "originating_company_id": "123456789", "correlation_id": "44332563-8e3b-42e0-a4fb-3a84b5b9a1c6", "client_id": "kciqXaP1gHd7CpBkaIpD", "provider": {"first_name": "CHRISTINA", + "last_name": "BERTOLAMI", "npi": "1619131232"}, "async": false, "event": {"category": "specialty_care_review", "diagnoses": [{"date": "2014-09-30", "code": "384.20"}], "place_of_service": "office", "delivery": {"quantity_qualifier": "visits", "quantity": + 1}, "provider": {"phone": "8645822900", "first_name": "JOHN", "last_name": "FOSTER", "npi": "1154387751"}, "certification_type": "initial", "type": "consultation"}}, "state": {"name": "completed", "title": "Completed"}, "result": {"patient": {"first_name": + "JANE", "last_name": "DOE", "id": "1234567890"}, "trading_partner_id": "MOCKPAYER", "payer": {"organization_name": "MOCK PAYER INC", "id": "MOCKPAYER"}, "originating_company_id": "9012345678", "correlation_id": "44332563-8e3b-42e0-a4fb-3a84b5b9a1c6", "client_id": + "kciqXaP1gHd7CpBkaIpD", "provider": {"first_name": "CHRISTINA", "last_name": "BERTOLAMI", "tax_id": "1619131232"}, "async": false, "event": {"category": "specialty_care_review", "diagnoses": [{"date": "2005-04-30", "code": "410.90"}], "place_of_service": + "office", "review": {"certification_number": "AUTH0001", "second_surgical_opinion_required": false, "certification_action": "certified_in_total"}, "delivery": {"quantity_qualifier": "visits", "quantity": 1}, "provider": {"first_name": "JOHN", "last_name": + "FOSTER", "tax_id": "1154387751"}, "certification_type": "initial", "type": "consultation"}, "valid_request": true}, "trading_partner_id": "MOCKPAYER", "id": "54623c1956c02c490e8a0999", "transition_path": ["generate", "transmit", "wait", "receive", "process", + "complete"], "history": [{"record_dt": "2014-11-11T16:40:57.027000", "name": "init", "title": "Initializing"}, {"record_dt": "2014-11-11T16:40:57.112000", "name": "generating", "title": "Generating transactions"}, {"record_dt": "2014-11-11T16:40:57.114000", + "name": "transmitting", "title": "Transmitting transactions to Trading Partner"}, {"record_dt": "2014-11-11T16:40:57.116000", "name": "waiting", "title": "Waiting on Trading Partner Response"}, {"record_dt": "2014-11-11T16:40:57.117000", "name": "receiving", + "title": "Receiving transactions from Trading Partner"}, {"record_dt": "2014-11-11T16:40:57.153000", "name": "processing", "title": "Processing transactions"}]}, {"units_of_work": 1, "name": "plans", "state": {"name": "completed", "title": "Completed"}, + "trading_partner_id": "PokitDok", "id": "54623d4856c02c49738a0999", "transition_path": ["process", "complete"], "history": [{"record_dt": "2014-11-11T16:46:00.680000", "name": "init", "title": "Initializing"}, {"record_dt": "2014-11-11T16:46:00.681000", + "name": "processing", "title": "Processing transactions"}]}, {"units_of_work": 1, "name": "tradingpartners", "parameters": {"id": "MOCKPAYER"}, "state": {"name": "completed", "title": "Completed"}, "trading_partner_id": "PokitDok", "id": "54623d4856c02c49708a0999", + "transition_path": ["process", "complete"], "history": [{"record_dt": "2014-11-11T16:46:00.121000", "name": "init", "title": "Initializing"}, {"record_dt": "2014-11-11T16:46:00.123000", "name": "processing", "title": "Processing transactions"}]}]}' diff --git a/build/resources/test/betamax/tapes/authentication.yaml b/build/resources/test/betamax/tapes/authentication.yaml new file mode 100644 index 0000000..f6c2f7b --- /dev/null +++ b/build/resources/test/betamax/tapes/authentication.yaml @@ -0,0 +1,25 @@ +!tape +name: authentication +interactions: +- recorded: 2014-11-14T17:29:43.219Z + request: + method: POST + uri: http://me.pokitdok.com:5002/oauth2/token + headers: + Accept-Encoding: gzip,deflate + Authorization: Basic a2NpcVhhUDFnSGQ3Q3BCa2FJcEQ6NVc0WW1tZVFrelJld3U2NGNZSE5reEZ1a0FZZXdGM2lab01nY29XMg== + Content-Length: '29' + Content-Type: application/x-www-form-urlencoded + Host: me.pokitdok.com:5002 + Proxy-Connection: Keep-Alive + User-Agent: pokitdok-java 0.6.1 jvm version 1.8.0_25 + body: grant_type=client_credentials + response: + status: 200 + headers: + Cache-Control: no-store + Content-Type: application/json;charset=UTF-8 + Date: Fri, 14 Nov 2014 17:29:43 GMT + Pragma: no-cache + Server: Werkzeug/0.9.4 Python/2.7.3 + body: '{"access_token": "bPyG9ZvcafXqKetKOJ51YJ0qxBjosF7DE4rPJRvl", "token_type": "bearer", "expires": 1415989783, "expires_in": 3600}' diff --git a/build/resources/test/betamax/tapes/authorizations.yaml b/build/resources/test/betamax/tapes/authorizations.yaml new file mode 100644 index 0000000..096ace6 --- /dev/null +++ b/build/resources/test/betamax/tapes/authorizations.yaml @@ -0,0 +1,53 @@ +!tape +name: authorizations +interactions: +- recorded: 2014-11-14T16:48:15.953Z + request: + method: POST + uri: http://me.pokitdok.com:5002/oauth2/token + headers: + Accept-Encoding: gzip,deflate + Authorization: Basic a2NpcVhhUDFnSGQ3Q3BCa2FJcEQ6NVc0WW1tZVFrelJld3U2NGNZSE5reEZ1a0FZZXdGM2lab01nY29XMg== + Content-Length: '29' + Content-Type: application/x-www-form-urlencoded + Host: me.pokitdok.com:5002 + Proxy-Connection: Keep-Alive + User-Agent: pokitdok-java 0.6.1 jvm version 1.8.0_25 + body: grant_type=client_credentials + response: + status: 200 + headers: + Cache-Control: no-store + Content-Type: application/json;charset=UTF-8 + Date: Fri, 14 Nov 2014 16:48:15 GMT + Pragma: no-cache + Server: Werkzeug/0.9.4 Python/2.7.3 + body: '{"access_token": "ZCHzHQ4hIdf1WWLivxfj0X4TAoBV6cTZAPaKB2x7", "token_type": "bearer", "expires": 1415987296, "expires_in": 3600}' +- recorded: 2014-11-14T16:48:16.115Z + request: + method: POST + uri: http://me.pokitdok.com:5002/api/v4/authorizations/ + headers: + Accept-Encoding: gzip,deflate + Authorization: Bearer ZCHzHQ4hIdf1WWLivxfj0X4TAoBV6cTZAPaKB2x7 + Content-Encoding: UTF-8 + Content-Length: '616' + Content-Type: application/json + Host: me.pokitdok.com:5002 + Proxy-Connection: Keep-Alive + User-Agent: pokitdok-java 0.6.1 jvm version 1.8.0_25 + body: '{"provider":{"npi":"1467560003","last_name":"AYA-AY","first_name":"JEROME"},"patient":{"birth_date":"1970-01-01","last_name":"DOE","id":"1234567890","first_name":"JANE"},"trading_partner_id":"MOCKPAYER","event":{"delivery":{"quantity_qualifier":"visits","quantity":1},"provider":{"phone":"8642341234","npi":"1760779011","organization_name":"KELLY + ULTRASOUND CENTER, LLC"},"certification_type":"initial","services":[{"quantity":1,"cpt_code":"76700","measurement":"unit"}],"category":"health_services_review","type":"diagnostic_medical","diagnoses":[{"date":"2014-10-01","code":"789.00"}],"place_of_service":"office"}}' + response: + status: 200 + headers: + Content-Type: text/html; charset=utf-8 + Date: Fri, 14 Nov 2014 16:48:16 GMT + Server: Werkzeug/0.9.4 Python/2.7.3 + charset: utf-8 + mimetype: application/json + body: '{"meta": {"rate_limit_amount": 15, "rate_limit_reset": 1415986686, "application_mode": "test", "processing_time": 127, "rate_limit_cap": 1000, "credits_remaining": 13415, "activity_id": "5466324f56c02c26118ca855", "credits_billed": 1}, "data": {"patient": + {"first_name": "JANE", "last_name": "DOE", "id": "1234567890"}, "trading_partner_id": "MOCKPAYER", "payer": {"organization_name": "MOCK PAYER INC", "id": "MOCKPAYER"}, "originating_company_id": "9012345678", "correlation_id": "851db045-2a29-4a3b-9830-3feaf0a38f23", + "client_id": "kciqXaP1gHd7CpBkaIpD", "provider": {"first_name": "JEROME", "last_name": "AYA-AY", "tax_id": "1467560003"}, "async": false, "event": {"category": "health_services_review", "diagnoses": [{"date": "2005-04-30", "code": "410.90"}], "place_of_service": + "office", "review": {"certification_number": "AUTH0001", "second_surgical_opinion_required": false, "certification_action": "certified_in_total"}, "delivery": {"quantity_qualifier": "visits", "quantity": 1}, "provider": {"organization_name": "KELLY ULTRASOUND + CENTER, LLC", "tax_id": "1760779011"}, "certification_type": "initial", "type": "diagnostic_medical"}, "valid_request": true}}' diff --git a/build/resources/test/betamax/tapes/cash_prices.yaml b/build/resources/test/betamax/tapes/cash_prices.yaml new file mode 100644 index 0000000..4314fad --- /dev/null +++ b/build/resources/test/betamax/tapes/cash_prices.yaml @@ -0,0 +1,46 @@ +!tape +name: cash_prices +interactions: +- recorded: 2014-11-14T16:48:16.748Z + request: + method: POST + uri: http://me.pokitdok.com:5002/oauth2/token + headers: + Accept-Encoding: gzip,deflate + Authorization: Basic a2NpcVhhUDFnSGQ3Q3BCa2FJcEQ6NVc0WW1tZVFrelJld3U2NGNZSE5reEZ1a0FZZXdGM2lab01nY29XMg== + Content-Length: '29' + Content-Type: application/x-www-form-urlencoded + Host: me.pokitdok.com:5002 + Proxy-Connection: Keep-Alive + User-Agent: pokitdok-java 0.6.1 jvm version 1.8.0_25 + body: grant_type=client_credentials + response: + status: 200 + headers: + Cache-Control: no-store + Content-Type: application/json;charset=UTF-8 + Date: Fri, 14 Nov 2014 16:48:16 GMT + Pragma: no-cache + Server: Werkzeug/0.9.4 Python/2.7.3 + X-Betamax: PLAY + body: '{"access_token": "vgErAvxSCjKfqqVaem6V38zO1CYNUdKlO9BWHv6k", "token_type": "bearer", "expires": 1415987297, "expires_in": 3600}' +- recorded: 2014-11-14T16:48:16.792Z + request: + method: GET + uri: http://me.pokitdok.com:5002/api/v4/prices/cash?cpt_code=87799&zip_code=75201 + headers: + Accept-Encoding: gzip,deflate + Authorization: Bearer vgErAvxSCjKfqqVaem6V38zO1CYNUdKlO9BWHv6k + Host: me.pokitdok.com:5002 + Proxy-Connection: Keep-Alive + User-Agent: pokitdok-java 0.6.1 jvm version 1.8.0_25 + response: + status: 200 + headers: + Content-Type: text/html; charset=utf-8 + Date: Fri, 14 Nov 2014 16:48:16 GMT + Server: Werkzeug/0.9.4 Python/2.7.3 + charset: utf-8 + mimetype: application/json + body: '{"meta": {"rate_limit_amount": 16, "rate_limit_reset": 1415986686, "application_mode": "test", "processing_time": 11, "rate_limit_cap": 1000, "credits_remaining": 9982, "activity_id": "5466325056c02c26158ca855", "credits_billed": 1}, "data": [{"high_price": + 85.0, "cpt_code": "87799", "low_price": 25.0, "average_price": 45.58, "geo_zip_area": "752", "standard_deviation": 18.16, "median_price": 42.0}]}' diff --git a/build/resources/test/betamax/tapes/claims.yaml b/build/resources/test/betamax/tapes/claims.yaml new file mode 100644 index 0000000..5575e74 --- /dev/null +++ b/build/resources/test/betamax/tapes/claims.yaml @@ -0,0 +1,50 @@ +!tape +name: claims +interactions: +- recorded: 2014-11-14T16:48:19.250Z + request: + method: POST + uri: http://me.pokitdok.com:5002/oauth2/token + headers: + Accept-Encoding: gzip,deflate + Authorization: Basic a2NpcVhhUDFnSGQ3Q3BCa2FJcEQ6NVc0WW1tZVFrelJld3U2NGNZSE5reEZ1a0FZZXdGM2lab01nY29XMg== + Content-Length: '29' + Content-Type: application/x-www-form-urlencoded + Host: me.pokitdok.com:5002 + Proxy-Connection: Keep-Alive + User-Agent: pokitdok-java 0.6.1 jvm version 1.8.0_25 + body: grant_type=client_credentials + response: + status: 200 + headers: + Cache-Control: no-store + Content-Type: application/json;charset=UTF-8 + Date: Fri, 14 Nov 2014 16:48:19 GMT + Pragma: no-cache + Server: Werkzeug/0.9.4 Python/2.7.3 + body: '{"access_token": "oSEXFFJ8gGcdwnVk0OWwPVA4uTmjjBZHKaRqunmv", "token_type": "bearer", "expires": 1415987299, "expires_in": 3600}' +- recorded: 2014-11-14T16:48:19.279Z + request: + method: POST + uri: http://me.pokitdok.com:5002/api/v4/eligibility/ + headers: + Accept-Encoding: gzip,deflate + Authorization: Bearer oSEXFFJ8gGcdwnVk0OWwPVA4uTmjjBZHKaRqunmv + Content-Encoding: UTF-8 + Content-Length: '707' + Content-Type: application/json + Host: me.pokitdok.com:5002 + Proxy-Connection: Keep-Alive + User-Agent: pokitdok-java 0.6.1 jvm version 1.8.0_25 + body: '{"transaction_code":"chargeable","billing_provider":{"address":{"zipcode":"29301","address_lines":["8311 WARREN H ABERNATHY HWY"],"city":"SPARTANBURG","state":"SC"},"taxonomy_code":"207Q00000X","npi":"1467560003","last_name":"Aya-Ay","first_name":"Jerome","tax_id":"123456789"},"subscriber":{"member_id":"W000000000","address":{"zipcode":"29301","address_lines":["123 + N MAIN ST"],"city":"SPARTANBURG","state":"SC"},"gender":"female","birth_date":"1970-01-01","last_name":"Doe","first_name":"Jane"},"trading_partner_id":"MOCKPAYER","claim":{"total_charge_amount":60.0,"service_lines":[{"service_date":"2014-06-01","procedure_code":"99213","diagnosis_codes":["487.1"],"unit_count":1.0,"charge_amount":60.0}]}}' + response: + status: 422 + headers: + Content-Type: text/html; charset=utf-8 + Date: Fri, 14 Nov 2014 16:48:19 GMT + Server: Werkzeug/0.9.4 Python/2.7.3 + charset: utf-8 + mimetype: application/json + body: '{"meta": {"processing_time": 9, "rate_limit_amount": 20, "rate_limit_reset": 1415986686, "application_mode": "test", "rate_limit_cap": 1000}, "data": {"errors": {"validation": {"subscriber": "Rogue field", "claim": "Rogue field", "billing_provider": + "Rogue field"}}}}' diff --git a/build/resources/test/betamax/tapes/claims_status.yaml b/build/resources/test/betamax/tapes/claims_status.yaml new file mode 100644 index 0000000..33a0255 --- /dev/null +++ b/build/resources/test/betamax/tapes/claims_status.yaml @@ -0,0 +1,48 @@ +!tape +name: claims_status +interactions: +- recorded: 2014-11-14T16:48:19.826Z + request: + method: POST + uri: http://me.pokitdok.com:5002/oauth2/token + headers: + Accept-Encoding: gzip,deflate + Authorization: Basic a2NpcVhhUDFnSGQ3Q3BCa2FJcEQ6NVc0WW1tZVFrelJld3U2NGNZSE5reEZ1a0FZZXdGM2lab01nY29XMg== + Content-Length: '29' + Content-Type: application/x-www-form-urlencoded + Host: me.pokitdok.com:5002 + Proxy-Connection: Keep-Alive + User-Agent: pokitdok-java 0.6.1 jvm version 1.8.0_25 + body: grant_type=client_credentials + response: + status: 200 + headers: + Cache-Control: no-store + Content-Type: application/json;charset=UTF-8 + Date: Fri, 14 Nov 2014 16:48:19 GMT + Pragma: no-cache + Server: Werkzeug/0.9.4 Python/2.7.3 + body: '{"access_token": "f8wFFYfUJvhKxPcno6DKuoZW8svV5hoYiiCuBz81", "token_type": "bearer", "expires": 1415987300, "expires_in": 3600}' +- recorded: 2014-11-14T16:48:19.851Z + request: + method: POST + uri: http://me.pokitdok.com:5002/api/v4/eligibility/ + headers: + Accept-Encoding: gzip,deflate + Authorization: Bearer f8wFFYfUJvhKxPcno6DKuoZW8svV5hoYiiCuBz81 + Content-Encoding: UTF-8 + Content-Length: '231' + Content-Type: application/json + Host: me.pokitdok.com:5002 + Proxy-Connection: Keep-Alive + User-Agent: pokitdok-java 0.6.1 jvm version 1.8.0_25 + body: '{"provider":{"npi":"1467560003","last_name":"Aya-Ay","first_name":"Jerome"},"patient":{"birth_date":"1970-01-01","last_name":"DOE","id":"1234567890","first_name":"JANE"},"service_date":"2014-01-01","trading_partner_id":"MOCKPAYER"}' + response: + status: 422 + headers: + Content-Type: text/html; charset=utf-8 + Date: Fri, 14 Nov 2014 16:48:19 GMT + Server: Werkzeug/0.9.4 Python/2.7.3 + charset: utf-8 + mimetype: application/json + body: '{"meta": {"processing_time": 8, "rate_limit_amount": 21, "rate_limit_reset": 1415986686, "application_mode": "test", "rate_limit_cap": 1000}, "data": {"errors": {"validation": {"service_date": "Rogue field", "patient": "Rogue field"}}}}' diff --git a/build/resources/test/betamax/tapes/eligibility.yaml b/build/resources/test/betamax/tapes/eligibility.yaml new file mode 100644 index 0000000..f9d8539 --- /dev/null +++ b/build/resources/test/betamax/tapes/eligibility.yaml @@ -0,0 +1,74 @@ +!tape +name: eligibility +interactions: +- recorded: 2014-11-14T16:48:18.512Z + request: + method: POST + uri: http://me.pokitdok.com:5002/oauth2/token + headers: + Accept-Encoding: gzip,deflate + Authorization: Basic a2NpcVhhUDFnSGQ3Q3BCa2FJcEQ6NVc0WW1tZVFrelJld3U2NGNZSE5reEZ1a0FZZXdGM2lab01nY29XMg== + Content-Length: '29' + Content-Type: application/x-www-form-urlencoded + Host: me.pokitdok.com:5002 + Proxy-Connection: Keep-Alive + User-Agent: pokitdok-java 0.6.1 jvm version 1.8.0_25 + body: grant_type=client_credentials + response: + status: 200 + headers: + Cache-Control: no-store + Content-Type: application/json;charset=UTF-8 + Date: Fri, 14 Nov 2014 16:48:18 GMT + Pragma: no-cache + Server: Werkzeug/0.9.4 Python/2.7.3 + body: '{"access_token": "oEC3xolM4azUFE84f1KZtj2f4Pr42wyPL6RUQcZd", "token_type": "bearer", "expires": 1415987299, "expires_in": 3600}' +- recorded: 2014-11-14T16:48:18.704Z + request: + method: POST + uri: http://me.pokitdok.com:5002/api/v4/eligibility/ + headers: + Accept-Encoding: gzip,deflate + Authorization: Bearer oEC3xolM4azUFE84f1KZtj2f4Pr42wyPL6RUQcZd + Content-Encoding: UTF-8 + Content-Length: '251' + Content-Type: application/json + Host: me.pokitdok.com:5002 + Proxy-Connection: Keep-Alive + User-Agent: pokitdok-java 0.6.1 jvm version 1.8.0_25 + body: '{"provider":{"npi":"1467560003","last_name":"AYA-AY","first_name":"JEROME"},"member":{"birth_date":"1970-01-01","last_name":"Doe","id":"W000000000","first_name":"Jane"},"trading_partner_id":"MOCKPAYER","service_types":["health_benefit_plan_coverage"]}' + response: + status: 200 + headers: + Content-Type: text/html; charset=utf-8 + Date: Fri, 14 Nov 2014 16:48:18 GMT + Server: Werkzeug/0.9.4 Python/2.7.3 + charset: utf-8 + mimetype: application/json + body: '{"meta": {"rate_limit_amount": 19, "rate_limit_reset": 1415986686, "application_mode": "test", "processing_time": 175, "rate_limit_cap": 1000, "credits_remaining": 13414, "activity_id": "5466325256c02c26238ca855", "credits_billed": 1}, "data": {"service_types": + ["professional_physician_visit_office"], "client_id": "kciqXaP1gHd7CpBkaIpD", "payer": {"id": "MOCKPAYER", "name": "MOCK PAYER INC"}, "summary": {"deductible": {"individual": {"in_network": {"applied": {"currency": "USD", "amount": "16.43"}, "limit": {"currency": + "USD", "amount": "3000"}, "remaining": {"currency": "USD", "amount": "2983.57"}}, "out_of_network": {"applied": {"currency": "USD", "amount": "16.43"}, "limit": {"currency": "USD", "amount": "6000"}, "remaining": {"currency": "USD", "amount": "5983.57"}}}, + "family": {"in_network": {"applied": {"currency": "USD", "amount": "43.91"}, "limit": {"currency": "USD", "amount": "6000"}, "remaining": {"currency": "USD", "amount": "5956.09"}}, "out_of_network": {"applied": {"currency": "USD", "amount": "43.91"}, "limit": + {"currency": "USD", "amount": "12000"}, "remaining": {"currency": "USD", "amount": "11956.09"}}}}}, "subscriber": {"birth_date": "1970-01-01", "first_name": "Jane", "last_name": "Doe", "id": "W000000000", "address": {"city": "SPARTANBURG", "state": "SC", + "zipcode": "29307", "address_lines": ["123 MAIN ST"]}}, "correlation_id": "07a8f151-0444-4fd4-83db-6d3038b7ead7", "trading_partner_id": "MOCKPAYER", "provider": {"first_name": "JEROME", "last_name": "JEROME AYA-AY", "npi": "1467560003"}, "coverage": {"plan_number": + "0888188", "service_types": ["professional_physician_visit_office"], "group_number": "088818801000013", "out_of_pocket": [{"in_plan_network": "yes", "benefit_amount": {"currency": "USD", "amount": "3000"}, "coverage_level": "individual"}, {"in_plan_network": + "yes", "benefit_amount": {"currency": "USD", "amount": "2983.57"}, "coverage_level": "individual", "time_period": "remaining"}, {"in_plan_network": "yes", "benefit_amount": {"currency": "USD", "amount": "6000"}, "coverage_level": "family"}, {"in_plan_network": + "yes", "benefit_amount": {"currency": "USD", "amount": "5956.09"}, "coverage_level": "family", "time_period": "remaining"}, {"in_plan_network": "no", "benefit_amount": {"currency": "USD", "amount": "12500"}, "coverage_level": "individual"}, {"in_plan_network": + "no", "benefit_amount": {"currency": "USD", "amount": "12483.57"}, "coverage_level": "individual", "time_period": "remaining"}, {"in_plan_network": "no", "benefit_amount": {"currency": "USD", "amount": "25000"}, "coverage_level": "family"}, {"in_plan_network": + "no", "benefit_amount": {"currency": "USD", "amount": "24956.09"}, "coverage_level": "family", "messages": [{"message": "Unlimited Lifetime Benefits"}], "time_period": "remaining"}], "level": "employee_and_spouse", "copay": [{"in_plan_network": "yes", + "service_types": ["professional_physician_visit_office"], "coverage_level": "employee_and_spouse", "messages": [{"message": "PRIMARY OFFICE"}]}, {"in_plan_network": "not_applicable", "service_types": ["professional_physician_visit_office"], "coverage_level": + "employee_and_spouse", "messages": [{"message": "GYN OFFICE VS"}, {"message": "GYN VISIT"}, {"message": "SPEC OFFICE"}, {"message": "SPEC VISIT"}, {"message": "PRIME CARE VST"}, {"message": "Plan Requires PreCert"}, {"message": "Commercial"}, {"message": + "Plan includes NAP"}, {"message": "Pre-Existing may apply"}]}], "deductibles": [{"service_types": ["health_benefit_plan_coverage"], "messages": [{"message": "INT MED AND RX,GYN OFFICE VS,DED INCLUDED IN OOP,GYN VISIT,SPEC OFFICE,SPEC VISIT,PRIMARY OFFICE,PRIME + CARE VST"}], "in_plan_network": "yes", "eligibility_date": "2013-01-01", "time_period": "calendar_year", "coverage_level": "family", "benefit_amount": {"currency": "USD", "amount": "6000"}}, {"service_types": ["health_benefit_plan_coverage"], "messages": + [{"message": "INT MED AND RX"}], "in_plan_network": "yes", "time_period": "remaining", "coverage_level": "family", "benefit_amount": {"currency": "USD", "amount": "5956.09"}}, {"service_types": ["health_benefit_plan_coverage"], "messages": [{"message": + "INT MED AND RX,GYN OFFICE VS,DED INCLUDED IN OOP,GYN VISIT,SPEC OFFICE,SPEC VISIT,PRIMARY OFFICE,PRIME CARE VST"}], "in_plan_network": "yes", "eligibility_date": "2013-01-01", "time_period": "calendar_year", "coverage_level": "individual", "benefit_amount": + {"currency": "USD", "amount": "3000"}}, {"service_types": ["health_benefit_plan_coverage"], "messages": [{"message": "INT MED AND RX"}], "in_plan_network": "yes", "time_period": "remaining", "coverage_level": "individual", "benefit_amount": {"currency": + "USD", "amount": "2983.57"}}, {"service_types": ["health_benefit_plan_coverage"], "messages": [{"message": "INT MED AND RX,GYN OFFICE VS,DED INCLUDED IN OOP,GYN VISIT,SPEC OFFICE,SPEC VISIT,PRIME CARE VST"}], "in_plan_network": "no", "eligibility_date": + "2013-01-01", "time_period": "calendar_year", "coverage_level": "family", "benefit_amount": {"currency": "USD", "amount": "12000"}}, {"service_types": ["health_benefit_plan_coverage"], "messages": [{"message": "INT MED AND RX"}], "in_plan_network": "no", + "time_period": "remaining", "coverage_level": "family", "benefit_amount": {"currency": "USD", "amount": "11956.09"}}, {"service_types": ["health_benefit_plan_coverage"], "messages": [{"message": "INT MED AND RX,GYN OFFICE VS,DED INCLUDED IN OOP,GYN VISIT,SPEC + OFFICE,SPEC VISIT,PRIME CARE VST"}], "in_plan_network": "no", "eligibility_date": "2013-01-01", "time_period": "calendar_year", "coverage_level": "individual", "benefit_amount": {"currency": "USD", "amount": "6000"}}, {"service_types": ["health_benefit_plan_coverage"], + "messages": [{"message": "INT MED AND RX"}], "in_plan_network": "no", "time_period": "remaining", "coverage_level": "individual", "benefit_amount": {"currency": "USD", "amount": "5983.57"}}], "plan_begin_date": "2013-02-15", "eligibility_begin_date": "2012-02-01", + "coinsurance": [{"benefit_percent": 0.0, "service_types": ["professional_physician_visit_office"], "coverage_level": "employee_and_spouse", "messages": [{"message": "GYN OFFICE VS"}, {"message": "GYN VISIT"}, {"message": "SPEC OFFICE"}, {"message": "SPEC + VISIT"}, {"message": "PRIMARY OFFICE"}, {"message": "PRIME CARE VST"}], "in_plan_network": "yes"}, {"benefit_percent": 0.5, "service_types": ["professional_physician_visit_office"], "coverage_level": "employee_and_spouse", "messages": [{"message": "GYN + OFFICE VS,COINS APPLIES TO OUT OF POCKET"}, {"message": "GYN VISIT,COINS APPLIES TO OUT OF POCKET"}, {"message": "SPEC OFFICE,COINS APPLIES TO OUT OF POCKET"}, {"message": "SPEC VISIT,COINS APPLIES TO OUT OF POCKET"}, {"message": "PRIME CARE VST,COINS + APPLIES TO OUT OF POCKET"}], "in_plan_network": "no"}], "group_description": "MOCK INDIVIDUAL ADVANTAGE PLAN", "service_date": "2013-08-10"}, "valid_request": true}}' diff --git a/build/resources/test/betamax/tapes/insurance_prices.yaml b/build/resources/test/betamax/tapes/insurance_prices.yaml new file mode 100644 index 0000000..5091217 --- /dev/null +++ b/build/resources/test/betamax/tapes/insurance_prices.yaml @@ -0,0 +1,46 @@ +!tape +name: insurance_prices +interactions: +- recorded: 2014-11-14T16:48:17.343Z + request: + method: POST + uri: http://me.pokitdok.com:5002/oauth2/token + headers: + Accept-Encoding: gzip,deflate + Authorization: Basic a2NpcVhhUDFnSGQ3Q3BCa2FJcEQ6NVc0WW1tZVFrelJld3U2NGNZSE5reEZ1a0FZZXdGM2lab01nY29XMg== + Content-Length: '29' + Content-Type: application/x-www-form-urlencoded + Host: me.pokitdok.com:5002 + Proxy-Connection: Keep-Alive + User-Agent: pokitdok-java 0.6.1 jvm version 1.8.0_25 + body: grant_type=client_credentials + response: + status: 200 + headers: + Cache-Control: no-store + Content-Type: application/json;charset=UTF-8 + Date: Fri, 14 Nov 2014 16:48:17 GMT + Pragma: no-cache + Server: Werkzeug/0.9.4 Python/2.7.3 + body: '{"access_token": "rm0hc8gpXxDAlmZeROBu6kZpCKwxtXL4oUpoJZ3h", "token_type": "bearer", "expires": 1415987297, "expires_in": 3600}' +- recorded: 2014-11-14T16:48:17.370Z + request: + method: GET + uri: http://me.pokitdok.com:5002/api/v4/prices/insurance?cpt_code=87799&zip_code=29403 + headers: + Accept-Encoding: gzip,deflate + Authorization: Bearer rm0hc8gpXxDAlmZeROBu6kZpCKwxtXL4oUpoJZ3h + Host: me.pokitdok.com:5002 + Proxy-Connection: Keep-Alive + User-Agent: pokitdok-java 0.6.1 jvm version 1.8.0_25 + response: + status: 200 + headers: + Content-Type: text/html; charset=utf-8 + Date: Fri, 14 Nov 2014 16:48:17 GMT + Server: Werkzeug/0.9.4 Python/2.7.3 + charset: utf-8 + mimetype: application/json + body: '{"meta": {"rate_limit_amount": 17, "rate_limit_reset": 1415986686, "application_mode": "test", "processing_time": 10, "rate_limit_cap": 1000, "credits_remaining": 9982, "activity_id": "5466325156c02c261a8ca855", "credits_billed": 1}, "data": {"amounts": + [{"high_price": 23.43, "standard_deviation": 2.95, "average_price": 18.43, "payer_type": "insurance", "payment_type": "allowed", "low_price": 15.42, "median_price": 19.27}, {"high_price": 54.85, "standard_deviation": 8.42, "average_price": 30.9, "payer_type": + "insurance", "payment_type": "submitted", "low_price": 24.65, "median_price": 29.74}], "cpt_code": "87799", "geo_zip_area": "294"}}' diff --git a/build/resources/test/betamax/tapes/payers.yaml b/build/resources/test/betamax/tapes/payers.yaml new file mode 100644 index 0000000..20922cc --- /dev/null +++ b/build/resources/test/betamax/tapes/payers.yaml @@ -0,0 +1,153 @@ +!tape +name: payers +interactions: +- recorded: 2014-11-14T16:48:21.024Z + request: + method: POST + uri: http://me.pokitdok.com:5002/oauth2/token + headers: + Accept-Encoding: gzip,deflate + Authorization: Basic a2NpcVhhUDFnSGQ3Q3BCa2FJcEQ6NVc0WW1tZVFrelJld3U2NGNZSE5reEZ1a0FZZXdGM2lab01nY29XMg== + Content-Length: '29' + Content-Type: application/x-www-form-urlencoded + Host: me.pokitdok.com:5002 + Proxy-Connection: Keep-Alive + User-Agent: pokitdok-java 0.6.1 jvm version 1.8.0_25 + body: grant_type=client_credentials + response: + status: 200 + headers: + Cache-Control: no-store + Content-Type: application/json;charset=UTF-8 + Date: Fri, 14 Nov 2014 16:48:21 GMT + Pragma: no-cache + Server: Werkzeug/0.9.4 Python/2.7.3 + body: '{"access_token": "Mo7Nlfp0bLW11B5dB9WrZFnU6ac9zcYrz5PN9gZX", "token_type": "bearer", "expires": 1415987301, "expires_in": 3600}' +- recorded: 2014-11-14T16:48:21.071Z + request: + method: GET + uri: http://me.pokitdok.com:5002/api/v4/payers + headers: + Accept-Encoding: gzip,deflate + Authorization: Bearer Mo7Nlfp0bLW11B5dB9WrZFnU6ac9zcYrz5PN9gZX + Host: me.pokitdok.com:5002 + Proxy-Connection: Keep-Alive + User-Agent: pokitdok-java 0.6.1 jvm version 1.8.0_25 + response: + status: 200 + headers: + Content-Type: text/html; charset=utf-8 + Date: Fri, 14 Nov 2014 16:48:21 GMT + Server: Werkzeug/0.9.4 Python/2.7.3 + charset: utf-8 + mimetype: application/json + body: '{"meta": {"rate_limit_amount": 23, "rate_limit_reset": 1415986686, "application_mode": "test", "processing_time": 11, "rate_limit_cap": 1000, "activity_id": "5466325556c02c26358ca855"}, "data": [{"supported_transactions": ["837"], "payer_name": "AARP + Medicare Complete - Lifeprint Network", "payer_key": "", "production_status": true, "trading_partner_id": "aarp_medicare_complete"}, {"supported_transactions": ["837"], "payer_name": "AARP Medicare Supplement Plan", "payer_key": "", "production_status": + true, "trading_partner_id": "aarp_medicare_supplement"}, {"supported_transactions": ["276", "278", "270", "837"], "payer_name": "Aetna", "payer_key": "", "production_status": true, "trading_partner_id": "aetna"}, {"supported_transactions": ["837"], "payer_name": + "All Savers Insurance", "payer_key": "", "production_status": true, "trading_partner_id": "all_savers_insurance"}, {"supported_transactions": ["837"], "payer_name": "Altius Health Plan - Coventry", "payer_key": "", "production_status": true, "trading_partner_id": + "altius_health_plan_coventry"}, {"supported_transactions": ["837"], "payer_name": "AmeriGroup - New Jersey", "payer_key": "", "production_status": true, "trading_partner_id": "amerigroup_nj"}, {"supported_transactions": ["837"], "payer_name": "AmeriHealth + Administrators", "payer_key": "", "production_status": true, "trading_partner_id": "amerihealth_administrators"}, {"supported_transactions": ["837"], "payer_name": "AmeriHealth DE Non-HMO", "payer_key": "", "production_status": true, "trading_partner_id": + "amerihealth_de_non_hmo"}, {"supported_transactions": ["837"], "payer_name": "AmeriHealth NJ Non-HMO", "payer_key": "", "production_status": true, "trading_partner_id": "amerihealth_nj_non_hmo"}, {"supported_transactions": ["837"], "payer_name": "AmeriHealth + NJ/DE HMO", "payer_key": "", "production_status": true, "trading_partner_id": "amerihealth_nj_de_hmo"}, {"supported_transactions": ["837"], "payer_name": "Amerigroup - Florida", "payer_key": "", "production_status": true, "trading_partner_id": "amerigroup_fl"}, + {"supported_transactions": ["837"], "payer_name": "Amerigroup - Georgia", "payer_key": "", "production_status": true, "trading_partner_id": "amerigroup_ga"}, {"supported_transactions": ["837"], "payer_name": "Amerigroup - Illinois", "payer_key": "", "production_status": + true, "trading_partner_id": "amerigroup_illinois"}, {"supported_transactions": ["837"], "payer_name": "Amerigroup - Maryland", "payer_key": "", "production_status": true, "trading_partner_id": "amerigroup_md"}, {"supported_transactions": ["837"], "payer_name": + "Amerigroup - Ohio", "payer_key": "", "production_status": true, "trading_partner_id": "amerigroup_oh"}, {"supported_transactions": ["837"], "payer_name": "Amerigroup - Washington", "payer_key": "", "production_status": true, "trading_partner_id": "amerigroup_wa"}, + {"supported_transactions": ["837"], "payer_name": "Amerigroup Community Care", "payer_key": "", "production_status": true, "trading_partner_id": "amerigroup_community_care"}, {"supported_transactions": ["837"], "payer_name": "Amerigroup Community Care + of New Mexico", "payer_key": "", "production_status": true, "trading_partner_id": "amerigroup_community_care_nm"}, {"supported_transactions": ["837"], "payer_name": "Amerigroup Corporation", "payer_key": "", "production_status": true, "trading_partner_id": + "amerigroup_corporation"}, {"supported_transactions": ["276", "270", "837"], "payer_name": "Anthem Blue Cross California", "payer_key": "", "production_status": true, "trading_partner_id": "anthem_blue_cross_ca"}, {"supported_transactions": ["270", "276", + "837"], "payer_name": "Anthem Blue Cross and Blue Shield of Colorado", "payer_key": "", "production_status": true, "trading_partner_id": "anthem_blue_cross_blue_shield_co"}, {"supported_transactions": ["270", "276", "837"], "payer_name": "Anthem Blue Cross + and Blue Shield of Connecticut", "payer_key": "", "production_status": true, "trading_partner_id": "anthem_blue_cross_blue_shield_ct"}, {"supported_transactions": ["270", "276", "837"], "payer_name": "Anthem Blue Cross and Blue Shield of Indiana", "payer_key": + "", "production_status": true, "trading_partner_id": "anthem_blue_cross_blue_shield_in"}, {"supported_transactions": ["270", "276", "837"], "payer_name": "Anthem Blue Cross and Blue Shield of Kentucky", "payer_key": "", "production_status": true, "trading_partner_id": + "anthem_blue_cross_blue_shield_ky"}, {"supported_transactions": ["270", "276", "837"], "payer_name": "Anthem Blue Cross and Blue Shield of Maine", "payer_key": "", "production_status": true, "trading_partner_id": "anthem_blue_cross_blue_shield_me"}, {"supported_transactions": + ["276"], "payer_name": "Anthem Blue Cross and Blue Shield of Missouri", "payer_key": "", "production_status": true, "trading_partner_id": "anthem_blue_cross_blue_shield_mo"}, {"supported_transactions": ["276", "270", "837"], "payer_name": "Anthem Blue + Cross and Blue Shield of Nevada", "payer_key": "", "production_status": true, "trading_partner_id": "anthem_blue_cross_blue_shield_nv"}, {"supported_transactions": ["270", "276", "837"], "payer_name": "Anthem Blue Cross and Blue Shield of New Hampshire", + "payer_key": "", "production_status": true, "trading_partner_id": "anthem_blue_cross_blue_shield_nh"}, {"supported_transactions": ["276"], "payer_name": "Anthem Blue Cross and Blue Shield of Ohio", "payer_key": "", "production_status": true, "trading_partner_id": + "anthem_blue_cross_blue_shield_oh"}, {"supported_transactions": ["270", "837", "276"], "payer_name": "Anthem Blue Cross and Blue Shield of Virginia", "payer_key": "", "production_status": true, "trading_partner_id": "anthem_blue_cross_blue_shield_va"}, + {"supported_transactions": ["270", "276", "837"], "payer_name": "Anthem Blue Cross and Blue Shield of Wisconsin", "payer_key": "", "production_status": true, "trading_partner_id": "anthem_blue_cross_blue_shield_wi"}, {"supported_transactions": ["276", + "270"], "payer_name": "Assurant Health", "payer_key": "", "production_status": true, "trading_partner_id": "assurant_health"}, {"supported_transactions": ["837"], "payer_name": "Asuris Northwest Health", "payer_key": "", "production_status": true, "trading_partner_id": + "asuris_northwest_health"}, {"supported_transactions": ["837"], "payer_name": "Atrio Health Plans", "payer_key": "", "production_status": true, "trading_partner_id": "atrio_health_plans"}, {"supported_transactions": ["837"], "payer_name": "Avmed Health + Plan", "payer_key": "", "production_status": true, "trading_partner_id": "avmed_health_plan"}, {"supported_transactions": ["837"], "payer_name": "Beech Street", "payer_key": "", "production_status": true, "trading_partner_id": "beech_street"}, {"supported_transactions": + ["837"], "payer_name": "Blue Cross (Cal-Optima - Medi-Cal)", "payer_key": "", "production_status": true, "trading_partner_id": "blue_cross_cal_optima_medi_cal"}, {"supported_transactions": ["837"], "payer_name": "Blue Cross Blue Shield of Alabama", "payer_key": + "", "production_status": true, "trading_partner_id": "blue_cross_blue_shield_al"}, {"supported_transactions": ["837"], "payer_name": "Blue Cross Blue Shield of Arizona", "payer_key": "", "production_status": true, "trading_partner_id": "blue_cross_blue_shield_az"}, + {"supported_transactions": ["837"], "payer_name": "Blue Cross Blue Shield of DC (Carefirst)", "payer_key": "", "production_status": true, "trading_partner_id": "blue_cross_blue_shield_dc"}, {"supported_transactions": ["837"], "payer_name": "Blue Cross + Blue Shield of Florida", "payer_key": "", "production_status": true, "trading_partner_id": "blue_cross_blue_shield_fl"}, {"supported_transactions": ["837"], "payer_name": "Blue Cross Blue Shield of Maryland (CareFirst)", "payer_key": "", "production_status": + true, "trading_partner_id": "blue_cross_blue_shield_md"}, {"supported_transactions": ["837"], "payer_name": "Blue Cross Blue Shield of Minnesota", "payer_key": "", "production_status": true, "trading_partner_id": "blue_cross_blue_shield_mn"}, {"supported_transactions": + ["837"], "payer_name": "Blue Cross Blue Shield of New Jersey (Horizon)", "payer_key": "", "production_status": true, "trading_partner_id": "blue_cross_blue_shield_nj"}, {"supported_transactions": ["837"], "payer_name": "Blue Cross Blue Shield of Oregon + (Regence)", "payer_key": "", "production_status": true, "trading_partner_id": "blue_cross_blue_shield_or"}, {"supported_transactions": ["837"], "payer_name": "Blue Cross Blue Shield of Tennessee", "payer_key": "", "production_status": true, "trading_partner_id": + "blue_cross_blue_shield_tn"}, {"supported_transactions": ["837"], "payer_name": "Blue Cross Blue Shield of Utah (Regence)", "payer_key": "", "production_status": true, "trading_partner_id": "blue_cross_blue_shield_utah"}, {"supported_transactions": ["837"], + "payer_name": "Blue Cross and Blue Shield of Georgia", "payer_key": "", "production_status": true, "trading_partner_id": "blue_cross_blue_shield_ga"}, {"supported_transactions": ["837"], "payer_name": "Blue Cross and Blue Shield of Illinois", "payer_key": + "", "production_status": true, "trading_partner_id": "blue_cross_blue_shield_il"}, {"supported_transactions": ["270"], "payer_name": "Blue Cross and Blue Shield of Iowa", "payer_key": "", "production_status": true, "trading_partner_id": "blue_cross_blue_shield_ia"}, + {"supported_transactions": ["276", "270"], "payer_name": "Blue Cross and Blue Shield of Kansas", "payer_key": "", "production_status": true, "trading_partner_id": "blue_cross_blue_shield_ks"}, {"supported_transactions": ["270", "276"], "payer_name": "Blue + Cross and Blue Shield of Kansas City", "payer_key": "", "production_status": true, "trading_partner_id": "blue_cross_blue_shield_kc"}, {"supported_transactions": ["837"], "payer_name": "Blue Cross and Blue Shield of Michigan", "payer_key": "", "production_status": + true, "trading_partner_id": "blue_cross_blue_shield_mi"}, {"supported_transactions": ["837"], "payer_name": "Blue Cross and Blue Shield of Mississippi", "payer_key": "", "production_status": true, "trading_partner_id": "blue_cross_blue_shield_ms"}, {"supported_transactions": + ["270", "837"], "payer_name": "Blue Cross and Blue Shield of Missouri", "payer_key": "", "production_status": true, "trading_partner_id": "blue_cross_blue_shield_mo"}, {"supported_transactions": ["837"], "payer_name": "Blue Cross and Blue Shield of Montana", + "payer_key": "", "production_status": true, "trading_partner_id": "blue_cross_blue_shield_mt"}, {"supported_transactions": ["270", "837"], "payer_name": "Blue Cross and Blue Shield of Nebraska", "payer_key": "", "production_status": true, "trading_partner_id": + "blue_cross_blue_shield_ne"}, {"supported_transactions": ["837"], "payer_name": "Blue Cross and Blue Shield of New Mexico", "payer_key": "", "production_status": true, "trading_partner_id": "blue_cross_blue_shield_nm"}, {"supported_transactions": ["270"], + "payer_name": "Blue Cross and Blue Shield of North Carolina", "payer_key": "", "production_status": true, "trading_partner_id": "blue_cross_blue_shield_nc"}, {"supported_transactions": ["270", "837"], "payer_name": "Blue Cross and Blue Shield of Ohio", + "payer_key": "", "production_status": true, "trading_partner_id": "blue_cross_blue_shield_oh"}, {"supported_transactions": ["837"], "payer_name": "Blue Cross and Blue Shield of Oklahoma", "payer_key": "", "production_status": true, "trading_partner_id": + "blue_cross_blue_shield_ok"}, {"supported_transactions": ["270"], "payer_name": "Blue Cross and Blue Shield of South Carolina", "payer_key": "", "production_status": true, "trading_partner_id": "blue_cross_blue_shield_sc"}, {"supported_transactions": ["837"], + "payer_name": "Blue Cross and Blue Shield of Texas", "payer_key": "", "production_status": true, "trading_partner_id": "blue_cross_blue_shield_tx"}, {"supported_transactions": ["837"], "payer_name": "Blue Cross and Blue Shield of Vermont", "payer_key": + "", "production_status": true, "trading_partner_id": "blue_cross_blue_shield_vt"}, {"supported_transactions": ["276", "270", "837"], "payer_name": "Blue Shield of California", "payer_key": "", "production_status": true, "trading_partner_id": "blue_shield_ca"}, + {"supported_transactions": ["837"], "payer_name": "BridgeSpan", "payer_key": "", "production_status": true, "trading_partner_id": "bridgespan"}, {"supported_transactions": ["837"], "payer_name": "CareOregon Inc.", "payer_key": "", "production_status": + true, "trading_partner_id": "care_or"}, {"supported_transactions": ["837"], "payer_name": "CareSource of Michigan", "payer_key": "", "production_status": true, "trading_partner_id": "care_source_mi"}, {"supported_transactions": ["837"], "payer_name": "CareSource + of Ohio", "payer_key": "", "production_status": true, "trading_partner_id": "care_source_oh"}, {"supported_transactions": ["837"], "payer_name": "Caresource Health Plan of Oregon", "payer_key": "", "production_status": true, "trading_partner_id": "care_source_health_plan_or"}, + {"supported_transactions": ["837"], "payer_name": "Caresource of Kentucky", "payer_key": "", "production_status": true, "trading_partner_id": "care_source_ky"}, {"supported_transactions": ["837"], "payer_name": "Childhealth Plus by Healthfirst (CHP)", + "payer_key": "", "production_status": true, "trading_partner_id": "healthfirst"}, {"supported_transactions": ["276", "278", "270", "837"], "payer_name": "Cigna", "payer_key": "", "production_status": true, "trading_partner_id": "cigna"}, {"supported_transactions": + ["837"], "payer_name": "Colorado Kaiser Permanente", "payer_key": "", "production_status": true, "trading_partner_id": "colorado_kaiser_permanente"}, {"supported_transactions": ["837"], "payer_name": "Columbia United Providers", "payer_key": "", "production_status": + true, "trading_partner_id": "columbia_united_providers"}, {"supported_transactions": ["837"], "payer_name": "Community Health Plan of Washington", "payer_key": "", "production_status": true, "trading_partner_id": "community_health_plan_wa"}, {"supported_transactions": + ["276", "270", "837"], "payer_name": "ConnectiCare", "payer_key": "", "production_status": true, "trading_partner_id": "connecticare"}, {"supported_transactions": ["837"], "payer_name": "Coordinated Care - Cenpatico", "payer_key": "", "production_status": + true, "trading_partner_id": "coordinated_care_cenpatico"}, {"supported_transactions": ["837"], "payer_name": "Coordinated Care - Medical", "payer_key": "", "production_status": true, "trading_partner_id": "coordinated_care_medical"}, {"supported_transactions": + ["837"], "payer_name": "Coordinated Medical Specialists", "payer_key": "", "production_status": true, "trading_partner_id": "coordinated_medical_specialists"}, {"supported_transactions": ["837"], "payer_name": "CoreSource (MD, PA, IL, NC, IN)", "payer_key": + "", "production_status": true, "trading_partner_id": "coresource_md_pa_il_nc_in"}, {"supported_transactions": ["837"], "payer_name": "CoreSource - Ohio", "payer_key": "", "production_status": true, "trading_partner_id": "coresource_oh"}, {"supported_transactions": + ["837"], "payer_name": "CoreSource Little Rock", "payer_key": "", "production_status": true, "trading_partner_id": "coresource_little_rock"}, {"supported_transactions": ["837"], "payer_name": "Coventry Health & Life", "payer_key": "", "production_status": + true, "trading_partner_id": "coventry"}, {"supported_transactions": ["276", "270", "837"], "payer_name": "Empire Blue Cross and Blue Shield", "payer_key": "", "production_status": true, "trading_partner_id": "empire_blue_cross_blue_shield"}, {"supported_transactions": + ["837"], "payer_name": "Fallon Community Health Plan", "payer_key": "", "production_status": true, "trading_partner_id": "fallon_community_health"}, {"supported_transactions": ["837"], "payer_name": "Federal Employees Plan WA (Regence Blue Shield)", "payer_key": + "", "production_status": true, "trading_partner_id": "federal_employees_plan_wa"}, {"supported_transactions": ["276", "270", "837"], "payer_name": "Fidelis Care of New York", "payer_key": "", "production_status": true, "trading_partner_id": "fidelis_care_ny"}, + {"supported_transactions": ["837"], "payer_name": "First Choice Health Network", "payer_key": "", "production_status": true, "trading_partner_id": "first_choice_health_network"}, {"supported_transactions": ["837"], "payer_name": "Golden Rule", "payer_key": + "", "production_status": true, "trading_partner_id": "golden_rule_united_health_one"}, {"supported_transactions": ["837"], "payer_name": "Great West Healthcare", "payer_key": "", "production_status": true, "trading_partner_id": "great_west_health_care"}, + {"supported_transactions": ["837"], "payer_name": "Group Health Cooperative", "payer_key": "", "production_status": true, "trading_partner_id": "group_health_cooperative"}, {"supported_transactions": ["837"], "payer_name": "Group Health Cooperative of + Eau Claire", "payer_key": "", "production_status": true, "trading_partner_id": "group_health_cooperative_eau_claire"}, {"supported_transactions": ["837"], "payer_name": "Group Health Cooperative of South Central Wisconsin", "payer_key": "", "production_status": + true, "trading_partner_id": "group_health_cooperative_south_central_wi"}, {"supported_transactions": ["837"], "payer_name": "Group Health Plan - CMR", "payer_key": "", "production_status": true, "trading_partner_id": "group_health_plan_care_management_resource"}, + {"supported_transactions": ["276", "270", "837"], "payer_name": "Harvard Pilgrim Healthcare", "payer_key": "", "production_status": true, "trading_partner_id": "harvard_pilgrim_health_care"}, {"supported_transactions": ["837"], "payer_name": "Health Net + - California", "payer_key": "", "production_status": true, "trading_partner_id": "health_net_ca"}, {"supported_transactions": ["837"], "payer_name": "HealthPartners of Minnesota", "payer_key": "", "production_status": true, "trading_partner_id": "health_partners_mn"}, + {"supported_transactions": ["837"], "payer_name": "HealthSpring", "payer_key": "", "production_status": true, "trading_partner_id": "health_spring"}, {"supported_transactions": ["270", "276", "837"], "payer_name": "Highmark Blue Cross Blue Shield West + Virginia", "payer_key": "", "production_status": true, "trading_partner_id": "highmark_blue_cross_blue_shield_wv"}, {"supported_transactions": ["276", "270"], "payer_name": "Highmark Blue Cross Blue Shield of Pennsylvania", "payer_key": "", "production_status": + true, "trading_partner_id": "highmark_blue_cross_blue_shield_pa"}, {"supported_transactions": ["837"], "payer_name": "Humana", "payer_key": "", "production_status": true, "trading_partner_id": "humana"}, {"supported_transactions": ["837"], "payer_name": + "Independence Blue Cross", "payer_key": "", "production_status": true, "trading_partner_id": "independence_blue_cross"}, {"supported_transactions": ["837"], "payer_name": "Kaiser Foundation Health Plan of Georgia", "payer_key": "", "production_status": + true, "trading_partner_id": "kaiser_foundation_health_plan_ga"}, {"supported_transactions": ["837"], "payer_name": "Kaiser Foundation Health Plan of Northern CA Region", "payer_key": "", "production_status": true, "trading_partner_id": "kaiser_foundation_health_plan_of_northern_ca_region"}, + {"supported_transactions": ["837"], "payer_name": "Kaiser Foundation Health Plan of Ohio", "payer_key": "", "production_status": true, "trading_partner_id": "kaiser_foundation_health_plan_oh"}, {"supported_transactions": ["837"], "payer_name": "Kaiser + Foundation Health Plan of Southern CA Region", "payer_key": "", "production_status": true, "trading_partner_id": "kaiser_foundation_health_plan_southern_ca_region"}, {"supported_transactions": ["837"], "payer_name": "Kaiser Foundation Health Plan of the + Mid-Atlantic States", "payer_key": "", "production_status": true, "trading_partner_id": "kaiser_foundation_health_plan_mid_atlantic_states"}, {"supported_transactions": ["837"], "payer_name": "Kaiser Foundation Health Plan of the Northwest", "payer_key": + "", "production_status": true, "trading_partner_id": "kaiser_foundation_health_plan_northwest"}, {"supported_transactions": ["837"], "payer_name": "Keystone Health Plan East", "payer_key": "", "production_status": true, "trading_partner_id": "keystone_health_plan_east"}, + {"supported_transactions": ["276", "270"], "payer_name": "MVP Health Care", "payer_key": "", "production_status": true, "trading_partner_id": "mvp_health_care"}, {"supported_transactions": ["270", "837"], "payer_name": "Magellan Behavioral Health", "payer_key": + "", "production_status": true, "trading_partner_id": "magellan_health"}, {"supported_transactions": ["837"], "payer_name": "Managed Care Services", "payer_key": "", "production_status": true, "trading_partner_id": "managed_care_services"}, {"supported_transactions": + ["837"], "payer_name": "Medica HealthCare", "payer_key": "", "production_status": true, "trading_partner_id": "medica_health_care"}, {"supported_transactions": ["837"], "payer_name": "Medica Healthcare Plans (Medicare)", "payer_key": "", "production_status": + true, "trading_partner_id": "medica_healthcare_plans_medicare"}, {"supported_transactions": ["837"], "payer_name": "Medica2", "payer_key": "", "production_status": true, "trading_partner_id": "medica_usa"}, {"supported_transactions": ["837"], "payer_name": + "Medical Mutual of Ohio", "payer_key": "", "production_status": true, "trading_partner_id": "medical_mutual_oh"}, {"supported_transactions": ["837"], "payer_name": "Moda Health (Formerly ODS Health Plan)", "payer_key": "", "production_status": true, "trading_partner_id": + "moda_health"}, {"supported_transactions": ["837"], "payer_name": "Molina Healthcare of California", "payer_key": "", "production_status": true, "trading_partner_id": "molina_health_care_ca"}, {"supported_transactions": ["837"], "payer_name": "Molina Healthcare + of Florida", "payer_key": "", "production_status": true, "trading_partner_id": "molina_health_care_fl"}, {"supported_transactions": ["837"], "payer_name": "Molina Healthcare of Michigan", "payer_key": "", "production_status": true, "trading_partner_id": + "molina_health_care_mi"}, {"supported_transactions": ["837"], "payer_name": "Molina Healthcare of Nevada", "payer_key": "", "production_status": true, "trading_partner_id": "molina_health_care_nv"}, {"supported_transactions": ["837"], "payer_name": "Molina + Healthcare of New Mexico", "payer_key": "", "production_status": true, "trading_partner_id": "molina_health_care_nm"}, {"supported_transactions": ["837"], "payer_name": "Molina Healthcare of New Mexico - Salud", "payer_key": "", "production_status": true, + "trading_partner_id": "molina_health_care_nm_salud"}, {"supported_transactions": ["837"], "payer_name": "Molina Healthcare of Ohio", "payer_key": "", "production_status": true, "trading_partner_id": "molina_health_care_oh"}, {"supported_transactions": + ["837"], "payer_name": "Molina Healthcare of South Carolina", "payer_key": "", "production_status": true, "trading_partner_id": "molina_health_care_sc"}, {"supported_transactions": ["837"], "payer_name": "Molina Healthcare of Texas", "payer_key": "", "production_status": + true, "trading_partner_id": "molina_health_care_tx"}, {"supported_transactions": ["837"], "payer_name": "Molina Healthcare of Washington", "payer_key": "", "production_status": true, "trading_partner_id": "molina_health_care_wa"}, {"supported_transactions": + ["837"], "payer_name": "Molina Healthcare of Wisconsin", "payer_key": "", "production_status": true, "trading_partner_id": "molina_health_care_wi"}, {"supported_transactions": ["837"], "payer_name": "Molina Medicaid Solutions - Idaho", "payer_key": "", + "production_status": true, "trading_partner_id": "molina_health_care_id"}, {"supported_transactions": ["837"], "payer_name": "Neighborhood Health Partnership", "payer_key": "", "production_status": true, "trading_partner_id": "neighborhood_health_partnership"}, + {"supported_transactions": ["837"], "payer_name": "OptumHealth", "payer_key": "", "production_status": true, "trading_partner_id": "optum_health"}, {"supported_transactions": ["276", "270"], "payer_name": "Oxford Health Plans (United Healthcare)", "payer_key": + "", "production_status": true, "trading_partner_id": "oxford_health_plan_united"}, {"supported_transactions": ["837"], "payer_name": "PacificSource Health Plans", "payer_key": "", "production_status": true, "trading_partner_id": "pacific_source_health_plans"}, + {"supported_transactions": ["837"], "payer_name": "Preferred Care Partners", "payer_key": "", "production_status": true, "trading_partner_id": "preferred_care_partners"}, {"supported_transactions": ["276", "270", "837"], "payer_name": "Premera Blue Cross", + "payer_key": "", "production_status": true, "trading_partner_id": "premera_blue_cross"}, {"supported_transactions": ["837"], "payer_name": "Qual Choice of Arkansas", "payer_key": "", "production_status": true, "trading_partner_id": "qual_choice_ar"}, {"supported_transactions": + ["837"], "payer_name": "Regence Blue Shield - Idaho", "payer_key": "", "production_status": true, "trading_partner_id": "regence_blue_shield_id"}, {"supported_transactions": ["837"], "payer_name": "Regence BlueCross Blue Shield - Oregon", "payer_key": + "", "production_status": true, "trading_partner_id": "regence_bluecross_blue_shield_or"}, {"supported_transactions": ["837"], "payer_name": "Sierra Health Services", "payer_key": "", "production_status": true, "trading_partner_id": "sierra_health_services"}, + {"supported_transactions": ["837"], "payer_name": "Sunshine State Health Plan - Cenpatico", "payer_key": "", "production_status": true, "trading_partner_id": "sunshine_state_health_plan_cenpatico"}, {"supported_transactions": ["837"], "payer_name": "Sunshine + State Health Plan - Medical", "payer_key": "", "production_status": true, "trading_partner_id": "sunshine_state_health_plan_medical"}, {"supported_transactions": ["270"], "payer_name": "TRICARE", "payer_key": "", "production_status": true, "trading_partner_id": + "tricare"}, {"supported_transactions": ["270", "837", "276"], "payer_name": "TRICARE West", "payer_key": "", "production_status": true, "trading_partner_id": "tricare_west"}, {"supported_transactions": ["276", "270", "837"], "payer_name": "United Healthcare", + "payer_key": "", "production_status": true, "trading_partner_id": "united_health_care"}, {"supported_transactions": ["837"], "payer_name": "United Healthcare Community Plan of Arizona", "payer_key": "", "production_status": true, "trading_partner_id": + "united_health_care_community_plan_az"}, {"supported_transactions": ["837"], "payer_name": "United Healthcare Community Plan of Iowa", "payer_key": "", "production_status": true, "trading_partner_id": "united_health_care_community_plan_ia"}, {"supported_transactions": + ["837"], "payer_name": "United Healthcare Community Plan of Kansas", "payer_key": "", "production_status": true, "trading_partner_id": "united_health_care_community_plan_ks"}, {"supported_transactions": ["837"], "payer_name": "United Healthcare Community + Plan of Mississippi (CHIP)", "payer_key": "", "production_status": true, "trading_partner_id": "united_health_care_community_plan_ms"}, {"supported_transactions": ["837"], "payer_name": "United Healthcare Community Plan of New Jersey", "payer_key": "", + "production_status": true, "trading_partner_id": "united_health_care_community_plan_nj"}, {"supported_transactions": ["837"], "payer_name": "United Healthcare Community Plan of South Carolina", "payer_key": "", "production_status": true, "trading_partner_id": + "united_health_care_community_plan_sc"}, {"supported_transactions": ["837"], "payer_name": "United Healthcare Great Lakes Health Plan", "payer_key": "", "production_status": true, "trading_partner_id": "united_health_care_great_lakes_health_plan"}, {"supported_transactions": + ["837"], "payer_name": "United Healthcare Medicare Solutions - Care Improvement Plus", "payer_key": "", "production_status": true, "trading_partner_id": "united_health_care_medicare_solutions"}, {"supported_transactions": ["837"], "payer_name": "United + Healthcare Plan of the River Valley", "payer_key": "", "production_status": true, "trading_partner_id": "united_health_care_plan_river_valley"}, {"supported_transactions": ["837"], "payer_name": "Wellcare", "payer_key": "", "production_status": true, "trading_partner_id": + "wellcare"}, {"supported_transactions": ["276"], "payer_name": "Wellmark Blue Cross and Blue Shield of Iowa", "payer_key": "", "production_status": true, "trading_partner_id": "wellmark_blue_cross_blue_shield_ia"}]}' diff --git a/build/resources/test/betamax/tapes/plans_get.yaml b/build/resources/test/betamax/tapes/plans_get.yaml new file mode 100644 index 0000000..b5a5779 --- /dev/null +++ b/build/resources/test/betamax/tapes/plans_get.yaml @@ -0,0 +1,73 @@ +!tape +name: plans_get +interactions: +- recorded: 2014-11-14T16:48:23.358Z + request: + method: POST + uri: http://me.pokitdok.com:5002/oauth2/token + headers: + Accept-Encoding: gzip,deflate + Authorization: Basic a2NpcVhhUDFnSGQ3Q3BCa2FJcEQ6NVc0WW1tZVFrelJld3U2NGNZSE5reEZ1a0FZZXdGM2lab01nY29XMg== + Content-Length: '29' + Content-Type: application/x-www-form-urlencoded + Host: me.pokitdok.com:5002 + Proxy-Connection: Keep-Alive + User-Agent: pokitdok-java 0.6.1 jvm version 1.8.0_25 + body: grant_type=client_credentials + response: + status: 200 + headers: + Cache-Control: no-store + Content-Type: application/json;charset=UTF-8 + Date: Fri, 14 Nov 2014 16:48:23 GMT + Pragma: no-cache + Server: Werkzeug/0.9.4 Python/2.7.3 + body: '{"access_token": "0EEkaZKP6Zblh59HnlSqeUUCRQhhoEejeNAHUquU", "token_type": "bearer", "expires": 1415987303, "expires_in": 3600}' +- recorded: 2014-11-14T16:48:23.402Z + request: + method: GET + uri: http://me.pokitdok.com:5002/api/v4/plans?plan_type=PPO&state=TX + headers: + Accept-Encoding: gzip,deflate + Authorization: Bearer 0EEkaZKP6Zblh59HnlSqeUUCRQhhoEejeNAHUquU + Host: me.pokitdok.com:5002 + Proxy-Connection: Keep-Alive + User-Agent: pokitdok-java 0.6.1 jvm version 1.8.0_25 + response: + status: 200 + headers: + Content-Type: text/html; charset=utf-8 + Date: Fri, 14 Nov 2014 16:48:23 GMT + Server: Werkzeug/0.9.4 Python/2.7.3 + charset: utf-8 + mimetype: application/json + body: '{"meta": {"rate_limit_amount": 27, "rate_limit_reset": 1415986686, "application_mode": "test", "processing_time": 9, "rate_limit_cap": 1000, "credits_remaining": 13412, "activity_id": "5466325756c02c26498ca855", "credits_billed": 1}, "data": [{"plan_type": + "PPO", "county": "APACHE", "trading_partner_id": "aetna", "plan_id": "84251AZ0070001", "max_out_of_pocket": {"individual": 6350.0, "family": 12700.0}, "state": "AZ", "customer_service_phone": "1-855-586-6957", "premiums": [{"age": 21, "cost": 176.0, "adults": + 1, "children": 0}, {"age": 27, "cost": 185.0, "adults": 1, "children": 0}, {"age": 30, "cost": 200.0, "adults": 1, "children": 0}, {"age": 40, "cost": 225.0, "adults": 1, "children": 0}, {"age": 50, "cost": 314.0, "adults": 1, "children": 0}, {"age": 60, + "cost": 478.0, "adults": 1, "children": 0}, {"age": 21, "cost": 288.0, "adults": 1, "children": 1}, {"age": 30, "cost": 312.0, "adults": 1, "children": 1}, {"age": 40, "cost": 337.0, "adults": 1, "children": 1}, {"age": 50, "cost": 426.0, "adults": 1, + "children": 1}, {"age": 21, "cost": 400.0, "adults": 1, "children": 2}, {"age": 30, "cost": 424.0, "adults": 1, "children": 2}, {"age": 40, "cost": 449.0, "adults": 1, "children": 2}, {"age": 50, "cost": 538.0, "adults": 1, "children": 2}, {"age": 21, + "cost": 512.0, "adults": 1, "children": 3}, {"age": 30, "cost": 536.0, "adults": 1, "children": 3}, {"age": 40, "cost": 561.0, "adults": 1, "children": 3}, {"age": 50, "cost": 650.0, "adults": 1, "children": 3}, {"age": 21, "cost": 352.0, "adults": 2, + "children": 0}, {"age": 30, "cost": 400.0, "adults": 2, "children": 0}, {"age": 40, "cost": 450.0, "adults": 2, "children": 0}, {"age": 50, "cost": 628.0, "adults": 2, "children": 0}, {"age": 60, "cost": 956.0, "adults": 2, "children": 0}, {"age": 21, + "cost": 464.0, "adults": 2, "children": 1}, {"age": 30, "cost": 512.0, "adults": 2, "children": 1}, {"age": 40, "cost": 562.0, "adults": 2, "children": 1}, {"age": 50, "cost": 740.0, "adults": 2, "children": 1}, {"age": 21, "cost": 576.0, "adults": 2, + "children": 1}, {"age": 30, "cost": 624.0, "adults": 2, "children": 1}, {"age": 40, "cost": 674.0, "adults": 2, "children": 1}, {"age": 50, "cost": 852.0, "adults": 2, "children": 1}, {"age": 21, "cost": 688.0, "adults": 2, "children": 1}, {"age": 30, + "cost": 736.0, "adults": 2, "children": 1}, {"age": 40, "cost": 786.0, "adults": 2, "children": 1}, {"age": 50, "cost": 964.0, "adults": 2, "children": 1}], "metallic_level": "bronze", "deductible": {"individual": 5750.0, "family": 11500.0}, "plan_name": + "Aetna Advantage 5750 PD", "benefits_summary_url": "http://www.aetna.com/individuals-families-health-insurance/buy-insurance/exchange/az.html"}, {"plan_type": "PPO", "county": "ALEUTIANS EAST", "trading_partner_id": "premera_blue_cross", "plan_id": "38344AK0570001", + "max_out_of_pocket": {"individual": 5250.0, "family": 10500.0}, "state": "AK", "customer_service_phone": "1-800-508-4722", "premiums": [{"age": 21, "cost": 280.0, "adults": 1, "children": 0}, {"age": 27, "cost": 294.0, "adults": 1, "children": 0}, {"age": + 30, "cost": 318.0, "adults": 1, "children": 0}, {"age": 40, "cost": 358.0, "adults": 1, "children": 0}, {"age": 50, "cost": 501.0, "adults": 1, "children": 0}, {"age": 60, "cost": 761.0, "adults": 1, "children": 0}, {"age": 21, "cost": 458.0, "adults": + 1, "children": 1}, {"age": 30, "cost": 496.0, "adults": 1, "children": 1}, {"age": 40, "cost": 536.0, "adults": 1, "children": 1}, {"age": 50, "cost": 679.0, "adults": 1, "children": 1}, {"age": 21, "cost": 636.0, "adults": 1, "children": 2}, {"age": 30, + "cost": 674.0, "adults": 1, "children": 2}, {"age": 40, "cost": 714.0, "adults": 1, "children": 2}, {"age": 50, "cost": 857.0, "adults": 1, "children": 2}, {"age": 21, "cost": 814.0, "adults": 1, "children": 3}, {"age": 30, "cost": 852.0, "adults": 1, + "children": 3}, {"age": 40, "cost": 892.0, "adults": 1, "children": 3}, {"age": 50, "cost": 1035.0, "adults": 1, "children": 3}, {"age": 21, "cost": 560.0, "adults": 2, "children": 0}, {"age": 30, "cost": 636.0, "adults": 2, "children": 0}, {"age": 40, + "cost": 716.0, "adults": 2, "children": 0}, {"age": 50, "cost": 1002.0, "adults": 2, "children": 0}, {"age": 60, "cost": 1522.0, "adults": 2, "children": 0}, {"age": 21, "cost": 738.0, "adults": 2, "children": 1}, {"age": 30, "cost": 814.0, "adults": 2, + "children": 1}, {"age": 40, "cost": 894.0, "adults": 2, "children": 1}, {"age": 50, "cost": 1180.0, "adults": 2, "children": 1}, {"age": 21, "cost": 916.0, "adults": 2, "children": 1}, {"age": 30, "cost": 992.0, "adults": 2, "children": 1}, {"age": 40, + "cost": 1072.0, "adults": 2, "children": 1}, {"age": 50, "cost": 1358.0, "adults": 2, "children": 1}, {"age": 21, "cost": 1094.0, "adults": 2, "children": 1}, {"age": 30, "cost": 1170.0, "adults": 2, "children": 1}, {"age": 40, "cost": 1250.0, "adults": + 2, "children": 1}, {"age": 50, "cost": 1536.0, "adults": 2, "children": 1}], "metallic_level": "bronze", "deductible": {"individual": 5250.0, "family": 10500.0}, "plan_name": "Blue Cross Blue Shield Plus 5250 HSA High, a Multi-State Plan", "benefits_summary_url": + "https://www.premera.com/documents/028246.pdf"}, {"county": "ABBEVILLE", "premiums": [{"age": 21, "cost": 270.82, "adults": 1, "children": 0}, {"age": 27, "cost": 283.82, "adults": 1, "children": 0}, {"age": 30, "cost": 307.38, "adults": 1, "children": + 0}, {"age": 40, "cost": 346.1, "adults": 1, "children": 0}, {"age": 50, "cost": 483.68, "adults": 1, "children": 0}, {"age": 60, "cost": 735.0, "adults": 1, "children": 0}, {"age": 21, "cost": 442.78, "adults": 1, "children": 1}, {"age": 30, "cost": 479.35, + "adults": 1, "children": 1}, {"age": 40, "cost": 518.07, "adults": 1, "children": 1}, {"age": 50, "cost": 655.65, "adults": 1, "children": 1}, {"age": 21, "cost": 614.76, "adults": 1, "children": 2}, {"age": 30, "cost": 651.31, "adults": 1, "children": + 2}, {"age": 40, "cost": 690.04, "adults": 1, "children": 2}, {"age": 50, "cost": 827.62, "adults": 1, "children": 2}, {"age": 21, "cost": 786.73, "adults": 1, "children": 3}, {"age": 30, "cost": 823.29, "adults": 1, "children": 3}, {"age": 40, "cost": + 862.01, "adults": 1, "children": 3}, {"age": 50, "cost": 999.58, "adults": 1, "children": 3}, {"age": 21, "cost": 541.64, "adults": 2, "children": 0}, {"age": 30, "cost": 614.76, "adults": 2, "children": 0}, {"age": 40, "cost": 692.2, "adults": 2, "children": + 0}, {"age": 50, "cost": 967.36, "adults": 2, "children": 0}, {"age": 60, "cost": 1470.0, "adults": 2, "children": 0}, {"age": 21, "cost": 713.61, "adults": 2, "children": 1}, {"age": 30, "cost": 786.73, "adults": 2, "children": 1}, {"age": 40, "cost": + 864.17, "adults": 2, "children": 1}, {"age": 50, "cost": 1139.33, "adults": 2, "children": 1}, {"age": 21, "cost": 885.57, "adults": 2, "children": 1}, {"age": 30, "cost": 958.7, "adults": 2, "children": 1}, {"age": 40, "cost": 1036.14, "adults": 2, "children": + 1}, {"age": 50, "cost": 1311.3, "adults": 2, "children": 1}, {"age": 21, "cost": 1057.55, "adults": 2, "children": 1}, {"age": 30, "cost": 1130.67, "adults": 2, "children": 1}, {"age": 40, "cost": 1208.11, "adults": 2, "children": 1}, {"age": 50, "cost": + 1483.27, "adults": 2, "children": 1}], "plan_id": "26065SC0380001", "trading_partner_id": "blue_cross_blue_shield_sc", "state": "SC", "metallic_level": "gold", "customer_service_phone": "1-800-550-6322", "plan_name": "BlueEssentials Gold 1", "plan_type": + "EPO", "benefits_summary_url": "https://www.southcarolinablues.com/links/metallic/SBC"}]}' diff --git a/build/resources/test/betamax/tapes/plans_index.yaml b/build/resources/test/betamax/tapes/plans_index.yaml new file mode 100644 index 0000000..1ec3e30 --- /dev/null +++ b/build/resources/test/betamax/tapes/plans_index.yaml @@ -0,0 +1,73 @@ +!tape +name: plans_index +interactions: +- recorded: 2014-11-14T16:48:22.769Z + request: + method: POST + uri: http://me.pokitdok.com:5002/oauth2/token + headers: + Accept-Encoding: gzip,deflate + Authorization: Basic a2NpcVhhUDFnSGQ3Q3BCa2FJcEQ6NVc0WW1tZVFrelJld3U2NGNZSE5reEZ1a0FZZXdGM2lab01nY29XMg== + Content-Length: '29' + Content-Type: application/x-www-form-urlencoded + Host: me.pokitdok.com:5002 + Proxy-Connection: Keep-Alive + User-Agent: pokitdok-java 0.6.1 jvm version 1.8.0_25 + body: grant_type=client_credentials + response: + status: 200 + headers: + Cache-Control: no-store + Content-Type: application/json;charset=UTF-8 + Date: Fri, 14 Nov 2014 16:48:22 GMT + Pragma: no-cache + Server: Werkzeug/0.9.4 Python/2.7.3 + body: '{"access_token": "tnhztXctXns3ZmFgrTq5VRNgB0ByjnPEYAoSB8T4", "token_type": "bearer", "expires": 1415987303, "expires_in": 3600}' +- recorded: 2014-11-14T16:48:22.814Z + request: + method: GET + uri: http://me.pokitdok.com:5002/api/v4/plans + headers: + Accept-Encoding: gzip,deflate + Authorization: Bearer tnhztXctXns3ZmFgrTq5VRNgB0ByjnPEYAoSB8T4 + Host: me.pokitdok.com:5002 + Proxy-Connection: Keep-Alive + User-Agent: pokitdok-java 0.6.1 jvm version 1.8.0_25 + response: + status: 200 + headers: + Content-Type: text/html; charset=utf-8 + Date: Fri, 14 Nov 2014 16:48:22 GMT + Server: Werkzeug/0.9.4 Python/2.7.3 + charset: utf-8 + mimetype: application/json + body: '{"meta": {"rate_limit_amount": 26, "rate_limit_reset": 1415986686, "application_mode": "test", "processing_time": 10, "rate_limit_cap": 1000, "credits_remaining": 13413, "activity_id": "5466325656c02c26448ca855", "credits_billed": 1}, "data": [{"plan_type": + "PPO", "county": "APACHE", "trading_partner_id": "aetna", "plan_id": "84251AZ0070001", "max_out_of_pocket": {"individual": 6350.0, "family": 12700.0}, "state": "AZ", "customer_service_phone": "1-855-586-6957", "premiums": [{"age": 21, "cost": 176.0, "adults": + 1, "children": 0}, {"age": 27, "cost": 185.0, "adults": 1, "children": 0}, {"age": 30, "cost": 200.0, "adults": 1, "children": 0}, {"age": 40, "cost": 225.0, "adults": 1, "children": 0}, {"age": 50, "cost": 314.0, "adults": 1, "children": 0}, {"age": 60, + "cost": 478.0, "adults": 1, "children": 0}, {"age": 21, "cost": 288.0, "adults": 1, "children": 1}, {"age": 30, "cost": 312.0, "adults": 1, "children": 1}, {"age": 40, "cost": 337.0, "adults": 1, "children": 1}, {"age": 50, "cost": 426.0, "adults": 1, + "children": 1}, {"age": 21, "cost": 400.0, "adults": 1, "children": 2}, {"age": 30, "cost": 424.0, "adults": 1, "children": 2}, {"age": 40, "cost": 449.0, "adults": 1, "children": 2}, {"age": 50, "cost": 538.0, "adults": 1, "children": 2}, {"age": 21, + "cost": 512.0, "adults": 1, "children": 3}, {"age": 30, "cost": 536.0, "adults": 1, "children": 3}, {"age": 40, "cost": 561.0, "adults": 1, "children": 3}, {"age": 50, "cost": 650.0, "adults": 1, "children": 3}, {"age": 21, "cost": 352.0, "adults": 2, + "children": 0}, {"age": 30, "cost": 400.0, "adults": 2, "children": 0}, {"age": 40, "cost": 450.0, "adults": 2, "children": 0}, {"age": 50, "cost": 628.0, "adults": 2, "children": 0}, {"age": 60, "cost": 956.0, "adults": 2, "children": 0}, {"age": 21, + "cost": 464.0, "adults": 2, "children": 1}, {"age": 30, "cost": 512.0, "adults": 2, "children": 1}, {"age": 40, "cost": 562.0, "adults": 2, "children": 1}, {"age": 50, "cost": 740.0, "adults": 2, "children": 1}, {"age": 21, "cost": 576.0, "adults": 2, + "children": 1}, {"age": 30, "cost": 624.0, "adults": 2, "children": 1}, {"age": 40, "cost": 674.0, "adults": 2, "children": 1}, {"age": 50, "cost": 852.0, "adults": 2, "children": 1}, {"age": 21, "cost": 688.0, "adults": 2, "children": 1}, {"age": 30, + "cost": 736.0, "adults": 2, "children": 1}, {"age": 40, "cost": 786.0, "adults": 2, "children": 1}, {"age": 50, "cost": 964.0, "adults": 2, "children": 1}], "metallic_level": "bronze", "deductible": {"individual": 5750.0, "family": 11500.0}, "plan_name": + "Aetna Advantage 5750 PD", "benefits_summary_url": "http://www.aetna.com/individuals-families-health-insurance/buy-insurance/exchange/az.html"}, {"plan_type": "PPO", "county": "ALEUTIANS EAST", "trading_partner_id": "premera_blue_cross", "plan_id": "38344AK0570001", + "max_out_of_pocket": {"individual": 5250.0, "family": 10500.0}, "state": "AK", "customer_service_phone": "1-800-508-4722", "premiums": [{"age": 21, "cost": 280.0, "adults": 1, "children": 0}, {"age": 27, "cost": 294.0, "adults": 1, "children": 0}, {"age": + 30, "cost": 318.0, "adults": 1, "children": 0}, {"age": 40, "cost": 358.0, "adults": 1, "children": 0}, {"age": 50, "cost": 501.0, "adults": 1, "children": 0}, {"age": 60, "cost": 761.0, "adults": 1, "children": 0}, {"age": 21, "cost": 458.0, "adults": + 1, "children": 1}, {"age": 30, "cost": 496.0, "adults": 1, "children": 1}, {"age": 40, "cost": 536.0, "adults": 1, "children": 1}, {"age": 50, "cost": 679.0, "adults": 1, "children": 1}, {"age": 21, "cost": 636.0, "adults": 1, "children": 2}, {"age": 30, + "cost": 674.0, "adults": 1, "children": 2}, {"age": 40, "cost": 714.0, "adults": 1, "children": 2}, {"age": 50, "cost": 857.0, "adults": 1, "children": 2}, {"age": 21, "cost": 814.0, "adults": 1, "children": 3}, {"age": 30, "cost": 852.0, "adults": 1, + "children": 3}, {"age": 40, "cost": 892.0, "adults": 1, "children": 3}, {"age": 50, "cost": 1035.0, "adults": 1, "children": 3}, {"age": 21, "cost": 560.0, "adults": 2, "children": 0}, {"age": 30, "cost": 636.0, "adults": 2, "children": 0}, {"age": 40, + "cost": 716.0, "adults": 2, "children": 0}, {"age": 50, "cost": 1002.0, "adults": 2, "children": 0}, {"age": 60, "cost": 1522.0, "adults": 2, "children": 0}, {"age": 21, "cost": 738.0, "adults": 2, "children": 1}, {"age": 30, "cost": 814.0, "adults": 2, + "children": 1}, {"age": 40, "cost": 894.0, "adults": 2, "children": 1}, {"age": 50, "cost": 1180.0, "adults": 2, "children": 1}, {"age": 21, "cost": 916.0, "adults": 2, "children": 1}, {"age": 30, "cost": 992.0, "adults": 2, "children": 1}, {"age": 40, + "cost": 1072.0, "adults": 2, "children": 1}, {"age": 50, "cost": 1358.0, "adults": 2, "children": 1}, {"age": 21, "cost": 1094.0, "adults": 2, "children": 1}, {"age": 30, "cost": 1170.0, "adults": 2, "children": 1}, {"age": 40, "cost": 1250.0, "adults": + 2, "children": 1}, {"age": 50, "cost": 1536.0, "adults": 2, "children": 1}], "metallic_level": "bronze", "deductible": {"individual": 5250.0, "family": 10500.0}, "plan_name": "Blue Cross Blue Shield Plus 5250 HSA High, a Multi-State Plan", "benefits_summary_url": + "https://www.premera.com/documents/028246.pdf"}, {"county": "ABBEVILLE", "premiums": [{"age": 21, "cost": 270.82, "adults": 1, "children": 0}, {"age": 27, "cost": 283.82, "adults": 1, "children": 0}, {"age": 30, "cost": 307.38, "adults": 1, "children": + 0}, {"age": 40, "cost": 346.1, "adults": 1, "children": 0}, {"age": 50, "cost": 483.68, "adults": 1, "children": 0}, {"age": 60, "cost": 735.0, "adults": 1, "children": 0}, {"age": 21, "cost": 442.78, "adults": 1, "children": 1}, {"age": 30, "cost": 479.35, + "adults": 1, "children": 1}, {"age": 40, "cost": 518.07, "adults": 1, "children": 1}, {"age": 50, "cost": 655.65, "adults": 1, "children": 1}, {"age": 21, "cost": 614.76, "adults": 1, "children": 2}, {"age": 30, "cost": 651.31, "adults": 1, "children": + 2}, {"age": 40, "cost": 690.04, "adults": 1, "children": 2}, {"age": 50, "cost": 827.62, "adults": 1, "children": 2}, {"age": 21, "cost": 786.73, "adults": 1, "children": 3}, {"age": 30, "cost": 823.29, "adults": 1, "children": 3}, {"age": 40, "cost": + 862.01, "adults": 1, "children": 3}, {"age": 50, "cost": 999.58, "adults": 1, "children": 3}, {"age": 21, "cost": 541.64, "adults": 2, "children": 0}, {"age": 30, "cost": 614.76, "adults": 2, "children": 0}, {"age": 40, "cost": 692.2, "adults": 2, "children": + 0}, {"age": 50, "cost": 967.36, "adults": 2, "children": 0}, {"age": 60, "cost": 1470.0, "adults": 2, "children": 0}, {"age": 21, "cost": 713.61, "adults": 2, "children": 1}, {"age": 30, "cost": 786.73, "adults": 2, "children": 1}, {"age": 40, "cost": + 864.17, "adults": 2, "children": 1}, {"age": 50, "cost": 1139.33, "adults": 2, "children": 1}, {"age": 21, "cost": 885.57, "adults": 2, "children": 1}, {"age": 30, "cost": 958.7, "adults": 2, "children": 1}, {"age": 40, "cost": 1036.14, "adults": 2, "children": + 1}, {"age": 50, "cost": 1311.3, "adults": 2, "children": 1}, {"age": 21, "cost": 1057.55, "adults": 2, "children": 1}, {"age": 30, "cost": 1130.67, "adults": 2, "children": 1}, {"age": 40, "cost": 1208.11, "adults": 2, "children": 1}, {"age": 50, "cost": + 1483.27, "adults": 2, "children": 1}], "plan_id": "26065SC0380001", "trading_partner_id": "blue_cross_blue_shield_sc", "state": "SC", "metallic_level": "gold", "customer_service_phone": "1-800-550-6322", "plan_name": "BlueEssentials Gold 1", "plan_type": + "EPO", "benefits_summary_url": "https://www.southcarolinablues.com/links/metallic/SBC"}]}' diff --git a/build/resources/test/betamax/tapes/providers.yaml b/build/resources/test/betamax/tapes/providers.yaml new file mode 100644 index 0000000..07ab460 --- /dev/null +++ b/build/resources/test/betamax/tapes/providers.yaml @@ -0,0 +1,66 @@ +!tape +name: providers +interactions: +- recorded: 2014-11-14T16:48:17.916Z + request: + method: POST + uri: http://me.pokitdok.com:5002/oauth2/token + headers: + Accept-Encoding: gzip,deflate + Authorization: Basic a2NpcVhhUDFnSGQ3Q3BCa2FJcEQ6NVc0WW1tZVFrelJld3U2NGNZSE5reEZ1a0FZZXdGM2lab01nY29XMg== + Content-Length: '29' + Content-Type: application/x-www-form-urlencoded + Host: me.pokitdok.com:5002 + Proxy-Connection: Keep-Alive + User-Agent: pokitdok-java 0.6.1 jvm version 1.8.0_25 + body: grant_type=client_credentials + response: + status: 200 + headers: + Cache-Control: no-store + Content-Type: application/json;charset=UTF-8 + Date: Fri, 14 Nov 2014 16:48:17 GMT + Pragma: no-cache + Server: Werkzeug/0.9.4 Python/2.7.3 + body: '{"access_token": "Nl6l8uY20lJB280qGAfPFTX1ILJ2EFHPC2pRWqCg", "token_type": "bearer", "expires": 1415987298, "expires_in": 3600}' +- recorded: 2014-11-14T16:48:17.962Z + request: + method: GET + uri: http://me.pokitdok.com:5002/api/v4/providers?npi=1467560003 + headers: + Accept-Encoding: gzip,deflate + Authorization: Bearer Nl6l8uY20lJB280qGAfPFTX1ILJ2EFHPC2pRWqCg + Host: me.pokitdok.com:5002 + Proxy-Connection: Keep-Alive + User-Agent: pokitdok-java 0.6.1 jvm version 1.8.0_25 + response: + status: 200 + headers: + Content-Type: text/html; charset=utf-8 + Date: Fri, 14 Nov 2014 16:48:17 GMT + Server: Werkzeug/0.9.4 Python/2.7.3 + charset: utf-8 + mimetype: application/json + body: '{"meta": {"rate_limit_amount": 18, "rate_limit_reset": 1415986686, "application_mode": "test", "processing_time": 9, "rate_limit_cap": 1000, "credits_remaining": 9983, "activity_id": "5466325156c02c261f8ca855", "credits_billed": 1}, "data": [{"provider": + {"board_subcertifications": ["Gynecologic Oncology"], "board_certifications": ["Obstetrics & Gynecology"], "last_name": "SHEN", "npi": "1881692002", "uuid": "1917f12b-fb6a-4016-93bc-adeb83204c83", "degree": "MD", "phone": "4156680900", "gender": "Male", + "residencies": [{"city": "SAN FRANCISCO", "to_year": "1978", "institution_name": "MOFFITT HOSPITAL UNIVERSITY OF CA", "from_year": "1976", "specialty": "OBSTETRICS & GYNECOLOGY"}, {"city": "SAN FRANCISCO", "to_year": "1976", "institution_name": "MOFFITT + HOSPITAL UNIVERSITY OF CA", "from_year": "1975", "specialty": "OBSTETRICS & GYNECOLOGY"}], "licensures": [{"status": "active", "expiration_date": "2016-02-29T00:00:00", "number": "60146196", "as_of_date": "2014-06-13T00:00:00", "state": "NY", "type": "unlimited"}, + {"status": "inactive", "expiration_date": "1997-06-30T00:00:00", "number": "25MA03991900", "as_of_date": "2003-02-25T00:00:00", "state": "NJ", "type": "unlimited"}, {"status": "active", "expiration_date": "2015-03-31T00:00:00", "number": "A00030257", "as_of_date": + "2014-06-17T00:00:00", "state": "CA", "type": "unlimited"}], "specialty": ["Gynecology", "Obstetrics & Gynecology"], "fax": "4156680950", "specialty_primary": ["Gynecology", "Obstetrics & Gynecology"], "locations": [{"address_lines": ["3905 Sacramento + St Ste 202"], "fax": "4156680950", "geo_location": [-122.45694, 37.786841], "role": ["mailing", "practice"], "city": "San Francisco", "state": "CA", "phone": "4156680900", "zipcode": "94118"}], "licenses": [{"state": "CA", "role": "preferred", "year": + "1976-01-01T00:00:00"}, {"state": "CA", "role": "alternate", "year": "1976-01-01T00:00:00"}], "first_name": "JENTA", "birth_date": "1945", "education": {"medical_school": "NATIONAL DEFENSE MEDICAL CENTER TAIPEI TAIWAN (385 03 PR 1", "graduation_year": + "1970-01-01T00:00:00"}}}, {"provider": {"board_subcertifications": ["Hospice and Palliative Medicine"], "board_certifications": ["Internal Medicine"], "last_name": "VIJAY", "npi": "1720057821", "uuid": "35ed7481-aa9d-4822-8090-298ddbc89b67", "degree": + "MD", "gender": "Female", "residencies": [{"city": "PITTSBURGH", "to_year": "2005", "institution_name": "UNIVERSITY OF PITTSBURGH MEDICAL CENTER", "from_year": "2002", "specialty": "INTERNAL MEDICINE"}, {"city": "PITTSBURGH", "to_year": "2002", "institution_name": + "ST FRANCIS MEDICAL CENTER", "from_year": "2002", "specialty": "INTERNAL MEDICINE"}], "licensures": [{"status": "active", "expiration_date": "2015-05-31T00:00:00", "number": "A00091741", "as_of_date": "2014-06-17T00:00:00", "state": "CA", "type": "unlimited"}, + {"status": "inactive", "as_of_date": "2014-04-24T00:00:00", "state": "PA", "type": "resident", "expiration_date": "2005-07-07T00:00:00"}], "specialty": ["Internal Medicine"], "first_name": "CHETHANA", "specialty_primary": ["Internal Medicine"], "locations": + [{"address_lines": ["1027 Wisteria Dr"], "city": "Fremont", "zipcode": "94539", "state": "CA", "geo_location": [-121.93831, 37.53901], "role": ["mailing"]}, {"address_lines": ["2000 Vale Rd"], "city": "San Pablo", "zipcode": "94806", "state": "CA", "geo_location": + [-122.338754, 37.952833], "role": ["practice"]}], "licenses": [{"state": "CA", "role": "preferred", "year": "2005-01-01T00:00:00"}, {"state": "CA", "role": "alternate", "year": "2005-01-01T00:00:00"}, {"state": "CA", "role": "hospital", "year": "2005-01-01T00:00:00"}], + "birth_date": "1977", "education": {"medical_school": "JSS MEDICAL COLLEGE MYSORE UNIVERSITY MYSORE KARNATAKA IN", "graduation_year": "2001-01-01T00:00:00"}}}, {"provider": {"last_name": "LE", "npi": "1760485171", "degree": "DO", "locations": [{"address_lines": + ["2683 Mignon Dr"], "city": "San Jose", "zipcode": "95132", "state": "CA", "geo_location": [-121.87201, 37.398588], "role": ["mailing"]}, {"address_lines": ["3640 Sweigert Rd"], "city": "San Jose", "zipcode": "95132", "state": "CA", "geo_location": [-121.84214, + 37.41407], "role": ["practice"]}], "specialty_primary": ["Family Practice", "Family Medicine"], "specialty": ["Family Practice", "Family Medicine"], "licenses": [{"state": "CA", "role": "preferred", "year": "2003-01-01T00:00:00"}, {"state": "CA", "role": + "alternate", "year": "2003-01-01T00:00:00"}], "education": {"medical_school": "TOURO UNIVERSITY COLLEGE OF OSTEOPATHIC MEDICAL VALLEJO CA 94592", "graduation_year": "2002-01-01T00:00:00"}, "board_certifications": ["Family Medicine"], "residencies": [{"city": + "STOCKTON", "to_year": "2005", "institution_name": "SAN JOAQUIN GENERAL HOSPITAL", "from_year": "2002", "specialty": "FAMILY MEDICINE"}], "uuid": "2093f529-709a-43ee-a3a0-92b2d03fd5c3", "gender": "Male", "licensures": [{"status": "active", "expiration_date": + "2014-10-31T00:00:00", "number": "20A8549", "as_of_date": "2014-06-02T00:00:00", "state": "CA", "type": "unlimited"}], "first_name": "VINCENT", "birth_date": "1972"}}, {"provider": {"organization_name": "MEDICAL UNIVERSITY MEDICAL ASSOCIATES", "phone": + "8437921414", "npi": "1669523528", "uuid": "daa6c66e-fbd8-4280-a3c1-bb85cddb20ab", "specialty_secondary": ["Physician Assistant", "Nurse Practitioner"], "locations": [{"address_lines": ["PO Box 751514"], "state": "NC", "geo_location": [-80.804151, 35.26002], + "role": ["mailing"], "city": "Charlotte", "country": "US", "zipcode": "28275", "phone": "8437926200"}, {"address_lines": ["171 Ashley Ave"], "state": "SC", "geo_location": [-79.946621, 32.785542], "role": ["practice"], "city": "Charleston", "country": + "US", "zipcode": "29425", "phone": "8437921414"}], "specialty_primary": ["Transplant Surgery", "Surgery"], "specialty": ["Transplant Surgery", "Physician Assistant", "Surgery", "Nurse Practitioner"]}}]}' diff --git a/build/resources/test/betamax/tapes/referrals.yaml b/build/resources/test/betamax/tapes/referrals.yaml new file mode 100644 index 0000000..34f62cd --- /dev/null +++ b/build/resources/test/betamax/tapes/referrals.yaml @@ -0,0 +1,52 @@ +!tape +name: referrals +interactions: +- recorded: 2014-11-14T16:48:23.946Z + request: + method: POST + uri: http://me.pokitdok.com:5002/oauth2/token + headers: + Accept-Encoding: gzip,deflate + Authorization: Basic a2NpcVhhUDFnSGQ3Q3BCa2FJcEQ6NVc0WW1tZVFrelJld3U2NGNZSE5reEZ1a0FZZXdGM2lab01nY29XMg== + Content-Length: '29' + Content-Type: application/x-www-form-urlencoded + Host: me.pokitdok.com:5002 + Proxy-Connection: Keep-Alive + User-Agent: pokitdok-java 0.6.1 jvm version 1.8.0_25 + body: grant_type=client_credentials + response: + status: 200 + headers: + Cache-Control: no-store + Content-Type: application/json;charset=UTF-8 + Date: Fri, 14 Nov 2014 16:48:23 GMT + Pragma: no-cache + Server: Werkzeug/0.9.4 Python/2.7.3 + body: '{"access_token": "PmPUrzWXrzywjvf5FI3QS2QqFoQj8b7Q0P2LWZeS", "token_type": "bearer", "expires": 1415987304, "expires_in": 3600}' +- recorded: 2014-11-14T16:48:24.088Z + request: + method: POST + uri: http://me.pokitdok.com:5002/api/v4/referrals/ + headers: + Accept-Encoding: gzip,deflate + Authorization: Bearer PmPUrzWXrzywjvf5FI3QS2QqFoQj8b7Q0P2LWZeS + Content-Encoding: UTF-8 + Content-Length: '537' + Content-Type: application/json + Host: me.pokitdok.com:5002 + Proxy-Connection: Keep-Alive + User-Agent: pokitdok-java 0.6.1 jvm version 1.8.0_25 + body: '{"provider":{"npi":"1619131232","last_name":"BERTOLAMI","first_name":"CHRISTINA"},"patient":{"birth_date":"1970-01-01","last_name":"DOE","id":"1234567890","first_name":"JANE"},"trading_partner_id":"MOCKPAYER","event":{"delivery":{"quantity_qualifier":"visits","quantity":1},"provider":{"phone":"8645822900","npi":"1154387751","last_name":"FOSTER","first_name":"JOHN"},"certification_type":"initial","category":"specialty_care_review","type":"consultation","diagnoses":[{"date":"2014-09-30","code":"384.20"}],"place_of_service":"office"}}' + response: + status: 200 + headers: + Content-Type: text/html; charset=utf-8 + Date: Fri, 14 Nov 2014 16:48:24 GMT + Server: Werkzeug/0.9.4 Python/2.7.3 + charset: utf-8 + mimetype: application/json + body: '{"meta": {"rate_limit_amount": 28, "rate_limit_reset": 1415986686, "application_mode": "test", "processing_time": 126, "rate_limit_cap": 1000, "credits_remaining": 13411, "activity_id": "5466325756c02c264d8ca855", "credits_billed": 1}, "data": {"patient": + {"first_name": "JANE", "last_name": "DOE", "id": "1234567890"}, "trading_partner_id": "MOCKPAYER", "payer": {"organization_name": "MOCK PAYER INC", "id": "MOCKPAYER"}, "originating_company_id": "9012345678", "correlation_id": "fb02252b-92de-41ca-8012-a8fa3f632282", + "client_id": "kciqXaP1gHd7CpBkaIpD", "provider": {"first_name": "CHRISTINA", "last_name": "BERTOLAMI", "tax_id": "1619131232"}, "async": false, "event": {"category": "specialty_care_review", "diagnoses": [{"date": "2005-04-30", "code": "410.90"}], "place_of_service": + "office", "review": {"certification_number": "AUTH0001", "second_surgical_opinion_required": false, "certification_action": "certified_in_total"}, "delivery": {"quantity_qualifier": "visits", "quantity": 1}, "provider": {"first_name": "JOHN", "last_name": + "FOSTER", "tax_id": "1154387751"}, "certification_type": "initial", "type": "consultation"}, "valid_request": true}}' diff --git a/build/resources/test/betamax/tapes/trading_partners_get.yaml b/build/resources/test/betamax/tapes/trading_partners_get.yaml new file mode 100644 index 0000000..3ef5eda --- /dev/null +++ b/build/resources/test/betamax/tapes/trading_partners_get.yaml @@ -0,0 +1,44 @@ +!tape +name: trading_partners_get +interactions: +- recorded: 2014-11-14T16:48:22.201Z + request: + method: POST + uri: http://me.pokitdok.com:5002/oauth2/token + headers: + Accept-Encoding: gzip,deflate + Authorization: Basic a2NpcVhhUDFnSGQ3Q3BCa2FJcEQ6NVc0WW1tZVFrelJld3U2NGNZSE5reEZ1a0FZZXdGM2lab01nY29XMg== + Content-Length: '29' + Content-Type: application/x-www-form-urlencoded + Host: me.pokitdok.com:5002 + Proxy-Connection: Keep-Alive + User-Agent: pokitdok-java 0.6.1 jvm version 1.8.0_25 + body: grant_type=client_credentials + response: + status: 200 + headers: + Cache-Control: no-store + Content-Type: application/json;charset=UTF-8 + Date: Fri, 14 Nov 2014 16:48:22 GMT + Pragma: no-cache + Server: Werkzeug/0.9.4 Python/2.7.3 + body: '{"access_token": "RMgcmRR9BaOc0eNsclsHE76hMDZZ8Didn1nddDfC", "token_type": "bearer", "expires": 1415987302, "expires_in": 3600}' +- recorded: 2014-11-14T16:48:22.225Z + request: + method: GET + uri: http://me.pokitdok.com:5002/api/v4/tradingpartners/MOCKPAYER + headers: + Accept-Encoding: gzip,deflate + Authorization: Bearer RMgcmRR9BaOc0eNsclsHE76hMDZZ8Didn1nddDfC + Host: me.pokitdok.com:5002 + Proxy-Connection: Keep-Alive + User-Agent: pokitdok-java 0.6.1 jvm version 1.8.0_25 + response: + status: 404 + headers: + Content-Type: text/html; charset=utf-8 + Date: Fri, 14 Nov 2014 16:48:22 GMT + Server: Werkzeug/0.9.4 Python/2.7.3 + charset: utf-8 + mimetype: application/json + body: '{"meta": {"rate_limit_amount": 25, "rate_limit_reset": 1415986686, "application_mode": "test", "processing_time": 9, "rate_limit_cap": 1000, "activity_id": "5466325656c02c263f8ca855"}, "data": {}}' diff --git a/build/resources/test/betamax/tapes/trading_partners_index.yaml b/build/resources/test/betamax/tapes/trading_partners_index.yaml new file mode 100644 index 0000000..1da01f1 --- /dev/null +++ b/build/resources/test/betamax/tapes/trading_partners_index.yaml @@ -0,0 +1,126 @@ +!tape +name: trading_partners_index +interactions: +- recorded: 2014-11-14T16:48:21.625Z + request: + method: POST + uri: http://me.pokitdok.com:5002/oauth2/token + headers: + Accept-Encoding: gzip,deflate + Authorization: Basic a2NpcVhhUDFnSGQ3Q3BCa2FJcEQ6NVc0WW1tZVFrelJld3U2NGNZSE5reEZ1a0FZZXdGM2lab01nY29XMg== + Content-Length: '29' + Content-Type: application/x-www-form-urlencoded + Host: me.pokitdok.com:5002 + Proxy-Connection: Keep-Alive + User-Agent: pokitdok-java 0.6.1 jvm version 1.8.0_25 + body: grant_type=client_credentials + response: + status: 200 + headers: + Cache-Control: no-store + Content-Type: application/json;charset=UTF-8 + Date: Fri, 14 Nov 2014 16:48:21 GMT + Pragma: no-cache + Server: Werkzeug/0.9.4 Python/2.7.3 + body: '{"access_token": "2QJYecfOb5wYf8lPA91wLF2Nmvughn6J5J0sDauQ", "token_type": "bearer", "expires": 1415987302, "expires_in": 3600}' +- recorded: 2014-11-14T16:48:21.655Z + request: + method: GET + uri: http://me.pokitdok.com:5002/api/v4/tradingpartners/ + headers: + Accept-Encoding: gzip,deflate + Authorization: Bearer 2QJYecfOb5wYf8lPA91wLF2Nmvughn6J5J0sDauQ + Host: me.pokitdok.com:5002 + Proxy-Connection: Keep-Alive + User-Agent: pokitdok-java 0.6.1 jvm version 1.8.0_25 + response: + status: 200 + headers: + Content-Type: text/html; charset=utf-8 + Date: Fri, 14 Nov 2014 16:48:21 GMT + Server: Werkzeug/0.9.4 Python/2.7.3 + charset: utf-8 + mimetype: application/json + body: '{"meta": {"rate_limit_amount": 24, "rate_limit_reset": 1415986686, "application_mode": "test", "processing_time": 11, "rate_limit_cap": 1000, "activity_id": "5466325556c02c26398ca855"}, "data": [{"is_enabled": true, "supported_transactions": ["837"], + "id": "aarp_medicare_complete", "name": "AARP Medicare Complete - Lifeprint Network"}, {"is_enabled": true, "supported_transactions": ["837"], "id": "aarp_medicare_supplement", "name": "AARP Medicare Supplement Plan"}, {"is_enabled": true, "supported_transactions": + ["276", "278", "270", "837"], "id": "aetna", "name": "Aetna"}, {"is_enabled": true, "supported_transactions": ["837"], "id": "all_savers_insurance", "name": "All Savers Insurance"}, {"is_enabled": true, "supported_transactions": ["837"], "id": "altius_health_plan_coventry", + "name": "Altius Health Plan - Coventry"}, {"is_enabled": true, "supported_transactions": ["837"], "id": "amerigroup_nj", "name": "AmeriGroup - New Jersey"}, {"is_enabled": true, "supported_transactions": ["837"], "id": "amerihealth_administrators", "name": + "AmeriHealth Administrators"}, {"is_enabled": true, "supported_transactions": ["837"], "id": "amerihealth_de_non_hmo", "name": "AmeriHealth DE Non-HMO"}, {"is_enabled": true, "supported_transactions": ["837"], "id": "amerihealth_nj_non_hmo", "name": "AmeriHealth + NJ Non-HMO"}, {"is_enabled": true, "supported_transactions": ["837"], "id": "amerihealth_nj_de_hmo", "name": "AmeriHealth NJ/DE HMO"}, {"is_enabled": true, "supported_transactions": ["837"], "id": "amerigroup_fl", "name": "Amerigroup - Florida"}, {"is_enabled": + true, "supported_transactions": ["837"], "id": "amerigroup_ga", "name": "Amerigroup - Georgia"}, {"is_enabled": true, "supported_transactions": ["837"], "id": "amerigroup_illinois", "name": "Amerigroup - Illinois"}, {"is_enabled": true, "supported_transactions": + ["837"], "id": "amerigroup_md", "name": "Amerigroup - Maryland"}, {"is_enabled": true, "supported_transactions": ["837"], "id": "amerigroup_oh", "name": "Amerigroup - Ohio"}, {"is_enabled": true, "supported_transactions": ["837"], "id": "amerigroup_wa", + "name": "Amerigroup - Washington"}, {"is_enabled": true, "supported_transactions": ["837"], "id": "amerigroup_community_care", "name": "Amerigroup Community Care"}, {"is_enabled": true, "supported_transactions": ["837"], "id": "amerigroup_community_care_nm", + "name": "Amerigroup Community Care of New Mexico"}, {"is_enabled": true, "supported_transactions": ["837"], "id": "amerigroup_corporation", "name": "Amerigroup Corporation"}, {"is_enabled": true, "supported_transactions": ["276", "270", "837"], "id": "anthem_blue_cross_ca", + "name": "Anthem Blue Cross California"}, {"is_enabled": true, "supported_transactions": ["270", "276", "837"], "id": "anthem_blue_cross_blue_shield_co", "name": "Anthem Blue Cross and Blue Shield of Colorado"}, {"is_enabled": true, "supported_transactions": + ["270", "276", "837"], "id": "anthem_blue_cross_blue_shield_ct", "name": "Anthem Blue Cross and Blue Shield of Connecticut"}, {"is_enabled": true, "supported_transactions": ["270", "276", "837"], "id": "anthem_blue_cross_blue_shield_in", "name": "Anthem + Blue Cross and Blue Shield of Indiana"}, {"is_enabled": true, "supported_transactions": ["270", "276", "837"], "id": "anthem_blue_cross_blue_shield_ky", "name": "Anthem Blue Cross and Blue Shield of Kentucky"}, {"is_enabled": true, "supported_transactions": + ["270", "276", "837"], "id": "anthem_blue_cross_blue_shield_me", "name": "Anthem Blue Cross and Blue Shield of Maine"}, {"is_enabled": true, "supported_transactions": ["276"], "id": "anthem_blue_cross_blue_shield_mo", "name": "Anthem Blue Cross and Blue + Shield of Missouri"}, {"is_enabled": true, "supported_transactions": ["276", "270", "837"], "id": "anthem_blue_cross_blue_shield_nv", "name": "Anthem Blue Cross and Blue Shield of Nevada"}, {"is_enabled": true, "supported_transactions": ["270", "276", + "837"], "id": "anthem_blue_cross_blue_shield_nh", "name": "Anthem Blue Cross and Blue Shield of New Hampshire"}, {"is_enabled": true, "supported_transactions": ["276"], "id": "anthem_blue_cross_blue_shield_oh", "name": "Anthem Blue Cross and Blue Shield + of Ohio"}, {"is_enabled": true, "supported_transactions": ["270", "837", "276"], "id": "anthem_blue_cross_blue_shield_va", "name": "Anthem Blue Cross and Blue Shield of Virginia"}, {"is_enabled": true, "supported_transactions": ["270", "276", "837"], "id": + "anthem_blue_cross_blue_shield_wi", "name": "Anthem Blue Cross and Blue Shield of Wisconsin"}, {"is_enabled": true, "supported_transactions": ["276", "270"], "id": "assurant_health", "name": "Assurant Health"}, {"is_enabled": true, "supported_transactions": + ["837"], "id": "asuris_northwest_health", "name": "Asuris Northwest Health"}, {"is_enabled": true, "supported_transactions": ["837"], "id": "atrio_health_plans", "name": "Atrio Health Plans"}, {"is_enabled": true, "supported_transactions": ["837"], "id": + "avmed_health_plan", "name": "Avmed Health Plan"}, {"is_enabled": true, "supported_transactions": ["837"], "id": "beech_street", "name": "Beech Street"}, {"is_enabled": true, "supported_transactions": ["837"], "id": "blue_cross_cal_optima_medi_cal", "name": + "Blue Cross (Cal-Optima - Medi-Cal)"}, {"is_enabled": true, "supported_transactions": ["837"], "id": "blue_cross_blue_shield_al", "name": "Blue Cross Blue Shield of Alabama"}, {"is_enabled": true, "supported_transactions": ["837"], "id": "blue_cross_blue_shield_az", + "name": "Blue Cross Blue Shield of Arizona"}, {"is_enabled": true, "supported_transactions": ["837"], "id": "blue_cross_blue_shield_dc", "name": "Blue Cross Blue Shield of DC (Carefirst)"}, {"is_enabled": true, "supported_transactions": ["837"], "id": + "blue_cross_blue_shield_fl", "name": "Blue Cross Blue Shield of Florida"}, {"is_enabled": true, "supported_transactions": ["837"], "id": "blue_cross_blue_shield_md", "name": "Blue Cross Blue Shield of Maryland (CareFirst)"}, {"is_enabled": true, "supported_transactions": + ["837"], "id": "blue_cross_blue_shield_mn", "name": "Blue Cross Blue Shield of Minnesota"}, {"is_enabled": true, "supported_transactions": ["837"], "id": "blue_cross_blue_shield_nj", "name": "Blue Cross Blue Shield of New Jersey (Horizon)"}, {"is_enabled": + true, "supported_transactions": ["837"], "id": "blue_cross_blue_shield_or", "name": "Blue Cross Blue Shield of Oregon (Regence)"}, {"is_enabled": true, "supported_transactions": ["837"], "id": "blue_cross_blue_shield_tn", "name": "Blue Cross Blue Shield + of Tennessee"}, {"is_enabled": true, "supported_transactions": ["837"], "id": "blue_cross_blue_shield_utah", "name": "Blue Cross Blue Shield of Utah (Regence)"}, {"is_enabled": true, "supported_transactions": ["837"], "id": "blue_cross_blue_shield_ga", + "name": "Blue Cross and Blue Shield of Georgia"}, {"is_enabled": true, "supported_transactions": ["837"], "id": "blue_cross_blue_shield_il", "name": "Blue Cross and Blue Shield of Illinois"}, {"is_enabled": true, "supported_transactions": ["270"], "id": + "blue_cross_blue_shield_ia", "name": "Blue Cross and Blue Shield of Iowa"}, {"is_enabled": true, "supported_transactions": ["276", "270"], "id": "blue_cross_blue_shield_ks", "name": "Blue Cross and Blue Shield of Kansas"}, {"is_enabled": true, "supported_transactions": + ["270", "276"], "id": "blue_cross_blue_shield_kc", "name": "Blue Cross and Blue Shield of Kansas City"}, {"is_enabled": true, "supported_transactions": ["837"], "id": "blue_cross_blue_shield_mi", "name": "Blue Cross and Blue Shield of Michigan"}, {"is_enabled": + true, "supported_transactions": ["837"], "id": "blue_cross_blue_shield_ms", "name": "Blue Cross and Blue Shield of Mississippi"}, {"is_enabled": true, "supported_transactions": ["270", "837"], "id": "blue_cross_blue_shield_mo", "name": "Blue Cross and + Blue Shield of Missouri"}, {"is_enabled": true, "supported_transactions": ["837"], "id": "blue_cross_blue_shield_mt", "name": "Blue Cross and Blue Shield of Montana"}, {"is_enabled": true, "supported_transactions": ["270", "837"], "id": "blue_cross_blue_shield_ne", + "name": "Blue Cross and Blue Shield of Nebraska"}, {"is_enabled": true, "supported_transactions": ["837"], "id": "blue_cross_blue_shield_nm", "name": "Blue Cross and Blue Shield of New Mexico"}, {"is_enabled": true, "supported_transactions": ["270"], "id": + "blue_cross_blue_shield_nc", "name": "Blue Cross and Blue Shield of North Carolina"}, {"is_enabled": true, "supported_transactions": ["270", "837"], "id": "blue_cross_blue_shield_oh", "name": "Blue Cross and Blue Shield of Ohio"}, {"is_enabled": true, + "supported_transactions": ["837"], "id": "blue_cross_blue_shield_ok", "name": "Blue Cross and Blue Shield of Oklahoma"}, {"is_enabled": true, "supported_transactions": ["270"], "id": "blue_cross_blue_shield_sc", "name": "Blue Cross and Blue Shield of South + Carolina"}, {"is_enabled": true, "supported_transactions": ["837"], "id": "blue_cross_blue_shield_tx", "name": "Blue Cross and Blue Shield of Texas"}, {"is_enabled": true, "supported_transactions": ["837"], "id": "blue_cross_blue_shield_vt", "name": "Blue + Cross and Blue Shield of Vermont"}, {"is_enabled": true, "supported_transactions": ["276", "270", "837"], "id": "blue_shield_ca", "name": "Blue Shield of California"}, {"is_enabled": true, "supported_transactions": ["837"], "id": "bridgespan", "name": + "BridgeSpan"}, {"is_enabled": true, "supported_transactions": ["837"], "id": "care_or", "name": "CareOregon Inc."}, {"is_enabled": true, "supported_transactions": ["837"], "id": "care_source_mi", "name": "CareSource of Michigan"}, {"is_enabled": true, + "supported_transactions": ["837"], "id": "care_source_oh", "name": "CareSource of Ohio"}, {"is_enabled": true, "supported_transactions": ["837"], "id": "care_source_health_plan_or", "name": "Caresource Health Plan of Oregon"}, {"is_enabled": true, "supported_transactions": + ["837"], "id": "care_source_ky", "name": "Caresource of Kentucky"}, {"is_enabled": true, "supported_transactions": ["837"], "id": "healthfirst", "name": "Childhealth Plus by Healthfirst (CHP)"}, {"is_enabled": true, "supported_transactions": ["276", "278", + "270", "837"], "id": "cigna", "name": "Cigna"}, {"is_enabled": true, "supported_transactions": ["837"], "id": "colorado_kaiser_permanente", "name": "Colorado Kaiser Permanente"}, {"is_enabled": true, "supported_transactions": ["837"], "id": "columbia_united_providers", + "name": "Columbia United Providers"}, {"is_enabled": true, "supported_transactions": ["837"], "id": "community_health_plan_wa", "name": "Community Health Plan of Washington"}, {"is_enabled": true, "supported_transactions": ["276", "270", "837"], "id": + "connecticare", "name": "ConnectiCare"}, {"is_enabled": true, "supported_transactions": ["837"], "id": "coordinated_care_cenpatico", "name": "Coordinated Care - Cenpatico"}, {"is_enabled": true, "supported_transactions": ["837"], "id": "coordinated_care_medical", + "name": "Coordinated Care - Medical"}, {"is_enabled": true, "supported_transactions": ["837"], "id": "coordinated_medical_specialists", "name": "Coordinated Medical Specialists"}, {"is_enabled": true, "supported_transactions": ["837"], "id": "coresource_md_pa_il_nc_in", + "name": "CoreSource (MD, PA, IL, NC, IN)"}, {"is_enabled": true, "supported_transactions": ["837"], "id": "coresource_oh", "name": "CoreSource - Ohio"}, {"is_enabled": true, "supported_transactions": ["837"], "id": "coresource_little_rock", "name": "CoreSource + Little Rock"}, {"is_enabled": true, "supported_transactions": ["837"], "id": "coventry", "name": "Coventry Health & Life"}, {"is_enabled": true, "supported_transactions": ["276", "270", "837"], "id": "empire_blue_cross_blue_shield", "name": "Empire Blue + Cross and Blue Shield"}, {"is_enabled": true, "supported_transactions": ["837"], "id": "fallon_community_health", "name": "Fallon Community Health Plan"}, {"is_enabled": true, "supported_transactions": ["837"], "id": "federal_employees_plan_wa", "name": + "Federal Employees Plan WA (Regence Blue Shield)"}, {"is_enabled": true, "supported_transactions": ["276", "270", "837"], "id": "fidelis_care_ny", "name": "Fidelis Care of New York"}, {"is_enabled": true, "supported_transactions": ["837"], "id": "first_choice_health_network", + "name": "First Choice Health Network"}, {"is_enabled": true, "supported_transactions": ["837"], "id": "golden_rule_united_health_one", "name": "Golden Rule"}, {"is_enabled": true, "supported_transactions": ["837"], "id": "great_west_health_care", "name": + "Great West Healthcare"}, {"is_enabled": true, "supported_transactions": ["837"], "id": "group_health_cooperative", "name": "Group Health Cooperative"}, {"is_enabled": true, "supported_transactions": ["837"], "id": "group_health_cooperative_eau_claire", + "name": "Group Health Cooperative of Eau Claire"}, {"is_enabled": true, "supported_transactions": ["837"], "id": "group_health_cooperative_south_central_wi", "name": "Group Health Cooperative of South Central Wisconsin"}, {"is_enabled": true, "supported_transactions": + ["837"], "id": "group_health_plan_care_management_resource", "name": "Group Health Plan - CMR"}, {"is_enabled": true, "supported_transactions": ["276", "270", "837"], "id": "harvard_pilgrim_health_care", "name": "Harvard Pilgrim Healthcare"}, {"is_enabled": + true, "supported_transactions": ["837"], "id": "health_net_ca", "name": "Health Net - California"}, {"is_enabled": true, "supported_transactions": ["837"], "id": "health_partners_mn", "name": "HealthPartners of Minnesota"}, {"is_enabled": true, "supported_transactions": + ["837"], "id": "health_spring", "name": "HealthSpring"}, {"is_enabled": true, "supported_transactions": ["270", "276", "837"], "id": "highmark_blue_cross_blue_shield_wv", "name": "Highmark Blue Cross Blue Shield West Virginia"}, {"is_enabled": true, "supported_transactions": + ["276", "270"], "id": "highmark_blue_cross_blue_shield_pa", "name": "Highmark Blue Cross Blue Shield of Pennsylvania"}, {"is_enabled": true, "supported_transactions": ["837"], "id": "humana", "name": "Humana"}, {"is_enabled": true, "supported_transactions": + ["837"], "id": "independence_blue_cross", "name": "Independence Blue Cross"}, {"is_enabled": true, "supported_transactions": ["837"], "id": "kaiser_foundation_health_plan_ga", "name": "Kaiser Foundation Health Plan of Georgia"}, {"is_enabled": true, "supported_transactions": + ["837"], "id": "kaiser_foundation_health_plan_of_northern_ca_region", "name": "Kaiser Foundation Health Plan of Northern CA Region"}, {"is_enabled": true, "supported_transactions": ["837"], "id": "kaiser_foundation_health_plan_oh", "name": "Kaiser Foundation + Health Plan of Ohio"}, {"is_enabled": true, "supported_transactions": ["837"], "id": "kaiser_foundation_health_plan_southern_ca_region", "name": "Kaiser Foundation Health Plan of Southern CA Region"}, {"is_enabled": true, "supported_transactions": ["837"], + "id": "kaiser_foundation_health_plan_mid_atlantic_states", "name": "Kaiser Foundation Health Plan of the Mid-Atlantic States"}, {"is_enabled": true, "supported_transactions": ["837"], "id": "kaiser_foundation_health_plan_northwest", "name": "Kaiser Foundation + Health Plan of the Northwest"}, {"is_enabled": true, "supported_transactions": ["837"], "id": "keystone_health_plan_east", "name": "Keystone Health Plan East"}, {"is_enabled": true, "supported_transactions": ["276", "270"], "id": "mvp_health_care", "name": + "MVP Health Care"}, {"is_enabled": true, "supported_transactions": ["270", "837"], "id": "magellan_health", "name": "Magellan Behavioral Health"}, {"is_enabled": true, "supported_transactions": ["837"], "id": "managed_care_services", "name": "Managed Care + Services"}, {"is_enabled": true, "supported_transactions": ["837"], "id": "medica_health_care", "name": "Medica HealthCare"}, {"is_enabled": true, "supported_transactions": ["837"], "id": "medica_healthcare_plans_medicare", "name": "Medica Healthcare Plans + (Medicare)"}, {"is_enabled": true, "supported_transactions": ["837"], "id": "medica_usa", "name": "Medica2"}, {"is_enabled": true, "supported_transactions": ["837"], "id": "medical_mutual_oh", "name": "Medical Mutual of Ohio"}, {"is_enabled": true, "supported_transactions": + ["837"], "id": "moda_health", "name": "Moda Health (Formerly ODS Health Plan)"}, {"is_enabled": true, "supported_transactions": ["837"], "id": "molina_health_care_ca", "name": "Molina Healthcare of California"}, {"is_enabled": true, "supported_transactions": + ["837"], "id": "molina_health_care_fl", "name": "Molina Healthcare of Florida"}, {"is_enabled": true, "supported_transactions": ["837"], "id": "molina_health_care_mi", "name": "Molina Healthcare of Michigan"}, {"is_enabled": true, "supported_transactions": + ["837"], "id": "molina_health_care_nv", "name": "Molina Healthcare of Nevada"}, {"is_enabled": true, "supported_transactions": ["837"], "id": "molina_health_care_nm", "name": "Molina Healthcare of New Mexico"}, {"is_enabled": true, "supported_transactions": + ["837"], "id": "molina_health_care_nm_salud", "name": "Molina Healthcare of New Mexico - Salud"}, {"is_enabled": true, "supported_transactions": ["837"], "id": "molina_health_care_oh", "name": "Molina Healthcare of Ohio"}, {"is_enabled": true, "supported_transactions": + ["837"], "id": "molina_health_care_sc", "name": "Molina Healthcare of South Carolina"}, {"is_enabled": true, "supported_transactions": ["837"], "id": "molina_health_care_tx", "name": "Molina Healthcare of Texas"}, {"is_enabled": true, "supported_transactions": + ["837"], "id": "molina_health_care_wa", "name": "Molina Healthcare of Washington"}, {"is_enabled": true, "supported_transactions": ["837"], "id": "molina_health_care_wi", "name": "Molina Healthcare of Wisconsin"}, {"is_enabled": true, "supported_transactions": + ["837"], "id": "molina_health_care_id", "name": "Molina Medicaid Solutions - Idaho"}, {"is_enabled": true, "supported_transactions": ["837"], "id": "neighborhood_health_partnership", "name": "Neighborhood Health Partnership"}, {"is_enabled": true, "supported_transactions": + ["837"], "id": "optum_health", "name": "OptumHealth"}, {"is_enabled": true, "supported_transactions": ["276", "270"], "id": "oxford_health_plan_united", "name": "Oxford Health Plans (United Healthcare)"}, {"is_enabled": true, "supported_transactions": + ["837"], "id": "pacific_source_health_plans", "name": "PacificSource Health Plans"}, {"is_enabled": true, "supported_transactions": ["837"], "id": "preferred_care_partners", "name": "Preferred Care Partners"}, {"is_enabled": true, "supported_transactions": + ["276", "270", "837"], "id": "premera_blue_cross", "name": "Premera Blue Cross"}, {"is_enabled": true, "supported_transactions": ["837"], "id": "qual_choice_ar", "name": "Qual Choice of Arkansas"}, {"is_enabled": true, "supported_transactions": ["837"], + "id": "regence_blue_shield_id", "name": "Regence Blue Shield - Idaho"}, {"is_enabled": true, "supported_transactions": ["837"], "id": "regence_bluecross_blue_shield_or", "name": "Regence BlueCross Blue Shield - Oregon"}, {"is_enabled": true, "supported_transactions": + ["837"], "id": "sierra_health_services", "name": "Sierra Health Services"}, {"is_enabled": true, "supported_transactions": ["837"], "id": "sunshine_state_health_plan_cenpatico", "name": "Sunshine State Health Plan - Cenpatico"}, {"is_enabled": true, "supported_transactions": + ["837"], "id": "sunshine_state_health_plan_medical", "name": "Sunshine State Health Plan - Medical"}, {"is_enabled": true, "supported_transactions": ["270"], "id": "tricare", "name": "TRICARE"}, {"is_enabled": true, "supported_transactions": ["270", "837", + "276"], "id": "tricare_west", "name": "TRICARE West"}, {"is_enabled": true, "supported_transactions": ["276", "270", "837"], "id": "united_health_care", "name": "United Healthcare"}, {"is_enabled": true, "supported_transactions": ["837"], "id": "united_health_care_community_plan_az", + "name": "United Healthcare Community Plan of Arizona"}, {"is_enabled": true, "supported_transactions": ["837"], "id": "united_health_care_community_plan_ia", "name": "United Healthcare Community Plan of Iowa"}, {"is_enabled": true, "supported_transactions": + ["837"], "id": "united_health_care_community_plan_ks", "name": "United Healthcare Community Plan of Kansas"}, {"is_enabled": true, "supported_transactions": ["837"], "id": "united_health_care_community_plan_ms", "name": "United Healthcare Community Plan + of Mississippi (CHIP)"}, {"is_enabled": true, "supported_transactions": ["837"], "id": "united_health_care_community_plan_nj", "name": "United Healthcare Community Plan of New Jersey"}, {"is_enabled": true, "supported_transactions": ["837"], "id": "united_health_care_community_plan_sc", + "name": "United Healthcare Community Plan of South Carolina"}, {"is_enabled": true, "supported_transactions": ["837"], "id": "united_health_care_great_lakes_health_plan", "name": "United Healthcare Great Lakes Health Plan"}, {"is_enabled": true, "supported_transactions": + ["837"], "id": "united_health_care_medicare_solutions", "name": "United Healthcare Medicare Solutions - Care Improvement Plus"}, {"is_enabled": true, "supported_transactions": ["837"], "id": "united_health_care_plan_river_valley", "name": "United Healthcare + Plan of the River Valley"}, {"is_enabled": true, "supported_transactions": ["837"], "id": "wellcare", "name": "Wellcare"}, {"is_enabled": true, "supported_transactions": ["276"], "id": "wellmark_blue_cross_blue_shield_ia", "name": "Wellmark Blue Cross + and Blue Shield of Iowa"}]}' diff --git a/build/test-results/TEST-com.pokitdok.tests.PokitDokTest.xml b/build/test-results/TEST-com.pokitdok.tests.PokitDokTest.xml index 62129f8..9f5b022 100644 --- a/build/test-results/TEST-com.pokitdok.tests.PokitDokTest.xml +++ b/build/test-results/TEST-com.pokitdok.tests.PokitDokTest.xml @@ -1,173 +1,172 @@ - + - - - - - - - - + + + + + + + + - - + + - - - - - - + + + + + diff --git a/build/test-results/binary/test/output.bin b/build/test-results/binary/test/output.bin index b7d2c37..65aab5d 100644 Binary files a/build/test-results/binary/test/output.bin and b/build/test-results/binary/test/output.bin differ diff --git a/build/test-results/binary/test/output.bin.idx b/build/test-results/binary/test/output.bin.idx index b7d4630..a919f6c 100644 Binary files a/build/test-results/binary/test/output.bin.idx and b/build/test-results/binary/test/output.bin.idx differ diff --git a/build/test-results/binary/test/results.bin b/build/test-results/binary/test/results.bin index 713c5b4..5953f67 100644 Binary files a/build/test-results/binary/test/results.bin and b/build/test-results/binary/test/results.bin differ diff --git a/src/test/java/com/pokitdok/tests/PokitDokTest.java b/src/test/java/com/pokitdok/tests/PokitDokTest.java index b4cde27..fa6f4c0 100644 --- a/src/test/java/com/pokitdok/tests/PokitDokTest.java +++ b/src/test/java/com/pokitdok/tests/PokitDokTest.java @@ -56,7 +56,6 @@ public void authorizationsTest() throws Exception { PokitDok client = connect(); Map response = client.authorizations(query); - System.out.println(response); assertDataAndMeta(response); } diff --git a/src/test/resources/betamax/tapes/authentication.yaml b/src/test/resources/betamax/tapes/authentication.yaml new file mode 100644 index 0000000..f6c2f7b --- /dev/null +++ b/src/test/resources/betamax/tapes/authentication.yaml @@ -0,0 +1,25 @@ +!tape +name: authentication +interactions: +- recorded: 2014-11-14T17:29:43.219Z + request: + method: POST + uri: http://me.pokitdok.com:5002/oauth2/token + headers: + Accept-Encoding: gzip,deflate + Authorization: Basic a2NpcVhhUDFnSGQ3Q3BCa2FJcEQ6NVc0WW1tZVFrelJld3U2NGNZSE5reEZ1a0FZZXdGM2lab01nY29XMg== + Content-Length: '29' + Content-Type: application/x-www-form-urlencoded + Host: me.pokitdok.com:5002 + Proxy-Connection: Keep-Alive + User-Agent: pokitdok-java 0.6.1 jvm version 1.8.0_25 + body: grant_type=client_credentials + response: + status: 200 + headers: + Cache-Control: no-store + Content-Type: application/json;charset=UTF-8 + Date: Fri, 14 Nov 2014 17:29:43 GMT + Pragma: no-cache + Server: Werkzeug/0.9.4 Python/2.7.3 + body: '{"access_token": "bPyG9ZvcafXqKetKOJ51YJ0qxBjosF7DE4rPJRvl", "token_type": "bearer", "expires": 1415989783, "expires_in": 3600}'