Class: DaVinciPDexTestKit::PDexPayerClient::MockServer::NextPageEndpoint
- Inherits:
-
ProxyEndpoint
- Object
- Inferno::DSL::SuiteEndpoint
- ProxyEndpoint
- DaVinciPDexTestKit::PDexPayerClient::MockServer::NextPageEndpoint
- Defined in:
- lib/davinci_pdex_test_kit/pdex_payer_client/mock_server/next_page_endpoint.rb
Constant Summary
Constants included from URLs
URLs::AUTHORIZATION_PATH, URLs::BASE_FHIR_PATH, URLs::BINARY_PATH, URLs::EVERYTHING_PATH, URLs::EXPORT_PATH, URLs::EXPORT_STATUS_PATH, URLs::INSTANCE_PATH, URLs::MEMBER_MATCH_PATH, URLs::METADATA_PATH, URLs::PATIENT_INSTANCE_PATH, URLs::PATIENT_PATH, URLs::RESOURCE_PATH, URLs::RESUME_CLINICAL_DATA_PATH, URLs::RESUME_FAIL_PATH, URLs::RESUME_PASS_PATH, URLs::TOKEN_PATH
Instance Method Summary collapse
Methods inherited from ProxyEndpoint
#server_proxy, #test_run_identifier, #update_result
Methods included from URLs
#base_url, #client_fhir_base_url, #fhir_base_url, #suite_id
Instance Method Details
#make_response ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/davinci_pdex_test_kit/pdex_payer_client/mock_server/next_page_endpoint.rb', line 9 def make_response server_response = server_proxy.get('', JSON.parse(request.params.to_json)) response.status = server_response.status fhir_response = FHIR.from_contents(server_response.body) return unless fhir_response.present? response.format = 'application/fhir+json' if fhir_response.is_a?(FHIR::Bundle) response.body = replace_bundle_urls(fhir_response).to_json else response.body = fhir_response.to_json end end |
#tags ⇒ Object
23 24 25 |
# File 'lib/davinci_pdex_test_kit/pdex_payer_client/mock_server/next_page_endpoint.rb', line 23 def [RESOURCE_API_TAG] end |