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
@@ -11,103 +11,60 @@
11
11
  },
12
12
  {
13
13
  "name": "authentication_required",
14
- "default": "no",
15
- "options": {
16
- "list_options": [
17
- {
18
- "label": "No",
19
- "value": "no"
20
- },
21
- {
22
- "label": "Yes",
23
- "value": "yes"
24
- }
25
- ]
26
- },
27
14
  "title": "Discovery endpoint requires authentication?",
28
15
  "type": "radio",
29
16
  "value": "no"
30
17
  },
31
18
  {
32
19
  "name": "encryption_method",
33
- "default": "ES384",
34
- "description": "CDS Hooks recommends ES384 and RS384 for JWT signature verification. Select which method to use.",
35
- "options": {
36
- "list_options": [
37
- {
38
- "label": "ES384",
39
- "value": "ES384"
40
- },
41
- {
42
- "label": "RS384",
43
- "value": "RS384"
44
- }
45
- ]
46
- },
47
20
  "title": "JWT Signing Algorithm",
48
21
  "type": "radio",
49
22
  "value": "ES384"
50
23
  },
51
24
  {
52
25
  "name": "jwks_kid",
53
- "description": "The key ID of the JWKS private key to use for signing the JWTs when invoking a CDS service endpoint requiring authentication. Defaults to the first JWK in the list if no kid is supplied.",
54
- "optional": true,
55
26
  "title": "CDS Services JWKS kid",
56
27
  "type": "text",
57
28
  "value": ""
58
29
  },
59
30
  {
60
31
  "name": "any_hook_request_body",
61
- "description": "Provide a single JSON request body to submit for the hook invocation. The type of hook invoked will be inferred based on the `hook` element in the request.",
62
- "optional": true,
63
32
  "title": "Request body to use for the \"Demonstrate a Hook Response\" test",
64
33
  "type": "textarea",
65
34
  "value": "{\n \"hookInstance\": \"d1577c69-dfbe-11ad-ba6d-3e05e953b2ea\",\n \"fhirServer\": \"https://inferno.healthit.gov/reference-server/r4\",\n \"hook\": \"appointment-book\",\n \"fhirAuthorization\": {\n \"access_token\": \"SAMPLE_TOKEN\",\n \"token_type\": \"Bearer\",\n \"expires_in\": 300,\n \"scope\": \"user/Patient.read user/Observation.read\",\n \"subject\": \"cds-service\"\n },\n \"context\": {\n \"userId\": \"Practitioner/pra1234\",\n \"patientId\": \"pat015\",\n \"encounterId\": \"pat015-rad-encounter\",\n \"appointments\": {\n \"resourceType\": \"Bundle\",\n \"type\": \"collection\",\n \"total\": 2,\n \"link\": [\n {\n \"relation\": \"self\",\n \"url\": \"https://inferno.healthit.gov/reference-server/r4/Appointment?patient=pat014\"\n }\n ],\n \"entry\": [\n {\n \"fullUrl\": \"https://inferno.healthit.gov/reference-server/r4/Appointment/125\",\n \"resource\": {\n \"resourceType\": \"Appointment\",\n \"id\": \"125\",\n \"meta\": {\n \"versionId\": \"1\",\n \"lastUpdated\": \"2024-05-10T03:52:09.983+00:00\",\n \"source\": \"#KIaKP1Pfw7EVpLjl\"\n },\n \"status\": \"proposed\",\n \"serviceType\": [\n {\n \"coding\": [\n {\n \"system\": \"http://terminology.hl7.org/CodeSystem/service-type\",\n \"code\": \"183\",\n \"display\": \"Sleep Medicine\"\n }\n ]\n }\n ],\n \"appointmentType\": {\n \"coding\": [\n {\n \"system\": \"http://terminology.hl7.org/CodeSystem/v2-0276\",\n \"code\": \"FOLLOWUP\",\n \"display\": \"A follow up visit from a previous appointment\"\n }\n ]\n },\n \"description\": \"CPAP adjustments\",\n \"start\": \"2019-08-10T09:00:00Z\",\n \"end\": \"2019-08-10T11:00:00Z\",\n \"created\": \"2019-08-01\",\n \"participant\": [\n {\n \"actor\": {\n \"reference\": \"Patient/pat015\"\n },\n \"required\": \"required\",\n \"status\": \"tentative\"\n },\n {\n \"actor\": {\n \"reference\": \"Practitioner/pra1234\"\n },\n \"required\": \"required\",\n \"status\": \"accepted\"\n }\n ],\n \"requestedPeriod\": [\n {\n \"start\": \"2020-05-23\",\n \"end\": \"2020-05-23\"\n }\n ]\n },\n \"search\": {\n \"mode\": \"match\"\n }\n },\n {\n \"fullUrl\": \"https://inferno.healthit.gov/reference-server/r4/Appointment/126\",\n \"resource\": {\n \"resourceType\": \"Appointment\",\n \"id\": \"126\",\n \"meta\": {\n \"versionId\": \"1\",\n \"lastUpdated\": \"2024-05-10T03:55:17.405+00:00\",\n \"source\": \"#RTJWuip7OTKyTjG7\"\n },\n \"status\": \"proposed\",\n \"appointmentType\": {\n \"coding\": [\n {\n \"system\": \"http://terminology.hl7.org/CodeSystem/v2-0276\",\n \"code\": \"CHECKUP\",\n \"display\": \"A routine check-up, such as an annual physical\"\n }\n ]\n },\n \"description\": \"Regular physical\",\n \"start\": \"2020-08-01T11:00:00Z\",\n \"end\": \"2020-08-01T13:00:00Z\",\n \"created\": \"2019-08-01\",\n \"participant\": [\n {\n \"actor\": {\n \"reference\": \"Patient/pat015\"\n },\n \"required\": \"required\",\n \"status\": \"tentative\"\n },\n {\n \"actor\": {\n \"reference\": \"Practitioner/pra1234\"\n },\n \"required\": \"required\",\n \"status\": \"accepted\"\n }\n ],\n \"requestedPeriod\": [\n {\n \"start\": \"2021-05-23\",\n \"end\": \"2021-05-23\"\n }\n ]\n },\n \"search\": {\n \"mode\": \"match\"\n }\n }\n ]\n }\n },\n \"prefetch\": { \n \"patient\": {\n \"resourceType\": \"Patient\",\n \"id\": \"pat015\",\n \"gender\": \"male\",\n \"birthDate\": \"2015-02-23\",\n \"address\": [\n {\n \"use\": \"home\",\n \"type\": \"both\",\n \"state\": \"NY\",\n \"city\": \"Buffalo\",\n \"postalCode\": \"14210\",\n \"line\": [\"202 Burlington Road\"]\n }\n ],\n \"name\": [\n {\n \"use\": \"official\",\n \"family\": \"Oster\",\n \"given\": [\"William\", \"Hale\", \"Oster\"]\n }\n ],\n \"telecom\": [\n {\n \"system\": \"phone\",\n \"value\": \"(781) 555-5555\",\n \"use\": \"home\",\n \"rank\": 1\n },\n {\n \"system\": \"phone\",\n \"value\": \"(781) 555 5613\",\n \"use\": \"work\",\n \"rank\": 2\n },\n {\n \"system\": \"phone\",\n \"value\": \"(781) 555 8834\",\n \"use\": \"old\",\n \"period\": {\n \"end\": \"2014\"\n }\n }\n ],\n \"identifier\": [\n {\n \"use\": \"usual\",\n \"type\": {\n \"coding\": [\n {\n \"system\": \"http://terminology.hl7.org/CodeSystem/v2-0203\",\n \"code\": \"MR\"\n }\n ],\n \"text\": \"Medical Record Number\"\n },\n \"system\": \"http://hl7.org/fhir/sid/us-medicare\",\n \"value\": \"0M34355006FW\"\n }\n ]\n },\n \"coverage\": {\n \"resourceType\": \"Bundle\",\n \"id\": \"5b0be74e-9f57-4d11-a5e9-ec05fe9af42c\",\n \"meta\": {\n \"lastUpdated\": \"2024-05-10T03:56:46.942+00:00\"\n },\n \"type\": \"searchset\",\n \"total\": 1,\n \"link\": [\n {\n \"relation\": \"self\",\n \"url\": \"https://inferno.healthit.gov/reference-server/r4/Coverage?patient=pat015\"\n }\n ],\n \"entry\": [\n {\n \"fullUrl\": \"https://inferno.healthit.gov/reference-server/r4/Coverage/cov015\",\n \"resource\": {\n \"resourceType\": \"Coverage\",\n \"id\": \"cov015\",\n \"subscriberId\": \"10A3D58WH456\",\n \"beneficiary\": {\n \"reference\": \"Patient/pat015\"\n },\n \"status\": \"active\",\n \"class\": [\n {\n \"type\": {\n \"coding\": [\n {\n \"system\": \"http://terminology.hl7.org/CodeSystem/coverage-class\",\n \"code\": \"plan\"\n }\n ]\n },\n \"value\": \"Medicare Part A\"\n }\n ],\n \"payor\": [\n {\n \"reference\": \"Organization/org1234\"\n }\n ]\n },\n \"search\": {\n \"mode\": \"match\"\n }\n }\n ]\n }\n },\n \"extension\": {\n \"davinci-crd.configuration\": {\n \"coverage\": true,\n \"max-cards\": 10\n }\n }\n}"
66
35
  },
