Class: DaVinciPDexTestKit::PDexPayerClient::MockServer::MemberMatchEndpoint
- Inherits:
-
ProxyEndpoint
- Object
- Inferno::DSL::SuiteEndpoint
- ProxyEndpoint
- DaVinciPDexTestKit::PDexPayerClient::MockServer::MemberMatchEndpoint
- Defined in:
- lib/davinci_pdex_test_kit/pdex_payer_client/mock_server/member_match_endpoint.rb
Overview
Although this enpoint is not actually proxying, inherit from ProxyEndpoint to keep #test_run_identifier and #update_result
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
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 |
# File 'lib/davinci_pdex_test_kit/pdex_payer_client/mock_server/member_match_endpoint.rb', line 10 def make_response #remove token from request as well #original_request_as_hash = JSON.parse(request.body.string).to_h #request.body.string = original_request_as_hash.to_json #TODO: Change from static response response.body = { resourceType: "Parameters", parameter: [ { name: "MemberIdentifier", valueIdentifier: { type: { coding: [ { system: "http://terminology.hl7.org/CodeSystem/v2-0203", code: "MB" } ] }, system: "https://github.com/inferno-framework/target-payer/identifiers/member", value: "99999", assigner: { display: "Old Payer" } } } ] }.to_json response.status = 200 response.format = 'application/fhir+json' end |
#tags ⇒ Object
44 45 46 |
# File 'lib/davinci_pdex_test_kit/pdex_payer_client/mock_server/member_match_endpoint.rb', line 44 def [MEMBER_MATCH_TAG] end |