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.2.1/must_support/generated/organization_must_support_test.rb
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
require_relative '../request_must_support_with_attestation_option'
|
|
2
|
+
|
|
3
|
+
module DaVinciCRDTestKit
|
|
4
|
+
module V221
|
|
5
|
+
class OrganizationMustSupportTest < RequestMustSupportWithAttestationOption
|
|
6
|
+
id :crd_v221_organization_must_support
|
|
7
|
+
title 'CRD Organization must support elements are observed'
|
|
8
|
+
description <<~DESCRIPTION
|
|
9
|
+
The CRD IG [requires](https://hl7.org/fhir/us/davinci-crd/2.2.1/en/conformance.html#ci-c-conf-3)
|
|
10
|
+
that when a client "maintains a mustSupport data element and surfaces it to users, then it
|
|
11
|
+
SHALL be exposed in their FHIR interface when the data exists and privacy constraints permit."
|
|
12
|
+
|
|
13
|
+
During this test, Inferno will verify that all must support elements defined in the
|
|
14
|
+
profile(s) listed below are demonstrated within hook requests made during this session.
|
|
15
|
+
This check may vacuously pass if the tester has attested that this resource type is not
|
|
16
|
+
supported by the CRD client.
|
|
17
|
+
|
|
18
|
+
If any must support elements are not demonstrated, the tester will have the option to attest
|
|
19
|
+
that these elements are not supported by the CRD client or surfaced to its users. Testers
|
|
20
|
+
must set up scenarios in which the "data exists and privacy constraints permit" Inferno to view
|
|
21
|
+
the must support information.
|
|
22
|
+
|
|
23
|
+
Inferno will consider resources present within the `context` and `prefetch` elements of all hook
|
|
24
|
+
requests made during the latest run of each "Hooks" subgroup and the "Additional Hook
|
|
25
|
+
Invocations" group, but not any made within the "Scenarios"
|
|
26
|
+
subgroups. If any of the considered groups are re-run, then requests made during prior runs will
|
|
27
|
+
no longer be considered and must support elements demonstrated only during that prior run must
|
|
28
|
+
be re-demonstrated on the new run or a subsequent one.
|
|
29
|
+
|
|
30
|
+
For additional details on this test, see the [Client Must Support Tests](https://github.com/inferno-framework/davinci-crd-test-kit/wiki/Client-Must-Support)
|
|
31
|
+
page and specifically the [Requests](https://github.com/inferno-framework/davinci-crd-test-kit/wiki/Client-Must-Support#requests)
|
|
32
|
+
section in the CRD Test Kit wiki.
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
### [CRD Organization](http://hl7.org/fhir/us/davinci-crd/2.2.1/en/StructureDefinition-profile-organization.html)
|
|
36
|
+
|
|
37
|
+
- `active`
|
|
38
|
+
- `address`
|
|
39
|
+
- `address.city`
|
|
40
|
+
- `address.country`
|
|
41
|
+
- `address.line`
|
|
42
|
+
- `address.postalCode`
|
|
43
|
+
- `address.state`
|
|
44
|
+
- `identifier`
|
|
45
|
+
- `identifier:NPI`
|
|
46
|
+
- `identifier:tin`
|
|
47
|
+
- `name`
|
|
48
|
+
- `partOf`
|
|
49
|
+
- `telecom`
|
|
50
|
+
- `telecom.system`
|
|
51
|
+
- `telecom.value`
|
|
52
|
+
DESCRIPTION
|
|
53
|
+
|
|
54
|
+
verifies_requirements 'hl7.fhir.us.davinci-crd_2.2.1@conf-3'
|
|
55
|
+
|
|
56
|
+
config(
|
|
57
|
+
options: {
|
|
58
|
+
ig_version: 'v2.2.1',
|
|
59
|
+
profiles: [
|
|
60
|
+
{ resource_type: 'Organization', supporting_profile: true, profile_keys: ['organization'] }
|
|
61
|
+
]
|
|
62
|
+
}
|
|
63
|
+
)
|
|
64
|
+
end
|
|
65
|
+
end
|
|
66
|
+
end
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
require_relative '../request_must_support_reference_resolution'
|
|
2
|
+
|
|
3
|
+
module DaVinciCRDTestKit
|
|
4
|
+
module V221
|
|
5
|
+
class OrganizationReferenceResolutionTest < RequestMustSupportReferenceResolution
|
|
6
|
+
id :crd_v221_organization_must_support_reference_resolution
|
|
7
|
+
title 'CRD Organization must support references resolve'
|
|
8
|
+
description <<~DESCRIPTION
|
|
9
|
+
The CRD IG [requires](https://hl7.org/fhir/us/davinci-crd/2.2.1/en/conformance.html#ci-c-conf-3)
|
|
10
|
+
that when a client "maintains a mustSupport data element and surfaces it to users, then it
|
|
11
|
+
SHALL be exposed in their FHIR interface when the data exists and privacy constraints permit."
|
|
12
|
+
For a must support Reference element, this means that the referenced resource can be retrieved.
|
|
13
|
+
Additionally, when some of the element's target profiles are themselves marked must support
|
|
14
|
+
or the element has only one target profile, references to resources conforming to each of
|
|
15
|
+
those profiles must be observed. Otherwise, a referenced resource must conform to any one of
|
|
16
|
+
the element's target profiles.
|
|
17
|
+
|
|
18
|
+
During this test, Inferno will verify that for each must support Reference element listed
|
|
19
|
+
below that was populated, at least one of its references resolved to a resource
|
|
20
|
+
conforming to each target profile listed for the element, or to any one of them where the
|
|
21
|
+
list says so. Target profiles for resource types the tester indicated that the CRD client does
|
|
22
|
+
not support are not checked. The test will skip if Inferno does not observe all of the
|
|
23
|
+
required references, indicating that additional data is needed to demonstrate conformance.
|
|
24
|
+
|
|
25
|
+
Inferno will look at references found in resources in the same hook requests as the must support
|
|
26
|
+
element tests: those made during the latest run of each "Hooks" subgroup and the "Additional Hook
|
|
27
|
+
Invocations" group. If no instances of the tested resource type were observed, the test skips
|
|
28
|
+
unless the tester indicated that the CRD client does not support the resource type.
|
|
29
|
+
|
|
30
|
+
Inferno obtains the reference targets during the hook request by performing FHIR reads of
|
|
31
|
+
referenced resources whose absolute URL can be determined and that are not already present
|
|
32
|
+
in the `context` or `prefetch` fields of the hook request. See the wiki's documentation
|
|
33
|
+
on [reference resolution within hook requests](https://github.com/inferno-framework/davinci-crd-test-kit/wiki/Client-Prefetch-Verification#reference-resolution-within-hook-requests)
|
|
34
|
+
and [simulated CRD server behavior](https://github.com/inferno-framework/davinci-crd-test-kit/wiki/Client-Details#prefetch-and-additional-data-retrieval)
|
|
35
|
+
for details on how Inferno identifies and obtains these resources.
|
|
36
|
+
|
|
37
|
+
For additional details on this test, see the [Client Must Support Tests](https://github.com/inferno-framework/davinci-crd-test-kit/wiki/Client-Must-Support)
|
|
38
|
+
page and specifically the [Must Support References](https://github.com/inferno-framework/davinci-crd-test-kit/wiki/Client-Must-Support#must-support-references)
|
|
39
|
+
section in the CRD Test Kit wiki.
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
### CRD Organization
|
|
43
|
+
|
|
44
|
+
- `partOf`
|
|
45
|
+
- [CRD Organization](https://hl7.org/fhir/us/davinci-crd/2.2.1/en/StructureDefinition-profile-organization.html)
|
|
46
|
+
DESCRIPTION
|
|
47
|
+
|
|
48
|
+
verifies_requirements 'hl7.fhir.us.davinci-crd_2.2.1@conf-3'
|
|
49
|
+
|
|
50
|
+
config(
|
|
51
|
+
options: {
|
|
52
|
+
ig_version: 'v2.2.1',
|
|
53
|
+
profiles: [
|
|
54
|
+
{ resource_type: 'Organization', supporting_profile: true, profile_keys: ['organization'] }
|
|
55
|
+
]
|
|
56
|
+
}
|
|
57
|
+
)
|
|
58
|
+
end
|
|
59
|
+
end
|
|
60
|
+
end
|
data/lib/davinci_crd_test_kit/client/v2.2.1/must_support/generated/patient_must_support_test.rb
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
require_relative '../request_must_support_with_attestation_option'
|
|
2
|
+
|
|
3
|
+
module DaVinciCRDTestKit
|
|
4
|
+
module V221
|
|
5
|
+
class PatientMustSupportTest < RequestMustSupportWithAttestationOption
|
|
6
|
+
id :crd_v221_patient_must_support
|
|
7
|
+
title 'CRD Patient must support elements are observed'
|
|
8
|
+
description <<~DESCRIPTION
|
|
9
|
+
The CRD IG [requires](https://hl7.org/fhir/us/davinci-crd/2.2.1/en/conformance.html#ci-c-conf-3)
|
|
10
|
+
that when a client "maintains a mustSupport data element and surfaces it to users, then it
|
|
11
|
+
SHALL be exposed in their FHIR interface when the data exists and privacy constraints permit."
|
|
12
|
+
|
|
13
|
+
During this test, Inferno will verify that all must support elements defined in the
|
|
14
|
+
profile(s) listed below are demonstrated within hook requests made during this session.
|
|
15
|
+
This check may vacuously pass if the tester has attested that this resource type is not
|
|
16
|
+
supported by the CRD client.
|
|
17
|
+
|
|
18
|
+
If any must support elements are not demonstrated, the tester will have the option to attest
|
|
19
|
+
that these elements are not supported by the CRD client or surfaced to its users. Testers
|
|
20
|
+
must set up scenarios in which the "data exists and privacy constraints permit" Inferno to view
|
|
21
|
+
the must support information.
|
|
22
|
+
|
|
23
|
+
Inferno will consider resources present within the `context` and `prefetch` elements of all hook
|
|
24
|
+
requests made during the latest run of each "Hooks" subgroup and the "Additional Hook
|
|
25
|
+
Invocations" group, but not any made within the "Scenarios"
|
|
26
|
+
subgroups. If any of the considered groups are re-run, then requests made during prior runs will
|
|
27
|
+
no longer be considered and must support elements demonstrated only during that prior run must
|
|
28
|
+
be re-demonstrated on the new run or a subsequent one.
|
|
29
|
+
|
|
30
|
+
For additional details on this test, see the [Client Must Support Tests](https://github.com/inferno-framework/davinci-crd-test-kit/wiki/Client-Must-Support)
|
|
31
|
+
page and specifically the [Requests](https://github.com/inferno-framework/davinci-crd-test-kit/wiki/Client-Must-Support#requests)
|
|
32
|
+
section in the CRD Test Kit wiki.
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
### [CRD Patient](http://hl7.org/fhir/us/davinci-crd/2.2.1/en/StructureDefinition-profile-patient.html)
|
|
36
|
+
|
|
37
|
+
- `address`
|
|
38
|
+
- `address.city`
|
|
39
|
+
- `address.country`
|
|
40
|
+
- `address.line`
|
|
41
|
+
- `address.postalCode`
|
|
42
|
+
- `address.state`
|
|
43
|
+
- `birthDate`
|
|
44
|
+
- `communication.language`
|
|
45
|
+
- `gender`
|
|
46
|
+
- `identifier`
|
|
47
|
+
- `identifier.system`
|
|
48
|
+
- `identifier.value`
|
|
49
|
+
- `name`
|
|
50
|
+
- `name.family`
|
|
51
|
+
- `name.given`
|
|
52
|
+
- `telecom.system`
|
|
53
|
+
- `telecom.use`
|
|
54
|
+
- `telecom.value`
|
|
55
|
+
DESCRIPTION
|
|
56
|
+
|
|
57
|
+
verifies_requirements 'hl7.fhir.us.davinci-crd_2.2.1@conf-3'
|
|
58
|
+
|
|
59
|
+
config(
|
|
60
|
+
options: {
|
|
61
|
+
ig_version: 'v2.2.1',
|
|
62
|
+
profiles: [
|
|
63
|
+
{ resource_type: 'Patient', supporting_profile: true, profile_keys: ['patient'] }
|
|
64
|
+
]
|
|
65
|
+
}
|
|
66
|
+
)
|
|
67
|
+
end
|
|
68
|
+
end
|
|
69
|
+
end
|
data/lib/davinci_crd_test_kit/client/v2.2.1/must_support/generated/practitioner_must_support_test.rb
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
require_relative '../request_must_support_with_attestation_option'
|
|
2
|
+
|
|
3
|
+
module DaVinciCRDTestKit
|
|
4
|
+
module V221
|
|
5
|
+
class PractitionerMustSupportTest < RequestMustSupportWithAttestationOption
|
|
6
|
+
id :crd_v221_practitioner_must_support
|
|
7
|
+
title 'CRD Practitioner must support elements are observed'
|
|
8
|
+
description <<~DESCRIPTION
|
|
9
|
+
The CRD IG [requires](https://hl7.org/fhir/us/davinci-crd/2.2.1/en/conformance.html#ci-c-conf-3)
|
|
10
|
+
that when a client "maintains a mustSupport data element and surfaces it to users, then it
|
|
11
|
+
SHALL be exposed in their FHIR interface when the data exists and privacy constraints permit."
|
|
12
|
+
|
|
13
|
+
During this test, Inferno will verify that all must support elements defined in the
|
|
14
|
+
profile(s) listed below are demonstrated within hook requests made during this session.
|
|
15
|
+
This check may vacuously pass if the tester has attested that this resource type is not
|
|
16
|
+
supported by the CRD client.
|
|
17
|
+
|
|
18
|
+
If any must support elements are not demonstrated, the tester will have the option to attest
|
|
19
|
+
that these elements are not supported by the CRD client or surfaced to its users. Testers
|
|
20
|
+
must set up scenarios in which the "data exists and privacy constraints permit" Inferno to view
|
|
21
|
+
the must support information.
|
|
22
|
+
|
|
23
|
+
Inferno will consider resources present within the `context` and `prefetch` elements of all hook
|
|
24
|
+
requests made during the latest run of each "Hooks" subgroup and the "Additional Hook
|
|
25
|
+
Invocations" group, but not any made within the "Scenarios"
|
|
26
|
+
subgroups. If any of the considered groups are re-run, then requests made during prior runs will
|
|
27
|
+
no longer be considered and must support elements demonstrated only during that prior run must
|
|
28
|
+
be re-demonstrated on the new run or a subsequent one.
|
|
29
|
+
|
|
30
|
+
For additional details on this test, see the [Client Must Support Tests](https://github.com/inferno-framework/davinci-crd-test-kit/wiki/Client-Must-Support)
|
|
31
|
+
page and specifically the [Requests](https://github.com/inferno-framework/davinci-crd-test-kit/wiki/Client-Must-Support#requests)
|
|
32
|
+
section in the CRD Test Kit wiki.
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
### [CRD Practitioner](http://hl7.org/fhir/us/davinci-crd/2.2.1/en/StructureDefinition-profile-practitioner.html)
|
|
36
|
+
|
|
37
|
+
- `address`
|
|
38
|
+
- `address.city`
|
|
39
|
+
- `address.country`
|
|
40
|
+
- `address.line`
|
|
41
|
+
- `address.postalCode`
|
|
42
|
+
- `address.state`
|
|
43
|
+
- `identifier`
|
|
44
|
+
- `identifier:NPI`
|
|
45
|
+
- `identifier:tin`
|
|
46
|
+
- `name`
|
|
47
|
+
- `name.family`
|
|
48
|
+
- `telecom`
|
|
49
|
+
- `telecom.system`
|
|
50
|
+
- `telecom.value`
|
|
51
|
+
DESCRIPTION
|
|
52
|
+
|
|
53
|
+
verifies_requirements 'hl7.fhir.us.davinci-crd_2.2.1@conf-3'
|
|
54
|
+
|
|
55
|
+
config(
|
|
56
|
+
options: {
|
|
57
|
+
ig_version: 'v2.2.1',
|
|
58
|
+
profiles: [
|
|
59
|
+
{ resource_type: 'Practitioner', supporting_profile: true, profile_keys: ['practitioner'] }
|
|
60
|
+
]
|
|
61
|
+
}
|
|
62
|
+
)
|
|
63
|
+
end
|
|
64
|
+
end
|
|
65
|
+
end
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
require_relative '../request_must_support_with_attestation_option'
|
|
2
|
+
|
|
3
|
+
module DaVinciCRDTestKit
|
|
4
|
+
module V221
|
|
5
|
+
class PractitionerRoleMustSupportTest < RequestMustSupportWithAttestationOption
|
|
6
|
+
id :crd_v221_practitioner_role_must_support
|
|
7
|
+
title 'HRex PractitionerRole Profile must support elements are observed'
|
|
8
|
+
description <<~DESCRIPTION
|
|
9
|
+
The CRD IG [requires](https://hl7.org/fhir/us/davinci-crd/2.2.1/en/conformance.html#ci-c-conf-3)
|
|
10
|
+
that when a client "maintains a mustSupport data element and surfaces it to users, then it
|
|
11
|
+
SHALL be exposed in their FHIR interface when the data exists and privacy constraints permit."
|
|
12
|
+
|
|
13
|
+
During this test, Inferno will verify that all must support elements defined in the
|
|
14
|
+
profile(s) listed below are demonstrated within hook requests made during this session.
|
|
15
|
+
This check may vacuously pass if the tester has attested that this resource type is not
|
|
16
|
+
supported by the CRD client.
|
|
17
|
+
|
|
18
|
+
If any must support elements are not demonstrated, the tester will have the option to attest
|
|
19
|
+
that these elements are not supported by the CRD client or surfaced to its users. Testers
|
|
20
|
+
must set up scenarios in which the "data exists and privacy constraints permit" Inferno to view
|
|
21
|
+
the must support information.
|
|
22
|
+
|
|
23
|
+
Inferno will consider resources present within the `context` and `prefetch` elements of all hook
|
|
24
|
+
requests made during the latest run of each "Hooks" subgroup and the "Additional Hook
|
|
25
|
+
Invocations" group, but not any made within the "Scenarios"
|
|
26
|
+
subgroups. If any of the considered groups are re-run, then requests made during prior runs will
|
|
27
|
+
no longer be considered and must support elements demonstrated only during that prior run must
|
|
28
|
+
be re-demonstrated on the new run or a subsequent one.
|
|
29
|
+
|
|
30
|
+
For additional details on this test, see the [Client Must Support Tests](https://github.com/inferno-framework/davinci-crd-test-kit/wiki/Client-Must-Support)
|
|
31
|
+
page and specifically the [Requests](https://github.com/inferno-framework/davinci-crd-test-kit/wiki/Client-Must-Support#requests)
|
|
32
|
+
section in the CRD Test Kit wiki.
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
### [HRex PractitionerRole Profile](http://hl7.org/fhir/us/davinci-hrex/1.2.0/en/StructureDefinition-hrex-practitionerrole.html)
|
|
36
|
+
|
|
37
|
+
- `code`
|
|
38
|
+
- `endpoint`
|
|
39
|
+
- `location`
|
|
40
|
+
- `organization`
|
|
41
|
+
- `practitioner`
|
|
42
|
+
- `specialty`
|
|
43
|
+
- `telecom`
|
|
44
|
+
- `telecom.system`
|
|
45
|
+
- `telecom.value`
|
|
46
|
+
DESCRIPTION
|
|
47
|
+
|
|
48
|
+
verifies_requirements 'hl7.fhir.us.davinci-crd_2.2.1@conf-3'
|
|
49
|
+
|
|
50
|
+
config(
|
|
51
|
+
options: {
|
|
52
|
+
ig_version: 'v2.2.1',
|
|
53
|
+
profiles: [
|
|
54
|
+
{ resource_type: 'PractitionerRole', supporting_profile: true, profile_keys: ['practitioner_role'] }
|
|
55
|
+
]
|
|
56
|
+
}
|
|
57
|
+
)
|
|
58
|
+
end
|
|
59
|
+
end
|
|
60
|
+
end
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
require_relative '../request_must_support_reference_resolution'
|
|
2
|
+
|
|
3
|
+
module DaVinciCRDTestKit
|
|
4
|
+
module V221
|
|
5
|
+
class PractitionerRoleReferenceResolutionTest < RequestMustSupportReferenceResolution
|
|
6
|
+
id :crd_v221_practitioner_role_must_support_reference_resolution
|
|
7
|
+
title 'HRex PractitionerRole Profile must support references resolve'
|
|
8
|
+
description <<~DESCRIPTION
|
|
9
|
+
The CRD IG [requires](https://hl7.org/fhir/us/davinci-crd/2.2.1/en/conformance.html#ci-c-conf-3)
|
|
10
|
+
that when a client "maintains a mustSupport data element and surfaces it to users, then it
|
|
11
|
+
SHALL be exposed in their FHIR interface when the data exists and privacy constraints permit."
|
|
12
|
+
For a must support Reference element, this means that the referenced resource can be retrieved.
|
|
13
|
+
Additionally, when some of the element's target profiles are themselves marked must support
|
|
14
|
+
or the element has only one target profile, references to resources conforming to each of
|
|
15
|
+
those profiles must be observed. Otherwise, a referenced resource must conform to any one of
|
|
16
|
+
the element's target profiles.
|
|
17
|
+
|
|
18
|
+
During this test, Inferno will verify that for each must support Reference element listed
|
|
19
|
+
below that was populated, at least one of its references resolved to a resource
|
|
20
|
+
conforming to each target profile listed for the element, or to any one of them where the
|
|
21
|
+
list says so. Target profiles for resource types the tester indicated that the CRD client does
|
|
22
|
+
not support are not checked. The test will skip if Inferno does not observe all of the
|
|
23
|
+
required references, indicating that additional data is needed to demonstrate conformance.
|
|
24
|
+
|
|
25
|
+
Inferno will look at references found in resources in the same hook requests as the must support
|
|
26
|
+
element tests: those made during the latest run of each "Hooks" subgroup and the "Additional Hook
|
|
27
|
+
Invocations" group. If no instances of the tested resource type were observed, the test skips
|
|
28
|
+
unless the tester indicated that the CRD client does not support the resource type.
|
|
29
|
+
|
|
30
|
+
Inferno obtains the reference targets during the hook request by performing FHIR reads of
|
|
31
|
+
referenced resources whose absolute URL can be determined and that are not already present
|
|
32
|
+
in the `context` or `prefetch` fields of the hook request. See the wiki's documentation
|
|
33
|
+
on [reference resolution within hook requests](https://github.com/inferno-framework/davinci-crd-test-kit/wiki/Client-Prefetch-Verification#reference-resolution-within-hook-requests)
|
|
34
|
+
and [simulated CRD server behavior](https://github.com/inferno-framework/davinci-crd-test-kit/wiki/Client-Details#prefetch-and-additional-data-retrieval)
|
|
35
|
+
for details on how Inferno identifies and obtains these resources.
|
|
36
|
+
|
|
37
|
+
For additional details on this test, see the [Client Must Support Tests](https://github.com/inferno-framework/davinci-crd-test-kit/wiki/Client-Must-Support)
|
|
38
|
+
page and specifically the [Must Support References](https://github.com/inferno-framework/davinci-crd-test-kit/wiki/Client-Must-Support#must-support-references)
|
|
39
|
+
section in the CRD Test Kit wiki.
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
### HRex PractitionerRole Profile
|
|
43
|
+
|
|
44
|
+
- `endpoint`
|
|
45
|
+
- [Endpoint](https://hl7.org/fhir/R4/endpoint.html)
|
|
46
|
+
- `location`
|
|
47
|
+
- [US Core Location Profile](https://hl7.org/fhir/us/core/STU7/StructureDefinition-us-core-location.html)
|
|
48
|
+
- `organization`
|
|
49
|
+
- [HRex Organization Profile](https://hl7.org/fhir/us/davinci-hrex/1.2.0/StructureDefinition-hrex-organization.html)
|
|
50
|
+
- `practitioner`
|
|
51
|
+
- [US Core Practitioner Profile](https://hl7.org/fhir/us/core/STU7/StructureDefinition-us-core-practitioner.html)
|
|
52
|
+
DESCRIPTION
|
|
53
|
+
|
|
54
|
+
verifies_requirements 'hl7.fhir.us.davinci-crd_2.2.1@conf-3'
|
|
55
|
+
|
|
56
|
+
config(
|
|
57
|
+
options: {
|
|
58
|
+
ig_version: 'v2.2.1',
|
|
59
|
+
profiles: [
|
|
60
|
+
{ resource_type: 'PractitionerRole', supporting_profile: true, profile_keys: ['practitioner_role'] }
|
|
61
|
+
]
|
|
62
|
+
}
|
|
63
|
+
)
|
|
64
|
+
end
|
|
65
|
+
end
|
|
66
|
+
end
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
require_relative '../request_must_support_with_attestation_option'
|
|
2
|
+
|
|
3
|
+
module DaVinciCRDTestKit
|
|
4
|
+
module V221
|
|
5
|
+
class ServiceRequestMustSupportTest < RequestMustSupportWithAttestationOption
|
|
6
|
+
id :crd_v221_service_request_must_support
|
|
7
|
+
title 'CRD Service Request must support elements are observed'
|
|
8
|
+
description <<~DESCRIPTION
|
|
9
|
+
The CRD IG [requires](https://hl7.org/fhir/us/davinci-crd/2.2.1/en/conformance.html#ci-c-conf-3)
|
|
10
|
+
that when a client "maintains a mustSupport data element and surfaces it to users, then it
|
|
11
|
+
SHALL be exposed in their FHIR interface when the data exists and privacy constraints permit."
|
|
12
|
+
|
|
13
|
+
During this test, Inferno will verify that all must support elements defined in the
|
|
14
|
+
profile(s) listed below are demonstrated within hook requests made during this session.
|
|
15
|
+
This check may vacuously pass if the tester has attested that this resource type is not
|
|
16
|
+
supported by the CRD client.
|
|
17
|
+
|
|
18
|
+
If any must support elements are not demonstrated, the tester will have the option to attest
|
|
19
|
+
that these elements are not supported by the CRD client or surfaced to its users. Testers
|
|
20
|
+
must set up scenarios in which the "data exists and privacy constraints permit" Inferno to view
|
|
21
|
+
the must support information.
|
|
22
|
+
|
|
23
|
+
Inferno will consider resources present within the `context` and `prefetch` elements of all hook
|
|
24
|
+
requests made during the latest run of each "Hooks" subgroup and the "Additional Hook
|
|
25
|
+
Invocations" group, but not any made within the "Scenarios"
|
|
26
|
+
subgroups. If any of the considered groups are re-run, then requests made during prior runs will
|
|
27
|
+
no longer be considered and must support elements demonstrated only during that prior run must
|
|
28
|
+
be re-demonstrated on the new run or a subsequent one.
|
|
29
|
+
|
|
30
|
+
For additional details on this test, see the [Client Must Support Tests](https://github.com/inferno-framework/davinci-crd-test-kit/wiki/Client-Must-Support)
|
|
31
|
+
page and specifically the [Requests](https://github.com/inferno-framework/davinci-crd-test-kit/wiki/Client-Must-Support#requests)
|
|
32
|
+
section in the CRD Test Kit wiki.
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
### [CRD Service Request](http://hl7.org/fhir/us/davinci-crd/2.2.1/en/StructureDefinition-profile-servicerequest.html)
|
|
36
|
+
|
|
37
|
+
- `authoredOn`
|
|
38
|
+
- `basedOn`
|
|
39
|
+
- `category`
|
|
40
|
+
- `category:encounterType`
|
|
41
|
+
- `category:serviceType`
|
|
42
|
+
- `category:us-core`
|
|
43
|
+
- `code`
|
|
44
|
+
- `code.extension:BillingOptions`
|
|
45
|
+
- `contained`
|
|
46
|
+
- `doNotPerform`
|
|
47
|
+
- `encounter`
|
|
48
|
+
- `extension:Coverage-Information`
|
|
49
|
+
- `identifier`
|
|
50
|
+
- `intent`
|
|
51
|
+
- `locationCode`
|
|
52
|
+
- `locationCode.coding:cms`
|
|
53
|
+
- `locationCode.coding:nubc`
|
|
54
|
+
- `locationCode.coding:nucc`
|
|
55
|
+
- `locationReference`
|
|
56
|
+
- `occurrencePeriod`
|
|
57
|
+
- `occurrenceTiming`
|
|
58
|
+
- `occurrenceTiming.event`
|
|
59
|
+
- `occurrenceTiming.repeat`
|
|
60
|
+
- `occurrenceTiming.repeat.bounds[x]:boundsPeriod`
|
|
61
|
+
- `occurrenceTiming.repeat.count`
|
|
62
|
+
- `occurrenceTiming.repeat.duration`
|
|
63
|
+
- `occurrenceTiming.repeat.durationUnit`
|
|
64
|
+
- `occurrenceTiming.repeat.frequency`
|
|
65
|
+
- `occurrenceTiming.repeat.period`
|
|
66
|
+
- `occurrenceTiming.repeat.periodUnit`
|
|
67
|
+
- `performer`
|
|
68
|
+
- `performerType`
|
|
69
|
+
- `performerType.extension:codeOptions`
|
|
70
|
+
- `quantity[x]`
|
|
71
|
+
- `reasonCode`
|
|
72
|
+
- `reasonCode.coding:ICD10`
|
|
73
|
+
- `reasonReference`
|
|
74
|
+
- `requester`
|
|
75
|
+
- `status`
|
|
76
|
+
- `subject`
|
|
77
|
+
DESCRIPTION
|
|
78
|
+
|
|
79
|
+
verifies_requirements 'hl7.fhir.us.davinci-crd_2.2.1@conf-3',
|
|
80
|
+
'hl7.fhir.us.davinci-crd_2.2.1@hook-3',
|
|
81
|
+
'hl7.fhir.us.davinci-crd_2.2.1@billopt-1'
|
|
82
|
+
|
|
83
|
+
config(
|
|
84
|
+
options: {
|
|
85
|
+
ig_version: 'v2.2.1',
|
|
86
|
+
profiles: [
|
|
87
|
+
{ resource_type: 'ServiceRequest', profile_keys: ['service_request'] }
|
|
88
|
+
]
|
|
89
|
+
}
|
|
90
|
+
)
|
|
91
|
+
end
|
|
92
|
+
end
|
|
93
|
+
end
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
require_relative '../request_must_support_reference_resolution'
|
|
2
|
+
|
|
3
|
+
module DaVinciCRDTestKit
|
|
4
|
+
module V221
|
|
5
|
+
class ServiceRequestReferenceResolutionTest < RequestMustSupportReferenceResolution
|
|
6
|
+
id :crd_v221_service_request_must_support_reference_resolution
|
|
7
|
+
title 'CRD Service Request must support references resolve'
|
|
8
|
+
description <<~DESCRIPTION
|
|
9
|
+
The CRD IG [requires](https://hl7.org/fhir/us/davinci-crd/2.2.1/en/conformance.html#ci-c-conf-3)
|
|
10
|
+
that when a client "maintains a mustSupport data element and surfaces it to users, then it
|
|
11
|
+
SHALL be exposed in their FHIR interface when the data exists and privacy constraints permit."
|
|
12
|
+
For a must support Reference element, this means that the referenced resource can be retrieved.
|
|
13
|
+
Additionally, when some of the element's target profiles are themselves marked must support
|
|
14
|
+
or the element has only one target profile, references to resources conforming to each of
|
|
15
|
+
those profiles must be observed. Otherwise, a referenced resource must conform to any one of
|
|
16
|
+
the element's target profiles.
|
|
17
|
+
|
|
18
|
+
During this test, Inferno will verify that for each must support Reference element listed
|
|
19
|
+
below that was populated, at least one of its references resolved to a resource
|
|
20
|
+
conforming to each target profile listed for the element, or to any one of them where the
|
|
21
|
+
list says so. Target profiles for resource types the tester indicated that the CRD client does
|
|
22
|
+
not support are not checked. The test will skip if Inferno does not observe all of the
|
|
23
|
+
required references, indicating that additional data is needed to demonstrate conformance.
|
|
24
|
+
|
|
25
|
+
Inferno will look at references found in resources in the same hook requests as the must support
|
|
26
|
+
element tests: those made during the latest run of each "Hooks" subgroup and the "Additional Hook
|
|
27
|
+
Invocations" group. If no instances of the tested resource type were observed, the test skips
|
|
28
|
+
unless the tester indicated that the CRD client does not support the resource type.
|
|
29
|
+
|
|
30
|
+
Inferno obtains the reference targets during the hook request by performing FHIR reads of
|
|
31
|
+
referenced resources whose absolute URL can be determined and that are not already present
|
|
32
|
+
in the `context` or `prefetch` fields of the hook request. See the wiki's documentation
|
|
33
|
+
on [reference resolution within hook requests](https://github.com/inferno-framework/davinci-crd-test-kit/wiki/Client-Prefetch-Verification#reference-resolution-within-hook-requests)
|
|
34
|
+
and [simulated CRD server behavior](https://github.com/inferno-framework/davinci-crd-test-kit/wiki/Client-Details#prefetch-and-additional-data-retrieval)
|
|
35
|
+
for details on how Inferno identifies and obtains these resources.
|
|
36
|
+
|
|
37
|
+
For additional details on this test, see the [Client Must Support Tests](https://github.com/inferno-framework/davinci-crd-test-kit/wiki/Client-Must-Support)
|
|
38
|
+
page and specifically the [Must Support References](https://github.com/inferno-framework/davinci-crd-test-kit/wiki/Client-Must-Support#must-support-references)
|
|
39
|
+
section in the CRD Test Kit wiki.
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
### CRD Service Request
|
|
43
|
+
|
|
44
|
+
- `basedOn`, any one of:
|
|
45
|
+
- [CRD Service Request](https://hl7.org/fhir/us/davinci-crd/2.2.1/en/StructureDefinition-profile-servicerequest.html)
|
|
46
|
+
- [CRD Medication Request](https://hl7.org/fhir/us/davinci-crd/2.2.1/en/StructureDefinition-profile-medicationrequest.html)
|
|
47
|
+
- `encounter`
|
|
48
|
+
- [CRD Encounter](https://hl7.org/fhir/us/davinci-crd/2.2.1/en/StructureDefinition-profile-encounter.html)
|
|
49
|
+
- `locationReference`
|
|
50
|
+
- [CRD Location](https://hl7.org/fhir/us/davinci-crd/2.2.1/en/StructureDefinition-profile-location.html)
|
|
51
|
+
- `performer`
|
|
52
|
+
- [CRD Practitioner](https://hl7.org/fhir/us/davinci-crd/2.2.1/en/StructureDefinition-profile-practitioner.html)
|
|
53
|
+
- [HRex PractitionerRole Profile](https://hl7.org/fhir/us/davinci-hrex/1.2.0/StructureDefinition-hrex-practitionerrole.html)
|
|
54
|
+
- [HRex Organization Profile](https://hl7.org/fhir/us/davinci-hrex/1.2.0/StructureDefinition-hrex-organization.html)
|
|
55
|
+
- `reasonReference`, any one of:
|
|
56
|
+
- [US Core Condition Problems and Health Concerns Profile](https://hl7.org/fhir/us/core/STU7/StructureDefinition-us-core-condition-problems-health-concerns.html)
|
|
57
|
+
- [US Core Condition Encounter Diagnosis Profile](https://hl7.org/fhir/us/core/STU7/StructureDefinition-us-core-condition-encounter-diagnosis.html)
|
|
58
|
+
- [US Core DiagnosticReport Profile for Laboratory Results Reporting](https://hl7.org/fhir/us/core/STU7/StructureDefinition-us-core-diagnosticreport-lab.html)
|
|
59
|
+
- [US Core DiagnosticReport Profile for Report and Note Exchange](https://hl7.org/fhir/us/core/STU7/StructureDefinition-us-core-diagnosticreport-note.html)
|
|
60
|
+
- [US Core DocumentReference Profile](https://hl7.org/fhir/us/core/STU7/StructureDefinition-us-core-documentreference.html)
|
|
61
|
+
- [Observation](https://hl7.org/fhir/R4/observation.html)
|
|
62
|
+
- `requester`
|
|
63
|
+
- [CRD Practitioner](https://hl7.org/fhir/us/davinci-crd/2.2.1/en/StructureDefinition-profile-practitioner.html)
|
|
64
|
+
- [HRex PractitionerRole Profile](https://hl7.org/fhir/us/davinci-hrex/1.2.0/StructureDefinition-hrex-practitionerrole.html)
|
|
65
|
+
- `subject`
|
|
66
|
+
- [CRD Patient](https://hl7.org/fhir/us/davinci-crd/2.2.1/en/StructureDefinition-profile-patient.html)
|
|
67
|
+
DESCRIPTION
|
|
68
|
+
|
|
69
|
+
verifies_requirements 'hl7.fhir.us.davinci-crd_2.2.1@conf-3'
|
|
70
|
+
|
|
71
|
+
config(
|
|
72
|
+
options: {
|
|
73
|
+
ig_version: 'v2.2.1',
|
|
74
|
+
profiles: [
|
|
75
|
+
{ resource_type: 'ServiceRequest', profile_keys: ['service_request'] }
|
|
76
|
+
]
|
|
77
|
+
}
|
|
78
|
+
)
|
|
79
|
+
end
|
|
80
|
+
end
|
|
81
|
+
end
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
require_relative '../request_must_support_with_attestation_option'
|
|
2
|
+
|
|
3
|
+
module DaVinciCRDTestKit
|
|
4
|
+
module V221
|
|
5
|
+
class VisionPrescriptionMustSupportTest < RequestMustSupportWithAttestationOption
|
|
6
|
+
id :crd_v221_vision_prescription_must_support
|
|
7
|
+
title 'CRD Vision Prescription must support elements are observed'
|
|
8
|
+
description <<~DESCRIPTION
|
|
9
|
+
The CRD IG [requires](https://hl7.org/fhir/us/davinci-crd/2.2.1/en/conformance.html#ci-c-conf-3)
|
|
10
|
+
that when a client "maintains a mustSupport data element and surfaces it to users, then it
|
|
11
|
+
SHALL be exposed in their FHIR interface when the data exists and privacy constraints permit."
|
|
12
|
+
|
|
13
|
+
During this test, Inferno will verify that all must support elements defined in the
|
|
14
|
+
profile(s) listed below are demonstrated within hook requests made during this session.
|
|
15
|
+
This check may vacuously pass if the tester has attested that this resource type is not
|
|
16
|
+
supported by the CRD client.
|
|
17
|
+
|
|
18
|
+
If any must support elements are not demonstrated, the tester will have the option to attest
|
|
19
|
+
that these elements are not supported by the CRD client or surfaced to its users. Testers
|
|
20
|
+
must set up scenarios in which the "data exists and privacy constraints permit" Inferno to view
|
|
21
|
+
the must support information.
|
|
22
|
+
|
|
23
|
+
Inferno will consider resources present within the `context` and `prefetch` elements of all hook
|
|
24
|
+
requests made during the latest run of each "Hooks" subgroup and the "Additional Hook
|
|
25
|
+
Invocations" group, but not any made within the "Scenarios"
|
|
26
|
+
subgroups. If any of the considered groups are re-run, then requests made during prior runs will
|
|
27
|
+
no longer be considered and must support elements demonstrated only during that prior run must
|
|
28
|
+
be re-demonstrated on the new run or a subsequent one.
|
|
29
|
+
|
|
30
|
+
For additional details on this test, see the [Client Must Support Tests](https://github.com/inferno-framework/davinci-crd-test-kit/wiki/Client-Must-Support)
|
|
31
|
+
page and specifically the [Requests](https://github.com/inferno-framework/davinci-crd-test-kit/wiki/Client-Must-Support#requests)
|
|
32
|
+
section in the CRD Test Kit wiki.
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
### [CRD Vision Prescription](http://hl7.org/fhir/us/davinci-crd/2.2.1/en/StructureDefinition-profile-visionprescription.html)
|
|
36
|
+
|
|
37
|
+
- `contained`
|
|
38
|
+
- `created`
|
|
39
|
+
- `dateWritten`
|
|
40
|
+
- `encounter`
|
|
41
|
+
- `extension:Coverage-Information`
|
|
42
|
+
- `extension:EncounterCategory`
|
|
43
|
+
- `extension:ServiceCategory`
|
|
44
|
+
- `identifier`
|
|
45
|
+
- `lensSpecification`
|
|
46
|
+
- `lensSpecification.add`
|
|
47
|
+
- `lensSpecification.axis`
|
|
48
|
+
- `lensSpecification.backCurve`
|
|
49
|
+
- `lensSpecification.cylinder`
|
|
50
|
+
- `lensSpecification.diameter`
|
|
51
|
+
- `lensSpecification.duration`
|
|
52
|
+
- `lensSpecification.extension:BillingOptions`
|
|
53
|
+
- `lensSpecification.eye`
|
|
54
|
+
- `lensSpecification.power`
|
|
55
|
+
- `lensSpecification.prism`
|
|
56
|
+
- `lensSpecification.prism.amount`
|
|
57
|
+
- `lensSpecification.prism.base`
|
|
58
|
+
- `lensSpecification.product`
|
|
59
|
+
- `lensSpecification.sphere`
|
|
60
|
+
- `patient`
|
|
61
|
+
- `prescriber`
|
|
62
|
+
- `status`
|
|
63
|
+
DESCRIPTION
|
|
64
|
+
|
|
65
|
+
verifies_requirements 'hl7.fhir.us.davinci-crd_2.2.1@conf-3',
|
|
66
|
+
'hl7.fhir.us.davinci-crd_2.2.1@hook-3',
|
|
67
|
+
'hl7.fhir.us.davinci-crd_2.2.1@billopt-1'
|
|
68
|
+
|
|
69
|
+
config(
|
|
70
|
+
options: {
|
|
71
|
+
ig_version: 'v2.2.1',
|
|
72
|
+
profiles: [
|
|
73
|
+
{ resource_type: 'VisionPrescription', profile_keys: ['vision_prescription'] }
|
|
74
|
+
]
|
|
75
|
+
}
|
|
76
|
+
)
|
|
77
|
+
end
|
|
78
|
+
end
|
|
79
|
+
end
|