Class: DaVinciDTRTestKit::MockPayer::FullEHRNextQuestionEndpoint
- Inherits:
-
NextQuestionEndpoint
- Object
- Inferno::DSL::SuiteEndpoint
- NextQuestionEndpoint
- DaVinciDTRTestKit::MockPayer::FullEHRNextQuestionEndpoint
show all
- Defined in:
- lib/davinci_dtr_test_kit/endpoints/mock_payer/full_ehr_next_question_endpoint.rb
Instance Method Summary
collapse
#complete_questionnaire?, #custom_next_question_requests, #custom_questionnaires, #next_custom_questionnaire, #tags
#build_outcome_param, #find_questionnaire_response, #operation_outcome, #outcome_issue, #parse_fhir_object
Instance Method Details
#make_response ⇒ Object
14
15
16
17
18
|
# File 'lib/davinci_dtr_test_kit/endpoints/mock_payer/full_ehr_next_question_endpoint.rb', line 14
def make_response
return if response.status == 401
super
end
|
#test_run_identifier ⇒ Object
6
7
8
9
10
11
12
|
# File 'lib/davinci_dtr_test_kit/endpoints/mock_payer/full_ehr_next_question_endpoint.rb', line 6
def test_run_identifier
return request.params[:session_path] if request.params[:session_path].present?
UDAPSecurityTestKit::MockUDAPServer.issued_token_to_client_id(
request.['authorization']&.delete_prefix('Bearer ')
)
end
|
#update_result ⇒ Object
20
21
22
23
24
25
26
27
|
# File 'lib/davinci_dtr_test_kit/endpoints/mock_payer/full_ehr_next_question_endpoint.rb', line 20
def update_result
if UDAPSecurityTestKit::MockUDAPServer.request_has_expired_token?(request)
UDAPSecurityTestKit::MockUDAPServer.update_response_for_expired_token(response, 'Bearer token')
return
end
super
end
|