67
36
  {
68
37
  "name": "appointment_book_request_bodies",
69
- "description": "To send multiple requests, provide as a JSON list, e.g., [json_body_1, json_body_2].",
70
- "optional": true,
71
38
  "title": "Request body or bodies for invoking the `appointment-book` hook",
72
39
  "type": "textarea",
73
40
  "value": "[\n {\n \"hookInstance\": \"d1577c69-dfbe-44ad-ba6d-3e05e953b2ea\",\n \"fhirServer\": \"https://inferno.healthit.gov/reference-server/r4\",\n \"hook\": \"appointment-book\",\n \"fhirAuthorization\": {\n \"access_token\": \"SAMPLE_TOKEN\",\n \"token_type\": \"Bearer\",\n \"expires_in\": 300,\n \"scope\": \"user/Patient.read user/Observation.read\",\n \"subject\": \"cds-service\"\n },\n \"context\": {\n \"userId\": \"Practitioner/pra1234\",\n \"patientId\": \"pat015\",\n \"encounterId\": \"pat015-rad-encounter\",\n \"appointments\": {\n \"resourceType\": \"Bundle\",\n \"type\": \"collection\",\n \"total\": 1,\n \"entry\": [\n {\n \"resource\": {\n \"resourceType\": \"Appointment\",\n \"id\": \"124\",\n \"status\": \"proposed\",\n \"serviceCategory\": [\n {\n \"coding\": [\n {\n \"system\": \"http://terminology.hl7.org/CodeSystem/service-category\",\n \"code\": \"17\",\n \"display\": \"General Practice\"\n }\n ]\n }\n ],\n \"serviceType\": [\n {\n \"coding\": [\n {\n \"system\": \"http://terminology.hl7.org/CodeSystem/service-type\",\n \"code\": \"124\",\n \"display\": \"General Practice\"\n }\n ]\n }\n ],\n \"specialty\": [\n {\n \"coding\": [\n {\n \"system\": \"http://snomed.info/sct\",\n \"code\": \"394814009\",\n \"display\": \"General practice (specialty)\"\n }\n ]\n }\n ],\n \"appointmentType\": {\n \"coding\": [\n {\n \"system\": \"http://terminology.hl7.org/CodeSystem/v2-0276\",\n \"code\": \"FOLLOWUP\",\n \"display\": \"A follow up visit from a previous appointment\"\n }\n ]\n },\n \"reasonReference\": [\n {\n \"reference\": \"Condition/cond015a\",\n \"display\": \"Heart problem\"\n }\n ],\n \"priority\": 5,\n \"description\": \"Discussion on the results of your recent MRI\",\n \"start\": \"2013-12-10T09:00:00Z\",\n \"end\": \"2013-12-10T11:00:00Z\",\n \"created\": \"2013-10-10\",\n \"comment\": \"Further expand on the results of the MRI and determine the next actions that may be appropriate.\",\n \"basedOn\": [\n {\n \"reference\": \"ServiceRequest/servreq-g0180-1\"\n }\n ],\n \"participant\": [\n {\n \"actor\": {\n \"reference\": \"Patient/pat015\"\n },\n \"required\": \"required\",\n \"status\": \"accepted\"\n },\n {\n \"type\": [\n {\n \"coding\": [\n {\n \"system\": \"http://terminology.hl7.org/CodeSystem/v3-ParticipationType\",\n \"code\": \"ATND\"\n }\n ]\n }\n ],\n \"actor\": {\n \"reference\": \"Practitioner/pra1234\"\n },\n \"required\": \"required\",\n \"status\": \"accepted\"\n },\n {\n \"actor\": {\n \"reference\": \"Location/us-core-client-tests-location\",\n \"display\": \"South Wing, second floor\"\n },\n \"required\": \"required\",\n \"status\": \"accepted\"\n }\n ],\n \"requestedPeriod\": [\n {\n \"start\": \"2020-11-01\",\n \"end\": \"2020-12-15\"\n }\n ]\n }\n }\n ]\n }\n },\n \"prefetch\": {\n \"patient\": {\n \"resourceType\": \"Patient\",\n \"id\": \"pat015\",\n \"gender\": \"male\",\n \"birthDate\": \"2015-02-23\",\n \"address\": [\n {\n \"use\": \"home\",\n \"type\": \"both\",\n \"state\": \"NY\",\n \"city\": \"Buffalo\",\n \"postalCode\": \"14210\",\n \"line\": [\"202 Burlington Road\"]\n }\n ],\n \"name\": [\n {\n \"use\": \"official\",\n \"family\": \"Oster\",\n \"given\": [\"William\", \"Hale\", \"Oster\"]\n }\n ],\n \"telecom\": [\n {\n \"system\": \"phone\",\n \"value\": \"(781) 555-5555\",\n \"use\": \"home\",\n \"rank\": 1\n },\n {\n \"system\": \"phone\",\n \"value\": \"(781) 555 5613\",\n \"use\": \"work\",\n \"rank\": 2\n },\n {\n \"system\": \"phone\",\n \"value\": \"(781) 555 8834\",\n \"use\": \"old\",\n \"period\": {\n \"end\": \"2014\"\n }\n }\n ],\n \"identifier\": [\n {\n \"use\": \"usual\",\n \"type\": {\n \"coding\": [\n {\n \"system\": \"http://terminology.hl7.org/CodeSystem/v2-0203\",\n \"code\": \"MR\"\n }\n ],\n \"text\": \"Medical Record Number\"\n },\n \"system\": \"http://hl7.org/fhir/sid/us-medicare\",\n \"value\": \"0M34355006FW\"\n }\n ]\n },\n \"coverage\": {\n \"resourceType\": \"Bundle\",\n \"type\": \"searchset\",\n \"total\": 1,\n \"link\": [\n {\n \"relation\": \"self\",\n \"url\": \"https://inferno.healthit.gov/reference-server/r4/Coverage?patient=pat015\"\n }\n ],\n \"entry\": [\n {\n \"fullUrl\": \"https://inferno.healthit.gov/reference-server/r4/Coverage/cov015\",\n \"resource\": {\n \"resourceType\": \"Coverage\",\n \"id\": \"cov015\",\n \"subscriberId\": \"10A3D58WH456\",\n \"beneficiary\": {\n \"reference\": \"Patient/pat015\"\n },\n \"status\": \"active\",\n \"class\": [\n {\n \"type\": {\n \"coding\": [\n {\n \"system\": \"http://terminology.hl7.org/CodeSystem/coverage-class\",\n \"code\": \"plan\"\n }\n ]\n },\n \"value\": \"Medicare Part A\"\n }\n ],\n \"payor\": [\n {\n \"reference\": \"Organization/org1234\"\n }\n ]\n },\n \"search\": {\n \"mode\": \"match\"\n }\n }\n ]\n }\n },\n \"extension\": {\n \"davinci-crd.configuration\": {\n \"coverage\": true,\n \"max-cards\": 10\n }\n }\n },\n {\n \"hookInstance\": \"d1577c69-dfbe-55ad-ba6d-3e05e953b2ea\",\n \"fhirServer\": \"https://inferno.healthit.gov/reference-server/r4\",\n \"hook\": \"appointment-book\",\n \"fhirAuthorization\": {\n \"access_token\": \"SAMPLE_TOKEN\",\n \"token_type\": \"Bearer\",\n \"expires_in\": 300,\n \"scope\": \"user/Patient.read user/Observation.read\",\n \"subject\": \"cds-service\"\n },\n \"context\": {\n \"userId\": \"Practitioner/pra1234\",\n \"patientId\": \"pat015\",\n \"encounterId\": \"pat015-rad-encounter\",\n \"appointments\": {\n \"resourceType\": \"Bundle\",\n \"type\": \"collection\",\n \"total\": 2,\n \"entry\": [\n {\n \"resource\": {\n \"resourceType\": \"Appointment\",\n \"id\": \"125\",\n \"status\": \"proposed\",\n \"serviceType\": [\n {\n \"coding\": [\n {\n \"system\": \"http://terminology.hl7.org/CodeSystem/service-type\",\n \"code\": \"183\",\n \"display\": \"Sleep Medicine\"\n }\n ]\n }\n ],\n \"appointmentType\": {\n \"coding\": [\n {\n \"system\": \"http://terminology.hl7.org/CodeSystem/v2-0276\",\n \"code\": \"FOLLOWUP\",\n \"display\": \"A follow up visit from a previous appointment\"\n }\n ]\n },\n \"description\": \"CPAP adjustments\",\n \"start\": \"2019-08-10T09:00:00Z\",\n \"end\": \"2019-08-10T11:00:00Z\",\n \"created\": \"2019-08-01\",\n \"participant\": [\n {\n \"actor\": {\n \"reference\": \"Patient/pat015\"\n },\n \"required\": \"required\",\n \"status\": \"tentative\"\n },\n {\n \"actor\": {\n \"reference\": \"Practitioner/pra1234\"\n },\n \"required\": \"required\",\n \"status\": \"accepted\"\n }\n ],\n \"requestedPeriod\": [\n {\n \"start\": \"2020-05-23\",\n \"end\": \"2020-05-23\"\n }\n ]\n }\n },\n {\n \"resource\": {\n \"resourceType\": \"Appointment\",\n \"id\": \"126\",\n \"status\": \"proposed\",\n \"appointmentType\": {\n \"coding\": [\n {\n \"system\": \"http://terminology.hl7.org/CodeSystem/v2-0276\",\n \"code\": \"CHECKUP\",\n \"display\": \"A routine check-up, such as an annual physical\"\n }\n ]\n },\n \"description\": \"Regular physical\",\n \"start\": \"2020-08-01T11:00:00Z\",\n \"end\": \"2020-08-01T13:00:00Z\",\n \"created\": \"2019-08-01\",\n \"participant\": [\n {\n \"actor\": {\n \"reference\": \"Patient/pat015\"\n },\n \"required\": \"required\",\n \"status\": \"tentative\"\n },\n {\n \"actor\": {\n \"reference\": \"Practitioner/pra1234\"\n },\n \"required\": \"required\",\n \"status\": \"accepted\"\n }\n ],\n \"requestedPeriod\": [\n {\n \"start\": \"2021-05-23\",\n \"end\": \"2021-05-23\"\n }\n ]\n }\n }\n ]\n }\n },\n \"prefetch\": {\n \"patient\": {\n \"resourceType\": \"Patient\",\n \"id\": \"pat015\",\n \"gender\": \"male\",\n \"birthDate\": \"2015-02-23\",\n \"address\": [\n {\n \"use\": \"home\",\n \"type\": \"both\",\n \"state\": \"NY\",\n \"city\": \"Buffalo\",\n \"postalCode\": \"14210\",\n \"line\": [\"202 Burlington Road\"]\n }\n ],\n \"name\": [\n {\n \"use\": \"official\",\n \"family\": \"Oster\",\n \"given\": [\"William\", \"Hale\", \"Oster\"]\n }\n ],\n \"telecom\": [\n {\n \"system\": \"phone\",\n \"value\": \"(781) 555-5555\",\n \"use\": \"home\",\n \"rank\": 1\n },\n {\n \"system\": \"phone\",\n \"value\": \"(781) 555 5613\",\n \"use\": \"work\",\n \"rank\": 2\n },\n {\n \"system\": \"phone\",\n \"value\": \"(781) 555 8834\",\n \"use\": \"old\",\n \"period\": {\n \"end\": \"2014\"\n }\n }\n ],\n \"identifier\": [\n {\n \"use\": \"usual\",\n \"type\": {\n \"coding\": [\n {\n \"system\": \"http://terminology.hl7.org/CodeSystem/v2-0203\",\n \"code\": \"MR\"\n }\n ],\n \"text\": \"Medical Record Number\"\n },\n \"system\": \"http://hl7.org/fhir/sid/us-medicare\",\n \"value\": \"0M34355006FW\"\n }\n ]\n },\n \"coverage\": {\n \"resourceType\": \"Bundle\",\n \"type\": \"searchset\",\n \"total\": 1,\n \"link\": [\n {\n \"relation\": \"self\",\n \"url\": \"https://inferno.healthit.gov/reference-server/r4/Coverage?patient=pat015\"\n }\n ],\n \"entry\": [\n {\n \"fullUrl\": \"https://inferno.healthit.gov/reference-server/r4/Coverage/cov015\",\n \"resource\": {\n \"resourceType\": \"Coverage\",\n \"id\": \"cov015\",\n \"subscriberId\": \"10A3D58WH456\",\n \"beneficiary\": {\n \"reference\": \"Patient/pat015\"\n },\n \"status\": \"active\",\n \"class\": [\n {\n \"type\": {\n \"coding\": [\n {\n \"system\": \"http://terminology.hl7.org/CodeSystem/coverage-class\",\n \"code\": \"plan\"\n }\n ]\n },\n \"value\": \"Medicare Part A\"\n }\n ],\n \"payor\": [\n {\n \"reference\": \"Organization/org1234\"\n }\n ]\n },\n \"search\": {\n \"mode\": \"match\"\n }\n }\n ]\n }\n },\n \"extension\": {\n \"davinci-crd.configuration\": {\n \"coverage\": true,\n \"max-cards\": 10\n }\n }\n }\n]"
74
41
  },
