Class: DaVinciDTRTestKit::MockEHR::QuestionnaireResponseEndpoint
- Inherits:
-
Inferno::DSL::SuiteEndpoint
- Object
- Inferno::DSL::SuiteEndpoint
- DaVinciDTRTestKit::MockEHR::QuestionnaireResponseEndpoint
- Defined in:
- lib/davinci_dtr_test_kit/endpoints/mock_ehr/questionnaire_response_endpoint.rb
Instance Method Summary collapse
Instance Method Details
#make_response ⇒ Object
10 11 12 13 14 15 |
# File 'lib/davinci_dtr_test_kit/endpoints/mock_ehr/questionnaire_response_endpoint.rb', line 10 def make_response response.status = 201 response.format = 'application/fhir+json' response['Access-Control-Allow-Origin'] = '*' response.body = request.body.string end |
#test_run_identifier ⇒ Object
6 7 8 |
# File 'lib/davinci_dtr_test_kit/endpoints/mock_ehr/questionnaire_response_endpoint.rb', line 6 def test_run_identifier MockAuthorization.extract_client_id_from_bearer_token(request) end |
#update_result ⇒ Object
17 18 19 |
# File 'lib/davinci_dtr_test_kit/endpoints/mock_ehr/questionnaire_response_endpoint.rb', line 17 def update_result results_repo.update_result(result.id, 'pass') end |