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.
Files changed (260) hide show
  1. checksums.yaml +4 -4
  2. data/config/presets/{inferno_crd_server_suite.json.erb → client_against_inferno_crd_server_suite.json.erb} +0 -33
  3. data/config/presets/{ri_crd_request_generator.json.erb → client_against_ri_crd_request_generator.json.erb} +1 -14
  4. data/config/presets/client_v221_against_inferno_crd_server_suite.json.erb +96 -0
  5. data/config/presets/client_v221_against_ri_br_provider.json.erb +31 -0
  6. data/config/presets/{ri_crd_request_generator.json_v221.json.erb → client_v221_against_ri_crd_request_generator.json.erb} +1 -1
  7. data/config/presets/{inferno_crd_client_suite.json.erb → server_against_inferno_crd_client_suite.json.erb} +0 -43
  8. data/config/presets/{ri_crd_server.json.erb → server_against_ri_crd_server.json.erb} +1 -44
  9. data/config/presets/{inferno_crd_client_suite_v221.json.erb → server_v221_against_inferno_crd_client_suite.json.erb} +1 -62
  10. 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
  11. data/config/presets/server_v221_against_inferno_g31_suite.json.erb +49 -0
  12. data/lib/davinci_crd_test_kit/client/client_base_urls.rb +5 -0
  13. data/lib/davinci_crd_test_kit/client/client_input_helper.rb +102 -0
  14. data/lib/davinci_crd_test_kit/client/client_wait_messages.rb +68 -0
  15. data/lib/davinci_crd_test_kit/client/cross_hook_helper.rb +26 -0
  16. data/lib/davinci_crd_test_kit/client/endpoints/custom_service_response.rb +32 -17
  17. data/lib/davinci_crd_test_kit/client/endpoints/hook_request_data_access.rb +228 -0
  18. data/lib/davinci_crd_test_kit/client/endpoints/hook_request_endpoint.rb +172 -56
  19. data/lib/davinci_crd_test_kit/client/endpoints/mock_service_response.rb +29 -29
  20. data/lib/davinci_crd_test_kit/client/endpoints/scenario_service_response.rb +54 -0
  21. data/lib/davinci_crd_test_kit/client/endpoints/v201_hook_request_data_gathering.rb +219 -0
  22. data/lib/davinci_crd_test_kit/client/endpoints/v221_hook_request_data_gathering.rb +172 -0
  23. data/lib/davinci_crd_test_kit/client/jwt_claim_types.rb +28 -0
  24. data/lib/davinci_crd_test_kit/client/multi_request_message_helper.rb +1 -1
  25. data/lib/davinci_crd_test_kit/client/prefetched_coverage_payer_helper.rb +81 -0
  26. data/lib/davinci_crd_test_kit/client/prefetched_coverage_value.rb +14 -0
  27. data/lib/davinci_crd_test_kit/client/tagged_request_load_helper.rb +14 -25
  28. data/lib/davinci_crd_test_kit/client/v2.0.1/auth/retrieve_jwks_test.rb +36 -24
  29. data/lib/davinci_crd_test_kit/client/v2.0.1/auth/token_header_test.rb +14 -4
  30. data/lib/davinci_crd_test_kit/client/v2.0.1/auth/token_payload_test.rb +42 -22
  31. data/lib/davinci_crd_test_kit/client/v2.0.1/cds-services-v201.json +21 -21
  32. data/lib/davinci_crd_test_kit/client/v2.0.1/client_appointment_book_group.rb +12 -10
  33. data/lib/davinci_crd_test_kit/client/v2.0.1/client_encounter_discharge_group.rb +12 -10
  34. data/lib/davinci_crd_test_kit/client/v2.0.1/client_encounter_start_group.rb +12 -10
  35. data/lib/davinci_crd_test_kit/client/v2.0.1/client_fhir_api_group.rb +2 -2
  36. data/lib/davinci_crd_test_kit/client/v2.0.1/client_hooks_group.rb +7 -10
  37. data/lib/davinci_crd_test_kit/client/v2.0.1/client_order_dispatch_group.rb +12 -10
  38. data/lib/davinci_crd_test_kit/client/v2.0.1/client_order_select_group.rb +12 -10
  39. data/lib/davinci_crd_test_kit/client/v2.0.1/client_order_sign_group.rb +12 -10
  40. data/lib/davinci_crd_test_kit/client/v2.0.1/crd_client_suite.rb +2 -2
  41. data/lib/davinci_crd_test_kit/client/v2.0.1/invocation/appointment_book_receive_request_test.rb +10 -31
  42. data/lib/davinci_crd_test_kit/client/v2.0.1/invocation/encounter_discharge_receive_request_test.rb +10 -31
  43. data/lib/davinci_crd_test_kit/client/v2.0.1/invocation/encounter_start_receive_request_test.rb +8 -29
  44. data/lib/davinci_crd_test_kit/client/v2.0.1/invocation/order_dispatch_receive_request_test.rb +10 -31
  45. data/lib/davinci_crd_test_kit/client/v2.0.1/invocation/order_select_receive_request_test.rb +8 -29
  46. data/lib/davinci_crd_test_kit/client/v2.0.1/invocation/order_sign_receive_request_test.rb +10 -31
  47. data/lib/davinci_crd_test_kit/client/v2.0.1/must_support/client_card_must_support_coverage_information.rb +3 -36
  48. data/lib/davinci_crd_test_kit/client/v2.0.1/must_support/client_card_must_support_external_reference.rb +3 -36
  49. data/lib/davinci_crd_test_kit/client/v2.0.1/must_support/client_card_must_support_instructions.rb +3 -36
  50. data/lib/davinci_crd_test_kit/client/v2.0.1/registration/client_registration_verification_test.rb +3 -7
  51. data/lib/davinci_crd_test_kit/client/v2.0.1/registration/client_service_registration_attestation_test.rb +11 -3
  52. data/lib/davinci_crd_test_kit/client/v2.0.1/verify_request/hook_request_fetched_data_test.rb +4 -13
  53. data/lib/davinci_crd_test_kit/client/v2.0.1/verify_request/hook_request_optional_fields_test.rb +1 -1
  54. data/lib/davinci_crd_test_kit/client/v2.0.1/verify_request/hook_request_prefetch_equals_queried_test.rb +3 -13
  55. data/lib/davinci_crd_test_kit/client/v2.0.1/verify_response/client_display_cards_attest.rb +7 -17
  56. data/lib/davinci_crd_test_kit/client/v2.0.1/verify_response/inferno_response_validation.rb +4 -14
  57. data/lib/davinci_crd_test_kit/client/v2.2.1/api/client_coverage_info_update_test.rb +10 -10
  58. data/lib/davinci_crd_test_kit/client/v2.2.1/api/client_crd_update_verification_group.rb +1 -1
  59. data/lib/davinci_crd_test_kit/client/v2.2.1/attestations/attestation_instructions.rb +10 -0
  60. data/lib/davinci_crd_test_kit/client/v2.2.1/attestations/client_coverage_based_invocation_attestation_test.rb +44 -0
  61. data/lib/davinci_crd_test_kit/client/v2.2.1/attestations/client_data_element_expectations_attestation_test.rb +44 -0
  62. data/lib/davinci_crd_test_kit/client/v2.2.1/attestations/client_hook_invocation_logging_attestation_test.rb +43 -0
  63. data/lib/davinci_crd_test_kit/client/v2.2.1/attestations/client_must_support_use_attestation_test.rb +41 -0
  64. data/lib/davinci_crd_test_kit/client/v2.2.1/attestations/client_prefetch_key_omission_attestation_test.rb +43 -0
  65. data/lib/davinci_crd_test_kit/client/v2.2.1/attestations/client_resource_identifiers_attestation_test.rb +43 -0
  66. data/lib/davinci_crd_test_kit/client/v2.2.1/attestations/client_response_case_distinction_attestation_test.rb +43 -0
  67. data/lib/davinci_crd_test_kit/client/v2.2.1/attestations/client_security_and_privacy_attestation_test.rb +43 -0
  68. data/lib/davinci_crd_test_kit/client/v2.2.1/attestations/client_workflow_integration_attestation_test.rb +44 -0
  69. data/lib/davinci_crd_test_kit/client/v2.2.1/auth/decode_auth_token_test.rb +4 -2
  70. data/lib/davinci_crd_test_kit/client/v2.2.1/auth/retrieve_jwks_test.rb +47 -26
  71. data/lib/davinci_crd_test_kit/client/v2.2.1/auth/token_header_test.rb +32 -6
  72. data/lib/davinci_crd_test_kit/client/v2.2.1/auth/token_payload_test.rb +60 -33
  73. data/lib/davinci_crd_test_kit/client/v2.2.1/cds-services-prefetch-subset-v221.json +48 -48
  74. data/lib/davinci_crd_test_kit/client/v2.2.1/cds-services-v221.json +51 -51
  75. data/lib/davinci_crd_test_kit/client/v2.2.1/client_appointment_book_group.rb +24 -15
  76. data/lib/davinci_crd_test_kit/client/v2.2.1/client_attestations_group.rb +43 -0
  77. data/lib/davinci_crd_test_kit/client/v2.2.1/client_cross_hook_group.rb +28 -9
  78. data/lib/davinci_crd_test_kit/client/v2.2.1/client_cross_hook_interaction_group.rb +106 -0
  79. data/lib/davinci_crd_test_kit/client/v2.2.1/client_encounter_discharge_group.rb +20 -11
  80. data/lib/davinci_crd_test_kit/client/v2.2.1/client_encounter_start_group.rb +20 -11
  81. data/lib/davinci_crd_test_kit/client/v2.2.1/client_fhir_api_group.rb +39 -15
  82. data/lib/davinci_crd_test_kit/client/v2.2.1/client_hooks_group.rb +16 -19
  83. data/lib/davinci_crd_test_kit/client/v2.2.1/client_long_running_hook_group.rb +5 -4
  84. data/lib/davinci_crd_test_kit/client/v2.2.1/client_multiple_payers_hook_group.rb +40 -0
  85. data/lib/davinci_crd_test_kit/client/v2.2.1/client_order_dispatch_group.rb +23 -14
  86. data/lib/davinci_crd_test_kit/client/v2.2.1/client_order_select_group.rb +19 -10
  87. data/lib/davinci_crd_test_kit/client/v2.2.1/client_order_sign_group.rb +23 -14
  88. data/lib/davinci_crd_test_kit/client/v2.2.1/client_registration_group.rb +7 -7
  89. data/lib/davinci_crd_test_kit/client/v2.2.1/client_scenarios_group.rb +32 -0
  90. data/lib/davinci_crd_test_kit/client/v2.2.1/client_self_pay_hook_group.rb +34 -0
  91. data/lib/davinci_crd_test_kit/client/v2.2.1/client_unknown_content_hook_group.rb +34 -0
  92. data/lib/davinci_crd_test_kit/client/v2.2.1/client_user_access_level_group.rb +82 -0
  93. data/lib/davinci_crd_test_kit/client/v2.2.1/crd_client_suite.rb +26 -6
  94. data/lib/davinci_crd_test_kit/client/v2.2.1/cross_hook/client_card_must_support_coverage_information_test.rb +5 -5
  95. data/lib/davinci_crd_test_kit/client/v2.2.1/cross_hook/client_fhirpath_collection_as_comma_delimited_string_test.rb +7 -14
  96. data/lib/davinci_crd_test_kit/client/v2.2.1/cross_hook/client_hook_instances_unique_test.rb +3 -11
  97. data/lib/davinci_crd_test_kit/client/v2.2.1/cross_hook/client_jwt_ids_unique_test.rb +89 -0
  98. data/lib/davinci_crd_test_kit/client/v2.2.1/cross_hook/client_location_address_propagation_test.rb +65 -31
  99. data/lib/davinci_crd_test_kit/client/v2.2.1/cross_hook/client_order_types_signed_test.rb +101 -0
  100. data/lib/davinci_crd_test_kit/client/v2.2.1/cross_hook/client_prefetch_complete_and_subset_test.rb +13 -35
  101. data/lib/davinci_crd_test_kit/client/v2.2.1/invocation/appointment_book_receive_request_test.rb +17 -116
  102. data/lib/davinci_crd_test_kit/client/v2.2.1/invocation/base_hook_invocation_receive_request_test.rb +182 -0
  103. data/lib/davinci_crd_test_kit/client/v2.2.1/invocation/cross_hooks_receive_request_test.rb +126 -0
  104. data/lib/davinci_crd_test_kit/client/v2.2.1/invocation/encounter_discharge_receive_request_test.rb +17 -117
  105. data/lib/davinci_crd_test_kit/client/v2.2.1/invocation/encounter_start_receive_request_test.rb +17 -117
  106. data/lib/davinci_crd_test_kit/client/v2.2.1/invocation/order_dispatch_receive_request_test.rb +17 -125
  107. data/lib/davinci_crd_test_kit/client/v2.2.1/invocation/order_select_receive_request_test.rb +17 -125
  108. data/lib/davinci_crd_test_kit/client/v2.2.1/invocation/order_sign_receive_request_test.rb +17 -125
  109. data/lib/davinci_crd_test_kit/client/v2.2.1/long_running/client_long_running_receive_request_test.rb +52 -32
  110. data/lib/davinci_crd_test_kit/client/v2.2.1/long_running/client_skip_long_running_attestation_test.rb +12 -12
  111. data/lib/davinci_crd_test_kit/client/v2.2.1/multiple_payers/client_multiple_payers_request_verification_test.rb +215 -0
  112. data/lib/davinci_crd_test_kit/client/v2.2.1/multiple_payers/client_multiple_payers_workflow_test.rb +71 -0
  113. data/lib/davinci_crd_test_kit/client/v2.2.1/must_support/generated/appointment_must_support_test.rb +84 -0
  114. data/lib/davinci_crd_test_kit/client/v2.2.1/must_support/generated/appointment_reference_resolution_test.rb +82 -0
  115. data/lib/davinci_crd_test_kit/client/v2.2.1/must_support/generated/client_cross_hook_must_support_group.rb +181 -0
  116. data/lib/davinci_crd_test_kit/client/v2.2.1/must_support/generated/communication_request_must_support_test.rb +69 -0
  117. data/lib/davinci_crd_test_kit/client/v2.2.1/must_support/generated/communication_request_reference_resolution_test.rb +79 -0
  118. data/lib/davinci_crd_test_kit/client/v2.2.1/must_support/generated/coverage_must_support_test.rb +73 -0
  119. data/lib/davinci_crd_test_kit/client/v2.2.1/must_support/generated/coverage_reference_resolution_test.rb +67 -0
  120. data/lib/davinci_crd_test_kit/client/v2.2.1/must_support/generated/device_must_support_test.rb +59 -0
  121. data/lib/davinci_crd_test_kit/client/v2.2.1/must_support/generated/device_request_must_support_test.rb +72 -0
  122. data/lib/davinci_crd_test_kit/client/v2.2.1/must_support/generated/device_request_reference_resolution_test.rb +76 -0
  123. data/lib/davinci_crd_test_kit/client/v2.2.1/must_support/generated/encounter_must_support_test.rb +83 -0
  124. data/lib/davinci_crd_test_kit/client/v2.2.1/must_support/generated/encounter_reference_resolution_test.rb +76 -0
  125. data/lib/davinci_crd_test_kit/client/v2.2.1/must_support/generated/location_must_support_test.rb +63 -0
  126. data/lib/davinci_crd_test_kit/client/v2.2.1/must_support/generated/location_reference_resolution_test.rb +60 -0
  127. data/lib/davinci_crd_test_kit/client/v2.2.1/must_support/generated/medication_must_support_test.rb +54 -0
  128. data/lib/davinci_crd_test_kit/client/v2.2.1/must_support/generated/medication_request_must_support_test.rb +95 -0
  129. data/lib/davinci_crd_test_kit/client/v2.2.1/must_support/generated/medication_request_reference_resolution_test.rb +79 -0
  130. data/lib/davinci_crd_test_kit/client/v2.2.1/must_support/generated/nutrition_order_must_support_test.rb +136 -0
  131. data/lib/davinci_crd_test_kit/client/v2.2.1/must_support/generated/nutrition_order_reference_resolution_test.rb +67 -0
  132. data/lib/davinci_crd_test_kit/client/v2.2.1/must_support/generated/organization_must_support_test.rb +66 -0
  133. data/lib/davinci_crd_test_kit/client/v2.2.1/must_support/generated/organization_reference_resolution_test.rb +60 -0
  134. data/lib/davinci_crd_test_kit/client/v2.2.1/must_support/generated/patient_must_support_test.rb +69 -0
  135. data/lib/davinci_crd_test_kit/client/v2.2.1/must_support/generated/practitioner_must_support_test.rb +65 -0
  136. data/lib/davinci_crd_test_kit/client/v2.2.1/must_support/generated/practitioner_role_must_support_test.rb +60 -0
  137. data/lib/davinci_crd_test_kit/client/v2.2.1/must_support/generated/practitioner_role_reference_resolution_test.rb +66 -0
  138. data/lib/davinci_crd_test_kit/client/v2.2.1/must_support/generated/service_request_must_support_test.rb +93 -0
  139. data/lib/davinci_crd_test_kit/client/v2.2.1/must_support/generated/service_request_reference_resolution_test.rb +81 -0
  140. data/lib/davinci_crd_test_kit/client/v2.2.1/must_support/generated/vision_prescription_must_support_test.rb +79 -0
  141. data/lib/davinci_crd_test_kit/client/v2.2.1/must_support/generated/vision_prescription_reference_resolution_test.rb +65 -0
  142. data/lib/davinci_crd_test_kit/client/v2.2.1/must_support/request_must_support_reference_resolution.rb +379 -0
  143. data/lib/davinci_crd_test_kit/client/v2.2.1/must_support/request_must_support_scope.rb +66 -0
  144. data/lib/davinci_crd_test_kit/client/v2.2.1/must_support/request_must_support_with_attestation_option.rb +331 -0
  145. data/lib/davinci_crd_test_kit/client/v2.2.1/registration/client_registration_verification_test.rb +16 -30
  146. data/lib/davinci_crd_test_kit/client/v2.2.1/registration/client_service_registration_attestation_test.rb +84 -39
  147. data/lib/davinci_crd_test_kit/client/v2.2.1/self_pay/client_self_pay_workflow_test.rb +62 -0
  148. data/lib/davinci_crd_test_kit/client/v2.2.1/unknown_content/client_unknown_content_attestation_test.rb +99 -0
  149. data/lib/davinci_crd_test_kit/client/v2.2.1/unknown_content/client_unknown_content_receive_request_test.rb +67 -0
  150. data/lib/davinci_crd_test_kit/client/v2.2.1/user_access_level/access_level_api_access_test.rb +124 -0
  151. data/lib/davinci_crd_test_kit/client/v2.2.1/user_access_level/access_level_prefetch_scope_test.rb +85 -0
  152. data/lib/davinci_crd_test_kit/client/v2.2.1/user_access_level/access_level_receive_request_test.rb +92 -0
  153. data/lib/davinci_crd_test_kit/client/v2.2.1/user_access_level/access_level_same_scenario_test.rb +340 -0
  154. data/lib/davinci_crd_test_kit/client/v2.2.1/user_access_level/access_level_target_reference.rb +16 -0
  155. data/lib/davinci_crd_test_kit/client/v2.2.1/verify_request/hook_request_conformance_test.rb +64 -7
  156. data/lib/davinci_crd_test_kit/client/v2.2.1/verify_request/hook_request_coverage_verification_test.rb +31 -73
  157. data/lib/davinci_crd_test_kit/client/v2.2.1/verify_request/hook_request_data_fetch_verification_test.rb +13 -3
  158. data/lib/davinci_crd_test_kit/client/v2.2.1/verify_request/hook_request_granted_scopes_test.rb +8 -8
  159. data/lib/davinci_crd_test_kit/client/v2.2.1/verify_request/hook_request_prefetch_complete_test.rb +12 -14
  160. data/lib/davinci_crd_test_kit/client/v2.2.1/verify_request/hook_request_prefetch_profiles_test.rb +3 -3
  161. data/lib/davinci_crd_test_kit/client/v2.2.1/verify_request/hook_request_requested_version_test.rb +17 -5
  162. data/lib/davinci_crd_test_kit/client/v2.2.1/verify_request/hook_request_secured_transport_test.rb +2 -2
  163. data/lib/davinci_crd_test_kit/client/v2.2.1/verify_response/client_display_cards_attest.rb +59 -27
  164. data/lib/davinci_crd_test_kit/client/v2.2.1/verify_response/hook_response_support_coverage_information_test.rb +4 -4
  165. data/lib/davinci_crd_test_kit/client/v2.2.1/verify_response/inferno_response_validation.rb +13 -11
  166. data/lib/davinci_crd_test_kit/cross_suite/base_urls.rb +12 -0
  167. data/lib/davinci_crd_test_kit/cross_suite/cards_identification.rb +18 -2
  168. data/lib/davinci_crd_test_kit/cross_suite/fhirpath_on_cds_request.rb +10 -9
  169. data/lib/davinci_crd_test_kit/cross_suite/generated/v2.2.1/appointment_with_order/metadata.yml +67 -0
  170. data/lib/davinci_crd_test_kit/cross_suite/generated/v2.2.1/appointment_without_order/metadata.yml +150 -0
  171. data/lib/davinci_crd_test_kit/cross_suite/generated/v2.2.1/communication_request/metadata.yml +71 -0
  172. data/lib/davinci_crd_test_kit/cross_suite/generated/v2.2.1/coverage/metadata.yml +71 -0
  173. data/lib/davinci_crd_test_kit/cross_suite/generated/v2.2.1/device/metadata.yml +22 -0
  174. data/lib/davinci_crd_test_kit/cross_suite/generated/v2.2.1/device_request/metadata.yml +85 -0
  175. data/lib/davinci_crd_test_kit/cross_suite/generated/v2.2.1/encounter/metadata.yml +82 -0
  176. data/lib/davinci_crd_test_kit/cross_suite/generated/v2.2.1/hrex_organization/metadata.yml +6 -0
  177. data/lib/davinci_crd_test_kit/cross_suite/generated/v2.2.1/location/metadata.yml +27 -0
  178. data/lib/davinci_crd_test_kit/cross_suite/generated/v2.2.1/medication/metadata.yml +17 -0
  179. data/lib/davinci_crd_test_kit/cross_suite/generated/v2.2.1/medication_request/metadata.yml +166 -0
  180. data/lib/davinci_crd_test_kit/cross_suite/generated/v2.2.1/nutrition_order/metadata.yml +166 -0
  181. data/lib/davinci_crd_test_kit/cross_suite/generated/v2.2.1/organization/metadata.yml +42 -0
  182. data/lib/davinci_crd_test_kit/cross_suite/generated/v2.2.1/patient/metadata.yml +29 -0
  183. data/lib/davinci_crd_test_kit/cross_suite/generated/v2.2.1/practitioner/metadata.yml +37 -0
  184. data/lib/davinci_crd_test_kit/cross_suite/generated/v2.2.1/practitioner_role/metadata.yml +36 -0
  185. data/lib/davinci_crd_test_kit/cross_suite/generated/v2.2.1/service_request/metadata.yml +202 -0
  186. data/lib/davinci_crd_test_kit/cross_suite/generated/v2.2.1/us_core_allergyintolerance/metadata.yml +6 -0
  187. data/lib/davinci_crd_test_kit/cross_suite/generated/v2.2.1/us_core_condition_encounter_diagnosis/metadata.yml +6 -0
  188. data/lib/davinci_crd_test_kit/cross_suite/generated/v2.2.1/us_core_condition_problems_health_concerns/metadata.yml +6 -0
  189. data/lib/davinci_crd_test_kit/cross_suite/generated/v2.2.1/us_core_diagnosticreport_lab/metadata.yml +6 -0
  190. data/lib/davinci_crd_test_kit/cross_suite/generated/v2.2.1/us_core_diagnosticreport_note/metadata.yml +6 -0
  191. data/lib/davinci_crd_test_kit/cross_suite/generated/v2.2.1/us_core_documentreference/metadata.yml +6 -0
  192. data/lib/davinci_crd_test_kit/cross_suite/generated/v2.2.1/us_core_location/metadata.yml +6 -0
  193. data/lib/davinci_crd_test_kit/cross_suite/generated/v2.2.1/us_core_organization/metadata.yml +6 -0
  194. data/lib/davinci_crd_test_kit/cross_suite/generated/v2.2.1/us_core_patient/metadata.yml +6 -0
  195. data/lib/davinci_crd_test_kit/cross_suite/generated/v2.2.1/us_core_practitioner/metadata.yml +6 -0
  196. data/lib/davinci_crd_test_kit/cross_suite/generated/v2.2.1/us_core_procedure/metadata.yml +6 -0
  197. data/lib/davinci_crd_test_kit/cross_suite/generated/v2.2.1/vision_prescription/metadata.yml +66 -0
  198. data/lib/davinci_crd_test_kit/cross_suite/hook_request_field_validation.rb +3 -2
  199. data/lib/davinci_crd_test_kit/cross_suite/hook_request_resource_extraction.rb +121 -0
  200. data/lib/davinci_crd_test_kit/cross_suite/logical_models_override_helper.rb +47 -22
  201. data/lib/davinci_crd_test_kit/cross_suite/must_support_references.rb +49 -0
  202. data/lib/davinci_crd_test_kit/cross_suite/must_support_slice_matching.rb +50 -0
  203. data/lib/davinci_crd_test_kit/cross_suite/prefetch_completeness_checker.rb +75 -39
  204. data/lib/davinci_crd_test_kit/cross_suite/prefetch_profile_validation.rb +2 -0
  205. data/lib/davinci_crd_test_kit/cross_suite/profile_metadata.rb +75 -0
  206. data/lib/davinci_crd_test_kit/cross_suite/requests_logical_model_validation.rb +45 -36
  207. data/lib/davinci_crd_test_kit/cross_suite/resource_identity.rb +183 -0
  208. data/lib/davinci_crd_test_kit/cross_suite/response_logical_model_validation.rb +48 -41
  209. data/lib/davinci_crd_test_kit/cross_suite/short_circuit_interaction.rb +28 -0
  210. data/lib/davinci_crd_test_kit/cross_suite/tags.rb +18 -1
  211. data/lib/davinci_crd_test_kit/generator/crd_must_support_metadata_extractor.rb +147 -0
  212. data/lib/davinci_crd_test_kit/generator/must_support_metadata_generator.rb +207 -0
  213. data/lib/davinci_crd_test_kit/generator/must_support_test_generator.rb +249 -0
  214. data/lib/davinci_crd_test_kit/generator/templates/must_support_group.rb.erb +118 -0
  215. data/lib/davinci_crd_test_kit/generator/templates/must_support_test.rb.erb +22 -0
  216. data/lib/davinci_crd_test_kit/generator/templates/reference_resolution_test.rb.erb +22 -0
  217. data/lib/davinci_crd_test_kit/igs/davinci_crd_2.2.1.tgz +0 -0
  218. data/lib/davinci_crd_test_kit/igs/davinci_hrex_1.2.0.tgz +0 -0
  219. data/lib/davinci_crd_test_kit/metadata.rb +2 -2
  220. data/lib/davinci_crd_test_kit/requirements/cds-hooks_3.0.0-ballot_requirements.xlsx +0 -0
  221. data/lib/davinci_crd_test_kit/requirements/davinci_crd_test_kit_requirements.csv +9 -4
  222. data/lib/davinci_crd_test_kit/requirements/generated/crd_client_requirements_coverage.csv +107 -107
  223. data/lib/davinci_crd_test_kit/requirements/generated/crd_client_v221_requirements_coverage.csv +107 -102
  224. data/lib/davinci_crd_test_kit/requirements/generated/crd_server_requirements_coverage.csv +18 -18
  225. data/lib/davinci_crd_test_kit/requirements/generated/crd_server_v221_requirements_coverage.csv +36 -32
  226. data/lib/davinci_crd_test_kit/requirements/hl7.fhir.us.davinci-crd_2.2.1_requirements.xlsx +0 -0
  227. data/lib/davinci_crd_test_kit/server/endpoints/mock_ehr/fhir_create_endpoint.rb +2 -0
  228. data/lib/davinci_crd_test_kit/server/endpoints/mock_ehr/fhir_delete_endpoint.rb +2 -0
  229. data/lib/davinci_crd_test_kit/server/endpoints/mock_ehr/fhir_read_endpoint.rb +2 -0
  230. data/lib/davinci_crd_test_kit/server/endpoints/mock_ehr/fhir_request_handler.rb +6 -0
  231. data/lib/davinci_crd_test_kit/server/endpoints/mock_ehr/fhir_search_endpoint.rb +21 -12
  232. data/lib/davinci_crd_test_kit/server/endpoints/mock_ehr/fhir_update_endpoint.rb +2 -0
  233. data/lib/davinci_crd_test_kit/server/endpoints/mock_ehr_endpoints.rb +3 -0
  234. data/lib/davinci_crd_test_kit/server/server_abstract_invoke_hook_test.rb +2 -2
  235. data/lib/davinci_crd_test_kit/server/v2.0.1/crd_server_suite.rb +1 -1
  236. data/lib/davinci_crd_test_kit/server/v2.0.1/server_hooks_group.rb +5 -5
  237. data/lib/davinci_crd_test_kit/server/v2.2.1/discovery/discovery_standard_prefetch_expressions_test.rb +1 -2
  238. data/lib/davinci_crd_test_kit/server/v2.2.1/must_support/supported_us_core_versions_test.rb +2 -2
  239. data/lib/davinci_crd_test_kit/server/v2.2.1/server_appointment_book_group.rb +1 -1
  240. data/lib/davinci_crd_test_kit/server/v2.2.1/server_demonstrate_hook_response_group.rb +3 -3
  241. data/lib/davinci_crd_test_kit/server/v2.2.1/server_encounter_discharge_group.rb +1 -1
  242. data/lib/davinci_crd_test_kit/server/v2.2.1/server_encounter_start_group.rb +1 -1
  243. data/lib/davinci_crd_test_kit/server/v2.2.1/server_hooks_group.rb +5 -5
  244. data/lib/davinci_crd_test_kit/server/v2.2.1/server_order_dispatch_group.rb +1 -1
  245. data/lib/davinci_crd_test_kit/server/v2.2.1/server_order_select_group.rb +1 -1
  246. data/lib/davinci_crd_test_kit/server/v2.2.1/server_order_sign_group.rb +1 -1
  247. data/lib/davinci_crd_test_kit/server/v2.2.1/server_required_card_response_validation_group.rb +1 -1
  248. data/lib/davinci_crd_test_kit/server/v2.2.1/specific_coverage_responses/coverage_not_found_group.rb +1 -1
  249. data/lib/davinci_crd_test_kit/server/v2.2.1/specific_coverage_responses/no_active_coverage_group.rb +1 -1
  250. data/lib/davinci_crd_test_kit/server/v2.2.1/specific_coverage_responses/no_member_found_group.rb +1 -1
  251. data/lib/davinci_crd_test_kit/server/v2.2.1/specific_coverage_responses/technical_issues_group.rb +1 -1
  252. data/lib/davinci_crd_test_kit/server/v2.2.1/verify_request/service_request_context_validation_test.rb +1 -1
  253. data/lib/davinci_crd_test_kit/server/v2.2.1/verify_request/service_request_no_custom_extensions_test.rb +2 -2
  254. data/lib/davinci_crd_test_kit/server/v2.2.1/verify_request/service_request_optional_fields_validation_test.rb +1 -1
  255. data/lib/davinci_crd_test_kit/server/v2.2.1/verify_request/service_request_required_fields_validation_test.rb +1 -1
  256. data/lib/davinci_crd_test_kit/version.rb +2 -2
  257. metadata +132 -16
  258. data/config/presets/inferno_crd_server_suite_v221.json.erb +0 -94
  259. data/lib/davinci_crd_test_kit/client/endpoints/gather_response_generation_data.rb +0 -410
  260. data/lib/davinci_crd_test_kit/server/resource_extractor.rb +0 -68
