davinci_crd_test_kit 0.14.2 → 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 (234) hide show
  1. checksums.yaml +4 -4
  2. data/config/presets/client_v221_against_inferno_crd_server_suite.json.erb +13 -1
  3. data/config/presets/server_v221_against_inferno_crd_client_suite.json.erb +1 -1
  4. data/config/presets/server_v221_against_inferno_crd_client_suite_prefetch_subset.json.erb +1 -1
  5. data/lib/davinci_crd_test_kit/client/client_base_urls.rb +5 -0
  6. data/lib/davinci_crd_test_kit/client/client_input_helper.rb +102 -0
  7. data/lib/davinci_crd_test_kit/client/client_wait_messages.rb +68 -0
  8. data/lib/davinci_crd_test_kit/client/endpoints/custom_service_response.rb +25 -10
  9. data/lib/davinci_crd_test_kit/client/endpoints/hook_request_data_access.rb +228 -0
  10. data/lib/davinci_crd_test_kit/client/endpoints/hook_request_endpoint.rb +116 -25
  11. data/lib/davinci_crd_test_kit/client/endpoints/mock_service_response.rb +5 -24
  12. data/lib/davinci_crd_test_kit/client/endpoints/scenario_service_response.rb +1 -1
  13. data/lib/davinci_crd_test_kit/client/endpoints/v201_hook_request_data_gathering.rb +219 -0
  14. data/lib/davinci_crd_test_kit/client/endpoints/v221_hook_request_data_gathering.rb +172 -0
  15. data/lib/davinci_crd_test_kit/client/jwt_claim_types.rb +28 -0
  16. data/lib/davinci_crd_test_kit/client/multi_request_message_helper.rb +1 -1
  17. data/lib/davinci_crd_test_kit/client/prefetched_coverage_payer_helper.rb +81 -0
  18. data/lib/davinci_crd_test_kit/client/prefetched_coverage_value.rb +14 -0
  19. data/lib/davinci_crd_test_kit/client/tagged_request_load_helper.rb +8 -0
  20. data/lib/davinci_crd_test_kit/client/v2.0.1/auth/retrieve_jwks_test.rb +1 -1
  21. data/lib/davinci_crd_test_kit/client/v2.0.1/auth/token_header_test.rb +14 -4
  22. data/lib/davinci_crd_test_kit/client/v2.0.1/auth/token_payload_test.rb +8 -1
  23. data/lib/davinci_crd_test_kit/client/v2.0.1/cds-services-v201.json +1 -1
  24. data/lib/davinci_crd_test_kit/client/v2.0.1/client_fhir_api_group.rb +2 -2
  25. data/lib/davinci_crd_test_kit/client/v2.0.1/client_hooks_group.rb +2 -5
  26. data/lib/davinci_crd_test_kit/client/v2.0.1/crd_client_suite.rb +2 -2
  27. data/lib/davinci_crd_test_kit/client/v2.0.1/invocation/appointment_book_receive_request_test.rb +10 -31
  28. data/lib/davinci_crd_test_kit/client/v2.0.1/invocation/encounter_discharge_receive_request_test.rb +10 -31
  29. data/lib/davinci_crd_test_kit/client/v2.0.1/invocation/encounter_start_receive_request_test.rb +8 -29
  30. data/lib/davinci_crd_test_kit/client/v2.0.1/invocation/order_dispatch_receive_request_test.rb +10 -31
  31. data/lib/davinci_crd_test_kit/client/v2.0.1/invocation/order_select_receive_request_test.rb +8 -29
  32. data/lib/davinci_crd_test_kit/client/v2.0.1/invocation/order_sign_receive_request_test.rb +10 -31
  33. data/lib/davinci_crd_test_kit/client/v2.0.1/registration/client_registration_verification_test.rb +3 -7
  34. data/lib/davinci_crd_test_kit/client/v2.0.1/registration/client_service_registration_attestation_test.rb +11 -3
  35. data/lib/davinci_crd_test_kit/client/v2.0.1/verify_request/hook_request_optional_fields_test.rb +1 -1
  36. data/lib/davinci_crd_test_kit/client/v2.0.1/verify_response/client_display_cards_attest.rb +4 -4
  37. data/lib/davinci_crd_test_kit/client/v2.0.1/verify_response/inferno_response_validation.rb +1 -1
  38. data/lib/davinci_crd_test_kit/client/v2.2.1/api/client_coverage_info_update_test.rb +9 -9
  39. data/lib/davinci_crd_test_kit/client/v2.2.1/api/client_crd_update_verification_group.rb +1 -1
  40. data/lib/davinci_crd_test_kit/client/v2.2.1/attestations/client_coverage_based_invocation_attestation_test.rb +10 -10
  41. data/lib/davinci_crd_test_kit/client/v2.2.1/attestations/client_data_element_expectations_attestation_test.rb +7 -7
  42. data/lib/davinci_crd_test_kit/client/v2.2.1/attestations/client_hook_invocation_logging_attestation_test.rb +4 -4
  43. data/lib/davinci_crd_test_kit/client/v2.2.1/attestations/client_must_support_use_attestation_test.rb +4 -4
  44. data/lib/davinci_crd_test_kit/client/v2.2.1/attestations/client_prefetch_key_omission_attestation_test.rb +6 -5
  45. data/lib/davinci_crd_test_kit/client/v2.2.1/attestations/client_resource_identifiers_attestation_test.rb +4 -4
  46. data/lib/davinci_crd_test_kit/client/v2.2.1/attestations/client_response_case_distinction_attestation_test.rb +4 -4
  47. data/lib/davinci_crd_test_kit/client/v2.2.1/attestations/client_security_and_privacy_attestation_test.rb +4 -4
  48. data/lib/davinci_crd_test_kit/client/v2.2.1/attestations/client_workflow_integration_attestation_test.rb +4 -4
  49. data/lib/davinci_crd_test_kit/client/v2.2.1/auth/decode_auth_token_test.rb +3 -1
  50. data/lib/davinci_crd_test_kit/client/v2.2.1/auth/retrieve_jwks_test.rb +23 -13
  51. data/lib/davinci_crd_test_kit/client/v2.2.1/auth/token_header_test.rb +32 -6
  52. data/lib/davinci_crd_test_kit/client/v2.2.1/auth/token_payload_test.rb +25 -11
  53. data/lib/davinci_crd_test_kit/client/v2.2.1/cds-services-prefetch-subset-v221.json +1 -1
  54. data/lib/davinci_crd_test_kit/client/v2.2.1/cds-services-v221.json +1 -1
  55. data/lib/davinci_crd_test_kit/client/v2.2.1/client_appointment_book_group.rb +10 -3
  56. data/lib/davinci_crd_test_kit/client/v2.2.1/client_attestations_group.rb +1 -7
  57. data/lib/davinci_crd_test_kit/client/v2.2.1/client_cross_hook_group.rb +13 -10
  58. data/lib/davinci_crd_test_kit/client/v2.2.1/client_cross_hook_interaction_group.rb +12 -4
  59. data/lib/davinci_crd_test_kit/client/v2.2.1/client_encounter_discharge_group.rb +9 -2
  60. data/lib/davinci_crd_test_kit/client/v2.2.1/client_encounter_start_group.rb +9 -2
  61. data/lib/davinci_crd_test_kit/client/v2.2.1/client_fhir_api_group.rb +25 -3
  62. data/lib/davinci_crd_test_kit/client/v2.2.1/client_hooks_group.rb +7 -10
  63. data/lib/davinci_crd_test_kit/client/v2.2.1/client_long_running_hook_group.rb +3 -3
  64. data/lib/davinci_crd_test_kit/client/v2.2.1/client_multiple_payers_hook_group.rb +40 -0
  65. data/lib/davinci_crd_test_kit/client/v2.2.1/client_order_dispatch_group.rb +9 -2
  66. data/lib/davinci_crd_test_kit/client/v2.2.1/client_order_select_group.rb +8 -1
  67. data/lib/davinci_crd_test_kit/client/v2.2.1/client_order_sign_group.rb +9 -2
  68. data/lib/davinci_crd_test_kit/client/v2.2.1/client_registration_group.rb +7 -7
  69. data/lib/davinci_crd_test_kit/client/v2.2.1/client_scenarios_group.rb +10 -4
  70. data/lib/davinci_crd_test_kit/client/v2.2.1/client_self_pay_hook_group.rb +2 -4
  71. data/lib/davinci_crd_test_kit/client/v2.2.1/client_unknown_content_hook_group.rb +3 -3
  72. data/lib/davinci_crd_test_kit/client/v2.2.1/client_user_access_level_group.rb +82 -0
  73. data/lib/davinci_crd_test_kit/client/v2.2.1/crd_client_suite.rb +7 -3
  74. data/lib/davinci_crd_test_kit/client/v2.2.1/cross_hook/client_card_must_support_coverage_information_test.rb +4 -4
  75. data/lib/davinci_crd_test_kit/client/v2.2.1/cross_hook/client_fhirpath_collection_as_comma_delimited_string_test.rb +3 -3
  76. data/lib/davinci_crd_test_kit/client/v2.2.1/cross_hook/client_hook_instances_unique_test.rb +2 -2
  77. data/lib/davinci_crd_test_kit/client/v2.2.1/cross_hook/client_jwt_ids_unique_test.rb +89 -0
  78. data/lib/davinci_crd_test_kit/client/v2.2.1/cross_hook/client_location_address_propagation_test.rb +59 -29
  79. data/lib/davinci_crd_test_kit/client/v2.2.1/cross_hook/client_order_types_signed_test.rb +101 -0
  80. data/lib/davinci_crd_test_kit/client/v2.2.1/cross_hook/client_prefetch_complete_and_subset_test.rb +11 -24
  81. data/lib/davinci_crd_test_kit/client/v2.2.1/invocation/appointment_book_receive_request_test.rb +9 -27
  82. data/lib/davinci_crd_test_kit/client/v2.2.1/invocation/base_hook_invocation_receive_request_test.rb +59 -40
  83. data/lib/davinci_crd_test_kit/client/v2.2.1/invocation/cross_hooks_receive_request_test.rb +64 -35
  84. data/lib/davinci_crd_test_kit/client/v2.2.1/invocation/encounter_discharge_receive_request_test.rb +9 -27
  85. data/lib/davinci_crd_test_kit/client/v2.2.1/invocation/encounter_start_receive_request_test.rb +9 -27
  86. data/lib/davinci_crd_test_kit/client/v2.2.1/invocation/order_dispatch_receive_request_test.rb +9 -27
  87. data/lib/davinci_crd_test_kit/client/v2.2.1/invocation/order_select_receive_request_test.rb +9 -27
  88. data/lib/davinci_crd_test_kit/client/v2.2.1/invocation/order_sign_receive_request_test.rb +9 -27
  89. data/lib/davinci_crd_test_kit/client/v2.2.1/long_running/client_long_running_receive_request_test.rb +50 -38
  90. data/lib/davinci_crd_test_kit/client/v2.2.1/long_running/client_skip_long_running_attestation_test.rb +11 -11
  91. data/lib/davinci_crd_test_kit/client/v2.2.1/multiple_payers/client_multiple_payers_request_verification_test.rb +215 -0
  92. data/lib/davinci_crd_test_kit/client/v2.2.1/multiple_payers/client_multiple_payers_workflow_test.rb +71 -0
  93. data/lib/davinci_crd_test_kit/client/v2.2.1/must_support/generated/appointment_must_support_test.rb +84 -0
  94. data/lib/davinci_crd_test_kit/client/v2.2.1/must_support/generated/appointment_reference_resolution_test.rb +82 -0
  95. data/lib/davinci_crd_test_kit/client/v2.2.1/must_support/generated/client_cross_hook_must_support_group.rb +181 -0
  96. data/lib/davinci_crd_test_kit/client/v2.2.1/must_support/generated/communication_request_must_support_test.rb +69 -0
  97. data/lib/davinci_crd_test_kit/client/v2.2.1/must_support/generated/communication_request_reference_resolution_test.rb +79 -0
  98. data/lib/davinci_crd_test_kit/client/v2.2.1/must_support/generated/coverage_must_support_test.rb +73 -0
  99. data/lib/davinci_crd_test_kit/client/v2.2.1/must_support/generated/coverage_reference_resolution_test.rb +67 -0
  100. data/lib/davinci_crd_test_kit/client/v2.2.1/must_support/generated/device_must_support_test.rb +59 -0
  101. data/lib/davinci_crd_test_kit/client/v2.2.1/must_support/generated/device_request_must_support_test.rb +72 -0
  102. data/lib/davinci_crd_test_kit/client/v2.2.1/must_support/generated/device_request_reference_resolution_test.rb +76 -0
  103. data/lib/davinci_crd_test_kit/client/v2.2.1/must_support/generated/encounter_must_support_test.rb +83 -0
  104. data/lib/davinci_crd_test_kit/client/v2.2.1/must_support/generated/encounter_reference_resolution_test.rb +76 -0
  105. data/lib/davinci_crd_test_kit/client/v2.2.1/must_support/generated/location_must_support_test.rb +63 -0
  106. data/lib/davinci_crd_test_kit/client/v2.2.1/must_support/generated/location_reference_resolution_test.rb +60 -0
  107. data/lib/davinci_crd_test_kit/client/v2.2.1/must_support/generated/medication_must_support_test.rb +54 -0
  108. data/lib/davinci_crd_test_kit/client/v2.2.1/must_support/generated/medication_request_must_support_test.rb +95 -0
  109. data/lib/davinci_crd_test_kit/client/v2.2.1/must_support/generated/medication_request_reference_resolution_test.rb +79 -0
  110. data/lib/davinci_crd_test_kit/client/v2.2.1/must_support/generated/nutrition_order_must_support_test.rb +136 -0
  111. data/lib/davinci_crd_test_kit/client/v2.2.1/must_support/generated/nutrition_order_reference_resolution_test.rb +67 -0
  112. data/lib/davinci_crd_test_kit/client/v2.2.1/must_support/generated/organization_must_support_test.rb +66 -0
  113. data/lib/davinci_crd_test_kit/client/v2.2.1/must_support/generated/organization_reference_resolution_test.rb +60 -0
  114. data/lib/davinci_crd_test_kit/client/v2.2.1/must_support/generated/patient_must_support_test.rb +69 -0
  115. data/lib/davinci_crd_test_kit/client/v2.2.1/must_support/generated/practitioner_must_support_test.rb +65 -0
  116. data/lib/davinci_crd_test_kit/client/v2.2.1/must_support/generated/practitioner_role_must_support_test.rb +60 -0
  117. data/lib/davinci_crd_test_kit/client/v2.2.1/must_support/generated/practitioner_role_reference_resolution_test.rb +66 -0
  118. data/lib/davinci_crd_test_kit/client/v2.2.1/must_support/generated/service_request_must_support_test.rb +93 -0
  119. data/lib/davinci_crd_test_kit/client/v2.2.1/must_support/generated/service_request_reference_resolution_test.rb +81 -0
  120. data/lib/davinci_crd_test_kit/client/v2.2.1/must_support/generated/vision_prescription_must_support_test.rb +79 -0
  121. data/lib/davinci_crd_test_kit/client/v2.2.1/must_support/generated/vision_prescription_reference_resolution_test.rb +65 -0
  122. data/lib/davinci_crd_test_kit/client/v2.2.1/must_support/request_must_support_reference_resolution.rb +379 -0
  123. data/lib/davinci_crd_test_kit/client/v2.2.1/must_support/request_must_support_scope.rb +66 -0
  124. data/lib/davinci_crd_test_kit/client/v2.2.1/must_support/request_must_support_with_attestation_option.rb +331 -0
  125. data/lib/davinci_crd_test_kit/client/v2.2.1/registration/client_registration_verification_test.rb +16 -30
  126. data/lib/davinci_crd_test_kit/client/v2.2.1/registration/client_service_registration_attestation_test.rb +84 -39
  127. data/lib/davinci_crd_test_kit/client/v2.2.1/self_pay/client_self_pay_workflow_test.rb +27 -20
  128. data/lib/davinci_crd_test_kit/client/v2.2.1/unknown_content/client_unknown_content_attestation_test.rb +7 -7
  129. data/lib/davinci_crd_test_kit/client/v2.2.1/unknown_content/client_unknown_content_receive_request_test.rb +38 -33
  130. data/lib/davinci_crd_test_kit/client/v2.2.1/user_access_level/access_level_api_access_test.rb +124 -0
  131. data/lib/davinci_crd_test_kit/client/v2.2.1/user_access_level/access_level_prefetch_scope_test.rb +85 -0
  132. data/lib/davinci_crd_test_kit/client/v2.2.1/user_access_level/access_level_receive_request_test.rb +92 -0
  133. data/lib/davinci_crd_test_kit/client/v2.2.1/user_access_level/access_level_same_scenario_test.rb +340 -0
  134. data/lib/davinci_crd_test_kit/client/v2.2.1/user_access_level/access_level_target_reference.rb +16 -0
  135. data/lib/davinci_crd_test_kit/client/v2.2.1/verify_request/hook_request_conformance_test.rb +63 -6
  136. data/lib/davinci_crd_test_kit/client/v2.2.1/verify_request/hook_request_coverage_verification_test.rb +23 -73
  137. data/lib/davinci_crd_test_kit/client/v2.2.1/verify_request/hook_request_data_fetch_verification_test.rb +12 -2
  138. data/lib/davinci_crd_test_kit/client/v2.2.1/verify_request/hook_request_granted_scopes_test.rb +7 -7
  139. data/lib/davinci_crd_test_kit/client/v2.2.1/verify_request/hook_request_prefetch_complete_test.rb +11 -13
  140. data/lib/davinci_crd_test_kit/client/v2.2.1/verify_request/hook_request_prefetch_profiles_test.rb +2 -2
  141. data/lib/davinci_crd_test_kit/client/v2.2.1/verify_request/hook_request_requested_version_test.rb +16 -4
  142. data/lib/davinci_crd_test_kit/client/v2.2.1/verify_request/hook_request_secured_transport_test.rb +1 -1
  143. data/lib/davinci_crd_test_kit/client/v2.2.1/verify_response/client_display_cards_attest.rb +8 -8
  144. data/lib/davinci_crd_test_kit/client/v2.2.1/verify_response/hook_response_support_coverage_information_test.rb +3 -3
  145. data/lib/davinci_crd_test_kit/client/v2.2.1/verify_response/inferno_response_validation.rb +8 -9
  146. data/lib/davinci_crd_test_kit/cross_suite/base_urls.rb +12 -0
  147. data/lib/davinci_crd_test_kit/cross_suite/cards_identification.rb +9 -2
  148. data/lib/davinci_crd_test_kit/cross_suite/fhirpath_on_cds_request.rb +10 -9
  149. data/lib/davinci_crd_test_kit/cross_suite/generated/v2.2.1/appointment_with_order/metadata.yml +67 -0
  150. data/lib/davinci_crd_test_kit/cross_suite/generated/v2.2.1/appointment_without_order/metadata.yml +150 -0
  151. data/lib/davinci_crd_test_kit/cross_suite/generated/v2.2.1/communication_request/metadata.yml +71 -0
  152. data/lib/davinci_crd_test_kit/cross_suite/generated/v2.2.1/coverage/metadata.yml +71 -0
  153. data/lib/davinci_crd_test_kit/cross_suite/generated/v2.2.1/device/metadata.yml +22 -0
  154. data/lib/davinci_crd_test_kit/cross_suite/generated/v2.2.1/device_request/metadata.yml +85 -0
  155. data/lib/davinci_crd_test_kit/cross_suite/generated/v2.2.1/encounter/metadata.yml +82 -0
  156. data/lib/davinci_crd_test_kit/cross_suite/generated/v2.2.1/hrex_organization/metadata.yml +6 -0
  157. data/lib/davinci_crd_test_kit/cross_suite/generated/v2.2.1/location/metadata.yml +27 -0
  158. data/lib/davinci_crd_test_kit/cross_suite/generated/v2.2.1/medication/metadata.yml +17 -0
  159. data/lib/davinci_crd_test_kit/cross_suite/generated/v2.2.1/medication_request/metadata.yml +166 -0
  160. data/lib/davinci_crd_test_kit/cross_suite/generated/v2.2.1/nutrition_order/metadata.yml +166 -0
  161. data/lib/davinci_crd_test_kit/cross_suite/generated/v2.2.1/organization/metadata.yml +42 -0
  162. data/lib/davinci_crd_test_kit/cross_suite/generated/v2.2.1/patient/metadata.yml +29 -0
  163. data/lib/davinci_crd_test_kit/cross_suite/generated/v2.2.1/practitioner/metadata.yml +37 -0
  164. data/lib/davinci_crd_test_kit/cross_suite/generated/v2.2.1/practitioner_role/metadata.yml +36 -0
  165. data/lib/davinci_crd_test_kit/cross_suite/generated/v2.2.1/service_request/metadata.yml +202 -0
  166. data/lib/davinci_crd_test_kit/cross_suite/generated/v2.2.1/us_core_allergyintolerance/metadata.yml +6 -0
  167. data/lib/davinci_crd_test_kit/cross_suite/generated/v2.2.1/us_core_condition_encounter_diagnosis/metadata.yml +6 -0
  168. data/lib/davinci_crd_test_kit/cross_suite/generated/v2.2.1/us_core_condition_problems_health_concerns/metadata.yml +6 -0
  169. data/lib/davinci_crd_test_kit/cross_suite/generated/v2.2.1/us_core_diagnosticreport_lab/metadata.yml +6 -0
  170. data/lib/davinci_crd_test_kit/cross_suite/generated/v2.2.1/us_core_diagnosticreport_note/metadata.yml +6 -0
  171. data/lib/davinci_crd_test_kit/cross_suite/generated/v2.2.1/us_core_documentreference/metadata.yml +6 -0
  172. data/lib/davinci_crd_test_kit/cross_suite/generated/v2.2.1/us_core_location/metadata.yml +6 -0
  173. data/lib/davinci_crd_test_kit/cross_suite/generated/v2.2.1/us_core_organization/metadata.yml +6 -0
  174. data/lib/davinci_crd_test_kit/cross_suite/generated/v2.2.1/us_core_patient/metadata.yml +6 -0
  175. data/lib/davinci_crd_test_kit/cross_suite/generated/v2.2.1/us_core_practitioner/metadata.yml +6 -0
  176. data/lib/davinci_crd_test_kit/cross_suite/generated/v2.2.1/us_core_procedure/metadata.yml +6 -0
  177. data/lib/davinci_crd_test_kit/cross_suite/generated/v2.2.1/vision_prescription/metadata.yml +66 -0
  178. data/lib/davinci_crd_test_kit/cross_suite/hook_request_field_validation.rb +3 -2
  179. data/lib/davinci_crd_test_kit/cross_suite/hook_request_resource_extraction.rb +121 -0
  180. data/lib/davinci_crd_test_kit/cross_suite/logical_models_override_helper.rb +17 -9
  181. data/lib/davinci_crd_test_kit/cross_suite/must_support_references.rb +49 -0
  182. data/lib/davinci_crd_test_kit/cross_suite/must_support_slice_matching.rb +50 -0
  183. data/lib/davinci_crd_test_kit/cross_suite/prefetch_completeness_checker.rb +75 -39
  184. data/lib/davinci_crd_test_kit/cross_suite/profile_metadata.rb +75 -0
  185. data/lib/davinci_crd_test_kit/cross_suite/requests_logical_model_validation.rb +19 -9
  186. data/lib/davinci_crd_test_kit/cross_suite/resource_identity.rb +183 -0
  187. data/lib/davinci_crd_test_kit/cross_suite/short_circuit_interaction.rb +28 -0
  188. data/lib/davinci_crd_test_kit/cross_suite/tags.rb +15 -1
  189. data/lib/davinci_crd_test_kit/generator/crd_must_support_metadata_extractor.rb +147 -0
  190. data/lib/davinci_crd_test_kit/generator/must_support_metadata_generator.rb +207 -0
  191. data/lib/davinci_crd_test_kit/generator/must_support_test_generator.rb +249 -0
  192. data/lib/davinci_crd_test_kit/generator/templates/must_support_group.rb.erb +118 -0
  193. data/lib/davinci_crd_test_kit/generator/templates/must_support_test.rb.erb +22 -0
  194. data/lib/davinci_crd_test_kit/generator/templates/reference_resolution_test.rb.erb +22 -0
  195. data/lib/davinci_crd_test_kit/igs/davinci_crd_2.2.1.tgz +0 -0
  196. data/lib/davinci_crd_test_kit/igs/davinci_hrex_1.2.0.tgz +0 -0
  197. data/lib/davinci_crd_test_kit/metadata.rb +2 -2
  198. data/lib/davinci_crd_test_kit/requirements/davinci_crd_test_kit_requirements.csv +3 -2
  199. data/lib/davinci_crd_test_kit/requirements/generated/crd_client_requirements_coverage.csv +1 -1
  200. data/lib/davinci_crd_test_kit/requirements/generated/crd_client_v221_requirements_coverage.csv +90 -89
  201. data/lib/davinci_crd_test_kit/requirements/hl7.fhir.us.davinci-crd_2.2.1_requirements.xlsx +0 -0
  202. data/lib/davinci_crd_test_kit/server/endpoints/mock_ehr/fhir_create_endpoint.rb +2 -0
  203. data/lib/davinci_crd_test_kit/server/endpoints/mock_ehr/fhir_delete_endpoint.rb +2 -0
  204. data/lib/davinci_crd_test_kit/server/endpoints/mock_ehr/fhir_read_endpoint.rb +2 -0
  205. data/lib/davinci_crd_test_kit/server/endpoints/mock_ehr/fhir_request_handler.rb +6 -0
  206. data/lib/davinci_crd_test_kit/server/endpoints/mock_ehr/fhir_search_endpoint.rb +21 -12
  207. data/lib/davinci_crd_test_kit/server/endpoints/mock_ehr/fhir_update_endpoint.rb +2 -0
  208. data/lib/davinci_crd_test_kit/server/endpoints/mock_ehr_endpoints.rb +3 -0
  209. data/lib/davinci_crd_test_kit/server/server_abstract_invoke_hook_test.rb +2 -2
  210. data/lib/davinci_crd_test_kit/server/v2.2.1/must_support/supported_us_core_versions_test.rb +2 -2
  211. data/lib/davinci_crd_test_kit/server/v2.2.1/server_appointment_book_group.rb +1 -1
  212. data/lib/davinci_crd_test_kit/server/v2.2.1/server_demonstrate_hook_response_group.rb +1 -1
  213. data/lib/davinci_crd_test_kit/server/v2.2.1/server_encounter_discharge_group.rb +1 -1
  214. data/lib/davinci_crd_test_kit/server/v2.2.1/server_encounter_start_group.rb +1 -1
  215. data/lib/davinci_crd_test_kit/server/v2.2.1/server_order_dispatch_group.rb +1 -1
  216. data/lib/davinci_crd_test_kit/server/v2.2.1/server_order_select_group.rb +1 -1
  217. data/lib/davinci_crd_test_kit/server/v2.2.1/server_order_sign_group.rb +1 -1
  218. data/lib/davinci_crd_test_kit/server/v2.2.1/server_required_card_response_validation_group.rb +1 -1
  219. data/lib/davinci_crd_test_kit/server/v2.2.1/specific_coverage_responses/coverage_not_found_group.rb +1 -1
  220. data/lib/davinci_crd_test_kit/server/v2.2.1/specific_coverage_responses/no_active_coverage_group.rb +1 -1
  221. data/lib/davinci_crd_test_kit/server/v2.2.1/specific_coverage_responses/no_member_found_group.rb +1 -1
  222. data/lib/davinci_crd_test_kit/server/v2.2.1/specific_coverage_responses/technical_issues_group.rb +1 -1
  223. data/lib/davinci_crd_test_kit/server/v2.2.1/verify_request/service_request_context_validation_test.rb +1 -1
  224. data/lib/davinci_crd_test_kit/server/v2.2.1/verify_request/service_request_no_custom_extensions_test.rb +2 -2
  225. data/lib/davinci_crd_test_kit/server/v2.2.1/verify_request/service_request_optional_fields_validation_test.rb +1 -1
  226. data/lib/davinci_crd_test_kit/server/v2.2.1/verify_request/service_request_required_fields_validation_test.rb +1 -1
  227. data/lib/davinci_crd_test_kit/version.rb +2 -2
  228. metadata +100 -12
  229. data/lib/davinci_crd_test_kit/client/endpoints/gather_response_generation_data.rb +0 -413
  230. data/lib/davinci_crd_test_kit/client/v2.2.1/attestations/client_authorized_scope_attestation_test.rb +0 -45
  231. data/lib/davinci_crd_test_kit/client/v2.2.1/attestations/client_must_support_exposure_attestation_test.rb +0 -43
  232. data/lib/davinci_crd_test_kit/client/v2.2.1/attestations/client_order_sign_support_attestation_test.rb +0 -42
  233. data/lib/davinci_crd_test_kit/client/v2.2.1/self_pay/client_self_pay_no_request_test.rb +0 -30
  234. data/lib/davinci_crd_test_kit/server/resource_extractor.rb +0 -68