75
42
  {
76
43
  "name": "encounter_start_request_bodies",
77
- "description": "To send multiple requests, provide as a JSON list, e.g., [json_body_1, json_body_2].",
78
- "optional": true,
79
44
  "title": "Request body or bodies for invoking the `encounter-start` hook",
80
45
  "type": "textarea",
81
46
  "value": "[\n {\n \"hookInstance\": \"f3945c69-dfbe-444f-ba6d-3e05e953b2ea\",\n \"fhirServer\": \"https://inferno.healthit.gov/reference-server/r4\",\n \"hook\": \"encounter-start\",\n \"fhirAuthorization\": {\n \"access_token\": \"SAMPLE_TOKEN\",\n \"token_type\": \"Bearer\",\n \"expires_in\": 300,\n \"scope\": \"user/Patient.read user/Practitioner.read user/Encounter.read\",\n \"subject\": \"cds-service\"\n },\n \"context\": {\n \"userId\": \"Practitioner/pra1234\",\n \"patientId\": \"pat015\",\n \"encounterId\": \"pat015-rad-encounter\"\n },\n \"prefetch\": {\n \"encounter\": {\n \"resourceType\": \"Encounter\",\n \"id\": \"pat015-rad-encounter\",\n \"status\": \"finished\",\n \"class\": {\n \"system\": \"http://terminology.hl7.org/CodeSystem/v3-ActCode\",\n \"code\": \"HH\",\n \"display\": \"home health\"\n },\n \"type\": [\n {\n \"coding\": [\n {\n \"system\": \"http://snomed.info/sct\",\n \"code\": \"185345009\",\n \"display\": \"Encounter for symptom\"\n }\n ]\n }\n ],\n \"priority\": {\n \"coding\": [\n {\n \"system\": \"http://snomed.info/sct\",\n \"code\": \"709122007\",\n \"display\": \"As soon as possible (qualifier value)\"\n }\n ]\n },\n \"subject\": {\n \"reference\": \"Patient/pat015\",\n \"display\": \"Roosevelt Theodore\"\n },\n \"participant\": [\n {\n \"individual\": {\n \"reference\": \"Practitioner/pra1234\",\n \"display\": \"Dr. Jane Doe\"\n },\n \"type\": [\n {\n \"coding\": [\n {\n \"system\": \"http://terminology.hl7.org/CodeSystem/v3-ParticipationType\",\n \"code\": \"PPRF\",\n \"display\": \"primary performer\"\n }\n ]\n }\n ]\n }\n ],\n \"length\": {\n \"value\": 56,\n \"unit\": \"minutes\",\n \"system\": \"http://unitsofmeasure.org\",\n \"code\": \"min\"\n },\n \"period\": {\n \"start\": \"2020-07-01T10:40:10+01:00\",\n \"end\": \"2020-07-01T12:40:10+01:00\"\n },\n \"reasonCode\": [\n {\n \"coding\": [\n {\n \"system\": \"http://hl7.org/fhir/sid/icd-10-cm\",\n \"code\": \"J44.9\",\n \"display\": \"Chronic obstructive pulmonary disease, unspecified\"\n }\n ]\n }\n ],\n \"diagnosis\": [\n {\n \"condition\": {\n \"reference\": \"Condition/cond015a\",\n \"display\": \"The patient is hospitalized for stroke\"\n },\n \"use\": {\n \"coding\": [\n {\n \"system\": \"http://terminology.hl7.org/CodeSystem/diagnosis-role\",\n \"code\": \"AD\",\n \"display\": \"Admission diagnosis\"\n }\n ]\n },\n \"rank\": 2\n },\n {\n \"condition\": {\n \"reference\": \"Condition/cond015a\",\n \"display\": \"The patient is hospitalized for lung condition\"\n },\n \"use\": {\n \"coding\": [\n {\n \"system\": \"http://terminology.hl7.org/CodeSystem/diagnosis-role\",\n \"code\": \"CC\",\n \"display\": \"Chief complaint\"\n }\n ]\n },\n \"rank\": 1\n }\n ],\n \"location\": [\n {\n \"location\": {\n \"display\": \"observation2c\"\n }\n }\n ]\n }\n }\n }\n]"
82
47
  },
