davinci_crd_test_kit 0.14.1 → 0.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/config/presets/{inferno_crd_server_suite.json.erb → client_against_inferno_crd_server_suite.json.erb} +0 -33
- data/config/presets/{ri_crd_request_generator.json.erb → client_against_ri_crd_request_generator.json.erb} +1 -14
- data/config/presets/client_v221_against_inferno_crd_server_suite.json.erb +96 -0
- data/config/presets/client_v221_against_ri_br_provider.json.erb +31 -0
- data/config/presets/{ri_crd_request_generator.json_v221.json.erb → client_v221_against_ri_crd_request_generator.json.erb} +1 -1
- data/config/presets/{inferno_crd_client_suite.json.erb → server_against_inferno_crd_client_suite.json.erb} +0 -43
- data/config/presets/{ri_crd_server.json.erb → server_against_ri_crd_server.json.erb} +1 -44
- data/config/presets/{inferno_crd_client_suite_v221.json.erb → server_v221_against_inferno_crd_client_suite.json.erb} +1 -62
- data/config/presets/{inferno_crd_client_suite_prefetch_subset_v221.json.erb → server_v221_against_inferno_crd_client_suite_prefetch_subset.json.erb} +1 -47
- data/config/presets/server_v221_against_inferno_g31_suite.json.erb +49 -0
- data/lib/davinci_crd_test_kit/client/client_base_urls.rb +5 -0
- data/lib/davinci_crd_test_kit/client/client_input_helper.rb +102 -0
- data/lib/davinci_crd_test_kit/client/client_wait_messages.rb +68 -0
- data/lib/davinci_crd_test_kit/client/cross_hook_helper.rb +26 -0
- data/lib/davinci_crd_test_kit/client/endpoints/custom_service_response.rb +32 -17
- data/lib/davinci_crd_test_kit/client/endpoints/hook_request_data_access.rb +228 -0
- data/lib/davinci_crd_test_kit/client/endpoints/hook_request_endpoint.rb +172 -56
- data/lib/davinci_crd_test_kit/client/endpoints/mock_service_response.rb +29 -29
- data/lib/davinci_crd_test_kit/client/endpoints/scenario_service_response.rb +54 -0
- data/lib/davinci_crd_test_kit/client/endpoints/v201_hook_request_data_gathering.rb +219 -0
- data/lib/davinci_crd_test_kit/client/endpoints/v221_hook_request_data_gathering.rb +172 -0
- data/lib/davinci_crd_test_kit/client/jwt_claim_types.rb +28 -0
- data/lib/davinci_crd_test_kit/client/multi_request_message_helper.rb +1 -1
- data/lib/davinci_crd_test_kit/client/prefetched_coverage_payer_helper.rb +81 -0
- data/lib/davinci_crd_test_kit/client/prefetched_coverage_value.rb +14 -0
- data/lib/davinci_crd_test_kit/client/tagged_request_load_helper.rb +14 -25
- data/lib/davinci_crd_test_kit/client/v2.0.1/auth/retrieve_jwks_test.rb +36 -24
- data/lib/davinci_crd_test_kit/client/v2.0.1/auth/token_header_test.rb +14 -4
- data/lib/davinci_crd_test_kit/client/v2.0.1/auth/token_payload_test.rb +42 -22
- data/lib/davinci_crd_test_kit/client/v2.0.1/cds-services-v201.json +21 -21
- data/lib/davinci_crd_test_kit/client/v2.0.1/client_appointment_book_group.rb +12 -10
- data/lib/davinci_crd_test_kit/client/v2.0.1/client_encounter_discharge_group.rb +12 -10
- data/lib/davinci_crd_test_kit/client/v2.0.1/client_encounter_start_group.rb +12 -10
- data/lib/davinci_crd_test_kit/client/v2.0.1/client_fhir_api_group.rb +2 -2
- data/lib/davinci_crd_test_kit/client/v2.0.1/client_hooks_group.rb +7 -10
- data/lib/davinci_crd_test_kit/client/v2.0.1/client_order_dispatch_group.rb +12 -10
- data/lib/davinci_crd_test_kit/client/v2.0.1/client_order_select_group.rb +12 -10
- data/lib/davinci_crd_test_kit/client/v2.0.1/client_order_sign_group.rb +12 -10
- data/lib/davinci_crd_test_kit/client/v2.0.1/crd_client_suite.rb +2 -2
- data/lib/davinci_crd_test_kit/client/v2.0.1/invocation/appointment_book_receive_request_test.rb +10 -31
- data/lib/davinci_crd_test_kit/client/v2.0.1/invocation/encounter_discharge_receive_request_test.rb +10 -31
- data/lib/davinci_crd_test_kit/client/v2.0.1/invocation/encounter_start_receive_request_test.rb +8 -29
- data/lib/davinci_crd_test_kit/client/v2.0.1/invocation/order_dispatch_receive_request_test.rb +10 -31
- data/lib/davinci_crd_test_kit/client/v2.0.1/invocation/order_select_receive_request_test.rb +8 -29
- data/lib/davinci_crd_test_kit/client/v2.0.1/invocation/order_sign_receive_request_test.rb +10 -31
- data/lib/davinci_crd_test_kit/client/v2.0.1/must_support/client_card_must_support_coverage_information.rb +3 -36
- data/lib/davinci_crd_test_kit/client/v2.0.1/must_support/client_card_must_support_external_reference.rb +3 -36
- data/lib/davinci_crd_test_kit/client/v2.0.1/must_support/client_card_must_support_instructions.rb +3 -36
- data/lib/davinci_crd_test_kit/client/v2.0.1/registration/client_registration_verification_test.rb +3 -7
- data/lib/davinci_crd_test_kit/client/v2.0.1/registration/client_service_registration_attestation_test.rb +11 -3
- data/lib/davinci_crd_test_kit/client/v2.0.1/verify_request/hook_request_fetched_data_test.rb +4 -13
- data/lib/davinci_crd_test_kit/client/v2.0.1/verify_request/hook_request_optional_fields_test.rb +1 -1
- data/lib/davinci_crd_test_kit/client/v2.0.1/verify_request/hook_request_prefetch_equals_queried_test.rb +3 -13
- data/lib/davinci_crd_test_kit/client/v2.0.1/verify_response/client_display_cards_attest.rb +7 -17
- data/lib/davinci_crd_test_kit/client/v2.0.1/verify_response/inferno_response_validation.rb +4 -14
- data/lib/davinci_crd_test_kit/client/v2.2.1/api/client_coverage_info_update_test.rb +10 -10
- data/lib/davinci_crd_test_kit/client/v2.2.1/api/client_crd_update_verification_group.rb +1 -1
- data/lib/davinci_crd_test_kit/client/v2.2.1/attestations/attestation_instructions.rb +10 -0
- data/lib/davinci_crd_test_kit/client/v2.2.1/attestations/client_coverage_based_invocation_attestation_test.rb +44 -0
- data/lib/davinci_crd_test_kit/client/v2.2.1/attestations/client_data_element_expectations_attestation_test.rb +44 -0
- data/lib/davinci_crd_test_kit/client/v2.2.1/attestations/client_hook_invocation_logging_attestation_test.rb +43 -0
- data/lib/davinci_crd_test_kit/client/v2.2.1/attestations/client_must_support_use_attestation_test.rb +41 -0
- data/lib/davinci_crd_test_kit/client/v2.2.1/attestations/client_prefetch_key_omission_attestation_test.rb +43 -0
- data/lib/davinci_crd_test_kit/client/v2.2.1/attestations/client_resource_identifiers_attestation_test.rb +43 -0
- data/lib/davinci_crd_test_kit/client/v2.2.1/attestations/client_response_case_distinction_attestation_test.rb +43 -0
- data/lib/davinci_crd_test_kit/client/v2.2.1/attestations/client_security_and_privacy_attestation_test.rb +43 -0
- data/lib/davinci_crd_test_kit/client/v2.2.1/attestations/client_workflow_integration_attestation_test.rb +44 -0
- data/lib/davinci_crd_test_kit/client/v2.2.1/auth/decode_auth_token_test.rb +4 -2
- data/lib/davinci_crd_test_kit/client/v2.2.1/auth/retrieve_jwks_test.rb +47 -26
- data/lib/davinci_crd_test_kit/client/v2.2.1/auth/token_header_test.rb +32 -6
- data/lib/davinci_crd_test_kit/client/v2.2.1/auth/token_payload_test.rb +60 -33
- data/lib/davinci_crd_test_kit/client/v2.2.1/cds-services-prefetch-subset-v221.json +48 -48
- data/lib/davinci_crd_test_kit/client/v2.2.1/cds-services-v221.json +51 -51
- data/lib/davinci_crd_test_kit/client/v2.2.1/client_appointment_book_group.rb +24 -15
- data/lib/davinci_crd_test_kit/client/v2.2.1/client_attestations_group.rb +43 -0
- data/lib/davinci_crd_test_kit/client/v2.2.1/client_cross_hook_group.rb +28 -9
- data/lib/davinci_crd_test_kit/client/v2.2.1/client_cross_hook_interaction_group.rb +106 -0
- data/lib/davinci_crd_test_kit/client/v2.2.1/client_encounter_discharge_group.rb +20 -11
- data/lib/davinci_crd_test_kit/client/v2.2.1/client_encounter_start_group.rb +20 -11
- data/lib/davinci_crd_test_kit/client/v2.2.1/client_fhir_api_group.rb +39 -15
- data/lib/davinci_crd_test_kit/client/v2.2.1/client_hooks_group.rb +16 -19
- data/lib/davinci_crd_test_kit/client/v2.2.1/client_long_running_hook_group.rb +5 -4
- data/lib/davinci_crd_test_kit/client/v2.2.1/client_multiple_payers_hook_group.rb +40 -0
- data/lib/davinci_crd_test_kit/client/v2.2.1/client_order_dispatch_group.rb +23 -14
- data/lib/davinci_crd_test_kit/client/v2.2.1/client_order_select_group.rb +19 -10
- data/lib/davinci_crd_test_kit/client/v2.2.1/client_order_sign_group.rb +23 -14
- data/lib/davinci_crd_test_kit/client/v2.2.1/client_registration_group.rb +7 -7
- data/lib/davinci_crd_test_kit/client/v2.2.1/client_scenarios_group.rb +32 -0
- data/lib/davinci_crd_test_kit/client/v2.2.1/client_self_pay_hook_group.rb +34 -0
- data/lib/davinci_crd_test_kit/client/v2.2.1/client_unknown_content_hook_group.rb +34 -0
- data/lib/davinci_crd_test_kit/client/v2.2.1/client_user_access_level_group.rb +82 -0
- data/lib/davinci_crd_test_kit/client/v2.2.1/crd_client_suite.rb +26 -6
- data/lib/davinci_crd_test_kit/client/v2.2.1/cross_hook/client_card_must_support_coverage_information_test.rb +5 -5
- data/lib/davinci_crd_test_kit/client/v2.2.1/cross_hook/client_fhirpath_collection_as_comma_delimited_string_test.rb +7 -14
- data/lib/davinci_crd_test_kit/client/v2.2.1/cross_hook/client_hook_instances_unique_test.rb +3 -11
- data/lib/davinci_crd_test_kit/client/v2.2.1/cross_hook/client_jwt_ids_unique_test.rb +89 -0
- data/lib/davinci_crd_test_kit/client/v2.2.1/cross_hook/client_location_address_propagation_test.rb +65 -31
- data/lib/davinci_crd_test_kit/client/v2.2.1/cross_hook/client_order_types_signed_test.rb +101 -0
- data/lib/davinci_crd_test_kit/client/v2.2.1/cross_hook/client_prefetch_complete_and_subset_test.rb +13 -35
- data/lib/davinci_crd_test_kit/client/v2.2.1/invocation/appointment_book_receive_request_test.rb +17 -116
- data/lib/davinci_crd_test_kit/client/v2.2.1/invocation/base_hook_invocation_receive_request_test.rb +182 -0
- data/lib/davinci_crd_test_kit/client/v2.2.1/invocation/cross_hooks_receive_request_test.rb +126 -0
- data/lib/davinci_crd_test_kit/client/v2.2.1/invocation/encounter_discharge_receive_request_test.rb +17 -117
- data/lib/davinci_crd_test_kit/client/v2.2.1/invocation/encounter_start_receive_request_test.rb +17 -117
- data/lib/davinci_crd_test_kit/client/v2.2.1/invocation/order_dispatch_receive_request_test.rb +17 -125
- data/lib/davinci_crd_test_kit/client/v2.2.1/invocation/order_select_receive_request_test.rb +17 -125
- data/lib/davinci_crd_test_kit/client/v2.2.1/invocation/order_sign_receive_request_test.rb +17 -125
- data/lib/davinci_crd_test_kit/client/v2.2.1/long_running/client_long_running_receive_request_test.rb +52 -32
- data/lib/davinci_crd_test_kit/client/v2.2.1/long_running/client_skip_long_running_attestation_test.rb +12 -12
- data/lib/davinci_crd_test_kit/client/v2.2.1/multiple_payers/client_multiple_payers_request_verification_test.rb +215 -0
- data/lib/davinci_crd_test_kit/client/v2.2.1/multiple_payers/client_multiple_payers_workflow_test.rb +71 -0
- data/lib/davinci_crd_test_kit/client/v2.2.1/must_support/generated/appointment_must_support_test.rb +84 -0
- data/lib/davinci_crd_test_kit/client/v2.2.1/must_support/generated/appointment_reference_resolution_test.rb +82 -0
- data/lib/davinci_crd_test_kit/client/v2.2.1/must_support/generated/client_cross_hook_must_support_group.rb +181 -0
- data/lib/davinci_crd_test_kit/client/v2.2.1/must_support/generated/communication_request_must_support_test.rb +69 -0
- data/lib/davinci_crd_test_kit/client/v2.2.1/must_support/generated/communication_request_reference_resolution_test.rb +79 -0
- data/lib/davinci_crd_test_kit/client/v2.2.1/must_support/generated/coverage_must_support_test.rb +73 -0
- data/lib/davinci_crd_test_kit/client/v2.2.1/must_support/generated/coverage_reference_resolution_test.rb +67 -0
- data/lib/davinci_crd_test_kit/client/v2.2.1/must_support/generated/device_must_support_test.rb +59 -0
- data/lib/davinci_crd_test_kit/client/v2.2.1/must_support/generated/device_request_must_support_test.rb +72 -0
- data/lib/davinci_crd_test_kit/client/v2.2.1/must_support/generated/device_request_reference_resolution_test.rb +76 -0
- data/lib/davinci_crd_test_kit/client/v2.2.1/must_support/generated/encounter_must_support_test.rb +83 -0
- data/lib/davinci_crd_test_kit/client/v2.2.1/must_support/generated/encounter_reference_resolution_test.rb +76 -0
- data/lib/davinci_crd_test_kit/client/v2.2.1/must_support/generated/location_must_support_test.rb +63 -0
- data/lib/davinci_crd_test_kit/client/v2.2.1/must_support/generated/location_reference_resolution_test.rb +60 -0
- data/lib/davinci_crd_test_kit/client/v2.2.1/must_support/generated/medication_must_support_test.rb +54 -0
- data/lib/davinci_crd_test_kit/client/v2.2.1/must_support/generated/medication_request_must_support_test.rb +95 -0
- data/lib/davinci_crd_test_kit/client/v2.2.1/must_support/generated/medication_request_reference_resolution_test.rb +79 -0
- data/lib/davinci_crd_test_kit/client/v2.2.1/must_support/generated/nutrition_order_must_support_test.rb +136 -0
- data/lib/davinci_crd_test_kit/client/v2.2.1/must_support/generated/nutrition_order_reference_resolution_test.rb +67 -0
- data/lib/davinci_crd_test_kit/client/v2.2.1/must_support/generated/organization_must_support_test.rb +66 -0
- data/lib/davinci_crd_test_kit/client/v2.2.1/must_support/generated/organization_reference_resolution_test.rb +60 -0
- data/lib/davinci_crd_test_kit/client/v2.2.1/must_support/generated/patient_must_support_test.rb +69 -0
- data/lib/davinci_crd_test_kit/client/v2.2.1/must_support/generated/practitioner_must_support_test.rb +65 -0
- data/lib/davinci_crd_test_kit/client/v2.2.1/must_support/generated/practitioner_role_must_support_test.rb +60 -0
- data/lib/davinci_crd_test_kit/client/v2.2.1/must_support/generated/practitioner_role_reference_resolution_test.rb +66 -0
- data/lib/davinci_crd_test_kit/client/v2.2.1/must_support/generated/service_request_must_support_test.rb +93 -0
- data/lib/davinci_crd_test_kit/client/v2.2.1/must_support/generated/service_request_reference_resolution_test.rb +81 -0
- data/lib/davinci_crd_test_kit/client/v2.2.1/must_support/generated/vision_prescription_must_support_test.rb +79 -0
- data/lib/davinci_crd_test_kit/client/v2.2.1/must_support/generated/vision_prescription_reference_resolution_test.rb +65 -0
- data/lib/davinci_crd_test_kit/client/v2.2.1/must_support/request_must_support_reference_resolution.rb +379 -0
- data/lib/davinci_crd_test_kit/client/v2.2.1/must_support/request_must_support_scope.rb +66 -0
- data/lib/davinci_crd_test_kit/client/v2.2.1/must_support/request_must_support_with_attestation_option.rb +331 -0
- data/lib/davinci_crd_test_kit/client/v2.2.1/registration/client_registration_verification_test.rb +16 -30
- data/lib/davinci_crd_test_kit/client/v2.2.1/registration/client_service_registration_attestation_test.rb +84 -39
- data/lib/davinci_crd_test_kit/client/v2.2.1/self_pay/client_self_pay_workflow_test.rb +62 -0
- data/lib/davinci_crd_test_kit/client/v2.2.1/unknown_content/client_unknown_content_attestation_test.rb +99 -0
- data/lib/davinci_crd_test_kit/client/v2.2.1/unknown_content/client_unknown_content_receive_request_test.rb +67 -0
- data/lib/davinci_crd_test_kit/client/v2.2.1/user_access_level/access_level_api_access_test.rb +124 -0
- data/lib/davinci_crd_test_kit/client/v2.2.1/user_access_level/access_level_prefetch_scope_test.rb +85 -0
- data/lib/davinci_crd_test_kit/client/v2.2.1/user_access_level/access_level_receive_request_test.rb +92 -0
- data/lib/davinci_crd_test_kit/client/v2.2.1/user_access_level/access_level_same_scenario_test.rb +340 -0
- data/lib/davinci_crd_test_kit/client/v2.2.1/user_access_level/access_level_target_reference.rb +16 -0
- data/lib/davinci_crd_test_kit/client/v2.2.1/verify_request/hook_request_conformance_test.rb +64 -7
- data/lib/davinci_crd_test_kit/client/v2.2.1/verify_request/hook_request_coverage_verification_test.rb +31 -73
- data/lib/davinci_crd_test_kit/client/v2.2.1/verify_request/hook_request_data_fetch_verification_test.rb +13 -3
- data/lib/davinci_crd_test_kit/client/v2.2.1/verify_request/hook_request_granted_scopes_test.rb +8 -8
- data/lib/davinci_crd_test_kit/client/v2.2.1/verify_request/hook_request_prefetch_complete_test.rb +12 -14
- data/lib/davinci_crd_test_kit/client/v2.2.1/verify_request/hook_request_prefetch_profiles_test.rb +3 -3
- data/lib/davinci_crd_test_kit/client/v2.2.1/verify_request/hook_request_requested_version_test.rb +17 -5
- data/lib/davinci_crd_test_kit/client/v2.2.1/verify_request/hook_request_secured_transport_test.rb +2 -2
- data/lib/davinci_crd_test_kit/client/v2.2.1/verify_response/client_display_cards_attest.rb +59 -27
- data/lib/davinci_crd_test_kit/client/v2.2.1/verify_response/hook_response_support_coverage_information_test.rb +4 -4
- data/lib/davinci_crd_test_kit/client/v2.2.1/verify_response/inferno_response_validation.rb +13 -11
- data/lib/davinci_crd_test_kit/cross_suite/base_urls.rb +12 -0
- data/lib/davinci_crd_test_kit/cross_suite/cards_identification.rb +18 -2
- data/lib/davinci_crd_test_kit/cross_suite/fhirpath_on_cds_request.rb +10 -9
- data/lib/davinci_crd_test_kit/cross_suite/generated/v2.2.1/appointment_with_order/metadata.yml +67 -0
- data/lib/davinci_crd_test_kit/cross_suite/generated/v2.2.1/appointment_without_order/metadata.yml +150 -0
- data/lib/davinci_crd_test_kit/cross_suite/generated/v2.2.1/communication_request/metadata.yml +71 -0
- data/lib/davinci_crd_test_kit/cross_suite/generated/v2.2.1/coverage/metadata.yml +71 -0
- data/lib/davinci_crd_test_kit/cross_suite/generated/v2.2.1/device/metadata.yml +22 -0
- data/lib/davinci_crd_test_kit/cross_suite/generated/v2.2.1/device_request/metadata.yml +85 -0
- data/lib/davinci_crd_test_kit/cross_suite/generated/v2.2.1/encounter/metadata.yml +82 -0
- data/lib/davinci_crd_test_kit/cross_suite/generated/v2.2.1/hrex_organization/metadata.yml +6 -0
- data/lib/davinci_crd_test_kit/cross_suite/generated/v2.2.1/location/metadata.yml +27 -0
- data/lib/davinci_crd_test_kit/cross_suite/generated/v2.2.1/medication/metadata.yml +17 -0
- data/lib/davinci_crd_test_kit/cross_suite/generated/v2.2.1/medication_request/metadata.yml +166 -0
- data/lib/davinci_crd_test_kit/cross_suite/generated/v2.2.1/nutrition_order/metadata.yml +166 -0
- data/lib/davinci_crd_test_kit/cross_suite/generated/v2.2.1/organization/metadata.yml +42 -0
- data/lib/davinci_crd_test_kit/cross_suite/generated/v2.2.1/patient/metadata.yml +29 -0
- data/lib/davinci_crd_test_kit/cross_suite/generated/v2.2.1/practitioner/metadata.yml +37 -0
- data/lib/davinci_crd_test_kit/cross_suite/generated/v2.2.1/practitioner_role/metadata.yml +36 -0
- data/lib/davinci_crd_test_kit/cross_suite/generated/v2.2.1/service_request/metadata.yml +202 -0
- data/lib/davinci_crd_test_kit/cross_suite/generated/v2.2.1/us_core_allergyintolerance/metadata.yml +6 -0
- data/lib/davinci_crd_test_kit/cross_suite/generated/v2.2.1/us_core_condition_encounter_diagnosis/metadata.yml +6 -0
- data/lib/davinci_crd_test_kit/cross_suite/generated/v2.2.1/us_core_condition_problems_health_concerns/metadata.yml +6 -0
- data/lib/davinci_crd_test_kit/cross_suite/generated/v2.2.1/us_core_diagnosticreport_lab/metadata.yml +6 -0
- data/lib/davinci_crd_test_kit/cross_suite/generated/v2.2.1/us_core_diagnosticreport_note/metadata.yml +6 -0
- data/lib/davinci_crd_test_kit/cross_suite/generated/v2.2.1/us_core_documentreference/metadata.yml +6 -0
- data/lib/davinci_crd_test_kit/cross_suite/generated/v2.2.1/us_core_location/metadata.yml +6 -0
- data/lib/davinci_crd_test_kit/cross_suite/generated/v2.2.1/us_core_organization/metadata.yml +6 -0
- data/lib/davinci_crd_test_kit/cross_suite/generated/v2.2.1/us_core_patient/metadata.yml +6 -0
- data/lib/davinci_crd_test_kit/cross_suite/generated/v2.2.1/us_core_practitioner/metadata.yml +6 -0
- data/lib/davinci_crd_test_kit/cross_suite/generated/v2.2.1/us_core_procedure/metadata.yml +6 -0
- data/lib/davinci_crd_test_kit/cross_suite/generated/v2.2.1/vision_prescription/metadata.yml +66 -0
- data/lib/davinci_crd_test_kit/cross_suite/hook_request_field_validation.rb +3 -2
- data/lib/davinci_crd_test_kit/cross_suite/hook_request_resource_extraction.rb +121 -0
- data/lib/davinci_crd_test_kit/cross_suite/logical_models_override_helper.rb +47 -22
- data/lib/davinci_crd_test_kit/cross_suite/must_support_references.rb +49 -0
- data/lib/davinci_crd_test_kit/cross_suite/must_support_slice_matching.rb +50 -0
- data/lib/davinci_crd_test_kit/cross_suite/prefetch_completeness_checker.rb +75 -39
- data/lib/davinci_crd_test_kit/cross_suite/prefetch_profile_validation.rb +2 -0
- data/lib/davinci_crd_test_kit/cross_suite/profile_metadata.rb +75 -0
- data/lib/davinci_crd_test_kit/cross_suite/requests_logical_model_validation.rb +45 -36
- data/lib/davinci_crd_test_kit/cross_suite/resource_identity.rb +183 -0
- data/lib/davinci_crd_test_kit/cross_suite/response_logical_model_validation.rb +48 -41
- data/lib/davinci_crd_test_kit/cross_suite/short_circuit_interaction.rb +28 -0
- data/lib/davinci_crd_test_kit/cross_suite/tags.rb +18 -1
- data/lib/davinci_crd_test_kit/generator/crd_must_support_metadata_extractor.rb +147 -0
- data/lib/davinci_crd_test_kit/generator/must_support_metadata_generator.rb +207 -0
- data/lib/davinci_crd_test_kit/generator/must_support_test_generator.rb +249 -0
- data/lib/davinci_crd_test_kit/generator/templates/must_support_group.rb.erb +118 -0
- data/lib/davinci_crd_test_kit/generator/templates/must_support_test.rb.erb +22 -0
- data/lib/davinci_crd_test_kit/generator/templates/reference_resolution_test.rb.erb +22 -0
- data/lib/davinci_crd_test_kit/igs/davinci_crd_2.2.1.tgz +0 -0
- data/lib/davinci_crd_test_kit/igs/davinci_hrex_1.2.0.tgz +0 -0
- data/lib/davinci_crd_test_kit/metadata.rb +2 -2
- data/lib/davinci_crd_test_kit/requirements/cds-hooks_3.0.0-ballot_requirements.xlsx +0 -0
- data/lib/davinci_crd_test_kit/requirements/davinci_crd_test_kit_requirements.csv +9 -4
- data/lib/davinci_crd_test_kit/requirements/generated/crd_client_requirements_coverage.csv +107 -107
- data/lib/davinci_crd_test_kit/requirements/generated/crd_client_v221_requirements_coverage.csv +107 -102
- data/lib/davinci_crd_test_kit/requirements/generated/crd_server_requirements_coverage.csv +18 -18
- data/lib/davinci_crd_test_kit/requirements/generated/crd_server_v221_requirements_coverage.csv +36 -32
- data/lib/davinci_crd_test_kit/requirements/hl7.fhir.us.davinci-crd_2.2.1_requirements.xlsx +0 -0
- data/lib/davinci_crd_test_kit/server/endpoints/mock_ehr/fhir_create_endpoint.rb +2 -0
- data/lib/davinci_crd_test_kit/server/endpoints/mock_ehr/fhir_delete_endpoint.rb +2 -0
- data/lib/davinci_crd_test_kit/server/endpoints/mock_ehr/fhir_read_endpoint.rb +2 -0
- data/lib/davinci_crd_test_kit/server/endpoints/mock_ehr/fhir_request_handler.rb +6 -0
- data/lib/davinci_crd_test_kit/server/endpoints/mock_ehr/fhir_search_endpoint.rb +21 -12
- data/lib/davinci_crd_test_kit/server/endpoints/mock_ehr/fhir_update_endpoint.rb +2 -0
- data/lib/davinci_crd_test_kit/server/endpoints/mock_ehr_endpoints.rb +3 -0
- data/lib/davinci_crd_test_kit/server/server_abstract_invoke_hook_test.rb +2 -2
- data/lib/davinci_crd_test_kit/server/v2.0.1/crd_server_suite.rb +1 -1
- data/lib/davinci_crd_test_kit/server/v2.0.1/server_hooks_group.rb +5 -5
- data/lib/davinci_crd_test_kit/server/v2.2.1/discovery/discovery_standard_prefetch_expressions_test.rb +1 -2
- data/lib/davinci_crd_test_kit/server/v2.2.1/must_support/supported_us_core_versions_test.rb +2 -2
- data/lib/davinci_crd_test_kit/server/v2.2.1/server_appointment_book_group.rb +1 -1
- data/lib/davinci_crd_test_kit/server/v2.2.1/server_demonstrate_hook_response_group.rb +3 -3
- data/lib/davinci_crd_test_kit/server/v2.2.1/server_encounter_discharge_group.rb +1 -1
- data/lib/davinci_crd_test_kit/server/v2.2.1/server_encounter_start_group.rb +1 -1
- data/lib/davinci_crd_test_kit/server/v2.2.1/server_hooks_group.rb +5 -5
- data/lib/davinci_crd_test_kit/server/v2.2.1/server_order_dispatch_group.rb +1 -1
- data/lib/davinci_crd_test_kit/server/v2.2.1/server_order_select_group.rb +1 -1
- data/lib/davinci_crd_test_kit/server/v2.2.1/server_order_sign_group.rb +1 -1
- data/lib/davinci_crd_test_kit/server/v2.2.1/server_required_card_response_validation_group.rb +1 -1
- data/lib/davinci_crd_test_kit/server/v2.2.1/specific_coverage_responses/coverage_not_found_group.rb +1 -1
- data/lib/davinci_crd_test_kit/server/v2.2.1/specific_coverage_responses/no_active_coverage_group.rb +1 -1
- data/lib/davinci_crd_test_kit/server/v2.2.1/specific_coverage_responses/no_member_found_group.rb +1 -1
- data/lib/davinci_crd_test_kit/server/v2.2.1/specific_coverage_responses/technical_issues_group.rb +1 -1
- data/lib/davinci_crd_test_kit/server/v2.2.1/verify_request/service_request_context_validation_test.rb +1 -1
- data/lib/davinci_crd_test_kit/server/v2.2.1/verify_request/service_request_no_custom_extensions_test.rb +2 -2
- data/lib/davinci_crd_test_kit/server/v2.2.1/verify_request/service_request_optional_fields_validation_test.rb +1 -1
- data/lib/davinci_crd_test_kit/server/v2.2.1/verify_request/service_request_required_fields_validation_test.rb +1 -1
- data/lib/davinci_crd_test_kit/version.rb +2 -2
- metadata +132 -16
- data/config/presets/inferno_crd_server_suite_v221.json.erb +0 -94
- data/lib/davinci_crd_test_kit/client/endpoints/gather_response_generation_data.rb +0 -410
- data/lib/davinci_crd_test_kit/server/resource_extractor.rb +0 -68
data/lib/davinci_crd_test_kit/client/v2.0.1/invocation/appointment_book_receive_request_test.rb
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
require_relative '../client_urls'
|
|
2
|
+
require_relative '../../client_input_helper'
|
|
2
3
|
|
|
3
4
|
module DaVinciCRDTestKit
|
|
4
5
|
module V201
|
|
@@ -15,7 +16,7 @@ module DaVinciCRDTestKit
|
|
|
15
16
|
level of detail provided is insufficient to determine coverage.
|
|
16
17
|
|
|
17
18
|
For more details on how Inferno's simulated CDS Service behave during hook invocation see the
|
|
18
|
-
[simulated CRD server(https://github.com/inferno-framework/davinci-crd-test-kit/wiki/Client-Details#crd-server-
|
|
19
|
+
[simulated CRD server(https://github.com/inferno-framework/davinci-crd-test-kit/wiki/Client-Details#simulated-crd-server-in-the-crd-client-v201-suite)
|
|
19
20
|
documentation.
|
|
20
21
|
)
|
|
21
22
|
config options: { accepts_multiple_requests: true }
|
|
@@ -26,39 +27,19 @@ module DaVinciCRDTestKit
|
|
|
26
27
|
|
|
27
28
|
input :cds_jwt_iss,
|
|
28
29
|
title: 'CRD JWT Issuer',
|
|
29
|
-
description:
|
|
30
|
-
Value of the `iss` claim that must be sent on the Bearer token in the `Authorization`
|
|
31
|
-
header of all requests. Run or re-run the **Client Registration** group to set or
|
|
32
|
-
change this value.
|
|
33
|
-
),
|
|
30
|
+
description: ClientInputHelper.v201_locked_cds_jwt_iss_description,
|
|
34
31
|
locked: true
|
|
35
32
|
input :appointment_book_response_approach,
|
|
36
33
|
title: 'Response generation approach for appointment-book',
|
|
37
|
-
description:
|
|
38
|
-
Determines how Inferno will generate response for appointment-book
|
|
39
|
-
hook invocations.
|
|
40
|
-
),
|
|
34
|
+
description: ClientInputHelper.response_approach_description('appointment-book'),
|
|
41
35
|
type: 'radio',
|
|
42
36
|
default: 'mocked',
|
|
43
|
-
options:
|
|
44
|
-
list_options: [
|
|
45
|
-
{
|
|
46
|
-
label: 'Create simple mocks based on selected response types',
|
|
47
|
-
value: 'mocked'
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
label: 'Generate responses based on a tester-provided template',
|
|
51
|
-
value: 'custom'
|
|
52
|
-
}
|
|
53
|
-
]
|
|
54
|
-
}
|
|
37
|
+
options: ClientInputHelper.response_approach_options
|
|
55
38
|
input :appointment_book_selected_response_types,
|
|
56
39
|
title: 'Response types to return from appointment-book hook requests',
|
|
57
40
|
description: %(
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
a [Coverage Information](https://hl7.org/fhir/us/davinci-crd/2.2.1/en/cards.html#coverage-information-response-type)
|
|
61
|
-
response for this primary hook.
|
|
41
|
+
#{ClientInputHelper.mocked_response_types_intro}
|
|
42
|
+
#{ClientInputHelper.default_response_type_note(primary: true)}
|
|
62
43
|
),
|
|
63
44
|
type: 'checkbox',
|
|
64
45
|
default: ['coverage_information', 'external_reference', 'instructions'],
|
|
@@ -94,18 +75,16 @@ module DaVinciCRDTestKit
|
|
|
94
75
|
enable_when: { input_name: 'appointment_book_response_approach', value: 'mocked' }
|
|
95
76
|
input :appointment_book_custom_response_template,
|
|
96
77
|
title: 'Custom response template for appointment-book hook requests',
|
|
97
|
-
description:
|
|
98
|
-
Provide a [custom response template](https://github.com/inferno-framework/davinci-crd-test-kit/wiki/Controlling-Simulated-Responses#tester-directed-custom-responses)
|
|
99
|
-
in JSON form for Inferno to use when responding to hook invocations.
|
|
100
|
-
),
|
|
78
|
+
description: ClientInputHelper.custom_response_template_description,
|
|
101
79
|
type: 'textarea',
|
|
102
80
|
optional: true,
|
|
103
81
|
enable_when: { input_name: 'appointment_book_response_approach', value: 'custom' }
|
|
104
82
|
output :continuation_url
|
|
83
|
+
flag_as_tester_initiated_exchange
|
|
105
84
|
|
|
106
85
|
run do
|
|
107
86
|
identifier = cds_jwt_iss
|
|
108
|
-
continuation_url =
|
|
87
|
+
continuation_url = resume_pass_url_for(identifier)
|
|
109
88
|
output(continuation_url:)
|
|
110
89
|
|
|
111
90
|
wait(
|
data/lib/davinci_crd_test_kit/client/v2.0.1/invocation/encounter_discharge_receive_request_test.rb
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
require_relative '../client_urls'
|
|
2
|
+
require_relative '../../client_input_helper'
|
|
2
3
|
|
|
3
4
|
module DaVinciCRDTestKit
|
|
4
5
|
module V201
|
|
@@ -12,7 +13,7 @@ module DaVinciCRDTestKit
|
|
|
12
13
|
hook requests and responds to the client with the response types selected as an input.
|
|
13
14
|
|
|
14
15
|
For more details on how Inferno's simulated CDS Service behave during hook invocation see the
|
|
15
|
-
[simulated CRD server](https://github.com/inferno-framework/davinci-crd-test-kit/wiki/Client-Details#crd-server-
|
|
16
|
+
[simulated CRD server](https://github.com/inferno-framework/davinci-crd-test-kit/wiki/Client-Details#simulated-crd-server-in-the-crd-client-v201-suite)
|
|
16
17
|
documentation.
|
|
17
18
|
)
|
|
18
19
|
verifies_requirements 'hl7.fhir.us.davinci-crd_2.0.1@197', 'hl7.fhir.us.davinci-crd_2.0.1@243',
|
|
@@ -23,39 +24,19 @@ module DaVinciCRDTestKit
|
|
|
23
24
|
|
|
24
25
|
input :cds_jwt_iss,
|
|
25
26
|
title: 'CRD JWT Issuer',
|
|
26
|
-
description:
|
|
27
|
-
Value of the `iss` claim that must be sent on the Bearer token in the `Authorization`
|
|
28
|
-
header of all requests. Run or re-run the **Client Registration** group to set or
|
|
29
|
-
change this value.
|
|
30
|
-
),
|
|
27
|
+
description: ClientInputHelper.v201_locked_cds_jwt_iss_description,
|
|
31
28
|
locked: true
|
|
32
29
|
input :encounter_discharge_response_approach,
|
|
33
30
|
title: 'Response generation approach for encounter-discharge',
|
|
34
|
-
description:
|
|
35
|
-
Determines how Inferno will generate response for encounter-discharge
|
|
36
|
-
hook invocations.
|
|
37
|
-
),
|
|
31
|
+
description: ClientInputHelper.response_approach_description('encounter-discharge'),
|
|
38
32
|
type: 'radio',
|
|
39
33
|
default: 'mocked',
|
|
40
|
-
options:
|
|
41
|
-
list_options: [
|
|
42
|
-
{
|
|
43
|
-
label: 'Create simple mocks based on selected response types',
|
|
44
|
-
value: 'mocked'
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
label: 'Generate responses based on a tester-provided template',
|
|
48
|
-
value: 'custom'
|
|
49
|
-
}
|
|
50
|
-
]
|
|
51
|
-
}
|
|
34
|
+
options: ClientInputHelper.response_approach_options
|
|
52
35
|
input :encounter_discharge_selected_response_types,
|
|
53
36
|
title: 'Response types to return from encounter-discharge hook requests',
|
|
54
37
|
description: %(
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
an [Instructions](https://hl7.org/fhir/us/davinci-crd/2.2.1/en/cards.html#instructions-response-type)
|
|
58
|
-
response for this secondary hook.
|
|
38
|
+
#{ClientInputHelper.mocked_response_types_intro}
|
|
39
|
+
#{ClientInputHelper.default_response_type_note(primary: false)}
|
|
59
40
|
),
|
|
60
41
|
type: 'checkbox',
|
|
61
42
|
default: ['coverage_information', 'external_reference', 'instructions'],
|
|
@@ -91,18 +72,16 @@ module DaVinciCRDTestKit
|
|
|
91
72
|
enable_when: { input_name: 'encounter_discharge_response_approach', value: 'mocked' }
|
|
92
73
|
input :encounter_discharge_custom_response_template,
|
|
93
74
|
title: 'Custom response template for encounter-discharge hook requests',
|
|
94
|
-
description:
|
|
95
|
-
Provide a [custom response template](https://github.com/inferno-framework/davinci-crd-test-kit/wiki/Controlling-Simulated-Responses#tester-directed-custom-responses)
|
|
96
|
-
in JSON form for Inferno to use when responding to hook invocations.
|
|
97
|
-
),
|
|
75
|
+
description: ClientInputHelper.custom_response_template_description,
|
|
98
76
|
type: 'textarea',
|
|
99
77
|
optional: true,
|
|
100
78
|
enable_when: { input_name: 'encounter_discharge_response_approach', value: 'custom' }
|
|
101
79
|
output :continuation_url
|
|
80
|
+
flag_as_tester_initiated_exchange
|
|
102
81
|
|
|
103
82
|
run do
|
|
104
83
|
identifier = cds_jwt_iss
|
|
105
|
-
continuation_url =
|
|
84
|
+
continuation_url = resume_pass_url_for(identifier)
|
|
106
85
|
output(continuation_url:)
|
|
107
86
|
|
|
108
87
|
wait(
|
data/lib/davinci_crd_test_kit/client/v2.0.1/invocation/encounter_start_receive_request_test.rb
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
require_relative '../client_urls'
|
|
2
|
+
require_relative '../../client_input_helper'
|
|
2
3
|
|
|
3
4
|
module DaVinciCRDTestKit
|
|
4
5
|
module V201
|
|
@@ -12,7 +13,7 @@ module DaVinciCRDTestKit
|
|
|
12
13
|
hook requests and responds to the client with the response types selected as an input.
|
|
13
14
|
|
|
14
15
|
For more details on how Inferno's simulated CDS Service behave during hook invocation see the
|
|
15
|
-
[simulated CRD server](https://github.com/inferno-framework/davinci-crd-test-kit/wiki/Client-Details#crd-server-
|
|
16
|
+
[simulated CRD server](https://github.com/inferno-framework/davinci-crd-test-kit/wiki/Client-Details#simulated-crd-server-in-the-crd-client-v201-suite)
|
|
16
17
|
documentation.
|
|
17
18
|
)
|
|
18
19
|
verifies_requirements 'hl7.fhir.us.davinci-crd_2.0.1@186', 'hl7.fhir.us.davinci-crd_2.0.1@243',
|
|
@@ -23,32 +24,14 @@ module DaVinciCRDTestKit
|
|
|
23
24
|
|
|
24
25
|
input :cds_jwt_iss,
|
|
25
26
|
title: 'CRD JWT Issuer',
|
|
26
|
-
description:
|
|
27
|
-
Value of the `iss` claim that must be sent on the Bearer token in the `Authorization`
|
|
28
|
-
header of all requests. Run or re-run the **Client Registration** group to set or
|
|
29
|
-
change this value.
|
|
30
|
-
),
|
|
27
|
+
description: ClientInputHelper.v201_locked_cds_jwt_iss_description,
|
|
31
28
|
locked: true
|
|
32
29
|
input :encounter_start_response_approach,
|
|
33
30
|
title: 'Response generation approach for encounter-start',
|
|
34
|
-
description:
|
|
35
|
-
Determines how Inferno will generate response for encounter-start
|
|
36
|
-
hook invocations.
|
|
37
|
-
),
|
|
31
|
+
description: ClientInputHelper.response_approach_description('encounter-start'),
|
|
38
32
|
type: 'radio',
|
|
39
33
|
default: 'mocked',
|
|
40
|
-
options:
|
|
41
|
-
list_options: [
|
|
42
|
-
{
|
|
43
|
-
label: 'Create simple mocks based on selected response types',
|
|
44
|
-
value: 'mocked'
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
label: 'Generate responses based on a tester-provided template',
|
|
48
|
-
value: 'custom'
|
|
49
|
-
}
|
|
50
|
-
]
|
|
51
|
-
}
|
|
34
|
+
options: ClientInputHelper.response_approach_options
|
|
52
35
|
input :encounter_start_selected_response_types,
|
|
53
36
|
title: 'Response types to return from encounter-start hook requests',
|
|
54
37
|
description: %(
|
|
@@ -89,20 +72,16 @@ module DaVinciCRDTestKit
|
|
|
89
72
|
enable_when: { input_name: 'encounter_start_response_approach', value: 'mocked' }
|
|
90
73
|
input :encounter_start_custom_response_template,
|
|
91
74
|
title: 'Custom response template for encounter-start hook requests',
|
|
92
|
-
description:
|
|
93
|
-
Select the CRD response types that the simulated Inferno CRD server will [mock](https://github.com/inferno-framework/davinci-crd-test-kit/wiki/Controlling-Simulated-Responses#mocked-responses)
|
|
94
|
-
when responding to hook invocations. If no types are selected, Inferno will mock and return
|
|
95
|
-
an [Instructions](https://hl7.org/fhir/us/davinci-crd/2.2.1/en/cards.html#instructions-response-type)
|
|
96
|
-
response for this secondary hook.
|
|
97
|
-
),
|
|
75
|
+
description: ClientInputHelper.custom_response_template_description,
|
|
98
76
|
type: 'textarea',
|
|
99
77
|
optional: true,
|
|
100
78
|
enable_when: { input_name: 'encounter_start_response_approach', value: 'custom' }
|
|
101
79
|
output :continuation_url
|
|
80
|
+
flag_as_tester_initiated_exchange
|
|
102
81
|
|
|
103
82
|
run do
|
|
104
83
|
identifier = cds_jwt_iss
|
|
105
|
-
continuation_url =
|
|
84
|
+
continuation_url = resume_pass_url_for(identifier)
|
|
106
85
|
output(continuation_url:)
|
|
107
86
|
|
|
108
87
|
wait(
|
data/lib/davinci_crd_test_kit/client/v2.0.1/invocation/order_dispatch_receive_request_test.rb
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
require_relative '../client_urls'
|
|
2
|
+
require_relative '../../client_input_helper'
|
|
2
3
|
|
|
3
4
|
module DaVinciCRDTestKit
|
|
4
5
|
module V201
|
|
@@ -15,7 +16,7 @@ module DaVinciCRDTestKit
|
|
|
15
16
|
level of detail provided is insufficient to determine coverage.
|
|
16
17
|
|
|
17
18
|
For more details on how Inferno's simulated CDS Service behave during hook invocation see the
|
|
18
|
-
[simulated CRD server](https://github.com/inferno-framework/davinci-crd-test-kit/wiki/Client-Details#crd-server-
|
|
19
|
+
[simulated CRD server](https://github.com/inferno-framework/davinci-crd-test-kit/wiki/Client-Details#simulated-crd-server-in-the-crd-client-v201-suite)
|
|
19
20
|
documentation.
|
|
20
21
|
)
|
|
21
22
|
verifies_requirements 'hl7.fhir.us.davinci-crd_2.0.1@205',
|
|
@@ -27,39 +28,19 @@ module DaVinciCRDTestKit
|
|
|
27
28
|
|
|
28
29
|
input :cds_jwt_iss,
|
|
29
30
|
title: 'CRD JWT Issuer',
|
|
30
|
-
description:
|
|
31
|
-
Value of the `iss` claim that must be sent on the Bearer token in the `Authorization`
|
|
32
|
-
header of all requests. Run or re-run the **Client Registration** group to set or
|
|
33
|
-
change this value.
|
|
34
|
-
),
|
|
31
|
+
description: ClientInputHelper.v201_locked_cds_jwt_iss_description,
|
|
35
32
|
locked: true
|
|
36
33
|
input :order_dispatch_response_approach,
|
|
37
34
|
title: 'Response generation approach for order-dispatch',
|
|
38
|
-
description:
|
|
39
|
-
Determines how Inferno will generate response for order-dispatch
|
|
40
|
-
hook invocations.
|
|
41
|
-
),
|
|
35
|
+
description: ClientInputHelper.response_approach_description('order-dispatch'),
|
|
42
36
|
type: 'radio',
|
|
43
37
|
default: 'mocked',
|
|
44
|
-
options:
|
|
45
|
-
list_options: [
|
|
46
|
-
{
|
|
47
|
-
label: 'Create simple mocks based on selected response types',
|
|
48
|
-
value: 'mocked'
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
label: 'Generate responses based on a tester-provided template',
|
|
52
|
-
value: 'custom'
|
|
53
|
-
}
|
|
54
|
-
]
|
|
55
|
-
}
|
|
38
|
+
options: ClientInputHelper.response_approach_options
|
|
56
39
|
input :order_dispatch_selected_response_types,
|
|
57
40
|
title: 'Response types to return from order-dispatch hook requests',
|
|
58
41
|
description: %(
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
a [Coverage Information](https://hl7.org/fhir/us/davinci-crd/2.2.1/en/cards.html#coverage-information-response-type)
|
|
62
|
-
response for this primary hook.
|
|
42
|
+
#{ClientInputHelper.mocked_response_types_intro}
|
|
43
|
+
#{ClientInputHelper.default_response_type_note(primary: true)}
|
|
63
44
|
),
|
|
64
45
|
type: 'checkbox',
|
|
65
46
|
default: ['coverage_information', 'external_reference', 'instructions'],
|
|
@@ -103,18 +84,16 @@ module DaVinciCRDTestKit
|
|
|
103
84
|
enable_when: { input_name: 'order_dispatch_response_approach', value: 'mocked' }
|
|
104
85
|
input :order_dispatch_custom_response_template,
|
|
105
86
|
title: 'Custom response template for order-dispatch hook requests',
|
|
106
|
-
description:
|
|
107
|
-
Provide a [custom response template](https://github.com/inferno-framework/davinci-crd-test-kit/wiki/Controlling-Simulated-Responses#tester-directed-custom-responses)
|
|
108
|
-
in JSON form for Inferno to use when responding to hook invocations.
|
|
109
|
-
),
|
|
87
|
+
description: ClientInputHelper.custom_response_template_description,
|
|
110
88
|
type: 'textarea',
|
|
111
89
|
optional: true,
|
|
112
90
|
enable_when: { input_name: 'order_dispatch_response_approach', value: 'custom' }
|
|
113
91
|
output :continuation_url
|
|
92
|
+
flag_as_tester_initiated_exchange
|
|
114
93
|
|
|
115
94
|
run do
|
|
116
95
|
identifier = cds_jwt_iss
|
|
117
|
-
continuation_url =
|
|
96
|
+
continuation_url = resume_pass_url_for(identifier)
|
|
118
97
|
output(continuation_url:)
|
|
119
98
|
|
|
120
99
|
wait(
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
require_relative '../client_urls'
|
|
2
|
+
require_relative '../../client_input_helper'
|
|
2
3
|
|
|
3
4
|
module DaVinciCRDTestKit
|
|
4
5
|
module V201
|
|
@@ -12,7 +13,7 @@ module DaVinciCRDTestKit
|
|
|
12
13
|
hook requests and responds to the client with the response types selected as an input.
|
|
13
14
|
|
|
14
15
|
For more details on how Inferno's simulated CDS Service behave during hook invocation see the
|
|
15
|
-
[simulated CRD server](https://github.com/inferno-framework/davinci-crd-test-kit/wiki/Client-Details#crd-server-
|
|
16
|
+
[simulated CRD server](https://github.com/inferno-framework/davinci-crd-test-kit/wiki/Client-Details#simulated-crd-server-in-the-crd-client-v201-suite)
|
|
16
17
|
documentation.
|
|
17
18
|
)
|
|
18
19
|
verifies_requirements 'hl7.fhir.us.davinci-crd_2.0.1@209', 'hl7.fhir.us.davinci-crd_2.0.1@243',
|
|
@@ -23,32 +24,14 @@ module DaVinciCRDTestKit
|
|
|
23
24
|
|
|
24
25
|
input :cds_jwt_iss,
|
|
25
26
|
title: 'CRD JWT Issuer',
|
|
26
|
-
description:
|
|
27
|
-
Value of the `iss` claim that must be sent on the Bearer token in the `Authorization`
|
|
28
|
-
header of all requests. Run or re-run the **Client Registration** group to set or
|
|
29
|
-
change this value.
|
|
30
|
-
),
|
|
27
|
+
description: ClientInputHelper.v201_locked_cds_jwt_iss_description,
|
|
31
28
|
locked: true
|
|
32
29
|
input :order_select_response_approach,
|
|
33
30
|
title: 'Response generation approach for order-select',
|
|
34
|
-
description:
|
|
35
|
-
Determines how Inferno will generate response for order-select
|
|
36
|
-
hook invocations.
|
|
37
|
-
),
|
|
31
|
+
description: ClientInputHelper.response_approach_description('order-select'),
|
|
38
32
|
type: 'radio',
|
|
39
33
|
default: 'mocked',
|
|
40
|
-
options:
|
|
41
|
-
list_options: [
|
|
42
|
-
{
|
|
43
|
-
label: 'Create simple mocks based on selected response types',
|
|
44
|
-
value: 'mocked'
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
label: 'Generate responses based on a tester-provided template',
|
|
48
|
-
value: 'custom'
|
|
49
|
-
}
|
|
50
|
-
]
|
|
51
|
-
}
|
|
34
|
+
options: ClientInputHelper.response_approach_options
|
|
52
35
|
input :order_select_selected_response_types,
|
|
53
36
|
title: 'Response types to return from order-select hook requests',
|
|
54
37
|
description: %(
|
|
@@ -97,20 +80,16 @@ module DaVinciCRDTestKit
|
|
|
97
80
|
enable_when: { input_name: 'order_select_response_approach', value: 'mocked' }
|
|
98
81
|
input :order_select_custom_response_template,
|
|
99
82
|
title: 'Custom response template for order-select hook requests',
|
|
100
|
-
description:
|
|
101
|
-
Select the CRD response types that the simulated Inferno CRD server will [mock](https://github.com/inferno-framework/davinci-crd-test-kit/wiki/Controlling-Simulated-Responses#mocked-responses)
|
|
102
|
-
when responding to hook invocations. If no types are selected, Inferno will mock and return
|
|
103
|
-
an [Instructions](https://hl7.org/fhir/us/davinci-crd/2.2.1/en/cards.html#instructions-response-type)
|
|
104
|
-
response for this secondary hook.
|
|
105
|
-
),
|
|
83
|
+
description: ClientInputHelper.custom_response_template_description,
|
|
106
84
|
type: 'textarea',
|
|
107
85
|
optional: true,
|
|
108
86
|
enable_when: { input_name: 'order_select_response_approach', value: 'custom' }
|
|
109
87
|
output :continuation_url
|
|
88
|
+
flag_as_tester_initiated_exchange
|
|
110
89
|
|
|
111
90
|
run do
|
|
112
91
|
identifier = cds_jwt_iss
|
|
113
|
-
continuation_url =
|
|
92
|
+
continuation_url = resume_pass_url_for(identifier)
|
|
114
93
|
output(continuation_url:)
|
|
115
94
|
|
|
116
95
|
wait(
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
require_relative '../client_urls'
|
|
2
|
+
require_relative '../../client_input_helper'
|
|
2
3
|
|
|
3
4
|
module DaVinciCRDTestKit
|
|
4
5
|
module V201
|
|
@@ -15,7 +16,7 @@ module DaVinciCRDTestKit
|
|
|
15
16
|
level of detail provided is insufficient to determine coverage.
|
|
16
17
|
|
|
17
18
|
For more details on how Inferno's simulated CDS Service behave during hook invocation see the
|
|
18
|
-
[simulated CRD server](https://github.com/inferno-framework/davinci-crd-test-kit/wiki/Client-Details#crd-server-
|
|
19
|
+
[simulated CRD server](https://github.com/inferno-framework/davinci-crd-test-kit/wiki/Client-Details#simulated-crd-server-in-the-crd-client-v201-suite)
|
|
19
20
|
documentation.
|
|
20
21
|
)
|
|
21
22
|
verifies_requirements 'hl7.fhir.us.davinci-crd_2.0.1@218', 'hl7.fhir.us.davinci-crd_2.0.1@225',
|
|
@@ -26,39 +27,19 @@ module DaVinciCRDTestKit
|
|
|
26
27
|
|
|
27
28
|
input :cds_jwt_iss,
|
|
28
29
|
title: 'CRD JWT Issuer',
|
|
29
|
-
description:
|
|
30
|
-
Value of the `iss` claim that must be sent on the Bearer token in the `Authorization`
|
|
31
|
-
header of all requests. Run or re-run the **Client Registration** group to set or
|
|
32
|
-
change this value.
|
|
33
|
-
),
|
|
30
|
+
description: ClientInputHelper.v201_locked_cds_jwt_iss_description,
|
|
34
31
|
locked: true
|
|
35
32
|
input :order_sign_response_approach,
|
|
36
33
|
title: 'Response generation approach for order-sign',
|
|
37
|
-
description:
|
|
38
|
-
Determines how Inferno will generate response for order-sign
|
|
39
|
-
hook invocations.
|
|
40
|
-
),
|
|
34
|
+
description: ClientInputHelper.response_approach_description('order-sign'),
|
|
41
35
|
type: 'radio',
|
|
42
36
|
default: 'mocked',
|
|
43
|
-
options:
|
|
44
|
-
list_options: [
|
|
45
|
-
{
|
|
46
|
-
label: 'Create simple mocks based on selected response types',
|
|
47
|
-
value: 'mocked'
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
label: 'Generate responses based on a tester-provided template',
|
|
51
|
-
value: 'custom'
|
|
52
|
-
}
|
|
53
|
-
]
|
|
54
|
-
}
|
|
37
|
+
options: ClientInputHelper.response_approach_options
|
|
55
38
|
input :order_sign_selected_response_types,
|
|
56
39
|
title: 'Response types to return from order-sign hook requests',
|
|
57
40
|
description: %(
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
a [Coverage Information](https://hl7.org/fhir/us/davinci-crd/2.2.1/en/cards.html#coverage-information-response-type)
|
|
61
|
-
response for this primary hook.
|
|
41
|
+
#{ClientInputHelper.mocked_response_types_intro}
|
|
42
|
+
#{ClientInputHelper.default_response_type_note(primary: true)}
|
|
62
43
|
),
|
|
63
44
|
type: 'checkbox',
|
|
64
45
|
default: ['coverage_information', 'external_reference', 'instructions'],
|
|
@@ -102,18 +83,16 @@ module DaVinciCRDTestKit
|
|
|
102
83
|
enable_when: { input_name: 'order_sign_response_approach', value: 'mocked' }
|
|
103
84
|
input :order_sign_custom_response_template,
|
|
104
85
|
title: 'Custom response template for order-sign hook requests',
|
|
105
|
-
description:
|
|
106
|
-
Provide a [custom response template](https://github.com/inferno-framework/davinci-crd-test-kit/wiki/Controlling-Simulated-Responses#tester-directed-custom-responses)
|
|
107
|
-
in JSON form for Inferno to use when responding to hook invocations.
|
|
108
|
-
),
|
|
86
|
+
description: ClientInputHelper.custom_response_template_description,
|
|
109
87
|
type: 'textarea',
|
|
110
88
|
optional: true,
|
|
111
89
|
enable_when: { input_name: 'order_sign_response_approach', value: 'custom' }
|
|
112
90
|
output :continuation_url
|
|
91
|
+
flag_as_tester_initiated_exchange
|
|
113
92
|
|
|
114
93
|
run do
|
|
115
94
|
identifier = cds_jwt_iss
|
|
116
|
-
continuation_url =
|
|
95
|
+
continuation_url = resume_pass_url_for(identifier)
|
|
117
96
|
output(continuation_url:)
|
|
118
97
|
|
|
119
98
|
wait(
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
require_relative '../../../cross_suite/cards_identification'
|
|
2
|
+
require_relative '../../tagged_request_load_helper'
|
|
2
3
|
|
|
3
4
|
module DaVinciCRDTestKit
|
|
4
5
|
module V201
|
|
5
6
|
class ClientCardMustSupportCoverageInformationTest < Inferno::Test
|
|
6
7
|
include CardsIdentification
|
|
8
|
+
include TaggedRequestLoadHelper
|
|
7
9
|
|
|
8
10
|
title 'Coverage Information Action Support'
|
|
9
11
|
id :crd_v201_client_card_must_support_coverage_information
|
|
@@ -19,47 +21,12 @@ module DaVinciCRDTestKit
|
|
|
19
21
|
and support for them is demonstrated.
|
|
20
22
|
DESCRIPTION
|
|
21
23
|
|
|
22
|
-
ALL_HOOKS = [
|
|
23
|
-
APPOINTMENT_BOOK_TAG,
|
|
24
|
-
ENCOUNTER_START_TAG,
|
|
25
|
-
ENCOUNTER_DISCHARGE_TAG,
|
|
26
|
-
ORDER_DISPATCH_TAG,
|
|
27
|
-
ORDER_SELECT_TAG,
|
|
28
|
-
ORDER_SIGN_TAG
|
|
29
|
-
].freeze
|
|
30
|
-
|
|
31
24
|
def metadata
|
|
32
25
|
@metadata ||= YAML.load_file(
|
|
33
26
|
File.join(__dir__, '..', '..', '..', 'cross_suite', 'coverage-information_stu201_metadata.yml')
|
|
34
27
|
)
|
|
35
28
|
end
|
|
36
29
|
|
|
37
|
-
def configured_hook_name
|
|
38
|
-
config.options[:hook_name]
|
|
39
|
-
end
|
|
40
|
-
|
|
41
|
-
def crd_test_group
|
|
42
|
-
config.options[:crd_test_group]
|
|
43
|
-
end
|
|
44
|
-
|
|
45
|
-
def tags_to_load(hook_name)
|
|
46
|
-
crd_test_group.present? ? [hook_name, crd_test_group] : [hook_name]
|
|
47
|
-
end
|
|
48
|
-
|
|
49
|
-
def requests_to_analyze
|
|
50
|
-
if configured_hook_name.present?
|
|
51
|
-
load_requests_for_tags(tags_to_load(configured_hook_name))
|
|
52
|
-
else
|
|
53
|
-
ALL_HOOKS.each_with_object([]) do |hook_name, request_list|
|
|
54
|
-
request_list.concat(load_requests_for_tags(tags_to_load(hook_name)))
|
|
55
|
-
end
|
|
56
|
-
end
|
|
57
|
-
end
|
|
58
|
-
|
|
59
|
-
def load_requests_for_tags(tags_to_load)
|
|
60
|
-
load_tagged_requests(*tags_to_load)
|
|
61
|
-
end
|
|
62
|
-
|
|
63
30
|
class MustSupportMetadataHolder
|
|
64
31
|
attr_accessor :metadata
|
|
65
32
|
|
|
@@ -77,7 +44,7 @@ module DaVinciCRDTestKit
|
|
|
77
44
|
end
|
|
78
45
|
|
|
79
46
|
run do
|
|
80
|
-
loaded_requests =
|
|
47
|
+
loaded_requests = load_requests_for_cross_hook_analysis
|
|
81
48
|
|
|
82
49
|
sorted_cards = sorted_cards_from_requests(loaded_requests)
|
|
83
50
|
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
require_relative '../../../cross_suite/cards_identification'
|
|
2
|
+
require_relative '../../tagged_request_load_helper'
|
|
2
3
|
|
|
3
4
|
module DaVinciCRDTestKit
|
|
4
5
|
module V201
|
|
5
6
|
class ClientCardMustSupportExternalReferenceTest < Inferno::Test
|
|
6
7
|
include CardsIdentification
|
|
8
|
+
include TaggedRequestLoadHelper
|
|
7
9
|
|
|
8
10
|
title 'External Reference Card Support'
|
|
9
11
|
id :crd_v201_client_card_must_support_external_reference
|
|
@@ -15,43 +17,8 @@ module DaVinciCRDTestKit
|
|
|
15
17
|
and/or the hook requests made by the client during the Hooks tests such that an External Reference card is returned and support for it is demonstrated.
|
|
16
18
|
DESCRIPTION
|
|
17
19
|
|
|
18
|
-
ALL_HOOKS = [
|
|
19
|
-
APPOINTMENT_BOOK_TAG,
|
|
20
|
-
ENCOUNTER_START_TAG,
|
|
21
|
-
ENCOUNTER_DISCHARGE_TAG,
|
|
22
|
-
ORDER_DISPATCH_TAG,
|
|
23
|
-
ORDER_SELECT_TAG,
|
|
24
|
-
ORDER_SIGN_TAG
|
|
25
|
-
].freeze
|
|
26
|
-
|
|
27
|
-
def configured_hook_name
|
|
28
|
-
config.options[:hook_name]
|
|
29
|
-
end
|
|
30
|
-
|
|
31
|
-
def crd_test_group
|
|
32
|
-
config.options[:crd_test_group]
|
|
33
|
-
end
|
|
34
|
-
|
|
35
|
-
def tags_to_load(hook_name)
|
|
36
|
-
crd_test_group.present? ? [hook_name, crd_test_group] : [hook_name]
|
|
37
|
-
end
|
|
38
|
-
|
|
39
|
-
def requests_to_analyze
|
|
40
|
-
if configured_hook_name.present?
|
|
41
|
-
load_requests_for_tags(tags_to_load(configured_hook_name))
|
|
42
|
-
else
|
|
43
|
-
ALL_HOOKS.each_with_object([]) do |hook_name, request_list|
|
|
44
|
-
request_list.concat(load_requests_for_tags(tags_to_load(hook_name)))
|
|
45
|
-
end
|
|
46
|
-
end
|
|
47
|
-
end
|
|
48
|
-
|
|
49
|
-
def load_requests_for_tags(tags_to_load)
|
|
50
|
-
load_tagged_requests(*tags_to_load)
|
|
51
|
-
end
|
|
52
|
-
|
|
53
20
|
run do
|
|
54
|
-
loaded_requests =
|
|
21
|
+
loaded_requests = load_requests_for_cross_hook_analysis
|
|
55
22
|
sorted_cards = sorted_cards_from_requests(loaded_requests)
|
|
56
23
|
|
|
57
24
|
assert sorted_cards['cards'][EXTERNAL_REFERENCE_RESPONSE_TYPE].present?,
|
data/lib/davinci_crd_test_kit/client/v2.0.1/must_support/client_card_must_support_instructions.rb
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
require_relative '../../../cross_suite/cards_identification'
|
|
2
|
+
require_relative '../../tagged_request_load_helper'
|
|
2
3
|
|
|
3
4
|
module DaVinciCRDTestKit
|
|
4
5
|
module V201
|
|
5
6
|
class ClientCardMustSupportInstructionsTest < Inferno::Test
|
|
6
7
|
include CardsIdentification
|
|
8
|
+
include TaggedRequestLoadHelper
|
|
7
9
|
|
|
8
10
|
title 'Instructions Card Support'
|
|
9
11
|
id :crd_v201_client_card_must_support_instructions
|
|
@@ -15,43 +17,8 @@ module DaVinciCRDTestKit
|
|
|
15
17
|
and/or the hook requests made by the client during the Hooks tests such that an Instructions card is returned and support for it is demonstrated.
|
|
16
18
|
DESCRIPTION
|
|
17
19
|
|
|
18
|
-
ALL_HOOKS = [
|
|
19
|
-
APPOINTMENT_BOOK_TAG,
|
|
20
|
-
ENCOUNTER_START_TAG,
|
|
21
|
-
ENCOUNTER_DISCHARGE_TAG,
|
|
22
|
-
ORDER_DISPATCH_TAG,
|
|
23
|
-
ORDER_SELECT_TAG,
|
|
24
|
-
ORDER_SIGN_TAG
|
|
25
|
-
].freeze
|
|
26
|
-
|
|
27
|
-
def configured_hook_name
|
|
28
|
-
config.options[:hook_name]
|
|
29
|
-
end
|
|
30
|
-
|
|
31
|
-
def crd_test_group
|
|
32
|
-
config.options[:crd_test_group]
|
|
33
|
-
end
|
|
34
|
-
|
|
35
|
-
def tags_to_load(hook_name)
|
|
36
|
-
crd_test_group.present? ? [hook_name, crd_test_group] : [hook_name]
|
|
37
|
-
end
|
|
38
|
-
|
|
39
|
-
def requests_to_analyze
|
|
40
|
-
if configured_hook_name.present?
|
|
41
|
-
load_requests_for_tags(tags_to_load(configured_hook_name))
|
|
42
|
-
else
|
|
43
|
-
ALL_HOOKS.each_with_object([]) do |hook_name, request_list|
|
|
44
|
-
request_list.concat(load_requests_for_tags(tags_to_load(hook_name)))
|
|
45
|
-
end
|
|
46
|
-
end
|
|
47
|
-
end
|
|
48
|
-
|
|
49
|
-
def load_requests_for_tags(tags_to_load)
|
|
50
|
-
load_tagged_requests(*tags_to_load)
|
|
51
|
-
end
|
|
52
|
-
|
|
53
20
|
run do
|
|
54
|
-
loaded_requests =
|
|
21
|
+
loaded_requests = load_requests_for_cross_hook_analysis
|
|
55
22
|
sorted_cards = sorted_cards_from_requests(loaded_requests)
|
|
56
23
|
|
|
57
24
|
assert sorted_cards['cards'][INSTRUCTIONS_RESPONSE_TYPE].present?,
|