Class: DaVinciCRDTestKit::CoverageInformationSystemActionReceivedTest

Inherits:
Inferno::Test
  • Object
show all
Includes:
TestHelper
Defined in:
lib/davinci_crd_test_kit/server_tests/coverage_information_system_action_received_test.rb

Instance Method Summary collapse

Methods included from TestHelper

#parse_json, #verify_at_least_one_test_passes

Instance Method Details

#hook_nameObject



21
22
23
# File 'lib/davinci_crd_test_kit/server_tests/coverage_information_system_action_received_test.rb', line 21

def hook_name
  config.options[:hook_name]
end

#resources_by_hookObject



25
26
27
28
29
30
31
32
33
34
35
36
37
38
# File 'lib/davinci_crd_test_kit/server_tests/coverage_information_system_action_received_test.rb', line 25

def resources_by_hook
  shared_resources = [
    'DeviceRequest', 'MedicationRequest', 'NutritionOrder',
    'ServiceRequest', 'VisionPrescription'
  ]
  {
    'appointment-book' => ['Appointment'],
    'order-sign' => shared_resources,
    'order-dispatch' => shared_resources,
    'order-select' => shared_resources,
    'encounter-start' => ['Encounter'],
    'encounter-discharge' => ['Encounter']
  }
end