@@ -14,16 +14,16 @@ module DaVinciCRDTestKit
14
14
  As a part of registration, CRD clients and servers agree on a set of scopes that the server needs
15
15
  to obtain all data that goes into creating hook responses. For the purposes of simulating a
16
16
  payer CRD server acting as a part of these tests that evaluate conformance to the CRD specification,
17
- Inferno requires access to all US Core resource types. While in a real exchange scenario, a CRD client
18
- organization might well reject such a set of scopes as too large, for the purposes of testing, the client
19
- must grant these scopes in order for Inferno to verify its conformance.
17
+ Inferno requires access to all US Core resource types. While in a real exchange scenario, an organization
18
+ operating CRD clients might well reject such a set of scopes as too large, for the purposes of testing,
19
+ the CRD client must grant these scopes in order for Inferno to verify its conformance.
20
20
 
21
21
  During this test, Inferno will verify that the requested scopes covering all resource types profiled in
22
- the selected version of the US Core IG are granted and no more. Clients may choose to grant either user scopes
23
- or patient scopes. If choosing patient scopes, note that the token is used by default for complete testing
24
- of the client's US Core FHIR API, so either that single patient would need to
22
+ the selected version of the US Core IG are granted and no more. The CRD client may choose to grant either user
23
+ scopes or patient scopes. If choosing patient scopes, note that the token is used by default for complete
24
+ testing of the CRD client's US Core FHIR API, so either that single patient would need to
25
25
  demonstrate all US Core resources and must support elements or another access token would need
