Class: DaVinciCRDTestKit::V221::EncounterStartReceiveRequestTest

Inherits:
Inferno::Test
  • Object
show all
Includes:
ClientURLs
Defined in:
lib/davinci_crd_test_kit/client/v2.2.1/invocation/encounter_start_receive_request_test.rb

Constant Summary

Constants included from ClientURLs

ClientURLs::SUITE_ID

Instance Method Summary collapse

Methods included from ClientURLs

base_url, discovery_url, prefetch_subset_discovery_url, #suite_id

Methods included from ClientBaseURLs

#appointment_book_prefetch_subset_url, #appointment_book_url, #discovery_url, #encounter_discharge_prefetch_subset_url, #encounter_discharge_url, #encounter_start_prefetch_subset_url, #encounter_start_url, #order_dispatch_prefetch_subset_url, #order_dispatch_url, #order_select_prefetch_subset_url, #order_select_url, #order_sign_prefetch_subset_url, #order_sign_url, #prefetch_subset_discovery_url

Methods included from BaseURLs

#inferno_base_url, #resume_fail_url, #resume_pass_url

Instance Method Details

#configured_response_detailsObject



104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
# File 'lib/davinci_crd_test_kit/client/v2.2.1/invocation/encounter_start_receive_request_test.rb', line 104

def configured_response_details
  if encounter_start_response_approach == 'custom'
    # rubocop:disable Layout/LineLength
    'When responding, Inferno will evaluate the provided [custom response template](https://github.com/inferno-framework/davinci-crd-test-kit/wiki/Controlling-Simulated-Responses#tester-directed-custom-responses) ' \
      'from the **Custom response template for encounter-start hook requests** input ' \
      'against the incoming request to create a response.'
    # rubocop:enable Layout/LineLength

  else
    # rubocop:disable Layout/LineLength
    'When responding, Inferno will [mock](https://github.com/inferno-framework/davinci-crd-test-kit/wiki/Controlling-Simulated-Responses#mocked-responses) ' \
      'the following response types using the incoming request: ' \
      "\n            - #{selected_response_types_string}"
    # rubocop:enable Layout/LineLength
  end
end

#selected_response_types_stringObject



121
122
123
124
125
126
127
# File 'lib/davinci_crd_test_kit/client/v2.2.1/invocation/encounter_start_receive_request_test.rb', line 121

def selected_response_types_string
  if encounter_start_selected_response_types.present?
    encounter_start_selected_response_types.join("\n            - ")
  else
    'Instructions' # secondary hook default
  end
end