Class: DaVinciCRDTestKit::ClientCardDisplayAttest

Inherits:
Inferno::Test
  • Object
show all
Includes:
URLs
Defined in:
lib/davinci_crd_test_kit/client_tests/client_display_cards_attest.rb

Instance Method Summary collapse

Methods included from URLs

#appointment_book_url, #base_url, #encounter_discharge_url, #encounter_start_url, #order_dispatch_url, #order_select_url, #order_sign_url, #resume_fail_url, #resume_pass_url, #suite_id

Instance Method Details

#format_selected_response_typesObject



13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# File 'lib/davinci_crd_test_kit/client_tests/client_display_cards_attest.rb', line 13

def format_selected_response_types
  selected_response_types
    .map do |response_type|
    response_type_string =
      response_type.split('_')
        .map(&:capitalize)
        .join(' ')
        .prepend('- ')
        .sub('Smart', 'SMART')
        .sub('Create Update', 'Create/Update')
        .sub('Companions Prerequisites', 'Companions/Prerequisites')
    response_type_string
  end
    .join("\n")
end