26
- to be provided when testing the client's FHIR API.
26
+ to be provided when testing the CRD client's FHIR API.
27
27
  )
28
28
 
29
29
  verifies_requirements 'hl7.fhir.us.davinci-crd_2.2.1@found-21'
@@ -8,6 +8,7 @@ module DaVinciCRDTestKit
8
8
  class HookRequestPrefetchCompleteTest < Inferno::Test
9
9
  include DaVinciCRDTestKit::TaggedRequestLoadHelper
10
10
  include DaVinciCRDTestKit::MultiRequestMessageHelper
11
+ include ClientURLs
11
12
 
12
13
  id :crd_v221_hook_request_prefetch_complete
13
14
  title 'Hook requests include the requested prefetch data'
@@ -19,7 +20,7 @@ module DaVinciCRDTestKit
19
20
  See the [Prefetch Template](https://cds-hooks.hl7.org/2026Jan/en/#prefetch-template)
20
21
  section for more information about the format of `prefetch` templates.
21
22
 
22
- [The CRD IG requires client support for prefetch](https://hl7.org/fhir/us/davinci-crd/2.2.1/en/foundation.html#prefetch)
23
+ [The CRD IG requires that CRD clients support prefetch](https://hl7.org/fhir/us/davinci-crd/2.2.1/en/foundation.html#prefetch)
23
24
  including the ability to provide all data in and subsets of the [standard prefetch templates](https://hl7.org/fhir/us/davinci-crd/2.2.1/en/foundation.html#standard-prefetch),
24
25
  when they are requested by the invoked CRD server. Inferno simulates two CRD servers,
25
26
  one at `#{ClientURLs.discovery_url}` requiring the [complete set of standard prefetches](https://github.com/inferno-framework/davinci-crd-test-kit/blob/main/lib/davinci_crd_test_kit/client/v2.2.1/cds-services-v221.json)
@@ -28,10 +29,12 @@ module DaVinciCRDTestKit
28
29
 
29
30
  During this test, Inferno will verify that each hook request body includes a `prefetch` field populated with
30
31
  valid JSON that contains exactly the requested prefetch keys and data sets described in the service description
31
- for the invoked service as calculated by Inferno based on the resources provided in the request.
32
+ for the invoked service as calculated by Inferno based on the resources provided in the request (see [Reference
33
+ Resolution Within Hook Requests](https://github.com/inferno-framework/davinci-crd-test-kit/wiki/Client-Prefetch-Verification#reference-resolution-within-hook-requests)
34
+ in the CRD Test Kit wiki for details of resource identity, reference resolution, and FHIRPath execution).
32
35
 
33
36
  Note that Inferno requires **all** requested prefetch keys to be present in the request even if there is no
34
- data for that key. This because the [CDS Hook specification requires](https://cds-hooks.hl7.org/2026Jan/en/#example-of-pagination-in-prefetch)
37
+ data for that key. This is because the [CDS Hooks specification requires](https://cds-hooks.hl7.org/2026Jan/en/#example-of-pagination-in-prefetch)
35
38
  that if "the CDS Client has no data to populate a template prefetch key, the prefetch template key MUST have a
36
39
  value of null." For templates that request the results of a FHIR search interaction, an empty Bundle is also
37
40
  acceptable.
@@ -97,13 +100,8 @@ module DaVinciCRDTestKit
97
100
  hook_request = parse_json_request_entity(request.request_body, 'Request body', request_index)
98
101
  next unless hook_request.present?
99
102
 
100
- prefetch_target = if request.url.include?(PREFETCH_SUBSET_PREFIX)
101
- :subset
102
- else
103
- :complete
104
- end
105
-
106
- services_path = service_path_for_target(prefetch_target)
103
+ target = prefetch_target(request)
104
+ services_path = service_path_for_target(target)
107
105
  checker = PrefetchCompletenessChecker.new(hook_request, request_index, services_path)
108
106
  completeness_errors = checker.check_prefetched_data
109
107
  completeness_errors.each do |error|
@@ -114,10 +112,10 @@ module DaVinciCRDTestKit
114
112
  end
115
113
  if completeness_errors.blank? &&
116
114
  checker.data_set_different_with_alternate_service?(
117
- service_path_for_opposite(prefetch_target),
118
- key_comparison_map_for_target(prefetch_target)
115
+ service_path_for_opposite(target),
116
+ key_comparison_map_for_target(target)
119
117
  )
120
- if prefetch_target == :subset
118
+ if target == :subset
121
119
  output demonstrates_prefetch_subset_distinct_from_complete: true
122
120
  else
123
121
  output demonstrates_prefetch_complete_distinct_from_subset: true
@@ -19,11 +19,11 @@ module DaVinciCRDTestKit
19
19
  See the [Prefetch Template](https://cds-hooks.hl7.org/2026Jan/en/#prefetch-template)
20
20
  section for more information about the format of `prefetch` templates.
21
21
 
22
- [The CRD IG requires client support for prefetch](https://hl7.org/fhir/us/davinci-crd/2.2.1/en/foundation.html#prefetch)
22
+ [The CRD IG requires that CRD clients support prefetch](https://hl7.org/fhir/us/davinci-crd/2.2.1/en/foundation.html#prefetch)
23
23
  including that the provided resources, which are part of the data included in the hook invocation,
24
24
  [conform to the appropriate CRD profile](https://hl7.org/fhir/us/davinci-crd/2.2.1/en/hooks.html#ci-c-hook-21).
25
25
 
26
- During this test, Inferno will verify that each FHIR resources found under the `prefetch`
26
+ During this test, Inferno will verify that each FHIR resource found under the `prefetch`
27
27
  field of each request body conforms to the appropriate CRD profile.
28
28
  )
29
29
 
@@ -8,17 +8,16 @@ module DaVinciCRDTestKit
8
8
  include DaVinciCRDTestKit::TaggedRequestLoadHelper
9
9
 
10
10
  id :crd_v221_hook_request_requested_version
11
- title 'Hook requests contains the CRD version extension'
11
+ title 'Hook requests contain the CRD version extension'
12
12
  description %(
13
- Inferno's CRD service supports multiple versions of CRD, so [clients are required](https://hl7.org/fhir/us/davinci-crd/2.2.1/en/conformancedetails.html#ci-c-dev-3)
13
+ Inferno's CRD service supports multiple versions of CRD, so [CRD clients are required](https://hl7.org/fhir/us/davinci-crd/2.2.1/en/conformancedetails.html#ci-c-dev-3)
14
14
  to specify the requested version using the `davinci-crd.requestedVersion` extension on each request.
15
15
 
16
16
  During this test, Inferno will verify that the body of each hook request contains
17
17
  the `davinci-crd.requestedVersion` extension with the correct value: "2.2".
18
18
  )
19
19
 
20
- verifies_requirements 'cds-hooks_3.0.0-ballot@214', 'hl7.fhir.us.davinci-crd_2.2.1@dev-3-A',
21
- 'hl7.fhir.us.davinci-crd_2.2.1@dev-12'
20
+ verifies_requirements 'cds-hooks_3.0.0-ballot@214', 'hl7.fhir.us.davinci-crd_2.2.1@dev-3-A'
22
21
 
23
22
  run do
24
23
  hook_requests = load_interaction_group_requests
@@ -29,6 +28,19 @@ module DaVinciCRDTestKit
29
28
  request_body = parse_json_request_entity(request.request_body, 'Request body', request_index)
30
29
  next unless request_body.present?
31
30
 
31
+ unless request_body.is_a?(Hash)
32
+ add_request_message('error', "Request body must be a JSON object, got #{request_body.class}.",
33
+ request_index)
34
+ next
35
+ end
36
+
37
+ if request_body.key?('extension') && !request_body['extension'].is_a?(Hash)
38
+ add_request_message('error',
39
+ "`extension` must be a JSON object, got #{request_body['extension'].class}.",
40
+ request_index)
41
+ next
42
+ end
43
+
32
44
  requested_version = request_body.dig('extension', 'davinci-crd.requestedVersion')
33
45
  if requested_version.blank?
34
46
  add_request_message('error', "Required extension 'davinci-crd.requestedVersion' is not present.",
@@ -11,7 +11,7 @@ module DaVinciCRDTestKit
11
11
  title 'Hook request interactions use TLS'
12
12
  description %(
13
13
  During this test, Inferno will verify that
14
- requests made by both the client and Inferno's simulated CRD servers are made against
14
+ requests made by both the CRD client and Inferno's simulated CRD servers are made against
15
15
  TLS-secured endpoints using the `https` protocol.
16
16
  )
17
17
  verifies_requirements 'cds-hooks_3.0.0-ballot@2', 'cds-hooks_3.0.0-ballot@168', 'cds-hooks_3.0.0-ballot@172',
@@ -10,13 +10,13 @@ module DaVinciCRDTestKit
10
10
  include DaVinciCRDTestKit::TaggedRequestLoadHelper
11
11
 
12
12
  id :crd_v221_card_display_attest_test
13
- title 'Client displays returned decision support details to the user'
13
+ title 'CRD client displays returned decision support details to the user'
14
14
  description %(
15
15
  During this test, the tester will confirm that the received cards and actions in the
16
- hook responses have been displayed or otherwise made available to users of the client system
17
- in an appopriate way that allows for consideration and action if warranted.
16
+ hook responses have been displayed or otherwise made available to users of the CRD client
17
+ in an appropriate way that allows for consideration and action if warranted.
18
18
  )
19
- attestation
19
+ flag_as_attestation
20
20
 
21
21
  verifies_requirements 'hl7.fhir.us.davinci-crd_2.2.1@resp-49'
22
22
 
@@ -77,11 +77,11 @@ module DaVinciCRDTestKit
77
77
 
78
78
  run do
79
79
  load_interaction_group_requests
80
- skip_if responded_card_types.blank?, 'No responses sent to the client.'
80
+ skip_if responded_card_types.blank?, 'No responses sent to the CRD client.'
81
81
 
82
82
  identifier = SecureRandom.hex(32)
83
- attest_true_url = "#{resume_pass_url}?token=#{identifier}"
84
- attest_false_url = "#{resume_fail_url}?token=#{identifier}"
83
+ attest_true_url = resume_pass_url_for(identifier)
84
+ attest_false_url = resume_fail_url_for(identifier)
85
85
  output(attest_true_url:)
86
86
  output(attest_false_url:)
87
87
  wait(
@@ -90,7 +90,7 @@ module DaVinciCRDTestKit
90
90
  **Card Display Attestation**:
91
91
 
92
92
  I attest that the simulated CRD responses returned by Inferno during this
93
- group were successfully processed by the client system and that they were
93
+ group were successfully processed by the CRD client and that they were
94
94
  made available to users of the system in an appropriate way that allowed for
95
95
  user review and action if warranted.
96
96
 
@@ -7,14 +7,14 @@ module DaVinciCRDTestKit
7
7
  include CardsIdentification
8
8
  include TaggedRequestLoadHelper
9
9
 
10
- title 'Client supports the Coverage Information response type on this hook'
10
+ title 'CRD client supports the Coverage Information response type on this hook'
11
11
  id :crd_v221_client_hook_response_support_coverage_information
12
12
  description <<~DESCRIPTION
13
- During this test, Inferno will verify that the client demonstrated support for the [Coverage Information](https://hl7.org/fhir/us/davinci-crd/2.2.1/en/cards.html#coverage-information)
13
+ During this test, Inferno will verify that the CRD client demonstrated support for the [Coverage Information](https://hl7.org/fhir/us/davinci-crd/2.2.1/en/cards.html#coverage-information-response-type)
14
14
  response type. At least one hook invocation performed during this group must have returned a Coverage Information action.
15
15
 
16
16
  If this test fails, adjust the [cards returned by Inferno's simulated CRD server](https://github.com/inferno-framework/davinci-crd-test-kit/wiki/Controlling-Simulated-Responses)
17
- and/or the hook requests made by the client during this group such that a Coverage Information action is returned.
17
+ and/or the hook requests made by the CRD client during this group such that a Coverage Information action is returned.
18
18
  DESCRIPTION
19
19
 
20
20
  run do
@@ -12,15 +12,15 @@ module DaVinciCRDTestKit
12
12
  title 'Hook responses have the correct structure and content'
13
13
  description %(
14
14
  During this test, Inferno will verify that each hook response built by Inferno's simulated CRD servers
15
- and returned to the client conforms to CDS Hooks and CRD requirements. These responses must be conformant
16
- for the client to demonstrate its ability to accept and process valid CRD responses.
15
+ and returned to the CRD client conforms to CDS Hooks and CRD requirements. These responses must be conformant
16
+ for the CRD client to demonstrate its ability to accept and process valid CRD responses.
17
17
  To prevent the injection of non-standard information into Inferno responses, these validations will
18
18
  strictly check that all extensions are allowed at the locations they appear by the CRD specification.
19
19
 
20
- If this test fails when the tester provided a custom response template, adjust the
20
+ If this test fails when responses were generated from a tester-provided template, adjust the
21
21
  provided template and the submitted requests so that the response built by Inferno
22
22
  is conformant. If this test fails when Inferno mocked the response based on selected
23
- card types, first ensure that the client's request is conformant. If the request is conformant
23
+ response types, first ensure that the CRD client's request is conformant. If the request is conformant
24
24
  but Inferno's response(s) are still not conformant, please report this failure to the
25
25
  Inferno team via [GitHub Issues](https://github.com/inferno-framework/davinci-crd-test-kit/issues).
26
26
  For more details on how Inferno builds responses, see the
@@ -28,15 +28,14 @@ module DaVinciCRDTestKit
28
28
  section of the [CRD Test Kit Wiki](https://github.com/inferno-framework/davinci-crd-test-kit/wiki).
29
29
  )
30
30
  id :crd_v221_inferno_response_validation
31
- simulation_verification
31
+ flag_as_simulation_verification
32
32
 
33
- verifies_requirements 'cds-hooks_3.0.0-ballot@3', 'cds-hooks_3.0.0-ballot@222', 'cds-hooks_3.0.0-ballot@223',
34
- 'cds-hooks_3.0.0-ballot@224', 'hl7.fhir.us.davinci-crd_2.2.1@conf-10'
33
+ verifies_requirements 'hl7.fhir.us.davinci-crd_2.2.1@conf-10'
35
34
 
36
- input :custom_response_template, optional: true
35
+ input :response_approach, optional: true
37
36
 
38
37
  def response_label(index = nil)
39
- response_type = (custom_response_template.present? ? 'Custom built' : 'Mocked')
38
+ response_type = (response_approach == 'custom' ? 'Custom built' : 'Mocked')
40
39
  "#{response_type} response#{" #{index}" if index.present?}"
41
40
  end
42
41
 
@@ -1,3 +1,5 @@
1
+ require 'erb'
2
+
1
3
  module DaVinciCRDTestKit
2
4
  RESUME_PASS_PATH = '/resume_pass'.freeze
3
5
  RESUME_FAIL_PATH = '/resume_fail'.freeze
@@ -16,5 +18,15 @@ module DaVinciCRDTestKit
16
18
  def resume_fail_url
17
19
  @resume_fail_url ||= inferno_base_url + RESUME_FAIL_PATH
18
20
  end
21
+
22
+ # tokens such as a JWT issuer may contain characters that are reserved in a query string
23
+ def resume_pass_url_for(token)
24
+ "#{resume_pass_url}?token=#{ERB::Util.url_encode(token)}"
25
+ end
26
+
27
+ def resume_fail_url_for(token, message: nil)
28
+ url = "#{resume_fail_url}?token=#{ERB::Util.url_encode(token)}"
29
+ message.present? ? "#{url}&message=#{ERB::Util.url_encode(message)}" : url
30
+ end
19
31
  end
20
32
  end
@@ -111,9 +111,16 @@ module DaVinciCRDTestKit
111
111
  cards.present? || actions.present?
112
112
  end
113
113
 
114
+ # the value of the named hook request extension, or nil when the request or its `extension` is not
115
+ # an object
116
+ def request_extension(request_body, name)
117
+ extension = request_body['extension'] if request_body.is_a?(Hash)
118
+ extension[name] if extension.is_a?(Hash)
119
+ end
120
+
114
121
  def coverage_info_configuration_disabled?(request_body)
115
- request_body.is_a?(Hash) &&
116
- request_body.dig('extension', 'davinci-crd.configuration', COVERAGE_INFO_CONFIGURATION_CODE) == false
122
+ configuration = request_extension(request_body, 'davinci-crd.configuration')
123
+ configuration.is_a?(Hash) && configuration[COVERAGE_INFO_CONFIGURATION_CODE] == false
117
124
  end
118
125
 
119
126
  def disable_coverage_info_configuration!(request_body)
@@ -1,5 +1,6 @@
1
1
  require 'date'
2
2
  require 'uri'
3
+ require_relative 'resource_identity'
3
4
 
4
5
  module DaVinciCRDTestKit
5
6
  class FhirpathServiceError < StandardError; end
@@ -25,13 +26,15 @@ module DaVinciCRDTestKit
25
26
  cds_component, remaining_query = identify_cds_component(fhirpath_query)
26
27
  execution_targets = cds_component.present? ? get_cds_field(hook_request, cds_component) : hook_request
27
28
 
29
+ @current_fhirpath_query = fhirpath_query
28
30
  execution_targets.map do |execution_target|
29
- @current_base_fhir_server = hook_request['fhirServer']
31
+ @current_base_fhir_server = ResourceIdentity.fhir_server_base(hook_request)
30
32
  execute(execution_target, remaining_query)
31
33
  end.flatten.compact
32
34
  ensure
33
35
  # clean-up identity
34
36
  @current_base_fhir_server = nil
37
+ @current_fhirpath_query = nil
35
38
  end
36
39
 
37
40
  private
@@ -112,11 +115,16 @@ module DaVinciCRDTestKit
112
115
  end.flatten.compact
113
116
  end
114
117
 
118
+ # resolve() makes the resolved resource's server the base for the references that follow it, so
119
+ # the base is restored afterwards for any sibling references
115
120
  def execute_resolve(execution_target, fhirpath_query)
121
+ saved_base_fhir_server = @current_base_fhir_server
116
122
  referenced = resolve(execution_target)
117
123
  return nil unless referenced.present?
118
124
 
119
125
  execute(referenced, fhirpath_query[10..])
126
+ ensure
127
+ @current_base_fhir_server = saved_base_fhir_server
120
128
  end
121
129
 
122
130
  def execute_entry_resource_step(execution_target, fhirpath_query)
@@ -142,14 +150,7 @@ module DaVinciCRDTestKit
142
150
  end
143
151
 
144
152
  def base_fhir_server_for_identity(current_resource_identity)
145
- return nil unless current_resource_identity.present?
146
-
147
- parsed_identity = URI.parse(current_resource_identity)
148
- return nil unless ['http', 'https'].include?(parsed_identity.scheme)
149
-
150
- current_resource_identity.split('/')[0..-3].join('/')
151
- rescue URI::InvalidURIError
152
- nil
153
+ ResourceIdentity.base_for(current_resource_identity)
153
154
  end
154
155
 
155
156
  # -------------------------------------------------------------------------
@@ -0,0 +1,67 @@
1
+ ---
2
+ :resource: Appointment
3
+ :profile_url: http://hl7.org/fhir/us/davinci-crd/StructureDefinition/profile-appointment-with-order
4
+ :profile_name: CRD Appointment with Order
5
+ :profile_version: 2.2.1
6
+ :must_supports:
7
+ :extensions:
8
+ - :id: Appointment.basedOn.extension:AlternateReference
9
+ :slice_name: AlternateReference
10
+ :path: basedOn.extension
11
+ :url: http://hl7.org/fhir/StructureDefinition/alternate-reference
12
+ :modifier_extension: false
13
+ :slices:
14
+ - :slice_id: Appointment.participant:Patient
15
+ :slice_name: Patient
16
+ :path: participant
17
+ :discriminator:
18
+ :type: referenceTarget
19
+ :path: type
20
+ :resource_type: Patient
21
+ - :slice_id: Appointment.participant:PrimaryPerformer
22
+ :slice_name: PrimaryPerformer
23
+ :path: participant
24
+ :discriminator:
25
+ :type: patternCodeableConcept
26
+ :path: type
27
+ :code: PPRF
28
+ :system: http://terminology.hl7.org/CodeSystem/v3-ParticipationType
29
+ :elements:
30
+ - :path: basedOn
31
+ :types:
32
+ - Reference
33
+ :target_profiles:
34
+ - http://hl7.org/fhir/us/davinci-crd/StructureDefinition/profile-servicerequest
35
+ - :path: contained
36
+ - :path: end
37
+ - :path: participant.actor
38
+ :types:
39
+ - Reference
40
+ :allowed_target_profiles:
41
+ - http://hl7.org/fhir/StructureDefinition/Patient|4.0.1
42
+ - http://hl7.org/fhir/StructureDefinition/Practitioner|4.0.1
43
+ - http://hl7.org/fhir/StructureDefinition/PractitionerRole|4.0.1
44
+ - http://hl7.org/fhir/StructureDefinition/RelatedPerson|4.0.1
45
+ - http://hl7.org/fhir/StructureDefinition/Device|4.0.1
46
+ - http://hl7.org/fhir/StructureDefinition/HealthcareService|4.0.1
47
+ - http://hl7.org/fhir/StructureDefinition/Location|4.0.1
48
+ - :path: participant.status
49
+ - :path: participant:Patient.actor
50
+ :types:
51
+ - Reference
52
+ :target_profiles:
53
+ - http://hl7.org/fhir/us/davinci-crd/StructureDefinition/profile-patient
54
+ - :path: participant:Patient.status
55
+ - :path: participant:PrimaryPerformer.actor
56
+ :types:
57
+ - Reference
58
+ :allowed_target_profiles:
59
+ - http://hl7.org/fhir/us/davinci-crd/StructureDefinition/profile-practitioner
60
+ - http://hl7.org/fhir/us/davinci-hrex/StructureDefinition/hrex-practitionerrole
61
+ - http://hl7.org/fhir/us/davinci-crd/StructureDefinition/profile-location
62
+ - :path: participant:PrimaryPerformer.status
63
+ - :path: requestedPeriod
64
+ - :path: start
65
+ - :path: status
66
+ :choices: []
67
+ :recursive_elements: []
@@ -0,0 +1,150 @@
1
+ ---
2
+ :resource: Appointment
3
+ :profile_url: http://hl7.org/fhir/us/davinci-crd/StructureDefinition/profile-appointment-no-order
4
+ :profile_name: CRD Appointment without Order
5
+ :profile_version: 2.2.1
6
+ :must_supports:
7
+ :extensions:
8
+ - :id: Appointment.extension:Coverage-Information
9
+ :slice_name: Coverage-Information
10
+ :path: extension
11
+ :url: http://hl7.org/fhir/us/davinci-crd/StructureDefinition/ext-coverage-information
12
+ :modifier_extension: false
13
+ - :id: Appointment.serviceType.extension:BillingOptions
14
+ :slice_name: BillingOptions
15
+ :path: serviceType.extension
16
+ :url: http://hl7.org/fhir/us/davinci-crd/StructureDefinition/ext-billing-options
17
+ :modifier_extension: false
18
+ :slices:
19
+ - :slice_id: Appointment.participant:Patient
20
+ :slice_name: Patient
21
+ :path: participant
22
+ :discriminator:
23
+ :type: referenceTarget
24
+ :path: type
25
+ :resource_type: Patient
26
+ - :slice_id: Appointment.participant:PrimaryPerformer
27
+ :slice_name: PrimaryPerformer
28
+ :path: participant
29
+ :discriminator:
30
+ :type: patternCodeableConcept
31
+ :path: type
32
+ :code: PPRF
33
+ :system: http://terminology.hl7.org/CodeSystem/v3-ParticipationType
34
+ - :slice_id: Appointment.serviceCategory:encounterType
35
+ :slice_name: encounterType
36
+ :path: serviceCategory
37
+ :discriminator:
38
+ :type: requiredBinding
39
+ :path: ''
40
+ :values:
41
+ - :system: http://terminology.hl7.org/CodeSystem/v3-ActCode
42
+ :code: AMB
43
+ - :system: http://terminology.hl7.org/CodeSystem/v3-ActCode
44
+ :code: EMER
45
+ - :system: http://terminology.hl7.org/CodeSystem/v3-ActCode
46
+ :code: FLD
47
+ - :system: http://terminology.hl7.org/CodeSystem/v3-ActCode
48
+ :code: HH
49
+ - :system: http://terminology.hl7.org/CodeSystem/v3-ActCode
50
+ :code: IMP
51
+ - :system: http://terminology.hl7.org/CodeSystem/v3-ActCode
52
+ :code: ACUTE
53
+ - :system: http://terminology.hl7.org/CodeSystem/v3-ActCode
54
+ :code: NONAC
55
+ - :system: http://terminology.hl7.org/CodeSystem/v3-ActCode
56
+ :code: OBSENC
57
+ - :system: http://terminology.hl7.org/CodeSystem/v3-ActCode
58
+ :code: PRENC
59
+ - :system: http://terminology.hl7.org/CodeSystem/v3-ActCode
60
+ :code: SS
61
+ - :system: http://terminology.hl7.org/CodeSystem/v3-ActCode
62
+ :code: VR
63
+ - :slice_id: Appointment.serviceCategory:serviceType
64
+ :slice_name: serviceType
65
+ :path: serviceCategory
66
+ :discriminator:
67
+ :type: requiredBinding
68
+ :path: ''
69
+ :values:
70
+ - :system: https://codesystem.x12.org/005010/1365
71
+ - :slice_id: Appointment.serviceCategory:us-core
72
+ :slice_name: us-core
73
+ :path: serviceCategory
74
+ :discriminator:
75
+ :type: requiredBinding
76
+ :path: ''
77
+ :values:
78
+ - :system: http://hl7.org/fhir/us/core/CodeSystem/us-core-category
79
+ :code: sdoh
80
+ - :system: http://hl7.org/fhir/us/core/CodeSystem/us-core-category
81
+ :code: functional-status
82
+ - :system: http://hl7.org/fhir/us/core/CodeSystem/us-core-category
83
+ :code: disability-status
84
+ - :system: http://hl7.org/fhir/us/core/CodeSystem/us-core-category
85
+ :code: cognitive-status
86
+ - :system: http://hl7.org/fhir/us/core/CodeSystem/us-core-category
87
+ :code: treatment-intervention-preference
88
+ - :system: http://hl7.org/fhir/us/core/CodeSystem/us-core-category
89
+ :code: care-experience-preference
90
+ - :system: http://snomed.info/sct
91
+ :code: '386053000'
92
+ - :system: http://snomed.info/sct
93
+ :code: '410606002'
94
+ - :system: http://snomed.info/sct
95
+ :code: '108252007'
96
+ - :system: http://snomed.info/sct
97
+ :code: '363679005'
98
+ - :system: http://snomed.info/sct
99
+ :code: '409063005'
100
+ - :system: http://snomed.info/sct
101
+ :code: '409073007'
102
+ - :system: http://snomed.info/sct
103
+ :code: '387713003'
104
+ :elements:
105
+ - :path: appointmentType
106
+ - :path: contained
107
+ - :path: end
108
+ - :path: identifier
109
+ - :path: participant.actor
110
+ :types:
111
+ - Reference
112
+ :allowed_target_profiles:
113
+ - http://hl7.org/fhir/StructureDefinition/Patient|4.0.1
114
+ - http://hl7.org/fhir/StructureDefinition/Practitioner|4.0.1
115
+ - http://hl7.org/fhir/StructureDefinition/PractitionerRole|4.0.1
116
+ - http://hl7.org/fhir/StructureDefinition/RelatedPerson|4.0.1
117
+ - http://hl7.org/fhir/StructureDefinition/Device|4.0.1
118
+ - http://hl7.org/fhir/StructureDefinition/HealthcareService|4.0.1
119
+ - http://hl7.org/fhir/StructureDefinition/Location|4.0.1
120
+ - :path: participant.status
121
+ - :path: participant:Patient.actor
122
+ :types:
123
+ - Reference
124
+ :target_profiles:
125
+ - http://hl7.org/fhir/us/davinci-crd/StructureDefinition/profile-patient
126
+ - :path: participant:Patient.status
127
+ - :path: participant:PrimaryPerformer.actor
128
+ :types:
129
+ - Reference
130
+ :allowed_target_profiles:
131
+ - http://hl7.org/fhir/us/davinci-crd/StructureDefinition/profile-practitioner
132
+ - http://hl7.org/fhir/us/davinci-hrex/StructureDefinition/hrex-practitionerrole
133
+ - http://hl7.org/fhir/us/davinci-crd/StructureDefinition/profile-location
134
+ - :path: participant:PrimaryPerformer.status
135
+ - :path: reasonReference
136
+ :types:
137
+ - Reference
138
+ :allowed_target_profiles:
139
+ - http://hl7.org/fhir/StructureDefinition/Condition|4.0.1
140
+ - http://hl7.org/fhir/StructureDefinition/Procedure|4.0.1
141
+ - http://hl7.org/fhir/StructureDefinition/Observation|4.0.1
142
+ - http://hl7.org/fhir/StructureDefinition/ImmunizationRecommendation|4.0.1
143
+ - :path: requestedPeriod
144
+ - :path: serviceCategory
145
+ - :path: serviceType
146
+ - :path: specialty
147
+ - :path: start
148
+ - :path: status
149
+ :choices: []
150
+ :recursive_elements: []
@@ -0,0 +1,71 @@
1
+ ---
2
+ :resource: CommunicationRequest
3
+ :profile_url: http://hl7.org/fhir/us/davinci-crd/StructureDefinition/profile-communicationrequest
4
+ :profile_name: CRD Communication Request
5
+ :profile_version: 2.2.1
6
+ :must_supports:
7
+ :extensions:
8
+ - :id: CommunicationRequest.extension:Coverage-Information
9
+ :slice_name: Coverage-Information
10
+ :path: extension
11
+ :url: http://hl7.org/fhir/us/davinci-crd/StructureDefinition/ext-coverage-information
12
+ :modifier_extension: false
13
+ - :id: CommunicationRequest.payload.extension:codeableConcept
14
+ :slice_name: codeableConcept
15
+ :path: payload.extension
16
+ :url: http://hl7.org/fhir/5.0/StructureDefinition/extension-CommunicationRequest.payload.content
17
+ :modifier_extension: false
18
+ - :id: CommunicationRequest.payload.extension:codeableConcept.value[x].extension:BillingOptions
19
+ :slice_name: BillingOptions
20
+ :path: payload.extension.value[x].extension
21
+ :url: http://hl7.org/fhir/us/davinci-crd/StructureDefinition/ext-billing-options
22
+ :modifier_extension: false
23
+ :slices: []
24
+ :elements:
25
+ - :path: authoredOn
26
+ - :path: basedOn
27
+ :types:
28
+ - Reference
29
+ - :path: contained
30
+ - :path: identifier
31
+ - :path: occurrence[x]
32
+ - :path: payload
33
+ - :path: reasonCode
34
+ - :path: reasonReference
35
+ :types:
36
+ - Reference
37
+ :allowed_target_profiles:
38
+ - http://hl7.org/fhir/us/core/StructureDefinition/us-core-condition-problems-health-concerns|7.0.0
39
+ - http://hl7.org/fhir/us/core/StructureDefinition/us-core-condition-encounter-diagnosis|7.0.0
40
+ - http://hl7.org/fhir/us/core/StructureDefinition/us-core-diagnosticreport-lab|7.0.0
41
+ - http://hl7.org/fhir/us/core/StructureDefinition/us-core-diagnosticreport-note|7.0.0
42
+ - http://hl7.org/fhir/us/core/StructureDefinition/us-core-documentreference|7.0.0
43
+ - http://hl7.org/fhir/StructureDefinition/Observation
44
+ - :path: recipient
45
+ :types:
46
+ - Reference
47
+ :target_profiles:
48
+ - http://hl7.org/fhir/us/davinci-crd/StructureDefinition/profile-practitioner
49
+ - http://hl7.org/fhir/us/davinci-hrex/StructureDefinition/hrex-practitionerrole
50
+ - http://hl7.org/fhir/us/davinci-crd/StructureDefinition/profile-organization
51
+ - :path: requester
52
+ :types:
53
+ - Reference
54
+ :target_profiles:
55
+ - http://hl7.org/fhir/us/davinci-crd/StructureDefinition/profile-practitioner
56
+ - http://hl7.org/fhir/us/davinci-hrex/StructureDefinition/hrex-practitionerrole
57
+ - :path: sender
58
+ :types:
59
+ - Reference
60
+ :target_profiles:
61
+ - http://hl7.org/fhir/us/davinci-crd/StructureDefinition/profile-practitioner
62
+ - http://hl7.org/fhir/us/davinci-hrex/StructureDefinition/hrex-practitionerrole
63
+ - http://hl7.org/fhir/us/davinci-crd/StructureDefinition/profile-organization
64
+ - :path: status
65
+ - :path: subject
66
+ :types:
67
+ - Reference
68
+ :target_profiles:
69
+ - http://hl7.org/fhir/us/davinci-crd/StructureDefinition/profile-patient
70
+ :choices: []
71
+ :recursive_elements: []