@@ -7,29 +7,44 @@ module DaVinciCRDTestKit
7
7
  class ClientFHIRAPIGroup < Inferno::TestGroup
8
8
  title 'FHIR API'
9
9
  description <<~DESCRIPTION
10
- CRD client systems are responsible for returning data requested by the CRD server needed to provide decision support.
10
+ CRD clients are responsible for returning data requested by the CRD server needed to provide decision support.
11
11
  This group contains tests that verify the required 'server' FHIR API capabilities.
12
12
  These 'server' capabilities are based on the US Core Server Capability Statement for the US Core version chosen
13
- when initiating the test session:
14
- - [US Core 3.1.1 Server Capability Statement](http://hl7.org/fhir/us/core/STU3.1.1/CapabilityStatement-us-core-server.html)
15
- - [US Core 6.1.0 Server Capability Statement](http://hl7.org/fhir/us/core/STU6.1/CapabilityStatement-us-core-server.html)
16
- - [US Core 7.0.0 Server Capability Statement](http://hl7.org/fhir/us/core/STU7/CapabilityStatement-us-core-server.html)
13
+ when the test session was initiated.
17
14
  DESCRIPTION
18
15
  id :crd_v221_client_fhir_api
19
16
 
20
17
  verifies_requirements 'hl7.fhir.us.davinci-crd_2.2.1@conf-1'
21
18
 
22
- input_instructions %(
23
- The location of and an access token for the client's FHIR server are expected to come in
19
+ INPUT_INSTRUCTIONS = %(
20
+ The location of and an access token for the CRD client's FHIR server are expected to come in
24
21
  the CDS Hooks request. The following information will be auto-populated from
25
- the body of the latest hook invocation made during this session:
22
+ the body of the latest hook invocation made during this session
23
+ in one of the "Hooks" sub-groups or the "Additional Hook Invocations" group:
26
24
  - The URL of the CRD client FHIR server from the `fhirServer` field.
27
25
  - The OAuth Access Token from the `fhirAuthorization.access_token` field.
28
26
 
29
27
  If that access token will not be long-lived enough to perform
30
28
  a full test of the US Core FHIR API, provide an updated token and/or refresh
31
29
  token with Client ID and token endpoint so that Inferno can perform these tests.
32
- )
30
+ ).freeze
31
+
32
+ input_instructions INPUT_INSTRUCTIONS
33
+
34
+ # The imported US Core tests refer to the tested system as "the server" or "the system under
35
+ # test"; within this suite it is the CRD client. General US Core requirement statements
36
+ # (e.g., "A server SHALL support...") are left as-is.
37
+ def self.rename_tested_system(runnable)
38
+ runnable.all_children.each do |child|
39
+ child.title(child.title.sub(/\A(?:FHIR )?Server /i, 'CRD client '))
40
+ description = child.description.to_s
41
+ .gsub(/\b([Tt])he(\s+)system\s+under\s+test\b/, '\\1he\\2CRD client')
42
+ .gsub(/\b([Tt])he(\s+)server(\s+)endpoint\b/, "\\1he\\2CRD client's\\3FHIR endpoint")
43
+ .gsub(/\b([Tt])he(\s+)server\b/, '\\1he\\2CRD client')
44
+ child.description(description) unless description == child.description.to_s
45
+ rename_tested_system(child)
46
+ end
47
+ end
33
48
 
34
49
  input :url,
35
50
  title: 'FHIR Endpoint',
@@ -46,42 +61,51 @@ module DaVinciCRDTestKit
46
61
  This test group verifies that the CRD client can respond to queries as required by the
47
62
  [US Core 3.1.1 Server Capability Statement](http://hl7.org/fhir/us/core/STU3.1.1/CapabilityStatement-us-core-server.html).
48
63
 
49
- Note: these tests do not look for crd-specific data and so only verify conformance against
50
- US Core profiles. The hook tests take the CRD-specific profiles into account.
64
+ Note: unlike the hook tests, these US Core tests do not require CRD-specific data but
65
+ instead verify conformance against US Core profiles rather than the CRD-defined profiles.
51
66
  )
52
67
  required_suite_options CRDClientOptions::US_CORE_3_REQUIREMENT
68
+ input_instructions INPUT_INSTRUCTIONS
53
69
 
54
70
  group from: :crd_v221_client_update_verification,
55
71
  id: :crd_v221_us_core_311_client_update_verification
56
72
  reorder :crd_v221_us_core_311_client_update_verification, 1
73
+
74
+ ClientFHIRAPIGroup.rename_tested_system(self)
57
75
  end
58
76
  group from: :'us_core_v610-us_core_v610_fhir_api' do
59
77
  description %(
60
78
  This test group verifies that the CRD client can respond to queries as required by the
61
79
  [US Core 6.1.0 Server Capability Statement](http://hl7.org/fhir/us/core/STU6.1/CapabilityStatement-us-core-server.html).
62
80
 
63
- Note: these tests do not look for crd-specific data and so only verify conformance against
64
- US Core profiles. The hook tests take the CRD-specific profiles into account.
81
+ Note: unlike the hook tests, these US Core tests do not require CRD-specific data but
82
+ instead verify conformance against US Core profiles rather than the CRD-defined profiles.
65
83
  )
66
84
  required_suite_options CRDClientOptions::US_CORE_6_REQUIREMENT
85
+ input_instructions INPUT_INSTRUCTIONS
67
86
 
68
87
  group from: :crd_v221_client_update_verification,
69
88
  id: :crd_v221_us_core_610_client_update_verification
70
89
  reorder :crd_v221_us_core_610_client_update_verification, 1
90
+
91
+ ClientFHIRAPIGroup.rename_tested_system(self)
71
92
  end
72
93
  group from: :'us_core_v700-us_core_v700_fhir_api' do
73
94
  description %(
74
95
  This test group verifies that the CRD client can respond to queries as required by the
75
96
  [US Core 7.0.0 Server Capability Statement](http://hl7.org/fhir/us/core/STU7/CapabilityStatement-us-core-server.html).
76
97
 
77
- Note: these tests do not look for crd-specific data and so only verify conformance against
78
- US Core profiles. The hook tests take the CRD-specific profiles into account.
98
+ Note: unlike the hook tests, these US Core tests do not require CRD-specific data but
99
+ instead verify conformance against US Core profiles rather than the CRD-defined profiles.
79
100
  )
80
101
  required_suite_options CRDClientOptions::US_CORE_7_REQUIREMENT
102
+ input_instructions INPUT_INSTRUCTIONS
81
103
 
82
104
  group from: :crd_v221_client_update_verification,
83
105
  id: :crd_v221_us_core_700_client_update_verification
84
106
  reorder :crd_v221_us_core_700_client_update_verification, 1
107
+
108
+ ClientFHIRAPIGroup.rename_tested_system(self)
85
109
  end
86
110
  end
87
111
  end
@@ -5,29 +5,30 @@ require_relative 'client_order_dispatch_group'
5
5
  require_relative 'client_order_select_group'
6
6
  require_relative 'client_order_sign_group'
7
7
  require_relative 'client_urls'
8
+ require_relative '../client_input_helper'
8
9
 
9
10
  module DaVinciCRDTestKit
10
11
  module V221
11
12
  class ClientHooksGroup < Inferno::TestGroup
12
13
  title 'Hooks'
13
14
  description <<~DESCRIPTION
14
- This group contains sub-groups which each verify the ability of the client to make and react to responses from
15
+ This group contains sub-groups which each verify the ability of the CRD client to make and react to responses from
15
16
  one of the [six hooks described in the CRD IG](https://hl7.org/fhir/us/davinci-crd/2.2.1/en/hooks.html):
16
17
  * [appointment-book](https://hl7.org/fhir/us/davinci-crd/2.2.1/en/hooks.html#appointment-book)
17
18
  * [encounter-start](https://hl7.org/fhir/us/davinci-crd/2.2.1/en/hooks.html#encounter-start)
18
- * [encounter-discharge](https://hl7.org/fhir/us/davinci-crd/2.2.1/en/hooks.html#encounter-discharge)
19
19
  * [order-select](https://hl7.org/fhir/us/davinci-crd/2.2.1/en/hooks.html#order-select)
20
- * [order-dispatch](https://hl7.org/fhir/us/davinci-crd/2.2.1/en/hooks.html#order-dispatch)
21
20
  * [order-sign](https://hl7.org/fhir/us/davinci-crd/2.2.1/en/hooks.html#order-sign)
21
+ * [order-dispatch](https://hl7.org/fhir/us/davinci-crd/2.2.1/en/hooks.html#order-dispatch)
22
+ * [encounter-discharge](https://hl7.org/fhir/us/davinci-crd/2.2.1/en/hooks.html#encounter-discharge)
22
23
 
23
24
  Each hook-specific group follows the same pattern:
24
- 1. Allow the client to make hook invocations for the tested hook, waiting until the tester indicates
25
+ 1. Allow the CRD client to make hook invocations for the tested hook, waiting until the tester indicates
25
26
  that all desired requests have been made, then
26
27
  2. Check the requests and their associated responses for conformance to CRD and CDS Hooks requirements.
27
- Additionally, ask the tester to confirm that the responses were displayed appropriately by the client.
28
+ Additionally, ask the tester to confirm that the responses were displayed appropriately by the CRD client.
28
29
 
29
30
  The CRD IG does not require support for any specific hook, so all the hook-specific sub-groups are
30
- optional. A conformant CRD client will have implemented at least one hook and will run and pass
31
+ optional. Conformant CRD clients will have implemented at least one hook and will run and pass
31
32
  the hook-specific groups corresponding to each hook that it implements.
32
33
 
33
34
  Inferno simulates two CRD discovery endpoints, each with service endpoints for all six CRD hooks
@@ -36,28 +37,24 @@ module DaVinciCRDTestKit
36
37
  `#{ClientURLs.discovery_url}`
37
38
  * `appointment-book` service id: `appointment-book-service`
38
39
  * `encounter-start` service id: `encounter-start-service`
39
- * `encounter-discharge` service id: `encounter-discharge-service`
40
40
  * `order-select` service id: `order-select-service`
41
- * `order-dispatch` service id: `order-dispatch-service`
42
41
  * `order-sign` service id: `order-sign-service`
43
- - Discovery endpoint for services requesting the a subset of the [standard prefetch data set](https://hl7.org/fhir/us/davinci-crd/2.2.1/en/foundation.html#standard-prefetch):
42
+ * `order-dispatch` service id: `order-dispatch-service`
43
+ * `encounter-discharge` service id: `encounter-discharge-service`
44
+ - Discovery endpoint for services requesting a subset of the [standard prefetch data set](https://hl7.org/fhir/us/davinci-crd/2.2.1/en/foundation.html#standard-prefetch):
44
45
  `#{ClientURLs.prefetch_subset_discovery_url}`
45
46
  * `appointment-book` service id: `appointment-book-subset`
46
47
  * `encounter-start` service id: `encounter-start-subset`
47
- * `encounter-discharge` service id: `encounter-discharge-subset`
48
48
  * `order-select` service id: `order-select-subset`
49
- * `order-dispatch` service id: `order-dispatch-subset`
50
49
  * `order-sign` service id: `order-sign-subset`
50
+ * `order-dispatch` service id: `order-dispatch-subset`
51
+ * `encounter-discharge` service id: `encounter-discharge-subset`
51
52
  DESCRIPTION
52
53
  id :crd_v221_client_hooks
53
54
 
54
55
  input :cds_jwt_iss,
55
56
  title: 'CRD JWT Issuer',
56
- description: %(
57
- Value of the `iss` claim that must be present in the JWT used to authorize the client's hook
58
- request sent as the Bearer token in the `Authorization` header.
59
- Run or re-run the "Registration" group to set or change this value.
60
- ),
57
+ description: ClientInputHelper.locked_cds_jwt_iss_description,
61
58
  locked: true
62
59
 
63
60
  input_order :cds_jwt_iss, :cds_jwk_set
@@ -68,16 +65,16 @@ module DaVinciCRDTestKit
68
65
  group from: :crd_v221_client_encounter_start,
69
66
  optional: true
70
67
 
71
- group from: :crd_v221_client_encounter_discharge,
68
+ group from: :crd_v221_client_order_select,
72
69
  optional: true
73
70
 
74
- group from: :crd_v221_client_order_select,
71
+ group from: :crd_v221_client_order_sign,
75
72
  optional: true
76
73
 
77
74
  group from: :crd_v221_client_order_dispatch,
78
75
  optional: true
79
76
 
80
- group from: :crd_v221_client_order_sign,
77
+ group from: :crd_v221_client_encounter_discharge,
81
78
  optional: true
82
79
  end
83
80
  end
@@ -4,14 +4,14 @@ require_relative 'long_running/client_skip_long_running_attestation_test'
4
4
  module DaVinciCRDTestKit
5
5
  module V221
6
6
  class ClientLongRunningHookGroup < Inferno::TestGroup
7
- title 'Long-running Hook Request'
7
+ title 'Long-Running Hook Request'
8
8
  id :crd_v221_client_long_running_hook
9
9
  description <<~DESCRIPTION
10
10
  When a hook invocation runs long, the CRD IG requires systems to provide
11
- users with a way to bypass the hook and continue their workflow.
11
+ users with a way to bypass the hook and continue working.
12
12
 
13
13
  Hook requests made during these tests will not be checked for conformance
14
- or included in the cross-hook analyses around must support and other coverage requirements.
14
+ or included in the cross-invocation analyses around must support and other coverage requirements.
15
15
  DESCRIPTION
16
16
 
17
17
  run_as_group
@@ -21,7 +21,8 @@ module DaVinciCRDTestKit
21
21
  config(
22
22
  options: {
23
23
  hook_name: ANY_HOOK_TAG,
24
- crd_test_group: LONG_RUNNING_GROUP_TAG
24
+ crd_interaction_group: LONG_RUNNING_GROUP_TAG,
25
+ include_in_cross_hook_analysis: false
25
26
  }
26
27
  )
27
28
 
@@ -0,0 +1,40 @@
1
+ require_relative 'multiple_payers/client_multiple_payers_workflow_test'
2
+ require_relative 'multiple_payers/client_multiple_payers_request_verification_test'
3
+
4
+ module DaVinciCRDTestKit
5
+ module V221
6
+ class ClientMultiplePayersHookGroup < Inferno::TestGroup
7
+ title 'Multiple Payers'
8
+ id :crd_v221_client_multiple_payers_hook
9
+ description <<~DESCRIPTION
10
+ The CRD IG [requires](https://hl7.org/fhir/us/davinci-crd/2.2.1/en/deviations.html#hook-invocation-for-multi-coverage-patients)
11
+ that CRD clients request coverage information details from at most one payer for each request.
12
+ During this scenario the tester will perform a workflow that triggers a hook invocation
13
+ for a patient that has two coverages each associated with a payer tied to a different Inferno
14
+ simulated CRD endpoint. Inferno will verify that the hook requests it receives solicit coverage
15
+ information from only one of them. This can be accomplished by either making a hook request
16
+ to only the payer associated with the primary coverage, or by making a hook request
17
+ to both and explicitly disabling the return of coverage information details on the request to
18
+ the payer associated with the secondary coverage using the [configuration option
19
+ extension](https://hl7.org/fhir/us/davinci-crd/2.2.1/en/deviations.html#ci-c-dev-5)
20
+ which payers are required to support.
21
+
22
+ Hook requests made during these tests will not be checked for conformance
23
+ or included in the cross-invocation analyses around must support and other coverage requirements.
24
+ DESCRIPTION
25
+
26
+ run_as_group
27
+
28
+ config(
29
+ options: {
30
+ hook_name: ANY_HOOK_TAG,
31
+ crd_interaction_group: MULTIPLE_PAYERS_GROUP_TAG,
32
+ include_in_cross_hook_analysis: false
33
+ }
34
+ )
35
+
36
+ test from: :crd_v221_client_multiple_payers_workflow
37
+ test from: :crd_v221_client_multiple_payers_request_verification
38
+ end
39
+ end
40
+ end
@@ -47,7 +47,7 @@ module DaVinciCRDTestKit
47
47
  client_access_token: { name: :order_dispatch_client_access_token },
48
48
  client_fhir_server: { name: :order_dispatch_client_fhir_server },
49
49
  crd_jwks_keys_json: { name: :order_dispatch_crd_jwks_keys_json },
50
- custom_response_template: { name: :order_dispatch_custom_response_template },
50
+ response_approach: { name: :order_dispatch_response_approach },
51
51
  selected_response_types: { name: :order_dispatch_selected_response_types }
52
52
  },
53
53
  outputs: {
@@ -60,25 +60,35 @@ module DaVinciCRDTestKit
60
60
  crd_jwks_keys_json: { name: :order_dispatch_crd_jwks_keys_json }
61
61
  },
62
62
  options: {
63
- hook_name: 'order-dispatch'
63
+ hook_name: 'order-dispatch',
64
+ crd_interaction_group: 'hooks-order-dispatch',
65
+ include_in_cross_hook_analysis: true
64
66
  }
65
67
  )
66
68
 
67
69
  group do
68
70
  title 'Interaction'
71
+ id :crd_v221_order_dispatch_interaction
72
+
69
73
  test from: :crd_v221_order_dispatch_request
70
74
  end
71
75
 
72
76
  group do
73
- title 'Authorization'
74
- test from: :crd_v221_decode_auth_token
75
- test from: :crd_v221_retrieve_jwks
76
- test from: :crd_v221_token_header
77
- test from: :crd_v221_token_payload
77
+ title 'Response Handling'
78
+ id :crd_v221_order_dispatch_responses
79
+
80
+ test from: :crd_v221_card_display_attest_test
81
+ test from: :crd_v221_inferno_response_validation
82
+ test from: :crd_v221_client_hook_response_support_coverage_information do
83
+ title 'CRD client supports the Coverage Information response type on the order-dispatch hook'
84
+ verifies_requirements 'hl7.fhir.us.davinci-crd_2.2.1@hook-33'
85
+ end
78
86
  end
79
87
 
80
88
  group do
81
89
  title 'Requests'
90
+ id :crd_v221_order_dispatch_requests
91
+
82
92
  test from: :crd_v221_hook_request_conformance do
83
93
  verifies_requirements(*HookRequestConformanceTest.verifies_requirements,
84
94
  'hl7.fhir.us.davinci-crd_2.2.1@hook-31')
@@ -93,14 +103,13 @@ module DaVinciCRDTestKit
93
103
  end
94
104
 
95
105
  group do
96
- title 'Response Handling'
106
+ title 'Authorization'
107
+ id :crd_v221_order_dispatch_auth
97
108
 
98
- test from: :crd_v221_inferno_response_validation
99
- test from: :crd_v221_card_display_attest_test
100
- test from: :crd_v221_client_hook_response_support_coverage_information do
101
- title 'Client supports the Coverage Information response type on the order-dispatch hook'
102
- verifies_requirements 'hl7.fhir.us.davinci-crd_2.2.1@hook-33'
103
- end
109
+ test from: :crd_v221_decode_auth_token
110
+ test from: :crd_v221_retrieve_jwks
111
+ test from: :crd_v221_token_header
112
+ test from: :crd_v221_token_payload
104
113
  end
105
114
  end
106
115
  end
@@ -46,7 +46,7 @@ module DaVinciCRDTestKit
46
46
  client_access_token: { name: :order_select_client_access_token },
47
47
  client_fhir_server: { name: :order_select_client_fhir_server },
48
48
  crd_jwks_keys_json: { name: :order_select_crd_jwks_keys_json },
49
- custom_response_template: { name: :order_select_custom_response_template },
49
+ response_approach: { name: :order_select_response_approach },
50
50
  selected_response_types: { name: :order_select_selected_response_types }
51
51
  },
52
52
  outputs: {
@@ -59,25 +59,31 @@ module DaVinciCRDTestKit
59
59
  crd_jwks_keys_json: { name: :order_select_crd_jwks_keys_json }
60
60
  },
61
61
  options: {
62
- hook_name: 'order-select'
62
+ hook_name: 'order-select',
63
+ crd_interaction_group: 'hooks-order-select',
64
+ include_in_cross_hook_analysis: true
63
65
  }
64
66
  )
65
67
 
66
68
  group do
67
69
  title 'Interaction'
70
+ id :crd_v221_order_select_interaction
71
+
68
72
  test from: :crd_v221_order_select_request
69
73
  end
70
74
 
71
75
  group do
72
- title 'Authorization'
73
- test from: :crd_v221_decode_auth_token
74
- test from: :crd_v221_retrieve_jwks
75
- test from: :crd_v221_token_header
76
- test from: :crd_v221_token_payload
76
+ title 'Response Handling'
77
+ id :crd_v221_order_select_responses
78
+
79
+ test from: :crd_v221_card_display_attest_test
80
+ test from: :crd_v221_inferno_response_validation
77
81
  end
78
82
 
79
83
  group do
80
84
  title 'Requests'
85
+ id :crd_v221_order_select_requests
86
+
81
87
  test from: :crd_v221_hook_request_conformance do
82
88
  verifies_requirements(*HookRequestConformanceTest.verifies_requirements,
83
89
  'hl7.fhir.us.davinci-crd_2.2.1@hook-35',
@@ -98,10 +104,13 @@ module DaVinciCRDTestKit
98
104
  end
99
105
 
100
106
  group do
101
- title 'Response Handling'
107
+ title 'Authorization'
108
+ id :crd_v221_order_select_auth
102
109
 
103
- test from: :crd_v221_inferno_response_validation
104
- test from: :crd_v221_card_display_attest_test
110
+ test from: :crd_v221_decode_auth_token
111
+ test from: :crd_v221_retrieve_jwks
112
+ test from: :crd_v221_token_header
113
+ test from: :crd_v221_token_payload
105
114
  end
106
115
  end
107
116
  end
@@ -47,7 +47,7 @@ module DaVinciCRDTestKit
47
47
  client_access_token: { name: :order_sign_client_access_token },
48
48
  client_fhir_server: { name: :order_sign_client_fhir_server },
49
49
  crd_jwks_keys_json: { name: :order_sign_crd_jwks_keys_json },
50
- custom_response_template: { name: :order_sign_custom_response_template },
50
+ response_approach: { name: :order_sign_response_approach },
51
51
  selected_response_types: { name: :order_sign_selected_response_types }
52
52
  },
53
53
  outputs: {
@@ -60,25 +60,35 @@ module DaVinciCRDTestKit
60
60
  crd_jwks_keys_json: { name: :order_sign_crd_jwks_keys_json }
61
61
  },
62
62
  options: {
63
- hook_name: 'order-sign'
63
+ hook_name: 'order-sign',
64
+ crd_interaction_group: 'hooks-order-sign',
65
+ include_in_cross_hook_analysis: true
64
66
  }
65
67
  )
66
68
 
67
69
  group do
68
70
  title 'Interaction'
71
+ id :crd_v221_order_sign_interaction
72
+
69
73
  test from: :crd_v221_order_sign_request
70
74
  end
71
75
 
72
76
  group do
73
- title 'Authorization'
74
- test from: :crd_v221_decode_auth_token
75
- test from: :crd_v221_retrieve_jwks
76
- test from: :crd_v221_token_header
77
- test from: :crd_v221_token_payload
77
+ title 'Response Handling'
78
+ id :crd_v221_order_sign_responses
79
+
80
+ test from: :crd_v221_card_display_attest_test
81
+ test from: :crd_v221_inferno_response_validation
82
+ test from: :crd_v221_client_hook_response_support_coverage_information do
83
+ title 'CRD client supports the Coverage Information response type on the order-sign hook'
84
+ verifies_requirements 'hl7.fhir.us.davinci-crd_2.2.1@hook-39'
85
+ end
78
86
  end
79
87
 
80
88
  group do
81
89
  title 'Requests'
90
+ id :crd_v221_order_sign_requests
91
+
82
92
  test from: :crd_v221_hook_request_conformance do
83
93
  verifies_requirements(*HookRequestConformanceTest.verifies_requirements,
84
94
  'hl7.fhir.us.davinci-crd_2.2.1@hook-37',
@@ -99,14 +109,13 @@ module DaVinciCRDTestKit
99
109
  end
100
110
 
101
111
  group do
102
- title 'Response Handling'
112
+ title 'Authorization'
113
+ id :crd_v221_order_sign_auth
103
114
 
104
- test from: :crd_v221_inferno_response_validation
105
- test from: :crd_v221_card_display_attest_test
106
- test from: :crd_v221_client_hook_response_support_coverage_information do
107
- title 'Client supports the Coverage Information response type on the order-sign hook'
108
- verifies_requirements 'hl7.fhir.us.davinci-crd_2.2.1@hook-39'
109
- end
115
+ test from: :crd_v221_decode_auth_token
116
+ test from: :crd_v221_retrieve_jwks
117
+ test from: :crd_v221_token_header
118
+ test from: :crd_v221_token_payload
110
119
  end
111
120
  end
112
121
  end
@@ -7,22 +7,22 @@ module DaVinciCRDTestKit
7
7
  id :crd_v221_client_registration
8
8
  title 'Registration'
9
9
  description %(
10
- Before hook invocations can be made, the client tested in this session
11
- must be registered with and trusted by Inferno's simulated CRD server
10
+ Before hook invocations can be made, the CRD client tested in this session
11
+ must be registered with and trusted by Inferno's simulated CRD servers
12
12
  and vice-versa. Tests in this group confirm the registration of the partner
13
13
  system on both ends.
14
14
 
15
- Inferno simulates two CRD discovery endpoints for the client to connect to:
15
+ Inferno simulates two CRD servers with discovery endpoints for the CRD client to connect to:
16
16
  - Discovery endpoint for services requesting the complete [standard prefetch data set](https://hl7.org/fhir/us/davinci-crd/2.2.1/en/foundation.html#standard-prefetch):
17
17
  `#{ClientURLs.discovery_url}`
18
- - Discovery endpoint for services requesting the a subset of the [standard prefetch data set](https://hl7.org/fhir/us/davinci-crd/2.2.1/en/foundation.html#standard-prefetch):
18
+ - Discovery endpoint for services requesting a subset of the [standard prefetch data set](https://hl7.org/fhir/us/davinci-crd/2.2.1/en/foundation.html#standard-prefetch):
19
19
  `#{ClientURLs.prefetch_subset_discovery_url}`
20
20
 
21
21
  This group must be run before any other tests in the "Hook Invocation" group because inputs
22
22
  provided to this group will be used by Inferno for the remainder of the tests
23
- to identify client requests and verify behavior. The inputs will appear as locked and
24
- unchangeable on these subsequent tests. If changes to these values are needed,
25
- re-run this group and provide the corrected input values.
23
+ to identify requests made by the CRD client and verify behavior. The inputs will
24
+ appear as locked and unchangeable on these subsequent tests. If changes to these
25
+ values are needed, re-run this group and provide the corrected input values.
26
26
  )
27
27
  run_as_group
28
28
 
@@ -0,0 +1,32 @@
1
+ require_relative 'client_long_running_hook_group'
2
+ require_relative 'client_unknown_content_hook_group'
3
+ require_relative 'client_self_pay_hook_group'
4
+ require_relative 'client_multiple_payers_hook_group'
5
+ require_relative 'client_user_access_level_group'
6
+
7
+ module DaVinciCRDTestKit
8
+ module V221
9
+ class ClientScenariosGroup < Inferno::TestGroup
10
+ title 'Scenarios'
11
+ id :crd_v221_client_scenarios
12
+ description <<~DESCRIPTION
13
+ This group checks CRD requirements that pertain to specific scenarios
14
+ that CRD clients need to handle.
15
+
16
+ These scenario tests do not check requirements beyond those required for
17
+ Inferno to recognize CRD client requests and confirm the exchange represents
18
+ the target scenario. However, testers are expected to follow
19
+ the same workflows as used during other tests and should adhere to the
20
+ same CRD requirements when performing these scenarios.
21
+ DESCRIPTION
22
+
23
+ input_order :long_running_pause_time, :access_level_target_reference
24
+
25
+ group from: :crd_v221_client_long_running_hook
26
+ group from: :crd_v221_client_unknown_content_hook
27
+ group from: :crd_v221_client_self_pay_hook
28
+ group from: :crd_v221_client_multiple_payers_hook
29
+ group from: :crd_v221_client_user_access_level
30
+ end
31
+ end
32
+ end
@@ -0,0 +1,34 @@
1
+ require_relative 'self_pay/client_self_pay_workflow_test'
2
+
3
+ module DaVinciCRDTestKit
4
+ module V221
5
+ class ClientSelfPayHookGroup < Inferno::TestGroup
6
+ title 'Self-Pay'
7
+ id :crd_v221_client_self_pay_hook
8
+ description <<~DESCRIPTION
9
+ The CRD IG requires that CRD clients invoke hooks on payer services only when the patient
10
+ record indicates active coverage with the payer associated with the service and there
11
+ is no recorded indication that the patient intends to bypass insurance coverage, i.e.,
12
+ the service or product is not flagged as 'self-pay'. During this scenario the tester
13
+ will perform a workflow that would normally trigger a hook request, but for a service or
14
+ product that the patient has indicated they intend to self-pay for, and Inferno
15
+ will verify that no hook requests are made.
16
+
17
+ Any hook requests made during these tests will not be checked for conformance
18
+ or included in the cross-invocation analyses around must support and other coverage requirements.
19
+ DESCRIPTION
20
+
21
+ run_as_group
22
+
23
+ config(
24
+ options: {
25
+ hook_name: ANY_HOOK_TAG,
26
+ crd_interaction_group: SELF_PAY_GROUP_TAG,
27
+ include_in_cross_hook_analysis: false
28
+ }
29
+ )
30
+
31
+ test from: :crd_v221_client_self_pay_workflow
32
+ end
33
+ end
34
+ end
@@ -0,0 +1,34 @@
1
+ require_relative 'unknown_content/client_unknown_content_receive_request_test'
2
+ require_relative 'unknown_content/client_unknown_content_attestation_test'
3
+
4
+ module DaVinciCRDTestKit
5
+ module V221
6
+ class ClientUnknownContentHookGroup < Inferno::TestGroup
7
+ title 'Unknown Response Content'
8
+ id :crd_v221_client_unknown_content_hook
9
+ description <<~DESCRIPTION
10
+ CRD servers may return content that CRD clients do not recognize, and the CRD IG requires
11
+ CRD clients to ignore it rather than fail. During this scenario Inferno returns coverage
12
+ information accompanied by an element within the system action and a custom extension
13
+ on the response, both with randomly generated names. This content is added at the CRD
14
+ response level rather than within the FHIR resources carried in the response.
15
+
16
+ Hook requests made during these tests will not be checked for conformance
17
+ or included in the cross-invocation analyses around must support and other coverage requirements.
18
+ DESCRIPTION
19
+
20
+ run_as_group
21
+
22
+ config(
23
+ options: {
24
+ hook_name: ANY_HOOK_TAG,
25
+ crd_interaction_group: UNKNOWN_CONTENT_GROUP_TAG,
26
+ include_in_cross_hook_analysis: false
27
+ }
28
+ )
29
+
30
+ test from: :crd_v221_client_unknown_content_receive_request
31
+ test from: :crd_v221_client_unknown_content_attestation_test
32
+ end
33
+ end
34
+ end