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
@@ -1,4 +1,5 @@
1
1
  require 'jwt'
2
+ require_relative '../../client_input_helper'
2
3
 
3
4
  module DaVinciCRDTestKit
4
5
  module V201
@@ -25,12 +26,7 @@ module DaVinciCRDTestKit
25
26
  input :cds_jwk_set,
26
27
  title: 'CRD JSON Web Key Set (JWKS)',
27
28
  type: 'textarea',
28
- description: %(
29
- The CRD client's JWK Set containing it's public key. May be either
30
- a publicly accessible url containing the JWKS, or the raw JWKS.
31
- The client suite may be run without this input, but it is required
32
- for the tests to pass.
33
- ),
29
+ description: ClientInputHelper.registration_cds_jwk_set_description,
34
30
  optional: true
35
31
 
36
32
  run do
@@ -80,7 +76,7 @@ module DaVinciCRDTestKit
80
76
  begin
81
77
  JWT::JWK.new(key_hash)
82
78
  rescue JWT::JWKError => e
83
- id = key_hash['kid'] | index
79
+ id = key_hash['kid'] || index
84
80
  warning_messages << "Key #{id} invalid: #{e}"
85
81
  nil
86
82
  end
@@ -10,15 +10,19 @@ module DaVinciCRDTestKit
10
10
  trusted CRD server that can access the CRD client's FHIR Server.
11
11
  )
12
12
 
13
+ flag_as_tester_initiated_exchange
13
14
  verifies_requirements 'cds-hooks_2.0@174'
14
15
 
16
+ config options: { hook_requests_unavailable: true }
17
+
18
+ input :cds_jwt_iss
15
19
  output :attest_true_url
16
20
  output :attest_false_url
17
21
 
18
22
  run do
19
- identifier = SecureRandom.hex(32)
20
- attest_true_url = "#{resume_pass_url}?token=#{identifier}"
21
- attest_false_url = "#{resume_fail_url}?token=#{identifier}"
23
+ identifier = cds_jwt_iss
24
+ attest_true_url = resume_pass_url_for(identifier)
25
+ attest_false_url = resume_fail_url_for(identifier)
22
26
  output(attest_true_url:)
23
27
  output(attest_false_url:)
