Class: DaVinciCRDTestKit::HookRequestValidPrefetchTest
- Inherits:
-
Inferno::Test
- Object
- Inferno::Test
- DaVinciCRDTestKit::HookRequestValidPrefetchTest
show all
- Includes:
- ClientHookRequestValidation, URLs
- Defined in:
- lib/davinci_crd_test_kit/client_tests/hook_request_valid_prefetch_test.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
#client_test?, #server_test?
#appointment_book_context_check, #bundle_entries_check, #check_patient_scope_requirement, #common_context_fields, #context_optional_fields_by_hook, #context_required_fields_by_hook, #context_selections_check, #context_user_types_by_hook, #context_validate_optional_fields, #encounter_start_or_discharge_context_check, #fhir_auth_fields_valid?, #fhir_authorization_required_fields, #hook_optional_fields, #hook_request_context_check, #hook_request_fhir_auth_check, #hook_request_optional_fields_check, #hook_request_prefetch_check, #hook_request_required_fields_check, #hook_required_fields, #hook_specific_context_check, #hook_user_type_check, #id_only_fields_check, #json_parse, #no_error_validation, #optional_field_resource_types, #order_dispatch_context_check, #order_select_or_sign_context_check, #parse_fhir_bundle_from_context, #query_and_validate_id_field, #request_number, #resource_reference_check, #status_check, #structure_definition_map, #valid_id_format?, #valid_reference_format?, #valid_url?, #validate_hash_fields, #validate_prefetch_coverage, #validate_prefetch_resource, #validate_presence_and_type
Instance Method Details
#advertised_prefetch_fields ⇒ Object
35
36
37
38
|
# File 'lib/davinci_crd_test_kit/client_tests/hook_request_valid_prefetch_test.rb', line 35
def advertised_prefetch_fields
advertised_hook_service = cds_services_json.find { |service| service['hook'] == hook_name }
advertised_hook_service['prefetch']
end
|
#cds_services_json ⇒ Object
29
30
31
32
33
|
# File 'lib/davinci_crd_test_kit/client_tests/hook_request_valid_prefetch_test.rb', line 29
def cds_services_json
JSON.parse(File.read(File.join(
__dir__, '..', 'routes', 'cds-services.json'
)))['services']
end
|
#hook_name ⇒ Object
25
26
27
|
# File 'lib/davinci_crd_test_kit/client_tests/hook_request_valid_prefetch_test.rb', line 25
def hook_name
config.options[:hook_name]
end
|