83
48
  {
84
49
  "name": "encounter_discharge_request_bodies",
85
- "description": "To send multiple requests, provide as a JSON list, e.g., [json_body_1, json_body_2].",
86
- "optional": true,
87
50
  "title": "Request body or bodies for invoking the `encounter-discharge` hook",
88
51
  "type": "textarea",
89
52
  "value": "[\n {\n \"hookInstance\": \"f3945c69-dfbe-444f-ba6d-3e05e123b2ea\",\n \"fhirServer\": \"https://inferno.healthit.gov/reference-server/r4\",\n \"hook\": \"encounter-discharge\",\n \"fhirAuthorization\": {\n \"access_token\": \"SAMPLE_TOKEN\",\n \"token_type\": \"Bearer\",\n \"expires_in\": 300,\n \"scope\": \"user/Patient.read user/Practitioner.read user/Encounter.read\",\n \"subject\": \"cds-service\"\n },\n \"context\": {\n \"userId\": \"Practitioner/pra1234\",\n \"patientId\": \"pat015\",\n \"encounterId\": \"pat015-rad-encounter\"\n },\n \"prefetch\": {\n \"encounter\": {\n \"resourceType\": \"Encounter\",\n \"id\": \"pat015-rad-encounter\",\n \"status\": \"finished\",\n \"class\": {\n \"system\": \"http://terminology.hl7.org/CodeSystem/v3-ActCode\",\n \"code\": \"HH\",\n \"display\": \"home health\"\n },\n \"type\": [\n {\n \"coding\": [\n {\n \"system\": \"http://snomed.info/sct\",\n \"code\": \"185345009\",\n \"display\": \"Encounter for symptom\"\n }\n ]\n }\n ],\n \"priority\": {\n \"coding\": [\n {\n \"system\": \"http://snomed.info/sct\",\n \"code\": \"709122007\",\n \"display\": \"As soon as possible (qualifier value)\"\n }\n ]\n },\n \"subject\": {\n \"reference\": \"Patient/pat015\",\n \"display\": \"Roosevelt Theodore\"\n },\n \"participant\": [\n {\n \"individual\": {\n \"reference\": \"Practitioner/pra1234\",\n \"display\": \"Dr. Jane Doe\"\n },\n \"type\": [\n {\n \"coding\": [\n {\n \"system\": \"http://terminology.hl7.org/CodeSystem/v3-ParticipationType\",\n \"code\": \"PPRF\",\n \"display\": \"primary performer\"\n }\n ]\n }\n ]\n }\n ],\n \"length\": {\n \"value\": 56,\n \"unit\": \"minutes\",\n \"system\": \"http://unitsofmeasure.org\",\n \"code\": \"min\"\n },\n \"period\": {\n \"start\": \"2020-07-01T10:40:10+01:00\",\n \"end\": \"2020-07-01T12:40:10+01:00\"\n },\n \"reasonCode\": [\n {\n \"coding\": [\n {\n \"system\": \"http://hl7.org/fhir/sid/icd-10-cm\",\n \"code\": \"J44.9\",\n \"display\": \"Chronic obstructive pulmonary disease, unspecified\"\n }\n ]\n }\n ],\n \"diagnosis\": [\n {\n \"condition\": {\n \"reference\": \"Condition/cond015a\",\n \"display\": \"The patient is hospitalized for stroke\"\n },\n \"use\": {\n \"coding\": [\n {\n \"system\": \"http://terminology.hl7.org/CodeSystem/diagnosis-role\",\n \"code\": \"AD\",\n \"display\": \"Admission diagnosis\"\n }\n ]\n },\n \"rank\": 2\n },\n {\n \"condition\": {\n \"reference\": \"Condition/cond015a\",\n \"display\": \"The patient is hospitalized for lung condition\"\n },\n \"use\": {\n \"coding\": [\n {\n \"system\": \"http://terminology.hl7.org/CodeSystem/diagnosis-role\",\n \"code\": \"CC\",\n \"display\": \"Chief complaint\"\n }\n ]\n },\n \"rank\": 1\n }\n ],\n \"location\": [\n {\n \"location\": {\n \"display\": \"observation2c\"\n }\n }\n ]\n }\n }\n }\n]"
90
53
  },