24
28
  wait(
@@ -29,6 +33,10 @@ module DaVinciCRDTestKit
29
33
  I attest that Inferno has been registered as a trusted CRD server that is allowed to access
30
34
  data stored on the CRD client's FHIR Server.
31
35
 
36
+ Hook requests sent while this test is waiting with `#{cds_jwt_iss}` as the `iss` claim of the
37
+ authentication JWT will be recognized and answered with an error confirming the registration.
38
+ They will not be processed as hook invocations.
39
+
32
40
  [Click here](#{attest_true_url}) if the above statement is **true**.
33
41
 
34
42
  [Click here](#{attest_false_url}) if the above statement is **false**.
@@ -1,8 +1,11 @@
1
1
  require_relative '../../../cross_suite/tags'
2
+ require_relative '../../tagged_request_load_helper'
2
3
 
3
4
  module DaVinciCRDTestKit
4
5
  module V201
5
6
  class HookRequestFetchedDataTest < Inferno::Test
7
+ include TaggedRequestLoadHelper
8
+
6
9
  id :crd_v201_hook_request_fetched_data
7
10
  title 'Minimum resource dataset was accessible during the hook invocation'
8
11
  description %(
@@ -33,24 +36,12 @@ module DaVinciCRDTestKit
33
36
  )
34
37
  verifies_requirements 'hl7.fhir.us.davinci-crd_2.0.1@43', 'hl7.fhir.us.davinci-crd_2.0.1@323'
35
38
 
36
- def hook_name
37
- config.options[:hook_name]
38
- end
39
-
40
- def crd_test_group
41
- config.options[:crd_test_group]
42
- end
43
-
44
- def tags_to_load
45
- crd_test_group.present? ? [hook_name, crd_test_group] : [hook_name]
46
- end
47
-
48
39
  def no_error_validation(message)
49
40
  assert messages.none? { |msg| msg[:type] == 'error' }, message
50
41
  end
51
42
 
52
43
  run do
53
- hook_requests = load_tagged_requests(*tags_to_load)
44
+ hook_requests = load_interaction_group_requests
54
45
 
55
46
  hook_requests.each do |hook_request|
56
47
  request_body = JSON.parse(hook_request.request_body)
@@ -19,7 +19,7 @@ module DaVinciCRDTestKit
19
19
 
20
20
  This test checks that the optional fields that are present are of the correct type. This test
21
21
  will not fail if the hook request does not contain an optional field, it only produces an informational message.
22
- If the client provides its FHIR server URL in the `fhirServer` field, and it's authorization token in the
22
+ If the client provides its FHIR server URL in the `fhirServer` field, and its authorization token in the
23
23
  `fhirAuthorization` field object, they will be produced as an output from this test to be used in
24
24
  subsequent tests.
25
25
  )
@@ -1,9 +1,11 @@
1
1
  require_relative '../../../cross_suite/prefetch_contents_validation'
2
+ require_relative '../../tagged_request_load_helper'
2
3
 
3
4
  module DaVinciCRDTestKit
4
5
  module V201
5
6
  class HookRequestPrefetchEqualsQueriedTest < Inferno::Test
6
7
  include PrefetchContentsValidation
8
+ include TaggedRequestLoadHelper
7
9
 
8
10
  id :crd_v201_hook_request_prefetch_equals_queried
9
11
  title 'Prefetched data is equivalent to queried data'
@@ -39,18 +41,6 @@ module DaVinciCRDTestKit
39
41
  override_access_token.present? ? override_access_token : client_access_token
40
42
  end
41
43
 
42
- def hook_name
43
- config.options[:hook_name]
44
- end
45
-
46
- def crd_test_group
47
- config.options[:crd_test_group]
48
- end
49
-
50
- def tags_to_load
51
- crd_test_group.present? ? [hook_name, crd_test_group] : [hook_name]
52
- end
53
-
54
44
  def cds_services_json
55
45
  JSON.parse(File.read(File.join(
56
46
  __dir__, '..', 'cds-services-v201.json'
@@ -67,7 +57,7 @@ module DaVinciCRDTestKit
67
57
  end
68
58
 
69
59
  run do
70
- hook_requests = load_tagged_requests(*tags_to_load)
60
+ hook_requests = load_interaction_group_requests
71
61
 
72
62
  skip_if hook_requests.blank?, 'No Hook Requests to verify.'
73
63
 
@@ -1,33 +1,23 @@
1
1
  require_relative '../client_urls'
2
2
  require_relative '../../../cross_suite/cards_identification'
3
+ require_relative '../../tagged_request_load_helper'
3
4
 
4
5
  module DaVinciCRDTestKit
5
6
  module V201
6
7
  class ClientCardDisplayAttest < Inferno::Test
7
8
  include ClientURLs
8
9
  include CardsIdentification
10
+ include TaggedRequestLoadHelper
9
11
 
10
12
  id :crd_v201_card_display_attest_test
11
13
  title 'Check that returned decision support details are displayed to the user'
12
14
  description %(
13
15
  Since Inferno has no way to evaluate the client's UI, testers must manually
14
16
  verify that the cards and system actions returned by Inferno are presented
15
- to the user in an appopriate way that allows for consideration and action
17
+ to the user in an appropriate way that allows for consideration and action
16
18
  if warranted.
17
19
  )
18
20
 
19
- def hook_name
20
- config.options[:hook_name]
21
- end
22
-
23
- def crd_test_group
24
- config.options[:crd_test_group]
25
- end
26
-
27
- def tags_to_load
28
- crd_test_group.present? ? [hook_name, crd_test_group] : [hook_name]
29
- end
30
-
31
21
  def responded_card_types
32
22
  list_card_types_in_requests(requests)
33
23
  end
@@ -54,12 +44,12 @@ module DaVinciCRDTestKit
54
44
  output :attest_false_url
55
45
 
56
46
  run do
57
- load_tagged_requests(*tags_to_load)
47
+ load_interaction_group_requests
58
48
  skip_if responded_card_types.blank?, 'No responses sent to the client.'
59
49
 
60
50
  identifier = SecureRandom.hex(32)
61
- attest_true_url = "#{resume_pass_url}?token=#{identifier}"
62
- attest_false_url = "#{resume_fail_url}?token=#{identifier}"
51
+ attest_true_url = resume_pass_url_for(identifier)
52
+ attest_false_url = resume_fail_url_for(identifier)
63
53
  output(attest_true_url:)
64
54
  output(attest_false_url:)
65
55
  wait(
@@ -68,7 +58,7 @@ module DaVinciCRDTestKit
68
58
  **Card Display Attestation**:
69
59
 
70
60
  I attest that the following CDS response types returned were processed by the
71
- client system and displayed to the user:
61
+ CRD client and displayed to the user:
72
62
 
73
63
  #{format_responded_response_types}
74
64
 
@@ -1,9 +1,11 @@
1
1
  require_relative '../../../cross_suite/cards_validation'
2
+ require_relative '../../tagged_request_load_helper'
2
3
 
3
4
  module DaVinciCRDTestKit
4
5
  module V201
5
6
  class InfernoResponseValidationTest < Inferno::Test
6
7
  include CardsValidation
8
+ include TaggedRequestLoadHelper
7
9
 
8
10
  title 'Inferno CDS Service Response is Conformant'
9
11
  description %(
@@ -15,25 +17,13 @@ module DaVinciCRDTestKit
15
17
  the documentation for details on how Inferno builds a response from the provided
16
18
  custom template.
17
19
 
18
- If this test fails when Inferno mocked the response based on selected card types, please
20
+ If this test fails when Inferno mocked the response based on selected response types, please
19
21
  report this failure to the Inferno team via github issues.
20
22
  )
21
23
  id :crd_v201_inferno_response_validation
22
24
 
23
25
  input :custom_response_template, optional: true
24
26
 
25
- def hook_name
26
- config.options[:hook_name]
27
- end
28
-
29
- def crd_test_group
30
- config.options[:crd_test_group]
31
- end
32
-
33
- def tags_to_load
34
- crd_test_group.present? ? [hook_name, crd_test_group] : [hook_name]
35
- end
36
-
37
27
  def response_label(index = nil)
38
28
  response_type = (custom_response_template.present? ? 'Custom built' : 'Mocked')
39
29
  "#{response_type} response#{" #{index}" if index.present?}"
@@ -52,7 +42,7 @@ module DaVinciCRDTestKit
52
42
  end
53
43
 
54
44
  run do
55
- load_tagged_requests(*tags_to_load)
45
+ load_interaction_group_requests
56
46
 
57
47
  skip_if request.blank?, "No #{response_label.downcase}s to verify."
58
48
 
@@ -7,26 +7,26 @@ module DaVinciCRDTestKit
7
7
  include CardsIdentification
8
8
  include TaggedRequestLoadHelper
9
9
 
10
- title "Client's FHIR server stores updates from coverage-information responses"
10
+ title "CRD client's FHIR server stores updates from coverage-information responses"
11
11
  id :crd_v221_client_coverage_info_update
12
12
  description <<~DESCRIPTION
13
- This test verifies that when the client receives a [Coverage Information response type](https://hl7.org/fhir/us/davinci-crd/2.2.1/en/cards.html#coverage-information-response-type),
13
+ This test verifies that when the CRD client receives a [Coverage Information response type](https://hl7.org/fhir/us/davinci-crd/2.2.1/en/cards.html#coverage-information-response-type),
14
14
  it stores the [coverage-information extension](https://hl7.org/fhir/us/davinci-crd/2.2.1/en/StructureDefinition-ext-coverage-information.html)
15
15
  and makes it available when accessing the associated resource.
16
16
 
17
- During this test, Inferno will find all [Coverage Information responses](https://hl7.org/fhir/us/davinci-crd/2.2.1/en/cards.html#coverage-information-response-type),
18
- attempt to read the updated FHIR resource from the client's FHIR server, and verify
19
- that the [coverage-information extension](https://hl7.org/fhir/us/davinci-crd/2.2.1/en/StructureDefinition-ext-coverage-information.html)
17
+ During this test, Inferno will verify that for the [Coverage Information responses](https://hl7.org/fhir/us/davinci-crd/2.2.1/en/cards.html#coverage-information-response-type)
18
+ it returned, the updated FHIR resource read from the CRD client's FHIR server contains
19
+ the [coverage-information extension](https://hl7.org/fhir/us/davinci-crd/2.2.1/en/StructureDefinition-ext-coverage-information.html)
20
20
  in the response is now present in the returned resource. When comparing the
21
21
  [coverage-information extension](https://hl7.org/fhir/us/davinci-crd/2.2.1/en/StructureDefinition-ext-coverage-information.html)
22
- in the response with what is returned from the client FHIR server, Inferno
23
- expects that client stores and exposes the extension without modification, meaning
22
+ in the response with what is returned from the CRD client's FHIR server, Inferno
23
+ expects that the CRD client stores and exposes the extension without modification, meaning
24
24
  that the exact set of sub-extensions in the response and their values are present
25
25
  in the stored version.
26
26
 
27
27
  Inferno will not always be able to perform this check. CRD clients are not required
28
28
  to expose FHIR read APIs for all request resource types, so resource types for which
29
- the client's CapabilityStatement does not indicate read interaction support will be omitted.
29
+ the CRD client's CapabilityStatement does not indicate read interaction support will be omitted.
30
30
  Additionally, Inferno will not check complex cases where determining the expected
31
31
  stored extensions is difficult. For example, when there are multiple Coverage Information
32
32
  responses for a single resource or multiple coverage-information extensions in a
@@ -43,14 +43,14 @@ module DaVinciCRDTestKit
43
43
  run do
44
44
  supported_resource_types = extract_supported_resource_types(resource) # extract before loading other requests
45
45
 
46
- loaded_requests = requests_to_analyze # all requests for one hook or all requests for all hooks
46
+ loaded_requests = load_requests_for_cross_hook_analysis
47
47
  skip_if loaded_requests.blank?, 'No hook requests found, run hook tests first.'
48
48
 
49
49
  resources_to_check, unsupported = find_coverage_info_responses(loaded_requests)
50
50
  .partition { |request_details| supported_resource_types.include?(request_details[:resource_type]) }
51
51
  unsupported.each do |request_details|
52
52
  add_message('info', "#{error_prefix(request_details)}Resource type #{request_details[:resource_type]} " \
53
- 'is not supported by the client\'s FHIR API. This resource will not be verified.')
53
+ 'is not supported by the CRD client\'s FHIR API. This resource will not be verified.')
54
54
  end
55
55
  skip_if resources_to_check.blank?,
56
56
  'No coverage-info responses found that Inferno could verify: ' \
@@ -6,7 +6,7 @@ module DaVinciCRDTestKit
6
6
  id :crd_v221_client_update_verification
7
7
  title 'CRD Update Tests'
8
8
  description %(
9
- This CRD-specific group verifies that the client was able to
9
+ This CRD-specific group verifies that the CRD client was able to
10
10
  persist updates provided by the payer server as a part of
11
11
  decision support responses.
12
12
  )
@@ -0,0 +1,10 @@
1
+ module DaVinciCRDTestKit
2
+ module V221
3
+ ATTESTATION_INPUT_INSTRUCTIONS = %(
4
+ Testers are responsible for confirming that their system meets all requirements associated with a test
5
+ before selecting "Yes" on the attestation input with the same name as the test. The text of the
6
+ attested requirement(s) for each input can be reviewed by clicking the "View Specification Requirements" link
7
+ in the "About" tab of the test with the same name.
8
+ ).freeze
9
+ end
10
+ end
@@ -0,0 +1,44 @@
1
+ require_relative 'attestation_instructions'
2
+
3
+ module DaVinciCRDTestKit
4
+ module V221
5
+ class CoverageBasedInvocationAttestationTest < Inferno::Test
6
+ id :crd_v221_coverage_based_invocation_attestation
7
+ ATTESTATION_TITLE = 'CRD client invokes hooks on multiple payers in parallel'.freeze
8
+ title ATTESTATION_TITLE
9
+ description %(
10
+ During this test, the tester will confirm that the CRD client invokes hooks on multiple payer
11
+ services in parallel and displays the results simultaneously if more than one invocation is needed
12
+ based on the patient's active coverages. To see the specifics of the attested requirements, click
13
+ the "View Specification Requirements" link for this test.
14
+ )
15
+ flag_as_attestation
16
+ verifies_requirements 'hl7.fhir.us.davinci-crd_2.2.1@dev-32'
17
+ input_instructions ATTESTATION_INPUT_INSTRUCTIONS
18
+
19
+ input :coverage_based_invocation_attestation,
20
+ title: ATTESTATION_TITLE,
21
+ description: %(
22
+ I attest that the CRD client invokes hooks on multiple payer services in
23
+ parallel and displays the results simultaneously if more than one invocation
24
+ is needed based on the patient's active coverages.
25
+ ),
26
+ type: 'radio',
27
+ default: 'false',
28
+ options: {
29
+ list_options: [
30
+ { label: 'Yes', value: 'true' },
31
+ { label: 'No', value: 'false' }
32
+ ]
33
+ }
34
+ input :coverage_based_invocation_attestation_note,
35
+ title: 'Notes, if applicable:',
36
+ type: 'textarea',
37
+ optional: true
38
+
39
+ run do
40
+ assert coverage_based_invocation_attestation == 'true'
41
+ end
42
+ end
43
+ end
44
+ end
@@ -0,0 +1,44 @@
1
+ require_relative 'attestation_instructions'
2
+
3
+ module DaVinciCRDTestKit
4
+ module V221
5
+ class DataElementExpectationsAttestationTest < Inferno::Test
6
+ id :crd_v221_data_element_expectations_attestation
7
+ ATTESTATION_TITLE = 'CRD client does not set additional expectations for data elements'.freeze
8
+ title ATTESTATION_TITLE
9
+ description %(
10
+ During this test, the tester will confirm that the CRD client uses standard elements and does
11
+ not set expectations for data elements beyond those the CRD specification requires.
12
+ To see the specifics of the attested requirements, click the "View Specification Requirements" link for this
13
+ test.
14
+ )
15
+ flag_as_attestation
16
+ verifies_requirements 'hl7.fhir.us.davinci-crd_2.2.1@conf-10', 'hl7.fhir.us.davinci-crd_2.2.1@conf-12',
17
+ 'hl7.fhir.us.davinci-crd_2.2.1@conf-13', 'hl7.fhir.us.davinci-crd_2.2.1@found-33'
18
+ input_instructions ATTESTATION_INPUT_INSTRUCTIONS
19
+
20
+ input :data_element_expectations_attestation,
21
+ title: ATTESTATION_TITLE,
22
+ description: %(
23
+ I attest that the CRD client uses standard elements and does not set expectations for
24
+ data elements beyond those the CRD specification requires.
25
+ ),
26
+ type: 'radio',
27
+ default: 'false',
28
+ options: {
29
+ list_options: [
30
+ { label: 'Yes', value: 'true' },
31
+ { label: 'No', value: 'false' }
32
+ ]
33
+ }
34
+ input :data_element_expectations_attestation_note,
35
+ title: 'Notes, if applicable:',
36
+ type: 'textarea',
37
+ optional: true
38
+
39
+ run do
40
+ assert data_element_expectations_attestation == 'true'
41
+ end
42
+ end
43
+ end
44
+ end
@@ -0,0 +1,43 @@
1
+ require_relative 'attestation_instructions'
2
+
3
+ module DaVinciCRDTestKit
4
+ module V221
5
+ class HookInvocationLoggingAttestationTest < Inferno::Test
6
+ id :crd_v221_hook_invocation_logging_attestation
7
+ ATTESTATION_TITLE = 'CRD client retains logs of all CRD-related hook invocations'.freeze
8
+ title ATTESTATION_TITLE
9
+ description %(
10
+ During this test, the tester will confirm that the CRD client retains logs of all CRD-related hook
11
+ invocations and their responses.
12
+ To see the specifics of the attested requirements, click the "View Specification Requirements" link for this
13
+ test.
14
+ )
15
+ flag_as_attestation
16
+ verifies_requirements 'hl7.fhir.us.davinci-crd_2.2.1@found-37'
17
+ input_instructions ATTESTATION_INPUT_INSTRUCTIONS
18
+
19
+ input :hook_invocation_logging_attestation,
20
+ title: ATTESTATION_TITLE,
21
+ description: %(
22
+ I attest that the CRD client retains logs of all CRD-related hook invocations and their
23
+ responses.
24
+ ),
25
+ type: 'radio',
26
+ default: 'false',
27
+ options: {
28
+ list_options: [
29
+ { label: 'Yes', value: 'true' },
30
+ { label: 'No', value: 'false' }
31
+ ]
32
+ }
33
+ input :hook_invocation_logging_attestation_note,
34
+ title: 'Notes, if applicable:',
35
+ type: 'textarea',
36
+ optional: true
37
+
38
+ run do
39
+ assert hook_invocation_logging_attestation == 'true'
40
+ end
41
+ end
42
+ end
43
+ end
@@ -0,0 +1,41 @@
1
+ require_relative 'attestation_instructions'
2
+
3
+ module DaVinciCRDTestKit
4
+ module V221
5
+ class MustSupportUseAttestationTest < Inferno::Test
6
+ id :crd_v221_must_support_use_attestation
7
+ ATTESTATION_TITLE = 'CRD client uses received must support data'.freeze
8
+ title ATTESTATION_TITLE
9
+ description %(
10
+ During this test, the tester will confirm that the CRD client uses the mustSupport data it receives.
11
+ To see the specifics of the attested requirements, click the "View Specification Requirements" link for this
12
+ test.
13
+ )
14
+ flag_as_attestation
15
+ verifies_requirements 'hl7.fhir.us.davinci-crd_2.2.1@conf-6'
16
+ input_instructions ATTESTATION_INPUT_INSTRUCTIONS
17
+
18
+ input :must_support_use_attestation,
19
+ title: ATTESTATION_TITLE,
20
+ description: %(
21
+ I attest that the CRD client uses the mustSupport data it receives.
22
+ ),
23
+ type: 'radio',
24
+ default: 'false',
25
+ options: {
26
+ list_options: [
27
+ { label: 'Yes', value: 'true' },
28
+ { label: 'No', value: 'false' }
29
+ ]
30
+ }
31
+ input :must_support_use_attestation_note,
32
+ title: 'Notes, if applicable:',
33
+ type: 'textarea',
34
+ optional: true
35
+
36
+ run do
37
+ assert must_support_use_attestation == 'true'
38
+ end
39
+ end
40
+ end
41
+ end
@@ -0,0 +1,43 @@
1
+ require_relative 'attestation_instructions'
2
+
3
+ module DaVinciCRDTestKit
4
+ module V221
5
+ class PrefetchKeyOmissionAttestationTest < Inferno::Test
6
+ id :crd_v221_prefetch_key_omission_attestation
7
+ ATTESTATION_TITLE = 'CRD client omits prefetch keys when data not available'.freeze
8
+ title ATTESTATION_TITLE
9
+ description %(
10
+ During this test, the tester will confirm that the CRD client omits prefetch keys when the relevant
11
+ data cannot be provided, e.g., due to intermittent connectivity issues, and distinguishes it
12
+ from the "no data" case when the prefetch key must be present but empty.
13
+ To see the specifics of the attested requirements, click the "View Specification Requirements" link for this
14
+ test.
15
+ )
16
+ flag_as_attestation
17
+ verifies_requirements 'cds-hooks_3.0.0-ballot@51'
18
+ input_instructions ATTESTATION_INPUT_INSTRUCTIONS
19
+
20
+ input :prefetch_key_omission_attestation,
21
+ title: ATTESTATION_TITLE,
22
+ description: %(
23
+ I attest that the CRD client omits prefetch keys when the relevant data cannot be provided.
24
+ ),
25
+ type: 'radio',
26
+ default: 'false',
27
+ options: {
28
+ list_options: [
29
+ { label: 'Yes', value: 'true' },
30
+ { label: 'No', value: 'false' }
31
+ ]
32
+ }
33
+ input :prefetch_key_omission_attestation_note,
34
+ title: 'Notes, if applicable:',
35
+ type: 'textarea',
36
+ optional: true
37
+
38
+ run do
39
+ assert prefetch_key_omission_attestation == 'true'
40
+ end
41
+ end
42
+ end
43
+ end
@@ -0,0 +1,43 @@
1
+ require_relative 'attestation_instructions'
2
+
3
+ module DaVinciCRDTestKit
4
+ module V221
5
+ class ResourceIdentifiersAttestationTest < Inferno::Test
6
+ id :crd_v221_resource_identifiers_attestation
7
+ ATTESTATION_TITLE = 'CRD client does not use business identifiers in resource identifiers'.freeze
8
+ title ATTESTATION_TITLE
9
+ description %(
10
+ During this test, the tester will confirm that the CRD client does not expose resource identifiers
11
+ that have a determinable relationship with business identifiers.
12
+ To see the specifics of the attested requirements, click the "View Specification Requirements" link for this
13
+ test.
14
+ )
15
+ flag_as_attestation
16
+ verifies_requirements 'hl7.fhir.us.davinci-crd_2.2.1@sec-7'
17
+ input_instructions ATTESTATION_INPUT_INSTRUCTIONS
18
+
19
+ input :resource_identifiers_attestation,
20
+ title: ATTESTATION_TITLE,
21
+ description: %(
22
+ I attest that the CRD client does not expose resource identifiers that have a determinable
23
+ relationship with business identifiers.
24
+ ),
25
+ type: 'radio',
26
+ default: 'false',
27
+ options: {
28
+ list_options: [
29
+ { label: 'Yes', value: 'true' },
30
+ { label: 'No', value: 'false' }
31
+ ]
32
+ }
33
+ input :resource_identifiers_attestation_note,
34
+ title: 'Notes, if applicable:',
35
+ type: 'textarea',
36
+ optional: true
37
+
38
+ run do
39
+ assert resource_identifiers_attestation == 'true'
40
+ end
41
+ end
42
+ end
43
+ end
@@ -0,0 +1,43 @@
1
+ require_relative 'attestation_instructions'
2
+
3
+ module DaVinciCRDTestKit
4
+ module V221
5
+ class ResponseCaseDistinctionAttestationTest < Inferno::Test
6
+ id :crd_v221_response_case_distinction_attestation
7
+ ATTESTATION_TITLE = 'CRD client distinguishes different response cases to users'.freeze
8
+ title ATTESTATION_TITLE
9
+ description %(
10
+ During this test, the tester will confirm that the CRD client distinguishes the different CRD
11
+ response cases when presenting results to users.
12
+ To see the specifics of the attested requirements, click the "View Specification Requirements" link for this
13
+ test.
14
+ )
15
+ flag_as_attestation
16
+ verifies_requirements 'hl7.fhir.us.davinci-crd_2.2.1@impl-1'
17
+ input_instructions ATTESTATION_INPUT_INSTRUCTIONS
18
+
19
+ input :response_case_distinction_attestation,
20
+ title: ATTESTATION_TITLE,
21
+ description: %(
22
+ I attest that the CRD client distinguishes the different CRD response cases when presenting
23
+ results to users.
24
+ ),
25
+ type: 'radio',
26
+ default: 'false',
27
+ options: {
28
+ list_options: [
29
+ { label: 'Yes', value: 'true' },
30
+ { label: 'No', value: 'false' }
31
+ ]
32
+ }
33
+ input :response_case_distinction_attestation_note,
34
+ title: 'Notes, if applicable:',
35
+ type: 'textarea',
36
+ optional: true
37
+
38
+ run do
39
+ assert response_case_distinction_attestation == 'true'
40
+ end
41
+ end
42
+ end
43
+ end