91
54
  {
92
55
  "name": "order_select_request_bodies",
93
- "description": "To send multiple requests, provide as a JSON list, e.g., [json_body_1, json_body_2].",
94
- "optional": true,
95
56
  "title": "Request body or bodies for invoking the `order-select` hook",
96
57
  "type": "textarea",
97
58
  "value": "[\n {\n \"hookInstance\": \"d1577c69-dfbe-66ad-ba6d-3e05e953b2ea\",\n \"fhirServer\": \"https://inferno.healthit.gov/reference-server/r4\",\n \"hook\": \"order-select\",\n \"fhirAuthorization\": {\n \"access_token\": \"SAMPLE_TOKEN\",\n \"token_type\": \"Bearer\",\n \"expires_in\": 300,\n \"scope\": \"patient/Patient.read patient/Observation.read\",\n \"subject\": \"cds-service4\"\n },\n \"context\": {\n \"userId\": \"Practitioner/pra1234\",\n \"patientId\": \"pat015\",\n \"encounterId\": \"pat015-rad-encounter\",\n \"selections\": [\n \"MedicationRequest/pat015-mr-azathioprine\"\n ],\n \"draftOrders\": {\n \"resourceType\": \"Bundle\",\n \"type\": \"collection\",\n \"entry\": [\n {\n \"resource\": {\n \"resourceType\": \"MedicationRequest\",\n \"id\": \"pat015-mr-azathioprine\",\n \"identifier\": [\n {\n \"type\": {\n \"coding\": [\n {\n \"system\": \"http://terminology.hl7.org/CodeSystem/v2-0203\",\n \"code\": \"PLAC\"\n }\n ]\n },\n \"value\": \"25839b73-fcc9-4706-8c77-a806995b8109\"\n }\n ],\n \"status\": \"draft\",\n \"intent\": \"order\",\n \"medicationCodeableConcept\": {\n \"coding\": [\n {\n \"system\": \"http://www.nlm.nih.gov/research/umls/rxnorm\",\n \"code\": \"105611\",\n \"display\": \"azathioprine 50 MG Oral Tablet [Imuran]\"\n }\n ]\n },\n \"subject\": {\n \"reference\": \"Patient/pat015\"\n },\n \"authoredOn\": \"2020-05-11\",\n \"requester\": {\n \"reference\": \"Practitioner/pra1234\"\n },\n \"reasonCode\": [\n {\n \"coding\": [\n {\n \"system\": \"http://snomed.info/sct\",\n \"code\": \"52042003\",\n \"display\": \"Systemic lupus erythematosus glomerulonephritis syndrome, World Health Organization class V (disorder)\"\n }\n ]\n }\n ],\n \"insurance\": [\n {\n \"reference\": \"Coverage/cov015\"\n }\n ],\n \"dosageInstruction\": [\n {\n \"sequence\": 1,\n \"text\": \"50 mg PO daily for remission induction\",\n \"timing\": {\n \"repeat\": {\n \"frequency\": 1,\n \"period\": 1,\n \"periodUnit\": \"d\"\n }\n },\n \"route\": {\n \"coding\": [\n {\n \"system\": \"http://snomed.info/sct\",\n \"code\": \"26643006\",\n \"display\": \"Oral route (qualifier value)\"\n }\n ]\n },\n \"doseAndRate\": [\n {\n \"type\": {\n \"coding\": [\n {\n \"system\": \"http://terminology.hl7.org/CodeSystem/dose-rate-type\",\n \"code\": \"ordered\",\n \"display\": \"Ordered\"\n }\n ]\n },\n \"doseQuantity\": {\n \"value\": 50,\n \"unit\": \"mg\",\n \"system\": \"http://unitsofmeasure.org\",\n \"code\": \"mg\"\n }\n }\n ]\n }\n ],\n \"dispenseRequest\": {\n \"numberOfRepeatsAllowed\": 3,\n \"quantity\": {\n \"value\": 90,\n \"system\": \"http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm\",\n \"code\": \"TAB\"\n }\n }\n }\n }\n ]\n }\n },\n \"prefetch\": {\n \"coverage\": {\n \"resourceType\": \"Bundle\",\n \"type\": \"searchset\",\n \"total\": 1,\n \"link\": [\n {\n \"relation\": \"self\",\n \"url\": \"https://inferno.healthit.gov/reference-server/r4/Coverage?patient=pat015\"\n }\n ],\n \"entry\": [\n {\n \"fullUrl\": \"https://inferno.healthit.gov/reference-server/r4/Coverage/cov015\",\n \"resource\": {\n \"resourceType\": \"Coverage\",\n \"id\": \"cov015\",\n \"subscriberId\": \"10A3D58WH456\",\n \"beneficiary\": {\n \"reference\": \"Patient/pat015\"\n },\n \"status\": \"active\",\n \"class\": [\n {\n \"type\": {\n \"coding\": [\n {\n \"system\": \"http://terminology.hl7.org/CodeSystem/coverage-class\",\n \"code\": \"plan\"\n }\n ]\n },\n \"value\": \"Medicare Part A\"\n }\n ],\n \"payor\": [\n {\n \"reference\": \"Organization/org1234\"\n }\n ]\n },\n \"search\": {\n \"mode\": \"match\"\n }\n }\n ]\n }\n },\n \"extension\": {\n \"davinci-crd.configuration\": {\n \"coverage\": true,\n \"max-cards\": 10\n }\n }\n },\n {\n \"hookInstance\": \"d1577c69-dfbe-66a1-ba6d-3e05e953b2ea\",\n \"fhirServer\": \"https://inferno.healthit.gov/reference-server/r4\",\n \"hook\": \"order-select\",\n \"fhirAuthorization\": {\n \"access_token\": \"SAMPLE_TOKEN\",\n \"token_type\": \"Bearer\",\n \"expires_in\": 300,\n \"scope\": \"patient/Patient.read patient/Observation.read\",\n \"subject\": \"cds-service4\"\n },\n \"context\": {\n \"userId\": \"Practitioner/pra1234\",\n \"patientId\": \"pat015\",\n \"encounterId\": \"pat015-rad-encounter\",\n \"selections\": [\n \"MedicationRequest/pat015-mr-methotrexate\"\n ],\n \"draftOrders\": {\n \"resourceType\": \"Bundle\",\n \"type\": \"collection\",\n \"entry\": [\n {\n \"resource\": {\n \"resourceType\": \"MedicationRequest\",\n \"id\": \"pat015-mr-methotrexate\",\n \"identifier\": [\n {\n \"type\": {\n \"coding\": [\n {\n \"system\": \"http://terminology.hl7.org/CodeSystem/v2-0203\",\n \"code\": \"PLAC\"\n }\n ]\n },\n \"value\": \"9ae058cc-ffdc-4680-b39f-6a38bfde01ac\"\n }\n ],\n \"status\": \"draft\",\n \"intent\": \"order\",\n \"medicationCodeableConcept\": {\n \"coding\": [\n {\n \"system\": \"http://www.nlm.nih.gov/research/umls/rxnorm\",\n \"code\": \"105585\",\n \"display\": \"methotrexate 2.5 MG Oral Tablet\"\n }\n ]\n },\n \"subject\": {\n \"reference\": \"Patient/pat015\"\n },\n \"authoredOn\": \"2020-07-11\",\n \"requester\": {\n \"reference\": \"Practitioner/pra1234\"\n },\n \"reasonCode\": [\n {\n \"coding\": [\n {\n \"system\": \"http://snomed.info/sct\",\n \"code\": \"52042003\",\n \"display\": \"Systemic lupus erythematosus glomerulonephritis syndrome, World Health Organization class V (disorder)\"\n }\n ]\n }\n ],\n \"insurance\": [\n {\n \"reference\": \"Coverage/cov015\"\n }\n ],\n \"dosageInstruction\": [\n {\n \"sequence\": 1,\n \"text\": \"7.5 mg PO daily for remission induction\",\n \"timing\": {\n \"repeat\": {\n \"frequency\": 1,\n \"period\": 1,\n \"periodUnit\": \"d\"\n }\n },\n \"route\": {\n \"coding\": [\n {\n \"system\": \"http://snomed.info/sct\",\n \"code\": \"26643006\",\n \"display\": \"Oral route (qualifier value)\"\n }\n ]\n },\n \"doseAndRate\": [\n {\n \"type\": {\n \"coding\": [\n {\n \"system\": \"http://terminology.hl7.org/CodeSystem/dose-rate-type\",\n \"code\": \"ordered\",\n \"display\": \"Ordered\"\n }\n ]\n },\n \"doseQuantity\": {\n \"value\": 7.5,\n \"unit\": \"mg\",\n \"system\": \"http://unitsofmeasure.org\",\n \"code\": \"mg\"\n }\n }\n ]\n }\n ],\n \"dispenseRequest\": {\n \"numberOfRepeatsAllowed\": 3,\n \"quantity\": {\n \"value\": 90,\n \"system\": \"http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm\",\n \"code\": \"TAB\"\n }\n }\n }\n }\n ]\n }\n },\n \"prefetch\": {\n \"coverage\": {\n \"resourceType\": \"Bundle\",\n \"type\": \"searchset\",\n \"total\": 1,\n \"link\": [\n {\n \"relation\": \"self\",\n \"url\": \"https://inferno.healthit.gov/reference-server/r4/Coverage?patient=pat015\"\n }\n ],\n \"entry\": [\n {\n \"fullUrl\": \"https://inferno.healthit.gov/reference-server/r4/Coverage/cov015\",\n \"resource\": {\n \"resourceType\": \"Coverage\",\n \"id\": \"cov015\",\n \"subscriberId\": \"10A3D58WH456\",\n \"beneficiary\": {\n \"reference\": \"Patient/pat015\"\n },\n \"status\": \"active\",\n \"class\": [\n {\n \"type\": {\n \"coding\": [\n {\n \"system\": \"http://terminology.hl7.org/CodeSystem/coverage-class\",\n \"code\": \"plan\"\n }\n ]\n },\n \"value\": \"Medicare Part A\"\n }\n ],\n \"payor\": [\n {\n \"reference\": \"Organization/org1234\"\n }\n ]\n },\n \"search\": {\n \"mode\": \"match\"\n }\n }\n ]\n }\n },\n \"extension\": {\n \"davinci-crd.configuration\": {\n \"coverage\": true,\n \"max-cards\": 10\n }\n }\n }\n]"
98
59
  },
99
60
  {
100
61
  "name": "order_dispatch_request_bodies",
101
- "description": "To send multiple requests, provide as a JSON list, e.g., [json_body_1, json_body_2].",
102
- "optional": true,
103
62
  "title": "Request body or bodies for invoking the `order-dispatch` hook",
104
63
  "type": "textarea",
105
64
  "value": "[\n {\n \"hookInstance\": \"f3945c39-dfbe-444f-ba6d-3e05e123b24a\",\n \"fhirServer\": \"https://inferno.healthit.gov/reference-server/r4\",\n \"hook\": \"order-dispatch\",\n \"fhirAuthorization\": {\n \"access_token\": \"SAMPLE_TOKEN\",\n \"token_type\": \"Bearer\",\n \"expires_in\": 300,\n \"scope\": \"user/Patient.read user/Practitioner.read user/ServiceRequest.read\",\n \"subject\": \"cds-service\"\n },\n \"context\": {\n \"patientId\": \"pat015\",\n \"order\": \"ServiceRequest/servreq-g0180-1\",\n \"performer\": \"Practitioner/pra1234\"\n },\n \"prefetch\": {\n \"coverage\": {\n \"resourceType\": \"Bundle\",\n \"type\": \"searchset\",\n \"total\": 1,\n \"link\": [\n {\n \"relation\": \"self\",\n \"url\": \"https://inferno.healthit.gov/reference-server/r4/Coverage?patient=pat015\"\n }\n ],\n \"entry\": [\n {\n \"fullUrl\": \"https://inferno.healthit.gov/reference-server/r4/Coverage/cov015\",\n \"resource\": {\n \"resourceType\": \"Coverage\",\n \"id\": \"cov015\",\n \"subscriberId\": \"10A3D58WH456\",\n \"beneficiary\": {\n \"reference\": \"Patient/pat015\"\n },\n \"status\": \"active\",\n \"class\": [\n {\n \"type\": {\n \"coding\": [\n {\n \"system\": \"http://terminology.hl7.org/CodeSystem/coverage-class\",\n \"code\": \"plan\"\n }\n ]\n },\n \"value\": \"Medicare Part A\"\n }\n ],\n \"payor\": [\n {\n \"reference\": \"Organization/org1234\"\n }\n ]\n },\n \"search\": {\n \"mode\": \"match\"\n }\n }\n ]\n },\n \"order\": {\n \"resourceType\": \"ServiceRequest\",\n \"id\": \"servreq-g0180-1\",\n \"status\": \"draft\",\n \"intent\": \"order\",\n \"code\": {\n \"coding\": [\n {\n \"system\": \"https://bluebutton.cms.gov/resources/codesystem/hcpcs\",\n \"code\": \"G0180\",\n \"display\": \"Medicare-covered home health services under a home health plan of care\"\n }\n ]\n },\n \"subject\": {\n \"reference\": \"Patient/pat015\"\n },\n \"occurrenceDateTime\": \"2017-10-01\",\n \"authoredOn\": \"2017-10-04\",\n \"requester\": {\n \"display\": \"Smythe Juliette, MD\"\n },\n \"performer\": [\n {\n \"reference\": \"Practitioner/pra1234\"\n }\n ],\n \"insurance\": [\n {\n \"reference\": \"Coverage/cov015\"\n }\n ]\n },\n \"patient\": {\n \"resourceType\": \"Patient\",\n \"id\": \"pat015\",\n \"gender\": \"male\",\n \"birthDate\": \"2015-02-23\",\n \"address\": [\n {\n \"use\": \"home\",\n \"type\": \"both\",\n \"state\": \"NY\",\n \"city\": \"Buffalo\",\n \"postalCode\": \"14210\",\n \"line\": [\"202 Burlington Road\"]\n }\n ],\n \"name\": [\n {\n \"use\": \"official\",\n \"family\": \"Oster\",\n \"given\": [\"William\", \"Hale\", \"Oster\"]\n }\n ],\n \"telecom\": [\n {\n \"system\": \"phone\",\n \"value\": \"(781) 555-5555\",\n \"use\": \"home\",\n \"rank\": 1\n },\n {\n \"system\": \"phone\",\n \"value\": \"(781) 555 5613\",\n \"use\": \"work\",\n \"rank\": 2\n },\n {\n \"system\": \"phone\",\n \"value\": \"(781) 555 8834\",\n \"use\": \"old\",\n \"period\": {\n \"end\": \"2014\"\n }\n }\n ],\n \"identifier\": [\n {\n \"use\": \"usual\",\n \"type\": {\n \"coding\": [\n {\n \"system\": \"http://terminology.hl7.org/CodeSystem/v2-0203\",\n \"code\": \"MR\"\n }\n ],\n \"text\": \"Medical Record Number\"\n },\n \"system\": \"http://hl7.org/fhir/sid/us-medicare\",\n \"value\": \"0M34355006FW\"\n }\n ]\n }\n }\n },\n {\n \"hookInstance\": \"f3945c39-dfbe-444f-ba6d-3e05e123b24b\",\n \"fhirServer\": \"https://inferno.healthit.gov/reference-server/r4\",\n \"hook\": \"order-dispatch\",\n \"fhirAuthorization\": {\n \"access_token\": \"SAMPLE_TOKEN\",\n \"token_type\": \"Bearer\",\n \"expires_in\": 300,\n \"scope\": \"user/Patient.read user/Practitioner.read user/ServiceRequest.read\",\n \"subject\": \"cds-service\"\n },\n \"context\": {\n \"patientId\": \"pat015\",\n \"order\": \"DeviceRequest/devreq015\",\n \"performer\": \"Practitioner/pra1234\"\n },\n \"prefetch\": {\n \"coverage\": {\n \"resourceType\": \"Bundle\",\n \"type\": \"searchset\",\n \"total\": 1,\n \"link\": [\n {\n \"relation\": \"self\",\n \"url\": \"https://inferno.healthit.gov/reference-server/r4/Coverage?patient=pat015\"\n }\n ],\n \"entry\": [\n {\n \"fullUrl\": \"https://inferno.healthit.gov/reference-server/r4/Coverage/cov015\",\n \"resource\": {\n \"resourceType\": \"Coverage\",\n \"id\": \"cov015\",\n \"subscriberId\": \"10A3D58WH456\",\n \"beneficiary\": {\n \"reference\": \"Patient/pat015\"\n },\n \"status\": \"active\",\n \"class\": [\n {\n \"type\": {\n \"coding\": [\n {\n \"system\": \"http://terminology.hl7.org/CodeSystem/coverage-class\",\n \"code\": \"plan\"\n }\n ]\n },\n \"value\": \"Medicare Part A\"\n }\n ],\n \"payor\": [\n {\n \"reference\": \"Organization/org1234\"\n }\n ]\n },\n \"search\": {\n \"mode\": \"match\"\n }\n }\n ]\n },\n \"order\": {\n \"resourceType\": \"DeviceRequest\",\n \"id\": \"devreq015\",\n \"meta\": {\n \"profile\": [\n \"http://hl7.org/fhir/us/davinci-crd/StructureDefinition/profile-devicerequest\"\n ]\n },\n \"insurance\": [\n {\n \"reference\": \"Coverage/cov015\"\n }\n ],\n \"status\": \"draft\",\n \"codeCodeableConcept\": {\n \"coding\": [\n {\n \"system\": \"https://bluebutton.cms.gov/resources/codesystem/hcpcs\",\n \"code\": \"E0424\",\n \"display\": \"Stationary Compressed Gaseous Oxygen System, Rental\"\n }\n ]\n },\n \"subject\": {\n \"reference\": \"Patient/pat015\"\n },\n \"performer\": {\n \"reference\": \"Practitioner/pra1234\"\n },\n \"intent\": \"original-order\",\n \"occurrenceTiming\": {\n \"repeat\": {\n \"boundsDuration\": {\n \"value\": 8,\n \"unit\": \"mo\",\n \"system\": \"http://unitsofmeasure.org\",\n \"code\": \"mo\"\n }\n },\n \"code\": {\n \"text\": \"During sleep AND During exertion\"\n }\n },\n \"authoredOn\": \"2023-01-01T00:00:00Z\",\n \"requester\": {\n \"reference\": \"Practitioner/pra1234\"\n }\n },\n \"patient\": {\n \"resourceType\": \"Patient\",\n \"id\": \"pat015\",\n \"gender\": \"male\",\n \"birthDate\": \"2015-02-23\",\n \"address\": [\n {\n \"use\": \"home\",\n \"type\": \"both\",\n \"state\": \"NY\",\n \"city\": \"Buffalo\",\n \"postalCode\": \"14210\",\n \"line\": [\"202 Burlington Road\"]\n }\n ],\n \"name\": [\n {\n \"use\": \"official\",\n \"family\": \"Oster\",\n \"given\": [\"William\", \"Hale\", \"Oster\"]\n }\n ],\n \"telecom\": [\n {\n \"system\": \"phone\",\n \"value\": \"(781) 555-5555\",\n \"use\": \"home\",\n \"rank\": 1\n },\n {\n \"system\": \"phone\",\n \"value\": \"(781) 555 5613\",\n \"use\": \"work\",\n \"rank\": 2\n },\n {\n \"system\": \"phone\",\n \"value\": \"(781) 555 8834\",\n \"use\": \"old\",\n \"period\": {\n \"end\": \"2014\"\n }\n }\n ],\n \"identifier\": [\n {\n \"use\": \"usual\",\n \"type\": {\n \"coding\": [\n {\n \"system\": \"http://terminology.hl7.org/CodeSystem/v2-0203\",\n \"code\": \"MR\"\n }\n ],\n \"text\": \"Medical Record Number\"\n },\n \"system\": \"http://hl7.org/fhir/sid/us-medicare\",\n \"value\": \"0M34355006FW\"\n }\n ]\n }\n }\n }\n]"
106
65
  },
107
66
  {
108
67
  "name": "order_sign_request_bodies",
109
- "description": "To send multiple requests, provide as a JSON list, e.g., [json_body_1, json_body_2].",
110
- "optional": true,
111
68
  "title": "Request body or bodies for invoking the `order-sign` hook",
112
69
  "type": "textarea",
113
70
  "value": "[\n {\n \"hookInstance\": \"d1577c69-dfbe-77ad-ba6d-3e05e953b2ea\",\n \"fhirServer\": \"https://inferno.healthit.gov/reference-server/r4\",\n \"hook\": \"order-sign\",\n \"fhirAuthorization\": {\n \"access_token\": \"SAMPLE_TOKEN\",\n \"token_type\": \"Bearer\",\n \"expires_in\": 300,\n \"scope\": \"patient/Patient.read patient/Observation.read\",\n \"subject\": \"cds-service4\"\n },\n \"context\": {\n \"userId\": \"Practitioner/pra1234\",\n \"patientId\": \"pat015\",\n \"encounterId\": \"pat015-rad-encounter\",\n \"draftOrders\": {\n \"resourceType\": \"Bundle\",\n \"type\": \"collection\",\n \"entry\": [\n {\n \"resource\": {\n \"resourceType\": \"DeviceRequest\",\n \"id\": \"devreq-015-e0250\",\n \"identifier\": [\n {\n \"type\": {\n \"coding\": [\n {\n \"system\": \"http://terminology.hl7.org/CodeSystem/v2-0203\",\n \"code\": \"PLAC\"\n }\n ]\n },\n \"value\": \"f105372f-bbef-442c-ad7a-708fee7f8c93\"\n }\n ],\n \"status\": \"draft\",\n \"intent\": \"original-order\",\n \"codeCodeableConcept\": {\n \"coding\": [\n {\n \"system\": \"https://bluebutton.cms.gov/resources/codesystem/hcpcs\",\n \"code\": \"E0250\",\n \"display\": \"Hospital bed fixed height with any type of side rails, mattress\"\n }\n ]\n },\n \"subject\": {\n \"reference\": \"Patient/pat015\"\n },\n \"authoredOn\": \"2023-01-01T00:00:00Z\",\n \"requester\": {\n \"reference\": \"Practitioner/pra1234\"\n },\n \"performer\": {\n \"reference\": \"Practitioner/pra1234\"\n },\n \"insurance\": [\n {\n \"reference\": \"Coverage/cov015\"\n }\n ]\n }\n }\n ]\n }\n },\n \"extension\": {\n \"davinci-crd.configuration\": {\n \"alt-drug\": true\n }\n },\n \"prefetch\": {\n \"patient\": {\n \"resourceType\": \"Patient\",\n \"id\": \"pat015\",\n \"gender\": \"male\",\n \"birthDate\": \"2015-02-23\",\n \"address\": [\n {\n \"use\": \"home\",\n \"type\": \"both\",\n \"state\": \"NY\",\n \"city\": \"Buffalo\",\n \"postalCode\": \"14210\",\n \"line\": [\"202 Burlington Road\"]\n }\n ],\n \"name\": [\n {\n \"use\": \"official\",\n \"family\": \"Oster\",\n \"given\": [\"William\", \"Hale\", \"Oster\"]\n }\n ],\n \"telecom\": [\n {\n \"system\": \"phone\",\n \"value\": \"(781) 555-5555\",\n \"use\": \"home\",\n \"rank\": 1\n },\n {\n \"system\": \"phone\",\n \"value\": \"(781) 555 5613\",\n \"use\": \"work\",\n \"rank\": 2\n },\n {\n \"system\": \"phone\",\n \"value\": \"(781) 555 8834\",\n \"use\": \"old\",\n \"period\": {\n \"end\": \"2014\"\n }\n }\n ],\n \"identifier\": [\n {\n \"use\": \"usual\",\n \"type\": {\n \"coding\": [\n {\n \"system\": \"http://terminology.hl7.org/CodeSystem/v2-0203\",\n \"code\": \"MR\"\n }\n ],\n \"text\": \"Medical Record Number\"\n },\n \"system\": \"http://hl7.org/fhir/sid/us-medicare\",\n \"value\": \"0M34355006FW\"\n }\n ]\n },\n \"coverage\": {\n \"resourceType\": \"Bundle\",\n \"type\": \"searchset\",\n \"total\": 1,\n \"link\": [\n {\n \"relation\": \"self\",\n \"url\": \"https://inferno.healthit.gov/reference-server/r4/Coverage?patient=pat015\"\n }\n ],\n \"entry\": [\n {\n \"fullUrl\": \"https://inferno.healthit.gov/reference-server/r4/Coverage/cov015\",\n \"resource\": {\n \"resourceType\": \"Coverage\",\n \"id\": \"cov015\",\n \"subscriberId\": \"10A3D58WH456\",\n \"beneficiary\": {\n \"reference\": \"Patient/pat015\"\n },\n \"status\": \"active\",\n \"class\": [\n {\n \"type\": {\n \"coding\": [\n {\n \"system\": \"http://terminology.hl7.org/CodeSystem/coverage-class\",\n \"code\": \"plan\"\n }\n ]\n },\n \"value\": \"Medicare Part A\"\n }\n ],\n \"payor\": [\n {\n \"reference\": \"Organization/org1234\"\n }\n ]\n },\n \"search\": {\n \"mode\": \"match\"\n }\n }\n ]\n },\n \"user\": {\n \"resourceType\": \"Practitioner\",\n \"id\": \"pra1234\",\n \"meta\": {\n \"profile\": [\n \"http://hl7.org/fhir/us/core/StructureDefinition/us-core-practitioner\"\n ]\n },\n \"identifier\": [\n {\n \"system\": \"http://hl7.org/fhir/sid/us-npi\",\n \"value\": \"1122334455\"\n }\n ],\n \"address\": [\n {\n \"use\": \"home\",\n \"type\": \"both\",\n \"state\": \"NY\",\n \"city\": \"Buffalo\",\n \"postalCode\": \"14210\",\n \"line\": [\"840 Seneca St\"]\n }\n ],\n \"telecom\": [\n {\n \"system\": \"phone\",\n \"value\": \"716-873-1557\"\n },\n {\n \"system\": \"email\",\n \"value\": \"jane.betty@myhospital.com\"\n }\n ],\n \"name\": [\n {\n \"use\": \"official\",\n \"family\": \"Doe\",\n \"given\": [\"Jane\", \"Betty\"],\n \"prefix\": [\"Dr.\"]\n }\n ],\n \"qualification\": [\n {\n \"code\": {\n \"coding\": [\n {\n \"system\": \"http://terminology.hl7.org/CodeSystem/v2-0360\",\n \"code\": \"MD\",\n \"display\": \"Doctor of Medicine\"\n }\n ],\n \"text\": \"Doctor of Medicine\"\n },\n \"period\": {\n \"start\": \"1995\"\n },\n \"issuer\": {\n \"display\": \"Example University\"\n }\n }\n ]\n }\n }\n },\n {\n \"hookInstance\": \"d1577c69-dfbe-77a1-ba6d-3e05e953b2ea\",\n \"fhirServer\": \"https://inferno.healthit.gov/reference-server/r4\",\n \"hook\": \"order-sign\",\n \"fhirAuthorization\": {\n \"access_token\": \"SAMPLE_TOKEN\",\n \"token_type\": \"Bearer\",\n \"expires_in\": 300,\n \"scope\": \"patient/Patient.read patient/Observation.read\",\n \"subject\": \"cds-service4\"\n },\n \"context\": {\n \"userId\": \"Practitioner/pra1234\",\n \"patientId\": \"pat015\",\n \"encounterId\": \"pat015-rad-encounter\",\n \"draftOrders\": {\n \"resourceType\": \"Bundle\",\n \"type\": \"collection\",\n \"entry\": [\n {\n \"resource\": {\n \"resourceType\": \"ServiceRequest\",\n \"id\": \"servreq-g0180-1\",\n \"identifier\": [\n {\n \"type\": {\n \"coding\": [\n {\n \"system\": \"http://terminology.hl7.org/CodeSystem/v2-0203\",\n \"code\": \"PLAC\"\n }\n ]\n },\n \"value\": \"11ddab7e-1488-4848-b3d5-512d2f1e3f28\"\n }\n ],\n \"status\": \"draft\",\n \"intent\": \"order\",\n \"code\": {\n \"coding\": [\n {\n \"system\": \"https://bluebutton.cms.gov/resources/codesystem/hcpcs\",\n \"code\": \"G0180\",\n \"display\": \"Medicare-covered home health services under a home health plan of care\"\n }\n ]\n },\n \"subject\": {\n \"reference\": \"Patient/pat015\"\n },\n \"occurrenceDateTime\": \"2017-10-01\",\n \"authoredOn\": \"2017-10-04\",\n \"requester\": {\n \"display\": \"Smythe Juliette, MD\"\n },\n \"performer\": [\n {\n \"reference\": \"Practitioner/pra1234\"\n }\n ],\n \"insurance\": [\n {\n \"reference\": \"Coverage/cov015\"\n }\n ]\n }\n }\n ]\n }\n },\n \"extension\": {\n \"davinci-crd.configuration\": {\n \"alt-drug\": true,\n \"coverage\": true,\n \"dtr-clin\": true,\n \"max-cards\": 10\n }\n },\n \"prefetch\": {\n \"patient\": {\n \"resourceType\": \"Patient\",\n \"id\": \"pat015\",\n \"gender\": \"male\",\n \"birthDate\": \"2015-02-23\",\n \"address\": [\n {\n \"use\": \"home\",\n \"type\": \"both\",\n \"state\": \"NY\",\n \"city\": \"Buffalo\",\n \"postalCode\": \"14210\",\n \"line\": [\"202 Burlington Road\"]\n }\n ],\n \"name\": [\n {\n \"use\": \"official\",\n \"family\": \"Oster\",\n \"given\": [\"William\", \"Hale\", \"Oster\"]\n }\n ],\n \"telecom\": [\n {\n \"system\": \"phone\",\n \"value\": \"(781) 555-5555\",\n \"use\": \"home\",\n \"rank\": 1\n },\n {\n \"system\": \"phone\",\n \"value\": \"(781) 555 5613\",\n \"use\": \"work\",\n \"rank\": 2\n },\n {\n \"system\": \"phone\",\n \"value\": \"(781) 555 8834\",\n \"use\": \"old\",\n \"period\": {\n \"end\": \"2014\"\n }\n }\n ],\n \"identifier\": [\n {\n \"use\": \"usual\",\n \"type\": {\n \"coding\": [\n {\n \"system\": \"http://terminology.hl7.org/CodeSystem/v2-0203\",\n \"code\": \"MR\"\n }\n ],\n \"text\": \"Medical Record Number\"\n },\n \"system\": \"http://hl7.org/fhir/sid/us-medicare\",\n \"value\": \"0M34355006FW\"\n }\n ]\n },\n \"coverage\": {\n \"resourceType\": \"Bundle\",\n \"type\": \"searchset\",\n \"total\": 1,\n \"link\": [\n {\n \"relation\": \"self\",\n \"url\": \"https://inferno.healthit.gov/reference-server/r4/Coverage?patient=pat015\"\n }\n ],\n \"entry\": [\n {\n \"fullUrl\": \"https://inferno.healthit.gov/reference-server/r4/Coverage/cov015\",\n \"resource\": {\n \"resourceType\": \"Coverage\",\n \"id\": \"cov015\",\n \"subscriberId\": \"10A3D58WH456\",\n \"beneficiary\": {\n \"reference\": \"Patient/pat015\"\n },\n \"status\": \"active\",\n \"class\": [\n {\n \"type\": {\n \"coding\": [\n {\n \"system\": \"http://terminology.hl7.org/CodeSystem/coverage-class\",\n \"code\": \"plan\"\n }\n ]\n },\n \"value\": \"Medicare Part A\"\n }\n ],\n \"payor\": [\n {\n \"reference\": \"Organization/org1234\"\n }\n ]\n },\n \"search\": {\n \"mode\": \"match\"\n }\n }\n ]\n }\n }\n }\n]"