davinci_crd_test_kit 0.14.0 → 0.14.1

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 (70) hide show
  1. checksums.yaml +4 -4
  2. data/config/presets/inferno_crd_client_suite_v221.json.erb +64 -0
  3. data/config/presets/inferno_crd_server_suite_v221.json.erb +2 -2
  4. data/lib/davinci_crd_test_kit/client/endpoints/hook_request_endpoint.rb +12 -6
  5. data/lib/davinci_crd_test_kit/client/endpoints/mocked_card_responses/external_reference.json +1 -1
  6. data/lib/davinci_crd_test_kit/client/endpoints/mocked_card_responses/launch_smart_app.json +0 -7
  7. data/lib/davinci_crd_test_kit/client/v2.2.1/client_appointment_book_group.rb +8 -1
  8. data/lib/davinci_crd_test_kit/client/v2.2.1/client_encounter_discharge_group.rb +7 -1
  9. data/lib/davinci_crd_test_kit/client/v2.2.1/client_encounter_start_group.rb +7 -1
  10. data/lib/davinci_crd_test_kit/client/v2.2.1/client_hooks_group.rb +20 -0
  11. data/lib/davinci_crd_test_kit/client/v2.2.1/client_long_running_hook_group.rb +1 -1
  12. data/lib/davinci_crd_test_kit/client/v2.2.1/client_order_dispatch_group.rb +7 -1
  13. data/lib/davinci_crd_test_kit/client/v2.2.1/client_order_select_group.rb +7 -1
  14. data/lib/davinci_crd_test_kit/client/v2.2.1/client_order_sign_group.rb +7 -1
  15. data/lib/davinci_crd_test_kit/client/v2.2.1/client_registration_group.rb +6 -0
  16. data/lib/davinci_crd_test_kit/client/v2.2.1/crd_client_suite.rb +5 -0
  17. data/lib/davinci_crd_test_kit/client/v2.2.1/long_running/client_skip_long_running_attestation_test.rb +10 -5
  18. data/lib/davinci_crd_test_kit/client/v2.2.1/registration/client_service_registration_attestation_test.rb +2 -1
  19. data/lib/davinci_crd_test_kit/client/v2.2.1/verify_request/hook_request_prefetch_complete_test.rb +6 -0
  20. data/lib/davinci_crd_test_kit/client/v2.2.1/verify_response/client_display_cards_attest.rb +2 -1
  21. data/lib/davinci_crd_test_kit/cross_suite/cards_identification.rb +9 -0
  22. data/lib/davinci_crd_test_kit/cross_suite/prefetch_completeness_checker.rb +25 -11
  23. data/lib/davinci_crd_test_kit/cross_suite/requests_logical_model_validation.rb +2 -1
  24. data/lib/davinci_crd_test_kit/cross_suite/response_logical_model_validation.rb +164 -3
  25. data/lib/davinci_crd_test_kit/cross_suite/tags.rb +4 -0
  26. data/lib/davinci_crd_test_kit/requirements/generated/crd_server_v221_requirements_coverage.csv +38 -38
  27. data/lib/davinci_crd_test_kit/server/jobs/invoke_hook.rb +3 -3
  28. data/lib/davinci_crd_test_kit/server/jobs/invoke_hook_no_special_requests.rb +17 -0
  29. data/lib/davinci_crd_test_kit/server/jobs/invoke_hook_with_bad_auth.rb +14 -0
  30. data/lib/davinci_crd_test_kit/server/server_abstract_invoke_hook_test.rb +24 -6
  31. data/lib/davinci_crd_test_kit/server/server_hook_helper.rb +2 -2
  32. data/lib/davinci_crd_test_kit/server/v2.2.1/crd_server_suite.rb +3 -0
  33. data/lib/davinci_crd_test_kit/server/v2.2.1/discovery/discovery_standard_prefetch_expressions_test.rb +166 -0
  34. data/lib/davinci_crd_test_kit/server/v2.2.1/interaction/server_invoke_hook_single_request_test.rb +22 -0
  35. data/lib/davinci_crd_test_kit/server/v2.2.1/server_appointment_book_group.rb +10 -102
  36. data/lib/davinci_crd_test_kit/server/v2.2.1/server_demonstrate_hook_response_group.rb +1 -0
  37. data/lib/davinci_crd_test_kit/server/v2.2.1/server_discovery_group.rb +2 -0
  38. data/lib/davinci_crd_test_kit/server/v2.2.1/server_encounter_discharge_group.rb +10 -97
  39. data/lib/davinci_crd_test_kit/server/v2.2.1/server_encounter_start_group.rb +10 -97
  40. data/lib/davinci_crd_test_kit/server/v2.2.1/server_order_dispatch_group.rb +10 -103
  41. data/lib/davinci_crd_test_kit/server/v2.2.1/server_order_select_group.rb +12 -116
  42. data/lib/davinci_crd_test_kit/server/v2.2.1/server_order_sign_group.rb +12 -121
  43. data/lib/davinci_crd_test_kit/server/v2.2.1/specific_coverage_response_group.rb +23 -0
  44. data/lib/davinci_crd_test_kit/server/v2.2.1/specific_coverage_responses/coverage_info_reason_test.rb +108 -0
  45. data/lib/davinci_crd_test_kit/server/v2.2.1/specific_coverage_responses/coverage_not_found_group.rb +116 -0
  46. data/lib/davinci_crd_test_kit/server/v2.2.1/specific_coverage_responses/no_active_coverage_group.rb +115 -0
  47. data/lib/davinci_crd_test_kit/server/v2.2.1/specific_coverage_responses/no_member_found_group.rb +117 -0
  48. data/lib/davinci_crd_test_kit/server/v2.2.1/specific_coverage_responses/technical_issues_group.rb +121 -0
  49. data/lib/davinci_crd_test_kit/server/v2.2.1/specific_coverage_responses/technical_issues_invoke_test.rb +22 -0
  50. data/lib/davinci_crd_test_kit/server/v2.2.1/verify_request/service_request_context_validation_test.rb +1 -0
  51. data/lib/davinci_crd_test_kit/server/v2.2.1/verify_request/service_request_optional_fields_validation_test.rb +1 -0
  52. data/lib/davinci_crd_test_kit/server/v2.2.1/verify_request/service_request_required_fields_validation_test.rb +1 -0
  53. data/lib/davinci_crd_test_kit/server/v2.2.1/verify_response/additional_orders_validation_test.rb +78 -35
  54. data/lib/davinci_crd_test_kit/server/v2.2.1/verify_response/coverage_information_card_absence_test.rb +76 -0
  55. data/lib/davinci_crd_test_kit/server/v2.2.1/verify_response/coverage_information_system_action_validation_test.rb +70 -124
  56. data/lib/davinci_crd_test_kit/server/v2.2.1/verify_response/create_or_update_coverage_info_response_validation_test.rb +83 -39
  57. data/lib/davinci_crd_test_kit/server/v2.2.1/verify_response/external_reference_card_validation_test.rb +59 -17
  58. data/lib/davinci_crd_test_kit/server/v2.2.1/verify_response/form_completion_response_validation_test.rb +80 -45
  59. data/lib/davinci_crd_test_kit/server/v2.2.1/verify_response/hook_request_resource_resolution.rb +37 -0
  60. data/lib/davinci_crd_test_kit/server/v2.2.1/verify_response/instructions_card_received_test.rb +57 -6
  61. data/lib/davinci_crd_test_kit/server/v2.2.1/verify_response/launch_smart_app_card_validation_test.rb +56 -17
  62. data/lib/davinci_crd_test_kit/server/v2.2.1/verify_response/propose_alternate_request_card_validation_test.rb +52 -25
  63. data/lib/davinci_crd_test_kit/server/v2.2.1/verify_response/service_response_validation_test.rb +17 -51
  64. data/lib/davinci_crd_test_kit/server/v2.2.1/verify_response/unknown_cds_hooks_elements_test.rb +1 -1
  65. data/lib/davinci_crd_test_kit/server/v2.2.1/verify_response/unknown_configuration_test.rb +1 -1
  66. data/lib/davinci_crd_test_kit/server/v2.2.1/verify_response/unknown_context_test.rb +1 -1
  67. data/lib/davinci_crd_test_kit/version.rb +2 -2
  68. metadata +18 -8
  69. data/lib/davinci_crd_test_kit/server/v2.2.1/verify_response/card_optional_fields_validation_test.rb +0 -57
  70. data/lib/davinci_crd_test_kit/server/v2.2.1/verify_response/coverage_information_system_action_received_test.rb +0 -65
@@ -45,7 +45,7 @@
45
45
  "description": "Provide a [custom response template](https://github.com/inferno-framework/davinci-crd-test-kit/wiki/Controlling-Simulated-Responses#tester-directed-custom-responses) in JSON form for Inferno to use when responding to hook invocations.",
46
46
  "title": "Custom response template for encounter-start hook requests",
47
47
  "type": "textarea",
48
- "value": "{\n \"cards\": [\n {\n \"summary\": \"Encounter Start Launch SMART Application Card\",\n \"detail\": \"This is a Launch SMART Application Card which can cause the launching of SMART apps to occur in the context in which they are relevant to patient care and/or to payment-related decision-making.\",\n \"indicator\": \"info\",\n \"source\": {\n \"label\": \"Inferno\",\n \"url\": \"https://inferno.healthit.gov/\",\n \"topic\": {\n \"system\": \"http://terminology.hl7.org/CodeSystem/cdshooks-card-type\",\n \"code\": \"coverage-info\",\n \"display\": \"Coverage Information\"\n }\n },\n \"selectionBehavior\": \"any\",\n \"suggestions\": [\n {\n \"label\": \"Inferno placeholder suggestion\",\n \"uuid\": \"5abc166b-c50f-4df4-bdb1-2b0b62cb8e56\"\n }\n ],\n \"links\": [\n {\n \"label\": \"Inferno\",\n \"url\": \"<%= Inferno::Application['base_url'] %>/custom/smart/launch\",\n \"type\": \"smart\"\n }\n ],\n \"uuid\": \"daf166dd-d7fa-4c74-ba80-71bc41c9efc1\"\n },\n {\n \"summary\": \"Encounter Start External Reference Card\",\n \"detail\": \"This is an External Reference Card containing one or more links to external web pages, PDFs, or other resources that provide relevant coverage information.\",\n \"indicator\": \"info\",\n \"source\": {\n \"label\": \"Inferno\",\n \"url\": \"https://inferno.healthit.gov/\",\n \"topic\": {\n \"system\": \"http://terminology.hl7.org/CodeSystem/cdshooks-card-type\",\n \"code\": \"guideline\",\n \"display\": \"Guideline\"\n }\n },\n \"links\": [\n {\n \"label\": \"CRD IG External Reference Card Info\",\n \"url\": \"https://build.fhir.org/ig/HL7/davinci-crd/cards.html#external-reference\",\n \"type\": \"absolute\"\n }\n ],\n \"uuid\": \"c7bd850d-9d83-4056-aa0d-d887e6b68aed\"\n },\n {\n \"summary\": \"Encounter Start Instructions Card\",\n \"detail\": \"This is an Instructions card containing textual guidance to display to the user making the decisions.\",\n \"indicator\": \"info\",\n \"source\": {\n \"label\": \"Inferno\",\n \"url\": \"https://inferno.healthit.gov/\",\n \"topic\": {\n \"system\": \"http://terminology.hl7.org/CodeSystem/cdshooks-card-type\",\n \"code\": \"coverage-info\",\n \"display\": \"Coverage Information\"\n }\n },\n \"uuid\": \"1ab5f527-b173-4e5c-ad1f-56b4c4fe439a\"\n },\n {\n \"summary\": \"Encounter Start Create/Update Coverage Information Card (Complete Prefetch)\",\n \"detail\": \"This is an update to the coverage indicating an end date one year from today\",\n \"indicator\": \"info\",\n \"source\": {\n \"label\": \"Inferno\",\n \"url\": \"https://inferno.healthit.gov/\",\n \"topic\": {\n \"system\": \"http://terminology.hl7.org/CodeSystem/cdshooks-card-type\",\n \"code\": \"coverage-info\",\n \"display\": \"Coverage Information\"\n }\n },\n \"selectionBehavior\": \"any\",\n \"suggestions\": [\n {\n \"label\": \"Create/Update coverage information\",\n \"uuid\": \"5abc166b-c51f-4df4-bdb1-2b0b62bb8e45\",\n \"actions\": [\n {\n \"type\": \"update\",\n \"description\": \"Update current coverage record\",\n \"resource\": {\n \"resourceType\": \"Coverage\",\n \"id\": \"crd221-demo-coverage-complete-prefetch\",\n \"subscriberId\": \"10A3D58WH456\",\n \"relationship\": {\n \"coding\": [\n {\n \"system\": \"http://terminology.hl7.org/CodeSystem/subscriber-relationship\",\n \"code\": \"self\"\n }\n ]\n },\n \"beneficiary\": {\n \"reference\": \"Patient/crd221-demo-patient\"\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 \"period\": {\n \"end\": \"{{today() + 365 days}}\"\n },\n \"payor\": [\n {\n \"reference\": \"Organization/crd221-demo-payer-complete-prefetch\"\n }\n ]\n }\n }\n ]\n }\n ],\n \"uuid\": \"ac669633-6c4f-4599-b60b-e840ce0be625\",\n \"extension\": {\n \"com.inferno.includeForServices\": \"encounter-start-service\"\n }\n },\n {\n \"summary\": \"Encounter Start Create/Update Coverage Information Card (Subset Prefetch)\",\n \"detail\": \"This is an update to the coverage indicating an end date one year from today\",\n \"indicator\": \"info\",\n \"source\": {\n \"label\": \"Inferno\",\n \"url\": \"https://inferno.healthit.gov/\",\n \"topic\": {\n \"system\": \"http://terminology.hl7.org/CodeSystem/cdshooks-card-type\",\n \"code\": \"coverage-info\",\n \"display\": \"Coverage Information\"\n }\n },\n \"selectionBehavior\": \"any\",\n \"suggestions\": [\n {\n \"label\": \"Create/Update coverage information\",\n \"uuid\": \"5abc166b-c51f-4df4-bdb1-2b0b62bb8e45\",\n \"actions\": [\n {\n \"type\": \"update\",\n \"description\": \"Update current coverage record\",\n \"resource\": {\n \"resourceType\": \"Coverage\",\n \"id\": \"crd221-demo-coverage-subset-prefetch\",\n \"subscriberId\": \"10A3D58WH456\",\n \"relationship\": {\n \"coding\": [\n {\n \"system\": \"http://terminology.hl7.org/CodeSystem/subscriber-relationship\",\n \"code\": \"self\"\n }\n ]\n },\n \"beneficiary\": {\n \"reference\": \"Patient/crd221-demo-patient\"\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 \"period\": {\n \"end\": \"{{today() + 365 days}}\"\n },\n \"payor\": [\n {\n \"reference\": \"Organization/crd221-demo-payer-subset-prefetch\"\n }\n ]\n }\n }\n ]\n }\n ],\n \"uuid\": \"ac669633-6c4f-4599-b60b-e840ce0be625\",\n \"extension\": {\n \"com.inferno.includeForServices\": \"encounter-start-subset\"\n }\n },\n {\n \"summary\": \"Encounter Start Request Form Completion Card (Complete Prefetch)\",\n \"detail\": \"This is a Request Form Completion Card which indicates that there are forms that need to be completed.\",\n \"indicator\": \"info\",\n \"source\": {\n \"label\": \"Inferno\",\n \"url\": \"https://inferno.healthit.gov/\",\n \"topic\": {\n \"system\": \"http://terminology.hl7.org/CodeSystem/cdshooks-card-type\",\n \"code\": \"coverage-info\",\n \"display\": \"Coverage Information\"\n }\n },\n \"selectionBehavior\": \"any\",\n \"suggestions\": [\n {\n \"label\": \"Add 'completion of the ABC form' to your task list (possibly for reassignment)\",\n \"uuid\": \"5abc166b-c51f-4df4-bdb1-2b0b62cb8e45\",\n \"actions\": [\n {\n \"type\": \"create\",\n \"description\": \"Add version 2 of the XYZ form to the clinical system's repository (if it doesn't already exist)\",\n \"resource\": {\n \"resourceType\": \"Questionnaire\",\n \"id\": \"XYZ\",\n \"url\": \"http://inferno.healthit.gov/davinci-crd-test-kit/forms/XYZ\",\n \"title\": \"Cancer Quality Forum Questionnaire XYZ\",\n \"version\": \"2\",\n \"status\": \"active\",\n \"subjectType\": [\n \"Patient\"\n ],\n \"date\": \"2012-01\",\n \"item\": [\n {\n \"linkId\": \"1\",\n \"code\": [\n {\n \"system\": \"http://inferno.healthit.gov/davinci-crd-test-kit/code/sections\",\n \"code\": \"COMORBIDITY\"\n }\n ],\n \"type\": \"group\",\n \"item\": [\n {\n \"linkId\": \"1.1\",\n \"code\": [\n {\n \"system\": \"http://inferno.healthit.gov/davinci-crd-test-kit/code/questions\",\n \"code\": \"COMORB\"\n }\n ],\n \"prefix\": \"1\",\n \"type\": \"choice\",\n \"answerValueSet\": \"http://hl7.org/fhir/ValueSet/yesnodontknow\",\n \"item\": [\n {\n \"linkId\": \"1.1.1\",\n \"code\": [\n {\n \"system\": \"http://inferno.healthit.gov/davinci-crd-test-kit/code/sections\",\n \"code\": \"CARDIAL\"\n }\n ],\n \"type\": \"group\",\n \"enableWhen\": [\n {\n \"question\": \"1.1\",\n \"operator\": \"=\",\n \"answerCoding\": {\n \"system\": \"http://terminology.hl7.org/CodeSystem/v2-0136\",\n \"code\": \"Y\"\n }\n }\n ],\n \"item\": [\n {\n \"linkId\": \"1.1.1.1\",\n \"code\": [\n {\n \"system\": \"http://inferno.healthit.gov/davinci-crd-test-kit/code/questions\",\n \"code\": \"COMORBCAR\"\n }\n ],\n \"prefix\": \"1.1\",\n \"type\": \"choice\",\n \"answerValueSet\": \"http://hl7.org/fhir/ValueSet/yesnodontknow\",\n \"item\": [\n {\n \"linkId\": \"1.1.1.1.1\",\n \"code\": [\n {\n \"system\": \"http://inferno.healthit.gov/davinci-crd-test-kit/code/questions\",\n \"code\": \"COMCAR00\",\n \"display\": \"Angina Pectoris\"\n },\n {\n \"system\": \"http://snomed.info/sct\",\n \"code\": \"194828000\",\n \"display\": \"Angina (disorder)\"\n }\n ],\n \"prefix\": \"1.1.1\",\n \"type\": \"choice\",\n \"answerValueSet\": \"http://hl7.org/fhir/ValueSet/yesnodontknow\"\n },\n {\n \"linkId\": \"1.1.1.1.2\",\n \"code\": [\n {\n \"system\": \"http://snomed.info/sct\",\n \"code\": \"22298006\",\n \"display\": \"Myocardial infarction (disorder)\"\n }\n ],\n \"prefix\": \"1.1.2\",\n \"type\": \"choice\",\n \"answerValueSet\": \"http://hl7.org/fhir/ValueSet/yesnodontknow\"\n }\n ]\n },\n {\n \"linkId\": \"1.1.1.2\",\n \"code\": [\n {\n \"system\": \"http://inferno.healthit.gov/davinci-crd-test-kit/code/questions\",\n \"code\": \"COMORBVAS\"\n }\n ],\n \"prefix\": \"1.2\",\n \"type\": \"choice\",\n \"answerValueSet\": \"http://hl7.org/fhir/ValueSet/yesnodontknow\"\n }\n ]\n }\n ]\n }\n ]\n },\n {\n \"linkId\": \"2\",\n \"code\": [\n {\n \"system\": \"http://inferno.healthit.gov/davinci-crd-test-kit/code/sections\",\n \"code\": \"HISTOPATHOLOGY\"\n }\n ],\n \"type\": \"group\",\n \"item\": [\n {\n \"linkId\": \"2.1\",\n \"code\": [\n {\n \"system\": \"http://inferno.healthit.gov/davinci-crd-test-kit/code/sections\",\n \"code\": \"ABDOMINAL\"\n }\n ],\n \"type\": \"group\",\n \"item\": [\n {\n \"linkId\": \"2.1.2\",\n \"code\": [\n {\n \"system\": \"http://inferno.healthit.gov/davinci-crd-test-kit/code/questions\",\n \"code\": \"STADPT\",\n \"display\": \"pT category\"\n }\n ],\n \"type\": \"choice\"\n }\n ]\n }\n ]\n }\n ]\n },\n \"extension\": {\n \"davinci-crd.if-none-exist\": \"url=<%= Inferno::Application['base_url'] %>/custom/crd_server_v221/fhir/Questionnaire?url=http://inferno.healthit.gov/davinci-crd-test-kit/forms/XYZ\\u0026version=2\"\n }\n },\n {\n \"type\": \"create\",\n \"description\": \"Add 'Complete ABC form' to the task list\",\n \"resource\": {\n \"resourceType\": \"Task\",\n \"status\": \"ready\",\n \"intent\": \"order\",\n \"code\": {\n \"coding\": [\n {\n \"system\": \"http://hl7.org/fhir/uv/sdc/CodeSystem/temp\",\n \"code\": \"complete-questionnaire\"\n }\n ]\n },\n \"description\": \"Complete XYZ form for local retention\",\n \"for\": {\n \"reference\": \"Patient/{{context.patientId}}\"\n },\n \"authoredOn\": \"{{today()}}\",\n \"requester\": {\n \"reference\": \"Organization/crd221-demo-payer-complete-prefetch\"\n },\n \"input\": [\n {\n \"type\": {\n \"text\": \"questionnaire\",\n \"coding\": [\n {\n \"system\": \"http://hl7.org/fhir/uv/sdc/CodeSystem/temp\",\n \"code\": \"questionnaire\"\n }\n ]\n },\n \"valueCanonical\": \"http://inferno.healthit.gov/davinci-crd-test-kit/forms/XYZ\"\n }\n ],\n \"id\": \"779579bd-2a55-41a1-8487-c372fd02e9e8\"\n }\n }\n ]\n }\n ],\n \"uuid\": \"5abc166b-c50f-4df4-bdb1-2b0b62cb8e45\",\n \"extension\": {\n \"com.inferno.includeForServices\": \"encounter-start-service\"\n }\n },\n {\n \"summary\": \"Encounter Start Request Form Completion Card (Subset Prefetch)\",\n \"detail\": \"This is a Request Form Completion Card which indicates that there are forms that need to be completed.\",\n \"indicator\": \"info\",\n \"source\": {\n \"label\": \"Inferno\",\n \"url\": \"https://inferno.healthit.gov/\",\n \"topic\": {\n \"system\": \"http://terminology.hl7.org/CodeSystem/cdshooks-card-type\",\n \"code\": \"coverage-info\",\n \"display\": \"Coverage Information\"\n }\n },\n \"selectionBehavior\": \"any\",\n \"suggestions\": [\n {\n \"label\": \"Add 'completion of the ABC form' to your task list (possibly for reassignment)\",\n \"uuid\": \"5abc166b-c51f-4df4-bdb1-2b0b62cb8e45\",\n \"actions\": [\n {\n \"type\": \"create\",\n \"description\": \"Add version 2 of the XYZ form to the clinical system's repository (if it doesn't already exist)\",\n \"resource\": {\n \"resourceType\": \"Questionnaire\",\n \"id\": \"XYZ\",\n \"url\": \"http://inferno.healthit.gov/davinci-crd-test-kit/forms/XYZ\",\n \"title\": \"Cancer Quality Forum Questionnaire XYZ\",\n \"version\": \"2\",\n \"status\": \"active\",\n \"subjectType\": [\n \"Patient\"\n ],\n \"date\": \"2012-01\",\n \"item\": [\n {\n \"linkId\": \"1\",\n \"code\": [\n {\n \"system\": \"http://inferno.healthit.gov/davinci-crd-test-kit/code/sections\",\n \"code\": \"COMORBIDITY\"\n }\n ],\n \"type\": \"group\",\n \"item\": [\n {\n \"linkId\": \"1.1\",\n \"code\": [\n {\n \"system\": \"http://inferno.healthit.gov/davinci-crd-test-kit/code/questions\",\n \"code\": \"COMORB\"\n }\n ],\n \"prefix\": \"1\",\n \"type\": \"choice\",\n \"answerValueSet\": \"http://hl7.org/fhir/ValueSet/yesnodontknow\",\n \"item\": [\n {\n \"linkId\": \"1.1.1\",\n \"code\": [\n {\n \"system\": \"http://inferno.healthit.gov/davinci-crd-test-kit/code/sections\",\n \"code\": \"CARDIAL\"\n }\n ],\n \"type\": \"group\",\n \"enableWhen\": [\n {\n \"question\": \"1.1\",\n \"operator\": \"=\",\n \"answerCoding\": {\n \"system\": \"http://terminology.hl7.org/CodeSystem/v2-0136\",\n \"code\": \"Y\"\n }\n }\n ],\n \"item\": [\n {\n \"linkId\": \"1.1.1.1\",\n \"code\": [\n {\n \"system\": \"http://inferno.healthit.gov/davinci-crd-test-kit/code/questions\",\n \"code\": \"COMORBCAR\"\n }\n ],\n \"prefix\": \"1.1\",\n \"type\": \"choice\",\n \"answerValueSet\": \"http://hl7.org/fhir/ValueSet/yesnodontknow\",\n \"item\": [\n {\n \"linkId\": \"1.1.1.1.1\",\n \"code\": [\n {\n \"system\": \"http://inferno.healthit.gov/davinci-crd-test-kit/code/questions\",\n \"code\": \"COMCAR00\",\n \"display\": \"Angina Pectoris\"\n },\n {\n \"system\": \"http://snomed.info/sct\",\n \"code\": \"194828000\",\n \"display\": \"Angina (disorder)\"\n }\n ],\n \"prefix\": \"1.1.1\",\n \"type\": \"choice\",\n \"answerValueSet\": \"http://hl7.org/fhir/ValueSet/yesnodontknow\"\n },\n {\n \"linkId\": \"1.1.1.1.2\",\n \"code\": [\n {\n \"system\": \"http://snomed.info/sct\",\n \"code\": \"22298006\",\n \"display\": \"Myocardial infarction (disorder)\"\n }\n ],\n \"prefix\": \"1.1.2\",\n \"type\": \"choice\",\n \"answerValueSet\": \"http://hl7.org/fhir/ValueSet/yesnodontknow\"\n }\n ]\n },\n {\n \"linkId\": \"1.1.1.2\",\n \"code\": [\n {\n \"system\": \"http://inferno.healthit.gov/davinci-crd-test-kit/code/questions\",\n \"code\": \"COMORBVAS\"\n }\n ],\n \"prefix\": \"1.2\",\n \"type\": \"choice\",\n \"answerValueSet\": \"http://hl7.org/fhir/ValueSet/yesnodontknow\"\n }\n ]\n }\n ]\n }\n ]\n },\n {\n \"linkId\": \"2\",\n \"code\": [\n {\n \"system\": \"http://inferno.healthit.gov/davinci-crd-test-kit/code/sections\",\n \"code\": \"HISTOPATHOLOGY\"\n }\n ],\n \"type\": \"group\",\n \"item\": [\n {\n \"linkId\": \"2.1\",\n \"code\": [\n {\n \"system\": \"http://inferno.healthit.gov/davinci-crd-test-kit/code/sections\",\n \"code\": \"ABDOMINAL\"\n }\n ],\n \"type\": \"group\",\n \"item\": [\n {\n \"linkId\": \"2.1.2\",\n \"code\": [\n {\n \"system\": \"http://inferno.healthit.gov/davinci-crd-test-kit/code/questions\",\n \"code\": \"STADPT\",\n \"display\": \"pT category\"\n }\n ],\n \"type\": \"choice\"\n }\n ]\n }\n ]\n }\n ]\n },\n \"extension\": {\n \"davinci-crd.if-none-exist\": \"url=<%= Inferno::Application['base_url'] %>/custom/crd_server_v221/fhir/Questionnaire?url=http://inferno.healthit.gov/davinci-crd-test-kit/forms/XYZ\\u0026version=2\"\n }\n },\n {\n \"type\": \"create\",\n \"description\": \"Add 'Complete ABC form' to the task list\",\n \"resource\": {\n \"resourceType\": \"Task\",\n \"status\": \"ready\",\n \"intent\": \"order\",\n \"code\": {\n \"coding\": [\n {\n \"system\": \"http://hl7.org/fhir/uv/sdc/CodeSystem/temp\",\n \"code\": \"complete-questionnaire\"\n }\n ]\n },\n \"description\": \"Complete XYZ form for local retention\",\n \"for\": {\n \"reference\": \"Patient/{{context.patientId}}\"\n },\n \"authoredOn\": \"{{today()}}\",\n \"requester\": {\n \"reference\": \"Organization/crd221-demo-payer-subset-prefetch\"\n },\n \"input\": [\n {\n \"type\": {\n \"text\": \"questionnaire\",\n \"coding\": [\n {\n \"system\": \"http://hl7.org/fhir/uv/sdc/CodeSystem/temp\",\n \"code\": \"questionnaire\"\n }\n ]\n },\n \"valueCanonical\": \"http://inferno.healthit.gov/davinci-crd-test-kit/forms/XYZ\"\n }\n ],\n \"id\": \"779579bd-2a55-41a1-8487-c372fd02e9e8\"\n }\n }\n ]\n }\n ],\n \"uuid\": \"5abc166b-c50f-4df4-bdb1-2b0b62cb8e45\",\n \"extension\": {\n \"com.inferno.includeForServices\": \"encounter-start-subset\"\n }\n }\n ],\n \"systemActions\": [\n {\n \"type\": \"update\",\n \"description\": \"Added pa satisfied coverage information to Encounter resource (Complete Prefetch).\",\n \"resource\": {\n \"extension\": [\n {\n \"extension\": [\n {\n \"url\": \"coverage\",\n \"valueReference\": {\n \"reference\": \"Coverage/crd221-demo-coverage-complete-prefetch\"\n }\n },\n {\n \"url\": \"covered\",\n \"valueCode\": \"covered\"\n },\n {\n \"url\": \"pa-needed\",\n \"valueCode\": \"satisfied\"\n },\n {\n \"url\": \"billingCode\",\n \"valueCoding\": {\n \"system\": \"http://www.ama-assn.org/go/cpt\",\n \"code\": \"77067\"\n }\n },\n {\n \"extension\": [\n {\n \"url\": \"category\",\n \"valueCode\": \"cat-other\"\n },\n {\n \"url\": \"code\",\n \"valueCodeableConcept\": {\n \"coding\": [\n {\n \"system\": \"http://terminology.hl7.org/CodeSystem/crd-coverage-detail\",\n \"code\": \"instructions\"\n }\n ]\n }\n },\n {\n \"url\": \"value\",\n \"valueUrl\": \"https://github.com/inferno-framework/davinci-crd-test-kit/wiki\"\n },\n {\n \"url\": \"qualification\",\n \"valueString\": \"CRD Test Kit Wiki\"\n }\n ],\n \"url\": \"detail\"\n },\n {\n \"url\": \"date\",\n \"valueDate\": \"{{today()}}\"\n },\n {\n \"url\": \"coverage-assertion-id\",\n \"valueString\": \"0730da9e5a13eededb08999dcc06b89f22bdf797fa2457fc0d7c330599da1311\"\n },\n {\n \"url\": \"satisfied-pa-id\",\n \"valueString\": \"XXYYZ\"\n },\n {\n \"url\": \"contact\",\n \"valueContactDetail\": {\n \"name\": \"CRD Test Kit Wiki\",\n \"telecom\": [\n {\n \"system\": \"url\",\n \"value\": \"https://github.com/inferno-framework/davinci-crd-test-kit/wiki\"\n }\n ]\n }\n },\n {\n \"url\": \"expiry-date\",\n \"valueDate\": \"{{today() + 7 days}}\"\n }\n ],\n \"url\": \"http://hl7.org/fhir/us/davinci-crd/StructureDefinition/ext-coverage-information\"\n }\n ]\n },\n \"extension\": {\n \"com.inferno.includeForServices\": \"encounter-start-service\",\n \"com.inferno.resourceSelectionCriteria\": \"prefetch.encounter\"\n }\n },\n {\n \"type\": \"update\",\n \"description\": \"Added auth needed coverage information to Encounter resource (Subset Prefetch).\",\n \"resource\": {\n \"extension\": [\n {\n \"extension\": [\n {\n \"url\": \"coverage\",\n \"valueReference\": {\n \"reference\": \"Coverage/crd221-demo-coverage-subset-prefetch\"\n }\n },\n {\n \"url\": \"covered\",\n \"valueCode\": \"conditional\"\n },\n {\n \"url\": \"pa-needed\",\n \"valueCode\": \"auth-needed\"\n },\n {\n \"url\": \"doc-needed\",\n \"valueCode\": \"clinical\"\n },\n {\n \"url\": \"doc-purpose\",\n \"valueCode\": \"withorder\"\n },\n {\n \"url\": \"billingCode\",\n \"valueCoding\": {\n \"system\": \"http://www.ama-assn.org/go/cpt\",\n \"code\": \"77067\"\n }\n },\n {\n \"url\": \"reason\",\n \"valueCodeableConcept\": {\n \"coding\": [\n {\n \"system\": \"http://hl7.org/fhir/us/davinci-crd/CodeSystem/temp\",\n \"code\": \"auth-out-network\"\n }\n ],\n \"text\": \"Authorization is necessary if out-of-network.\"\n }\n },\n {\n \"extension\": [\n {\n \"url\": \"category\",\n \"valueCode\": \"cat-other\"\n },\n {\n \"url\": \"code\",\n \"valueCodeableConcept\": {\n \"coding\": [\n {\n \"system\": \"http://terminology.hl7.org/CodeSystem/crd-coverage-detail\",\n \"code\": \"instructions\"\n }\n ]\n }\n },\n {\n \"url\": \"value\",\n \"valueUrl\": \"https://github.com/inferno-framework/davinci-crd-test-kit/wiki\"\n },\n {\n \"url\": \"qualification\",\n \"valueString\": \"CRD Test Kit Wiki\"\n }\n ],\n \"url\": \"detail\"\n },\n {\n \"url\": \"questionnaire\",\n \"valueCanonical\": \"http://inferno.healthit.gov/davinci-crd-test-kit/forms/XYZ\"\n },\n {\n \"url\": \"dependency\",\n \"valueReference\": {\n \"reference\": \"Encounter/crd221-demo-encounter-with-performer-loc-and-org\",\n \"display\": \"non-sensical self dependency\"\n }\n },\n {\n \"url\": \"info-needed\",\n \"valueCode\": \"performer\"\n },\n {\n \"url\": \"date\",\n \"valueDate\": \"{{today()}}\"\n },\n {\n \"url\": \"coverage-assertion-id\",\n \"valueString\": \"0730da9e5a13eededb08999dcc06b89f22adf797fa2457fc0d7c330599da1311\"\n },\n {\n \"url\": \"contact\",\n \"valueContactDetail\": {\n \"name\": \"CRD Test Kit Wiki\",\n \"telecom\": [\n {\n \"system\": \"url\",\n \"value\": \"https://github.com/inferno-framework/davinci-crd-test-kit/wiki\"\n }\n ]\n }\n },\n {\n \"url\": \"expiry-date\",\n \"valueDate\": \"{{today() + 7 days}}\"\n }\n ],\n \"url\": \"http://hl7.org/fhir/us/davinci-crd/StructureDefinition/ext-coverage-information\"\n }\n ]\n },\n \"extension\": {\n \"com.inferno.includeForServices\": \"encounter-start-subset\",\n \"com.inferno.resourceSelectionCriteria\": \"prefetch.enc\"\n }\n }\n ]\n}"
48
+ "value": "{\n \"cards\": [\n {\n \"summary\": \"Encounter Start Launch SMART Application Card\",\n \"detail\": \"This is a Launch SMART Application Card which can cause the launching of SMART apps to occur in the context in which they are relevant to patient care and/or to payment-related decision-making.\",\n \"indicator\": \"info\",\n \"source\": {\n \"label\": \"Inferno\",\n \"url\": \"https://inferno.healthit.gov/\",\n \"topic\": {\n \"system\": \"http://terminology.hl7.org/CodeSystem/cdshooks-card-type\",\n \"code\": \"coverage-info\",\n \"display\": \"Coverage Information\"\n }\n },\n \"links\": [\n {\n \"label\": \"Inferno\",\n \"url\": \"<%= Inferno::Application['base_url'] %>/custom/smart/launch\",\n \"type\": \"smart\"\n }\n ],\n \"uuid\": \"daf166dd-d7fa-4c74-ba80-71bc41c9efc1\"\n },\n {\n \"summary\": \"Encounter Start External Reference Card\",\n \"detail\": \"This is an External Reference Card containing one or more links to external web pages, PDFs, or other resources that provide relevant coverage information.\",\n \"indicator\": \"info\",\n \"source\": {\n \"label\": \"Inferno\",\n \"url\": \"https://inferno.healthit.gov/\",\n \"topic\": {\n \"system\": \"http://terminology.hl7.org/CodeSystem/cdshooks-card-type\",\n \"code\": \"guideline\",\n \"display\": \"Guideline\"\n }\n },\n \"links\": [\n {\n \"label\": \"CRD IG External Reference Card Info\",\n \"url\": \"https://build.fhir.org/ig/HL7/davinci-crd/cards.html#external-reference\",\n \"type\": \"absolute\"\n }\n ],\n \"uuid\": \"c7bd850d-9d83-4056-aa0d-d887e6b68aed\"\n },\n {\n \"summary\": \"Encounter Start Instructions Card\",\n \"detail\": \"This is an Instructions card containing textual guidance to display to the user making the decisions.\",\n \"indicator\": \"info\",\n \"source\": {\n \"label\": \"Inferno\",\n \"url\": \"https://inferno.healthit.gov/\",\n \"topic\": {\n \"system\": \"http://terminology.hl7.org/CodeSystem/cdshooks-card-type\",\n \"code\": \"coverage-info\",\n \"display\": \"Coverage Information\"\n }\n },\n \"uuid\": \"1ab5f527-b173-4e5c-ad1f-56b4c4fe439a\"\n },\n {\n \"summary\": \"Encounter Start Create/Update Coverage Information Card (Complete Prefetch)\",\n \"detail\": \"This is an update to the coverage indicating an end date one year from today\",\n \"indicator\": \"info\",\n \"source\": {\n \"label\": \"Inferno\",\n \"url\": \"https://inferno.healthit.gov/\",\n \"topic\": {\n \"system\": \"http://terminology.hl7.org/CodeSystem/cdshooks-card-type\",\n \"code\": \"coverage-info\",\n \"display\": \"Coverage Information\"\n }\n },\n \"selectionBehavior\": \"any\",\n \"suggestions\": [\n {\n \"label\": \"Create/Update coverage information\",\n \"uuid\": \"5abc166b-c51f-4df4-bdb1-2b0b62bb8e45\",\n \"actions\": [\n {\n \"type\": \"update\",\n \"description\": \"Update current coverage record\",\n \"resource\": {\n \"resourceType\": \"Coverage\",\n \"id\": \"crd221-demo-coverage-complete-prefetch\",\n \"subscriberId\": \"10A3D58WH456\",\n \"relationship\": {\n \"coding\": [\n {\n \"system\": \"http://terminology.hl7.org/CodeSystem/subscriber-relationship\",\n \"code\": \"self\"\n }\n ]\n },\n \"beneficiary\": {\n \"reference\": \"Patient/crd221-demo-patient\"\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 \"period\": {\n \"end\": \"{{today() + 365 days}}\"\n },\n \"payor\": [\n {\n \"reference\": \"Organization/crd221-demo-payer-complete-prefetch\"\n }\n ]\n }\n }\n ]\n }\n ],\n \"uuid\": \"ac669633-6c4f-4599-b60b-e840ce0be625\",\n \"extension\": {\n \"com.inferno.includeForServices\": \"encounter-start-service\"\n }\n },\n {\n \"summary\": \"Encounter Start Create/Update Coverage Information Card (Subset Prefetch)\",\n \"detail\": \"This is an update to the coverage indicating an end date one year from today\",\n \"indicator\": \"info\",\n \"source\": {\n \"label\": \"Inferno\",\n \"url\": \"https://inferno.healthit.gov/\",\n \"topic\": {\n \"system\": \"http://terminology.hl7.org/CodeSystem/cdshooks-card-type\",\n \"code\": \"coverage-info\",\n \"display\": \"Coverage Information\"\n }\n },\n \"selectionBehavior\": \"any\",\n \"suggestions\": [\n {\n \"label\": \"Create/Update coverage information\",\n \"uuid\": \"5abc166b-c51f-4df4-bdb1-2b0b62bb8e45\",\n \"actions\": [\n {\n \"type\": \"update\",\n \"description\": \"Update current coverage record\",\n \"resource\": {\n \"resourceType\": \"Coverage\",\n \"id\": \"crd221-demo-coverage-subset-prefetch\",\n \"subscriberId\": \"10A3D58WH456\",\n \"relationship\": {\n \"coding\": [\n {\n \"system\": \"http://terminology.hl7.org/CodeSystem/subscriber-relationship\",\n \"code\": \"self\"\n }\n ]\n },\n \"beneficiary\": {\n \"reference\": \"Patient/crd221-demo-patient\"\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 \"period\": {\n \"end\": \"{{today() + 365 days}}\"\n },\n \"payor\": [\n {\n \"reference\": \"Organization/crd221-demo-payer-subset-prefetch\"\n }\n ]\n }\n }\n ]\n }\n ],\n \"uuid\": \"ac669633-6c4f-4599-b60b-e840ce0be625\",\n \"extension\": {\n \"com.inferno.includeForServices\": \"encounter-start-subset\"\n }\n },\n {\n \"summary\": \"Encounter Start Request Form Completion Card (Complete Prefetch)\",\n \"detail\": \"This is a Request Form Completion Card which indicates that there are forms that need to be completed.\",\n \"indicator\": \"info\",\n \"source\": {\n \"label\": \"Inferno\",\n \"url\": \"https://inferno.healthit.gov/\",\n \"topic\": {\n \"system\": \"http://terminology.hl7.org/CodeSystem/cdshooks-card-type\",\n \"code\": \"coverage-info\",\n \"display\": \"Coverage Information\"\n }\n },\n \"selectionBehavior\": \"any\",\n \"suggestions\": [\n {\n \"label\": \"Add 'completion of the ABC form' to your task list (possibly for reassignment)\",\n \"uuid\": \"5abc166b-c51f-4df4-bdb1-2b0b62cb8e45\",\n \"actions\": [\n {\n \"type\": \"create\",\n \"description\": \"Add version 2 of the XYZ form to the clinical system's repository (if it doesn't already exist)\",\n \"resource\": {\n \"resourceType\": \"Questionnaire\",\n \"id\": \"XYZ\",\n \"url\": \"http://inferno.healthit.gov/davinci-crd-test-kit/forms/XYZ\",\n \"title\": \"Cancer Quality Forum Questionnaire XYZ\",\n \"version\": \"2\",\n \"status\": \"active\",\n \"subjectType\": [\n \"Patient\"\n ],\n \"date\": \"2012-01\",\n \"item\": [\n {\n \"linkId\": \"1\",\n \"code\": [\n {\n \"system\": \"http://inferno.healthit.gov/davinci-crd-test-kit/code/sections\",\n \"code\": \"COMORBIDITY\"\n }\n ],\n \"type\": \"group\",\n \"item\": [\n {\n \"linkId\": \"1.1\",\n \"code\": [\n {\n \"system\": \"http://inferno.healthit.gov/davinci-crd-test-kit/code/questions\",\n \"code\": \"COMORB\"\n }\n ],\n \"prefix\": \"1\",\n \"type\": \"choice\",\n \"answerValueSet\": \"http://hl7.org/fhir/ValueSet/yesnodontknow\",\n \"item\": [\n {\n \"linkId\": \"1.1.1\",\n \"code\": [\n {\n \"system\": \"http://inferno.healthit.gov/davinci-crd-test-kit/code/sections\",\n \"code\": \"CARDIAL\"\n }\n ],\n \"type\": \"group\",\n \"enableWhen\": [\n {\n \"question\": \"1.1\",\n \"operator\": \"=\",\n \"answerCoding\": {\n \"system\": \"http://terminology.hl7.org/CodeSystem/v2-0136\",\n \"code\": \"Y\"\n }\n }\n ],\n \"item\": [\n {\n \"linkId\": \"1.1.1.1\",\n \"code\": [\n {\n \"system\": \"http://inferno.healthit.gov/davinci-crd-test-kit/code/questions\",\n \"code\": \"COMORBCAR\"\n }\n ],\n \"prefix\": \"1.1\",\n \"type\": \"choice\",\n \"answerValueSet\": \"http://hl7.org/fhir/ValueSet/yesnodontknow\",\n \"item\": [\n {\n \"linkId\": \"1.1.1.1.1\",\n \"code\": [\n {\n \"system\": \"http://inferno.healthit.gov/davinci-crd-test-kit/code/questions\",\n \"code\": \"COMCAR00\",\n \"display\": \"Angina Pectoris\"\n },\n {\n \"system\": \"http://snomed.info/sct\",\n \"code\": \"194828000\",\n \"display\": \"Angina (disorder)\"\n }\n ],\n \"prefix\": \"1.1.1\",\n \"type\": \"choice\",\n \"answerValueSet\": \"http://hl7.org/fhir/ValueSet/yesnodontknow\"\n },\n {\n \"linkId\": \"1.1.1.1.2\",\n \"code\": [\n {\n \"system\": \"http://snomed.info/sct\",\n \"code\": \"22298006\",\n \"display\": \"Myocardial infarction (disorder)\"\n }\n ],\n \"prefix\": \"1.1.2\",\n \"type\": \"choice\",\n \"answerValueSet\": \"http://hl7.org/fhir/ValueSet/yesnodontknow\"\n }\n ]\n },\n {\n \"linkId\": \"1.1.1.2\",\n \"code\": [\n {\n \"system\": \"http://inferno.healthit.gov/davinci-crd-test-kit/code/questions\",\n \"code\": \"COMORBVAS\"\n }\n ],\n \"prefix\": \"1.2\",\n \"type\": \"choice\",\n \"answerValueSet\": \"http://hl7.org/fhir/ValueSet/yesnodontknow\"\n }\n ]\n }\n ]\n }\n ]\n },\n {\n \"linkId\": \"2\",\n \"code\": [\n {\n \"system\": \"http://inferno.healthit.gov/davinci-crd-test-kit/code/sections\",\n \"code\": \"HISTOPATHOLOGY\"\n }\n ],\n \"type\": \"group\",\n \"item\": [\n {\n \"linkId\": \"2.1\",\n \"code\": [\n {\n \"system\": \"http://inferno.healthit.gov/davinci-crd-test-kit/code/sections\",\n \"code\": \"ABDOMINAL\"\n }\n ],\n \"type\": \"group\",\n \"item\": [\n {\n \"linkId\": \"2.1.2\",\n \"code\": [\n {\n \"system\": \"http://inferno.healthit.gov/davinci-crd-test-kit/code/questions\",\n \"code\": \"STADPT\",\n \"display\": \"pT category\"\n }\n ],\n \"type\": \"choice\"\n }\n ]\n }\n ]\n }\n ]\n },\n \"extension\": {\n \"davinci-crd.if-none-exist\": \"url=<%= Inferno::Application['base_url'] %>/custom/crd_server_v221/fhir/Questionnaire?url=http://inferno.healthit.gov/davinci-crd-test-kit/forms/XYZ\\u0026version=2\"\n }\n },\n {\n \"type\": \"create\",\n \"description\": \"Add 'Complete ABC form' to the task list\",\n \"resource\": {\n \"resourceType\": \"Task\",\n \"status\": \"ready\",\n \"intent\": \"order\",\n \"code\": {\n \"coding\": [\n {\n \"system\": \"http://hl7.org/fhir/uv/sdc/CodeSystem/temp\",\n \"code\": \"complete-questionnaire\"\n }\n ]\n },\n \"description\": \"Complete XYZ form for local retention\",\n \"for\": {\n \"reference\": \"Patient/{{context.patientId}}\"\n },\n \"authoredOn\": \"{{today()}}\",\n \"requester\": {\n \"reference\": \"Organization/crd221-demo-payer-complete-prefetch\"\n },\n \"input\": [\n {\n \"type\": {\n \"text\": \"questionnaire\",\n \"coding\": [\n {\n \"system\": \"http://hl7.org/fhir/uv/sdc/CodeSystem/temp\",\n \"code\": \"questionnaire\"\n }\n ]\n },\n \"valueCanonical\": \"http://inferno.healthit.gov/davinci-crd-test-kit/forms/XYZ\"\n }\n ],\n \"id\": \"779579bd-2a55-41a1-8487-c372fd02e9e8\"\n }\n }\n ]\n }\n ],\n \"uuid\": \"5abc166b-c50f-4df4-bdb1-2b0b62cb8e45\",\n \"extension\": {\n \"com.inferno.includeForServices\": \"encounter-start-service\"\n }\n },\n {\n \"summary\": \"Encounter Start Request Form Completion Card (Subset Prefetch)\",\n \"detail\": \"This is a Request Form Completion Card which indicates that there are forms that need to be completed.\",\n \"indicator\": \"info\",\n \"source\": {\n \"label\": \"Inferno\",\n \"url\": \"https://inferno.healthit.gov/\",\n \"topic\": {\n \"system\": \"http://terminology.hl7.org/CodeSystem/cdshooks-card-type\",\n \"code\": \"coverage-info\",\n \"display\": \"Coverage Information\"\n }\n },\n \"selectionBehavior\": \"any\",\n \"suggestions\": [\n {\n \"label\": \"Add 'completion of the ABC form' to your task list (possibly for reassignment)\",\n \"uuid\": \"5abc166b-c51f-4df4-bdb1-2b0b62cb8e45\",\n \"actions\": [\n {\n \"type\": \"create\",\n \"description\": \"Add version 2 of the XYZ form to the clinical system's repository (if it doesn't already exist)\",\n \"resource\": {\n \"resourceType\": \"Questionnaire\",\n \"id\": \"XYZ\",\n \"url\": \"http://inferno.healthit.gov/davinci-crd-test-kit/forms/XYZ\",\n \"title\": \"Cancer Quality Forum Questionnaire XYZ\",\n \"version\": \"2\",\n \"status\": \"active\",\n \"subjectType\": [\n \"Patient\"\n ],\n \"date\": \"2012-01\",\n \"item\": [\n {\n \"linkId\": \"1\",\n \"code\": [\n {\n \"system\": \"http://inferno.healthit.gov/davinci-crd-test-kit/code/sections\",\n \"code\": \"COMORBIDITY\"\n }\n ],\n \"type\": \"group\",\n \"item\": [\n {\n \"linkId\": \"1.1\",\n \"code\": [\n {\n \"system\": \"http://inferno.healthit.gov/davinci-crd-test-kit/code/questions\",\n \"code\": \"COMORB\"\n }\n ],\n \"prefix\": \"1\",\n \"type\": \"choice\",\n \"answerValueSet\": \"http://hl7.org/fhir/ValueSet/yesnodontknow\",\n \"item\": [\n {\n \"linkId\": \"1.1.1\",\n \"code\": [\n {\n \"system\": \"http://inferno.healthit.gov/davinci-crd-test-kit/code/sections\",\n \"code\": \"CARDIAL\"\n }\n ],\n \"type\": \"group\",\n \"enableWhen\": [\n {\n \"question\": \"1.1\",\n \"operator\": \"=\",\n \"answerCoding\": {\n \"system\": \"http://terminology.hl7.org/CodeSystem/v2-0136\",\n \"code\": \"Y\"\n }\n }\n ],\n \"item\": [\n {\n \"linkId\": \"1.1.1.1\",\n \"code\": [\n {\n \"system\": \"http://inferno.healthit.gov/davinci-crd-test-kit/code/questions\",\n \"code\": \"COMORBCAR\"\n }\n ],\n \"prefix\": \"1.1\",\n \"type\": \"choice\",\n \"answerValueSet\": \"http://hl7.org/fhir/ValueSet/yesnodontknow\",\n \"item\": [\n {\n \"linkId\": \"1.1.1.1.1\",\n \"code\": [\n {\n \"system\": \"http://inferno.healthit.gov/davinci-crd-test-kit/code/questions\",\n \"code\": \"COMCAR00\",\n \"display\": \"Angina Pectoris\"\n },\n {\n \"system\": \"http://snomed.info/sct\",\n \"code\": \"194828000\",\n \"display\": \"Angina (disorder)\"\n }\n ],\n \"prefix\": \"1.1.1\",\n \"type\": \"choice\",\n \"answerValueSet\": \"http://hl7.org/fhir/ValueSet/yesnodontknow\"\n },\n {\n \"linkId\": \"1.1.1.1.2\",\n \"code\": [\n {\n \"system\": \"http://snomed.info/sct\",\n \"code\": \"22298006\",\n \"display\": \"Myocardial infarction (disorder)\"\n }\n ],\n \"prefix\": \"1.1.2\",\n \"type\": \"choice\",\n \"answerValueSet\": \"http://hl7.org/fhir/ValueSet/yesnodontknow\"\n }\n ]\n },\n {\n \"linkId\": \"1.1.1.2\",\n \"code\": [\n {\n \"system\": \"http://inferno.healthit.gov/davinci-crd-test-kit/code/questions\",\n \"code\": \"COMORBVAS\"\n }\n ],\n \"prefix\": \"1.2\",\n \"type\": \"choice\",\n \"answerValueSet\": \"http://hl7.org/fhir/ValueSet/yesnodontknow\"\n }\n ]\n }\n ]\n }\n ]\n },\n {\n \"linkId\": \"2\",\n \"code\": [\n {\n \"system\": \"http://inferno.healthit.gov/davinci-crd-test-kit/code/sections\",\n \"code\": \"HISTOPATHOLOGY\"\n }\n ],\n \"type\": \"group\",\n \"item\": [\n {\n \"linkId\": \"2.1\",\n \"code\": [\n {\n \"system\": \"http://inferno.healthit.gov/davinci-crd-test-kit/code/sections\",\n \"code\": \"ABDOMINAL\"\n }\n ],\n \"type\": \"group\",\n \"item\": [\n {\n \"linkId\": \"2.1.2\",\n \"code\": [\n {\n \"system\": \"http://inferno.healthit.gov/davinci-crd-test-kit/code/questions\",\n \"code\": \"STADPT\",\n \"display\": \"pT category\"\n }\n ],\n \"type\": \"choice\"\n }\n ]\n }\n ]\n }\n ]\n },\n \"extension\": {\n \"davinci-crd.if-none-exist\": \"url=<%= Inferno::Application['base_url'] %>/custom/crd_server_v221/fhir/Questionnaire?url=http://inferno.healthit.gov/davinci-crd-test-kit/forms/XYZ\\u0026version=2\"\n }\n },\n {\n \"type\": \"create\",\n \"description\": \"Add 'Complete ABC form' to the task list\",\n \"resource\": {\n \"resourceType\": \"Task\",\n \"status\": \"ready\",\n \"intent\": \"order\",\n \"code\": {\n \"coding\": [\n {\n \"system\": \"http://hl7.org/fhir/uv/sdc/CodeSystem/temp\",\n \"code\": \"complete-questionnaire\"\n }\n ]\n },\n \"description\": \"Complete XYZ form for local retention\",\n \"for\": {\n \"reference\": \"Patient/{{context.patientId}}\"\n },\n \"authoredOn\": \"{{today()}}\",\n \"requester\": {\n \"reference\": \"Organization/crd221-demo-payer-subset-prefetch\"\n },\n \"input\": [\n {\n \"type\": {\n \"text\": \"questionnaire\",\n \"coding\": [\n {\n \"system\": \"http://hl7.org/fhir/uv/sdc/CodeSystem/temp\",\n \"code\": \"questionnaire\"\n }\n ]\n },\n \"valueCanonical\": \"http://inferno.healthit.gov/davinci-crd-test-kit/forms/XYZ\"\n }\n ],\n \"id\": \"779579bd-2a55-41a1-8487-c372fd02e9e8\"\n }\n }\n ]\n }\n ],\n \"uuid\": \"5abc166b-c50f-4df4-bdb1-2b0b62cb8e45\",\n \"extension\": {\n \"com.inferno.includeForServices\": \"encounter-start-subset\"\n }\n }\n ],\n \"systemActions\": [\n {\n \"type\": \"update\",\n \"description\": \"Added pa satisfied coverage information to Encounter resource (Complete Prefetch).\",\n \"resource\": {\n \"extension\": [\n {\n \"extension\": [\n {\n \"url\": \"coverage\",\n \"valueReference\": {\n \"reference\": \"Coverage/crd221-demo-coverage-complete-prefetch\"\n }\n },\n {\n \"url\": \"covered\",\n \"valueCode\": \"covered\"\n },\n {\n \"url\": \"pa-needed\",\n \"valueCode\": \"satisfied\"\n },\n {\n \"url\": \"billingCode\",\n \"valueCoding\": {\n \"system\": \"http://www.ama-assn.org/go/cpt\",\n \"code\": \"77067\"\n }\n },\n {\n \"extension\": [\n {\n \"url\": \"category\",\n \"valueCode\": \"cat-other\"\n },\n {\n \"url\": \"code\",\n \"valueCodeableConcept\": {\n \"coding\": [\n {\n \"system\": \"http://terminology.hl7.org/CodeSystem/crd-coverage-detail\",\n \"code\": \"instructions\"\n }\n ]\n }\n },\n {\n \"url\": \"value\",\n \"valueUrl\": \"https://github.com/inferno-framework/davinci-crd-test-kit/wiki\"\n },\n {\n \"url\": \"qualification\",\n \"valueString\": \"CRD Test Kit Wiki\"\n }\n ],\n \"url\": \"detail\"\n },\n {\n \"url\": \"date\",\n \"valueDate\": \"{{today()}}\"\n },\n {\n \"url\": \"coverage-assertion-id\",\n \"valueString\": \"0730da9e5a13eededb08999dcc06b89f22bdf797fa2457fc0d7c330599da1311\"\n },\n {\n \"url\": \"satisfied-pa-id\",\n \"valueString\": \"XXYYZ\"\n },\n {\n \"url\": \"contact\",\n \"valueContactDetail\": {\n \"name\": \"CRD Test Kit Wiki\",\n \"telecom\": [\n {\n \"system\": \"url\",\n \"value\": \"https://github.com/inferno-framework/davinci-crd-test-kit/wiki\"\n }\n ]\n }\n },\n {\n \"url\": \"expiry-date\",\n \"valueDate\": \"{{today() + 7 days}}\"\n }\n ],\n \"url\": \"http://hl7.org/fhir/us/davinci-crd/StructureDefinition/ext-coverage-information\"\n }\n ]\n },\n \"extension\": {\n \"com.inferno.includeForServices\": \"encounter-start-service\",\n \"com.inferno.resourceSelectionCriteria\": \"prefetch.encounter\"\n }\n },\n {\n \"type\": \"update\",\n \"description\": \"Added auth needed coverage information to Encounter resource (Subset Prefetch).\",\n \"resource\": {\n \"extension\": [\n {\n \"extension\": [\n {\n \"url\": \"coverage\",\n \"valueReference\": {\n \"reference\": \"Coverage/crd221-demo-coverage-subset-prefetch\"\n }\n },\n {\n \"url\": \"covered\",\n \"valueCode\": \"conditional\"\n },\n {\n \"url\": \"pa-needed\",\n \"valueCode\": \"auth-needed\"\n },\n {\n \"url\": \"doc-needed\",\n \"valueCode\": \"clinical\"\n },\n {\n \"url\": \"doc-purpose\",\n \"valueCode\": \"withorder\"\n },\n {\n \"url\": \"billingCode\",\n \"valueCoding\": {\n \"system\": \"http://www.ama-assn.org/go/cpt\",\n \"code\": \"77067\"\n }\n },\n {\n \"url\": \"reason\",\n \"valueCodeableConcept\": {\n \"coding\": [\n {\n \"system\": \"http://hl7.org/fhir/us/davinci-crd/CodeSystem/temp\",\n \"code\": \"auth-out-network\"\n }\n ],\n \"text\": \"Authorization is necessary if out-of-network.\"\n }\n },\n {\n \"extension\": [\n {\n \"url\": \"category\",\n \"valueCode\": \"cat-other\"\n },\n {\n \"url\": \"code\",\n \"valueCodeableConcept\": {\n \"coding\": [\n {\n \"system\": \"http://terminology.hl7.org/CodeSystem/crd-coverage-detail\",\n \"code\": \"instructions\"\n }\n ]\n }\n },\n {\n \"url\": \"value\",\n \"valueUrl\": \"https://github.com/inferno-framework/davinci-crd-test-kit/wiki\"\n },\n {\n \"url\": \"qualification\",\n \"valueString\": \"CRD Test Kit Wiki\"\n }\n ],\n \"url\": \"detail\"\n },\n {\n \"url\": \"questionnaire\",\n \"valueCanonical\": \"http://inferno.healthit.gov/davinci-crd-test-kit/forms/XYZ\"\n },\n {\n \"url\": \"dependency\",\n \"valueReference\": {\n \"reference\": \"Encounter/crd221-demo-encounter-with-performer-loc-and-org\",\n \"display\": \"non-sensical self dependency\"\n }\n },\n {\n \"url\": \"info-needed\",\n \"valueCode\": \"performer\"\n },\n {\n \"url\": \"date\",\n \"valueDate\": \"{{today()}}\"\n },\n {\n \"url\": \"coverage-assertion-id\",\n \"valueString\": \"0730da9e5a13eededb08999dcc06b89f22adf797fa2457fc0d7c330599da1311\"\n },\n {\n \"url\": \"contact\",\n \"valueContactDetail\": {\n \"name\": \"CRD Test Kit Wiki\",\n \"telecom\": [\n {\n \"system\": \"url\",\n \"value\": \"https://github.com/inferno-framework/davinci-crd-test-kit/wiki\"\n }\n ]\n }\n },\n {\n \"url\": \"expiry-date\",\n \"valueDate\": \"{{today() + 7 days}}\"\n }\n ],\n \"url\": \"http://hl7.org/fhir/us/davinci-crd/StructureDefinition/ext-coverage-information\"\n }\n ]\n },\n \"extension\": {\n \"com.inferno.includeForServices\": \"encounter-start-subset\",\n \"com.inferno.resourceSelectionCriteria\": \"prefetch.enc\"\n }\n }\n ]\n}"
49
49
  },
50
50
  {
51
51
  "name": "encounter_discharge_response_approach",
@@ -59,7 +59,7 @@
59
59
  "description": "Provide a [custom response template](https://github.com/inferno-framework/davinci-crd-test-kit/wiki/Controlling-Simulated-Responses#tester-directed-custom-responses) in JSON form for Inferno to use when responding to hook invocations.",
60
60
  "title": "Custom response template for encounter-discharge hook requests",
61
61
  "type": "textarea",
62
- "value": "{\n \"cards\": [\n {\n \"summary\": \"Encounter Discharge Launch SMART Application Card\",\n \"detail\": \"This is a Launch SMART Application Card which can cause the launching of SMART apps to occur in the context in which they are relevant to patient care and/or to payment-related decision-making.\",\n \"indicator\": \"info\",\n \"source\": {\n \"label\": \"Inferno\",\n \"url\": \"https://inferno.healthit.gov/\",\n \"topic\": {\n \"system\": \"http://terminology.hl7.org/CodeSystem/cdshooks-card-type\",\n \"code\": \"coverage-info\",\n \"display\": \"Coverage Information\"\n }\n },\n \"selectionBehavior\": \"any\",\n \"suggestions\": [\n {\n \"label\": \"Inferno placeholder suggestion\",\n \"uuid\": \"5abc166b-c50f-4df4-bdb1-2b0b62cb8e56\"\n }\n ],\n \"links\": [\n {\n \"label\": \"Inferno\",\n \"url\": \"<%= Inferno::Application['base_url'] %>/custom/smart/launch\",\n \"type\": \"smart\"\n }\n ],\n \"uuid\": \"daf166dd-d7fa-4c74-ba80-71bc41c9efc1\"\n },\n {\n \"summary\": \"Encounter Discharge External Reference Card\",\n \"detail\": \"This is an External Reference Card containing one or more links to external web pages, PDFs, or other resources that provide relevant coverage information.\",\n \"indicator\": \"info\",\n \"source\": {\n \"label\": \"Inferno\",\n \"url\": \"https://inferno.healthit.gov/\",\n \"topic\": {\n \"system\": \"http://terminology.hl7.org/CodeSystem/cdshooks-card-type\",\n \"code\": \"guideline\",\n \"display\": \"Guideline\"\n }\n },\n \"links\": [\n {\n \"label\": \"CRD IG External Reference Card Info\",\n \"url\": \"https://build.fhir.org/ig/HL7/davinci-crd/cards.html#external-reference\",\n \"type\": \"absolute\"\n }\n ],\n \"uuid\": \"c7bd850d-9d83-4056-aa0d-d887e6b68aed\"\n },\n {\n \"summary\": \"Encounter Discharge Instructions Card\",\n \"detail\": \"This is an Instructions card containing textual guidance to display to the user making the decisions.\",\n \"indicator\": \"info\",\n \"source\": {\n \"label\": \"Inferno\",\n \"url\": \"https://inferno.healthit.gov/\",\n \"topic\": {\n \"system\": \"http://terminology.hl7.org/CodeSystem/cdshooks-card-type\",\n \"code\": \"coverage-info\",\n \"display\": \"Coverage Information\"\n }\n },\n \"uuid\": \"1ab5f527-b173-4e5c-ad1f-56b4c4fe439a\"\n },\n {\n \"summary\": \"Encounter Discharge Create/Update Coverage Information Card (Complete Prefetch)\",\n \"detail\": \"This is an update to the coverage indicating an end date one year from today\",\n \"indicator\": \"info\",\n \"source\": {\n \"label\": \"Inferno\",\n \"url\": \"https://inferno.healthit.gov/\",\n \"topic\": {\n \"system\": \"http://terminology.hl7.org/CodeSystem/cdshooks-card-type\",\n \"code\": \"coverage-info\",\n \"display\": \"Coverage Information\"\n }\n },\n \"selectionBehavior\": \"any\",\n \"suggestions\": [\n {\n \"label\": \"Create/Update coverage information\",\n \"uuid\": \"5abc166b-c51f-4df4-bdb1-2b0b62bb8e45\",\n \"actions\": [\n {\n \"type\": \"update\",\n \"description\": \"Update current coverage record\",\n \"resource\": {\n \"resourceType\": \"Coverage\",\n \"id\": \"crd221-demo-coverage-complete-prefetch\",\n \"subscriberId\": \"10A3D58WH456\",\n \"relationship\": {\n \"coding\": [\n {\n \"system\": \"http://terminology.hl7.org/CodeSystem/subscriber-relationship\",\n \"code\": \"self\"\n }\n ]\n },\n \"beneficiary\": {\n \"reference\": \"Patient/crd221-demo-patient\"\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 \"period\": {\n \"end\": \"{{today() + 365 days}}\"\n },\n \"payor\": [\n {\n \"reference\": \"Organization/crd221-demo-payer-complete-prefetch\"\n }\n ]\n }\n }\n ]\n }\n ],\n \"uuid\": \"ac669633-6c4f-4599-b60b-e840ce0be625\",\n \"extension\": {\n \"com.inferno.includeForServices\": \"encounter-discharge-service\"\n }\n },\n {\n \"summary\": \"Encounter Discharge Create/Update Coverage Information Card (Subset Prefetch)\",\n \"detail\": \"This is an update to the coverage indicating an end date one year from today\",\n \"indicator\": \"info\",\n \"source\": {\n \"label\": \"Inferno\",\n \"url\": \"https://inferno.healthit.gov/\",\n \"topic\": {\n \"system\": \"http://terminology.hl7.org/CodeSystem/cdshooks-card-type\",\n \"code\": \"coverage-info\",\n \"display\": \"Coverage Information\"\n }\n },\n \"selectionBehavior\": \"any\",\n \"suggestions\": [\n {\n \"label\": \"Create/Update coverage information\",\n \"uuid\": \"5abc166b-c51f-4df4-bdb1-2b0b62bb8e45\",\n \"actions\": [\n {\n \"type\": \"update\",\n \"description\": \"Update current coverage record\",\n \"resource\": {\n \"resourceType\": \"Coverage\",\n \"id\": \"crd221-demo-coverage-subset-prefetch\",\n \"subscriberId\": \"10A3D58WH456\",\n \"relationship\": {\n \"coding\": [\n {\n \"system\": \"http://terminology.hl7.org/CodeSystem/subscriber-relationship\",\n \"code\": \"self\"\n }\n ]\n },\n \"beneficiary\": {\n \"reference\": \"Patient/crd221-demo-patient\"\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 \"period\": {\n \"end\": \"{{today() + 365 days}}\"\n },\n \"payor\": [\n {\n \"reference\": \"Organization/crd221-demo-payer-subset-prefetch\"\n }\n ]\n }\n }\n ]\n }\n ],\n \"uuid\": \"ac669633-6c4f-4599-b60b-e840ce0be625\",\n \"extension\": {\n \"com.inferno.includeForServices\": \"encounter-discharge-subset\"\n }\n },\n {\n \"summary\": \"Encounter Discharge Request Form Completion Card (Complete Prefetch)\",\n \"detail\": \"This is a Request Form Completion Card which indicates that there are forms that need to be completed.\",\n \"indicator\": \"info\",\n \"source\": {\n \"label\": \"Inferno\",\n \"url\": \"https://inferno.healthit.gov/\",\n \"topic\": {\n \"system\": \"http://terminology.hl7.org/CodeSystem/cdshooks-card-type\",\n \"code\": \"coverage-info\",\n \"display\": \"Coverage Information\"\n }\n },\n \"selectionBehavior\": \"any\",\n \"suggestions\": [\n {\n \"label\": \"Add 'completion of the ABC form' to your task list (possibly for reassignment)\",\n \"uuid\": \"5abc166b-c51f-4df4-bdb1-2b0b62cb8e45\",\n \"actions\": [\n {\n \"type\": \"create\",\n \"description\": \"Add version 2 of the XYZ form to the clinical system's repository (if it doesn't already exist)\",\n \"resource\": {\n \"resourceType\": \"Questionnaire\",\n \"id\": \"XYZ\",\n \"url\": \"http://inferno.healthit.gov/davinci-crd-test-kit/forms/XYZ\",\n \"title\": \"Cancer Quality Forum Questionnaire XYZ\",\n \"version\": \"2\",\n \"status\": \"active\",\n \"subjectType\": [\n \"Patient\"\n ],\n \"date\": \"2012-01\",\n \"item\": [\n {\n \"linkId\": \"1\",\n \"code\": [\n {\n \"system\": \"http://inferno.healthit.gov/davinci-crd-test-kit/code/sections\",\n \"code\": \"COMORBIDITY\"\n }\n ],\n \"type\": \"group\",\n \"item\": [\n {\n \"linkId\": \"1.1\",\n \"code\": [\n {\n \"system\": \"http://inferno.healthit.gov/davinci-crd-test-kit/code/questions\",\n \"code\": \"COMORB\"\n }\n ],\n \"prefix\": \"1\",\n \"type\": \"choice\",\n \"answerValueSet\": \"http://hl7.org/fhir/ValueSet/yesnodontknow\",\n \"item\": [\n {\n \"linkId\": \"1.1.1\",\n \"code\": [\n {\n \"system\": \"http://inferno.healthit.gov/davinci-crd-test-kit/code/sections\",\n \"code\": \"CARDIAL\"\n }\n ],\n \"type\": \"group\",\n \"enableWhen\": [\n {\n \"question\": \"1.1\",\n \"operator\": \"=\",\n \"answerCoding\": {\n \"system\": \"http://terminology.hl7.org/CodeSystem/v2-0136\",\n \"code\": \"Y\"\n }\n }\n ],\n \"item\": [\n {\n \"linkId\": \"1.1.1.1\",\n \"code\": [\n {\n \"system\": \"http://inferno.healthit.gov/davinci-crd-test-kit/code/questions\",\n \"code\": \"COMORBCAR\"\n }\n ],\n \"prefix\": \"1.1\",\n \"type\": \"choice\",\n \"answerValueSet\": \"http://hl7.org/fhir/ValueSet/yesnodontknow\",\n \"item\": [\n {\n \"linkId\": \"1.1.1.1.1\",\n \"code\": [\n {\n \"system\": \"http://inferno.healthit.gov/davinci-crd-test-kit/code/questions\",\n \"code\": \"COMCAR00\",\n \"display\": \"Angina Pectoris\"\n },\n {\n \"system\": \"http://snomed.info/sct\",\n \"code\": \"194828000\",\n \"display\": \"Angina (disorder)\"\n }\n ],\n \"prefix\": \"1.1.1\",\n \"type\": \"choice\",\n \"answerValueSet\": \"http://hl7.org/fhir/ValueSet/yesnodontknow\"\n },\n {\n \"linkId\": \"1.1.1.1.2\",\n \"code\": [\n {\n \"system\": \"http://snomed.info/sct\",\n \"code\": \"22298006\",\n \"display\": \"Myocardial infarction (disorder)\"\n }\n ],\n \"prefix\": \"1.1.2\",\n \"type\": \"choice\",\n \"answerValueSet\": \"http://hl7.org/fhir/ValueSet/yesnodontknow\"\n }\n ]\n },\n {\n \"linkId\": \"1.1.1.2\",\n \"code\": [\n {\n \"system\": \"http://inferno.healthit.gov/davinci-crd-test-kit/code/questions\",\n \"code\": \"COMORBVAS\"\n }\n ],\n \"prefix\": \"1.2\",\n \"type\": \"choice\",\n \"answerValueSet\": \"http://hl7.org/fhir/ValueSet/yesnodontknow\"\n }\n ]\n }\n ]\n }\n ]\n },\n {\n \"linkId\": \"2\",\n \"code\": [\n {\n \"system\": \"http://inferno.healthit.gov/davinci-crd-test-kit/code/sections\",\n \"code\": \"HISTOPATHOLOGY\"\n }\n ],\n \"type\": \"group\",\n \"item\": [\n {\n \"linkId\": \"2.1\",\n \"code\": [\n {\n \"system\": \"http://inferno.healthit.gov/davinci-crd-test-kit/code/sections\",\n \"code\": \"ABDOMINAL\"\n }\n ],\n \"type\": \"group\",\n \"item\": [\n {\n \"linkId\": \"2.1.2\",\n \"code\": [\n {\n \"system\": \"http://inferno.healthit.gov/davinci-crd-test-kit/code/questions\",\n \"code\": \"STADPT\",\n \"display\": \"pT category\"\n }\n ],\n \"type\": \"choice\"\n }\n ]\n }\n ]\n }\n ]\n },\n \"extension\": {\n \"davinci-crd.if-none-exist\": \"url=<%= Inferno::Application['base_url'] %>/custom/crd_server_v221/fhir/Questionnaire?url=http://inferno.healthit.gov/davinci-crd-test-kit/forms/XYZ\\u0026version=2\"\n }\n },\n {\n \"type\": \"create\",\n \"description\": \"Add 'Complete ABC form' to the task list\",\n \"resource\": {\n \"resourceType\": \"Task\",\n \"status\": \"ready\",\n \"intent\": \"order\",\n \"code\": {\n \"coding\": [\n {\n \"system\": \"http://hl7.org/fhir/uv/sdc/CodeSystem/temp\",\n \"code\": \"complete-questionnaire\"\n }\n ]\n },\n \"description\": \"Complete XYZ form for local retention\",\n \"for\": {\n \"reference\": \"Patient/{{context.patientId}}\"\n },\n \"authoredOn\": \"{{today()}}\",\n \"requester\": {\n \"reference\": \"Organization/crd221-demo-payer-complete-prefetch\"\n },\n \"input\": [\n {\n \"type\": {\n \"text\": \"questionnaire\",\n \"coding\": [\n {\n \"system\": \"http://hl7.org/fhir/uv/sdc/CodeSystem/temp\",\n \"code\": \"questionnaire\"\n }\n ]\n },\n \"valueCanonical\": \"http://inferno.healthit.gov/davinci-crd-test-kit/forms/XYZ\"\n }\n ],\n \"id\": \"779579bd-2a55-41a1-8487-c372fd02e9e8\"\n }\n }\n ]\n }\n ],\n \"uuid\": \"5abc166b-c50f-4df4-bdb1-2b0b62cb8e45\",\n \"extension\": {\n \"com.inferno.includeForServices\": \"encounter-discharge-service\"\n }\n },\n {\n \"summary\": \"Encounter Discharge Request Form Completion Card (Subset Prefetch)\",\n \"detail\": \"This is a Request Form Completion Card which indicates that there are forms that need to be completed.\",\n \"indicator\": \"info\",\n \"source\": {\n \"label\": \"Inferno\",\n \"url\": \"https://inferno.healthit.gov/\",\n \"topic\": {\n \"system\": \"http://terminology.hl7.org/CodeSystem/cdshooks-card-type\",\n \"code\": \"coverage-info\",\n \"display\": \"Coverage Information\"\n }\n },\n \"selectionBehavior\": \"any\",\n \"suggestions\": [\n {\n \"label\": \"Add 'completion of the ABC form' to your task list (possibly for reassignment)\",\n \"uuid\": \"5abc166b-c51f-4df4-bdb1-2b0b62cb8e45\",\n \"actions\": [\n {\n \"type\": \"create\",\n \"description\": \"Add version 2 of the XYZ form to the clinical system's repository (if it doesn't already exist)\",\n \"resource\": {\n \"resourceType\": \"Questionnaire\",\n \"id\": \"XYZ\",\n \"url\": \"http://inferno.healthit.gov/davinci-crd-test-kit/forms/XYZ\",\n \"title\": \"Cancer Quality Forum Questionnaire XYZ\",\n \"version\": \"2\",\n \"status\": \"active\",\n \"subjectType\": [\n \"Patient\"\n ],\n \"date\": \"2012-01\",\n \"item\": [\n {\n \"linkId\": \"1\",\n \"code\": [\n {\n \"system\": \"http://inferno.healthit.gov/davinci-crd-test-kit/code/sections\",\n \"code\": \"COMORBIDITY\"\n }\n ],\n \"type\": \"group\",\n \"item\": [\n {\n \"linkId\": \"1.1\",\n \"code\": [\n {\n \"system\": \"http://inferno.healthit.gov/davinci-crd-test-kit/code/questions\",\n \"code\": \"COMORB\"\n }\n ],\n \"prefix\": \"1\",\n \"type\": \"choice\",\n \"answerValueSet\": \"http://hl7.org/fhir/ValueSet/yesnodontknow\",\n \"item\": [\n {\n \"linkId\": \"1.1.1\",\n \"code\": [\n {\n \"system\": \"http://inferno.healthit.gov/davinci-crd-test-kit/code/sections\",\n \"code\": \"CARDIAL\"\n }\n ],\n \"type\": \"group\",\n \"enableWhen\": [\n {\n \"question\": \"1.1\",\n \"operator\": \"=\",\n \"answerCoding\": {\n \"system\": \"http://terminology.hl7.org/CodeSystem/v2-0136\",\n \"code\": \"Y\"\n }\n }\n ],\n \"item\": [\n {\n \"linkId\": \"1.1.1.1\",\n \"code\": [\n {\n \"system\": \"http://inferno.healthit.gov/davinci-crd-test-kit/code/questions\",\n \"code\": \"COMORBCAR\"\n }\n ],\n \"prefix\": \"1.1\",\n \"type\": \"choice\",\n \"answerValueSet\": \"http://hl7.org/fhir/ValueSet/yesnodontknow\",\n \"item\": [\n {\n \"linkId\": \"1.1.1.1.1\",\n \"code\": [\n {\n \"system\": \"http://inferno.healthit.gov/davinci-crd-test-kit/code/questions\",\n \"code\": \"COMCAR00\",\n \"display\": \"Angina Pectoris\"\n },\n {\n \"system\": \"http://snomed.info/sct\",\n \"code\": \"194828000\",\n \"display\": \"Angina (disorder)\"\n }\n ],\n \"prefix\": \"1.1.1\",\n \"type\": \"choice\",\n \"answerValueSet\": \"http://hl7.org/fhir/ValueSet/yesnodontknow\"\n },\n {\n \"linkId\": \"1.1.1.1.2\",\n \"code\": [\n {\n \"system\": \"http://snomed.info/sct\",\n \"code\": \"22298006\",\n \"display\": \"Myocardial infarction (disorder)\"\n }\n ],\n \"prefix\": \"1.1.2\",\n \"type\": \"choice\",\n \"answerValueSet\": \"http://hl7.org/fhir/ValueSet/yesnodontknow\"\n }\n ]\n },\n {\n \"linkId\": \"1.1.1.2\",\n \"code\": [\n {\n \"system\": \"http://inferno.healthit.gov/davinci-crd-test-kit/code/questions\",\n \"code\": \"COMORBVAS\"\n }\n ],\n \"prefix\": \"1.2\",\n \"type\": \"choice\",\n \"answerValueSet\": \"http://hl7.org/fhir/ValueSet/yesnodontknow\"\n }\n ]\n }\n ]\n }\n ]\n },\n {\n \"linkId\": \"2\",\n \"code\": [\n {\n \"system\": \"http://inferno.healthit.gov/davinci-crd-test-kit/code/sections\",\n \"code\": \"HISTOPATHOLOGY\"\n }\n ],\n \"type\": \"group\",\n \"item\": [\n {\n \"linkId\": \"2.1\",\n \"code\": [\n {\n \"system\": \"http://inferno.healthit.gov/davinci-crd-test-kit/code/sections\",\n \"code\": \"ABDOMINAL\"\n }\n ],\n \"type\": \"group\",\n \"item\": [\n {\n \"linkId\": \"2.1.2\",\n \"code\": [\n {\n \"system\": \"http://inferno.healthit.gov/davinci-crd-test-kit/code/questions\",\n \"code\": \"STADPT\",\n \"display\": \"pT category\"\n }\n ],\n \"type\": \"choice\"\n }\n ]\n }\n ]\n }\n ]\n },\n \"extension\": {\n \"davinci-crd.if-none-exist\": \"url=<%= Inferno::Application['base_url'] %>/custom/crd_server_v221/fhir/Questionnaire?url=http://inferno.healthit.gov/davinci-crd-test-kit/forms/XYZ\\u0026version=2\"\n }\n },\n {\n \"type\": \"create\",\n \"description\": \"Add 'Complete ABC form' to the task list\",\n \"resource\": {\n \"resourceType\": \"Task\",\n \"status\": \"ready\",\n \"intent\": \"order\",\n \"code\": {\n \"coding\": [\n {\n \"system\": \"http://hl7.org/fhir/uv/sdc/CodeSystem/temp\",\n \"code\": \"complete-questionnaire\"\n }\n ]\n },\n \"description\": \"Complete XYZ form for local retention\",\n \"for\": {\n \"reference\": \"Patient/{{context.patientId}}\"\n },\n \"authoredOn\": \"{{today()}}\",\n \"requester\": {\n \"reference\": \"Organization/crd221-demo-payer-subset-prefetch\"\n },\n \"input\": [\n {\n \"type\": {\n \"text\": \"questionnaire\",\n \"coding\": [\n {\n \"system\": \"http://hl7.org/fhir/uv/sdc/CodeSystem/temp\",\n \"code\": \"questionnaire\"\n }\n ]\n },\n \"valueCanonical\": \"http://inferno.healthit.gov/davinci-crd-test-kit/forms/XYZ\"\n }\n ],\n \"id\": \"779579bd-2a55-41a1-8487-c372fd02e9e8\"\n }\n }\n ]\n }\n ],\n \"uuid\": \"5abc166b-c50f-4df4-bdb1-2b0b62cb8e45\",\n \"extension\": {\n \"com.inferno.includeForServices\": \"encounter-discharge-subset\"\n }\n }\n ],\n \"systemActions\": [\n {\n \"type\": \"update\",\n \"description\": \"Added auth needed coverage information to Encounter resource (Complete Prefetch).\",\n \"resource\": {\n \"extension\": [\n {\n \"extension\": [\n {\n \"url\": \"coverage\",\n \"valueReference\": {\n \"reference\": \"Coverage/crd221-demo-coverage-complete-prefetch\"\n }\n },\n {\n \"url\": \"covered\",\n \"valueCode\": \"conditional\"\n },\n {\n \"url\": \"pa-needed\",\n \"valueCode\": \"auth-needed\"\n },\n {\n \"url\": \"doc-needed\",\n \"valueCode\": \"clinical\"\n },\n {\n \"url\": \"doc-purpose\",\n \"valueCode\": \"withorder\"\n },\n {\n \"url\": \"billingCode\",\n \"valueCoding\": {\n \"system\": \"http://www.ama-assn.org/go/cpt\",\n \"code\": \"77067\"\n }\n },\n {\n \"url\": \"reason\",\n \"valueCodeableConcept\": {\n \"coding\": [\n {\n \"system\": \"http://hl7.org/fhir/us/davinci-crd/CodeSystem/temp\",\n \"code\": \"auth-out-network\"\n }\n ],\n \"text\": \"Authorization is necessary if out-of-network.\"\n }\n },\n {\n \"extension\": [\n {\n \"url\": \"category\",\n \"valueCode\": \"cat-other\"\n },\n {\n \"url\": \"code\",\n \"valueCodeableConcept\": {\n \"coding\": [\n {\n \"system\": \"http://terminology.hl7.org/CodeSystem/crd-coverage-detail\",\n \"code\": \"instructions\"\n }\n ]\n }\n },\n {\n \"url\": \"value\",\n \"valueUrl\": \"https://github.com/inferno-framework/davinci-crd-test-kit/wiki\"\n },\n {\n \"url\": \"qualification\",\n \"valueString\": \"CRD Test Kit Wiki\"\n }\n ],\n \"url\": \"detail\"\n },\n {\n \"url\": \"questionnaire\",\n \"valueCanonical\": \"http://inferno.healthit.gov/davinci-crd-test-kit/forms/XYZ\"\n },\n {\n \"url\": \"dependency\",\n \"valueReference\": {\n \"reference\": \"Encounter/crd221-demo-encounter-with-performer-loc-and-org\",\n \"display\": \"non-sensical self dependency\"\n }\n },\n {\n \"url\": \"info-needed\",\n \"valueCode\": \"performer\"\n },\n {\n \"url\": \"date\",\n \"valueDate\": \"{{today()}}\"\n },\n {\n \"url\": \"coverage-assertion-id\",\n \"valueString\": \"0730da9e5a13eededb08999dcc06b89f22adf797fa2457fc0d7c330599da1311\"\n },\n {\n \"url\": \"contact\",\n \"valueContactDetail\": {\n \"name\": \"CRD Test Kit Wiki\",\n \"telecom\": [\n {\n \"system\": \"url\",\n \"value\": \"https://github.com/inferno-framework/davinci-crd-test-kit/wiki\"\n }\n ]\n }\n },\n {\n \"url\": \"expiry-date\",\n \"valueDate\": \"{{today() + 7 days}}\"\n }\n ],\n \"url\": \"http://hl7.org/fhir/us/davinci-crd/StructureDefinition/ext-coverage-information\"\n }\n ]\n },\n \"extension\": {\n \"com.inferno.includeForServices\": \"encounter-discharge-service\",\n \"com.inferno.resourceSelectionCriteria\": \"prefetch.encounter\"\n }\n },\n {\n \"type\": \"update\",\n \"description\": \"Added pa satisfied coverage information to Encounter resource (Subset Prefetch).\",\n \"resource\": {\n \"extension\": [\n {\n \"extension\": [\n {\n \"url\": \"coverage\",\n \"valueReference\": {\n \"reference\": \"Coverage/crd221-demo-coverage-subset-prefetch\"\n }\n },\n {\n \"url\": \"covered\",\n \"valueCode\": \"covered\"\n },\n {\n \"url\": \"pa-needed\",\n \"valueCode\": \"satisfied\"\n },\n {\n \"url\": \"billingCode\",\n \"valueCoding\": {\n \"system\": \"http://www.ama-assn.org/go/cpt\",\n \"code\": \"77067\"\n }\n },\n {\n \"extension\": [\n {\n \"url\": \"category\",\n \"valueCode\": \"cat-other\"\n },\n {\n \"url\": \"code\",\n \"valueCodeableConcept\": {\n \"coding\": [\n {\n \"system\": \"http://terminology.hl7.org/CodeSystem/crd-coverage-detail\",\n \"code\": \"instructions\"\n }\n ]\n }\n },\n {\n \"url\": \"value\",\n \"valueUrl\": \"https://github.com/inferno-framework/davinci-crd-test-kit/wiki\"\n },\n {\n \"url\": \"qualification\",\n \"valueString\": \"CRD Test Kit Wiki\"\n }\n ],\n \"url\": \"detail\"\n },\n {\n \"url\": \"date\",\n \"valueDate\": \"{{today()}}\"\n },\n {\n \"url\": \"coverage-assertion-id\",\n \"valueString\": \"0730da9e5a13eededb08999dcc06b89f22bdf797fa2457fc0d7c330599da1311\"\n },\n {\n \"url\": \"satisfied-pa-id\",\n \"valueString\": \"XXYYZ\"\n },\n {\n \"url\": \"contact\",\n \"valueContactDetail\": {\n \"name\": \"CRD Test Kit Wiki\",\n \"telecom\": [\n {\n \"system\": \"url\",\n \"value\": \"https://github.com/inferno-framework/davinci-crd-test-kit/wiki\"\n }\n ]\n }\n },\n {\n \"url\": \"expiry-date\",\n \"valueDate\": \"{{today() + 7 days}}\"\n }\n ],\n \"url\": \"http://hl7.org/fhir/us/davinci-crd/StructureDefinition/ext-coverage-information\"\n }\n ]\n },\n \"extension\": {\n \"com.inferno.includeForServices\": \"encounter-discharge-subset\",\n \"com.inferno.resourceSelectionCriteria\": \"prefetch.enc\"\n }\n }\n ]\n}"
62
+ "value": "{\n \"cards\": [\n {\n \"summary\": \"Encounter Discharge Launch SMART Application Card\",\n \"detail\": \"This is a Launch SMART Application Card which can cause the launching of SMART apps to occur in the context in which they are relevant to patient care and/or to payment-related decision-making.\",\n \"indicator\": \"info\",\n \"source\": {\n \"label\": \"Inferno\",\n \"url\": \"https://inferno.healthit.gov/\",\n \"topic\": {\n \"system\": \"http://terminology.hl7.org/CodeSystem/cdshooks-card-type\",\n \"code\": \"coverage-info\",\n \"display\": \"Coverage Information\"\n }\n },\n \"links\": [\n {\n \"label\": \"Inferno\",\n \"url\": \"<%= Inferno::Application['base_url'] %>/custom/smart/launch\",\n \"type\": \"smart\"\n }\n ],\n \"uuid\": \"daf166dd-d7fa-4c74-ba80-71bc41c9efc1\"\n },\n {\n \"summary\": \"Encounter Discharge External Reference Card\",\n \"detail\": \"This is an External Reference Card containing one or more links to external web pages, PDFs, or other resources that provide relevant coverage information.\",\n \"indicator\": \"info\",\n \"source\": {\n \"label\": \"Inferno\",\n \"url\": \"https://inferno.healthit.gov/\",\n \"topic\": {\n \"system\": \"http://terminology.hl7.org/CodeSystem/cdshooks-card-type\",\n \"code\": \"guideline\",\n \"display\": \"Guideline\"\n }\n },\n \"links\": [\n {\n \"label\": \"CRD IG External Reference Card Info\",\n \"url\": \"https://build.fhir.org/ig/HL7/davinci-crd/cards.html#external-reference\",\n \"type\": \"absolute\"\n }\n ],\n \"uuid\": \"c7bd850d-9d83-4056-aa0d-d887e6b68aed\"\n },\n {\n \"summary\": \"Encounter Discharge Instructions Card\",\n \"detail\": \"This is an Instructions card containing textual guidance to display to the user making the decisions.\",\n \"indicator\": \"info\",\n \"source\": {\n \"label\": \"Inferno\",\n \"url\": \"https://inferno.healthit.gov/\",\n \"topic\": {\n \"system\": \"http://terminology.hl7.org/CodeSystem/cdshooks-card-type\",\n \"code\": \"coverage-info\",\n \"display\": \"Coverage Information\"\n }\n },\n \"uuid\": \"1ab5f527-b173-4e5c-ad1f-56b4c4fe439a\"\n },\n {\n \"summary\": \"Encounter Discharge Create/Update Coverage Information Card (Complete Prefetch)\",\n \"detail\": \"This is an update to the coverage indicating an end date one year from today\",\n \"indicator\": \"info\",\n \"source\": {\n \"label\": \"Inferno\",\n \"url\": \"https://inferno.healthit.gov/\",\n \"topic\": {\n \"system\": \"http://terminology.hl7.org/CodeSystem/cdshooks-card-type\",\n \"code\": \"coverage-info\",\n \"display\": \"Coverage Information\"\n }\n },\n \"selectionBehavior\": \"any\",\n \"suggestions\": [\n {\n \"label\": \"Create/Update coverage information\",\n \"uuid\": \"5abc166b-c51f-4df4-bdb1-2b0b62bb8e45\",\n \"actions\": [\n {\n \"type\": \"update\",\n \"description\": \"Update current coverage record\",\n \"resource\": {\n \"resourceType\": \"Coverage\",\n \"id\": \"crd221-demo-coverage-complete-prefetch\",\n \"subscriberId\": \"10A3D58WH456\",\n \"relationship\": {\n \"coding\": [\n {\n \"system\": \"http://terminology.hl7.org/CodeSystem/subscriber-relationship\",\n \"code\": \"self\"\n }\n ]\n },\n \"beneficiary\": {\n \"reference\": \"Patient/crd221-demo-patient\"\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 \"period\": {\n \"end\": \"{{today() + 365 days}}\"\n },\n \"payor\": [\n {\n \"reference\": \"Organization/crd221-demo-payer-complete-prefetch\"\n }\n ]\n }\n }\n ]\n }\n ],\n \"uuid\": \"ac669633-6c4f-4599-b60b-e840ce0be625\",\n \"extension\": {\n \"com.inferno.includeForServices\": \"encounter-discharge-service\"\n }\n },\n {\n \"summary\": \"Encounter Discharge Create/Update Coverage Information Card (Subset Prefetch)\",\n \"detail\": \"This is an update to the coverage indicating an end date one year from today\",\n \"indicator\": \"info\",\n \"source\": {\n \"label\": \"Inferno\",\n \"url\": \"https://inferno.healthit.gov/\",\n \"topic\": {\n \"system\": \"http://terminology.hl7.org/CodeSystem/cdshooks-card-type\",\n \"code\": \"coverage-info\",\n \"display\": \"Coverage Information\"\n }\n },\n \"selectionBehavior\": \"any\",\n \"suggestions\": [\n {\n \"label\": \"Create/Update coverage information\",\n \"uuid\": \"5abc166b-c51f-4df4-bdb1-2b0b62bb8e45\",\n \"actions\": [\n {\n \"type\": \"update\",\n \"description\": \"Update current coverage record\",\n \"resource\": {\n \"resourceType\": \"Coverage\",\n \"id\": \"crd221-demo-coverage-subset-prefetch\",\n \"subscriberId\": \"10A3D58WH456\",\n \"relationship\": {\n \"coding\": [\n {\n \"system\": \"http://terminology.hl7.org/CodeSystem/subscriber-relationship\",\n \"code\": \"self\"\n }\n ]\n },\n \"beneficiary\": {\n \"reference\": \"Patient/crd221-demo-patient\"\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 \"period\": {\n \"end\": \"{{today() + 365 days}}\"\n },\n \"payor\": [\n {\n \"reference\": \"Organization/crd221-demo-payer-subset-prefetch\"\n }\n ]\n }\n }\n ]\n }\n ],\n \"uuid\": \"ac669633-6c4f-4599-b60b-e840ce0be625\",\n \"extension\": {\n \"com.inferno.includeForServices\": \"encounter-discharge-subset\"\n }\n },\n {\n \"summary\": \"Encounter Discharge Request Form Completion Card (Complete Prefetch)\",\n \"detail\": \"This is a Request Form Completion Card which indicates that there are forms that need to be completed.\",\n \"indicator\": \"info\",\n \"source\": {\n \"label\": \"Inferno\",\n \"url\": \"https://inferno.healthit.gov/\",\n \"topic\": {\n \"system\": \"http://terminology.hl7.org/CodeSystem/cdshooks-card-type\",\n \"code\": \"coverage-info\",\n \"display\": \"Coverage Information\"\n }\n },\n \"selectionBehavior\": \"any\",\n \"suggestions\": [\n {\n \"label\": \"Add 'completion of the ABC form' to your task list (possibly for reassignment)\",\n \"uuid\": \"5abc166b-c51f-4df4-bdb1-2b0b62cb8e45\",\n \"actions\": [\n {\n \"type\": \"create\",\n \"description\": \"Add version 2 of the XYZ form to the clinical system's repository (if it doesn't already exist)\",\n \"resource\": {\n \"resourceType\": \"Questionnaire\",\n \"id\": \"XYZ\",\n \"url\": \"http://inferno.healthit.gov/davinci-crd-test-kit/forms/XYZ\",\n \"title\": \"Cancer Quality Forum Questionnaire XYZ\",\n \"version\": \"2\",\n \"status\": \"active\",\n \"subjectType\": [\n \"Patient\"\n ],\n \"date\": \"2012-01\",\n \"item\": [\n {\n \"linkId\": \"1\",\n \"code\": [\n {\n \"system\": \"http://inferno.healthit.gov/davinci-crd-test-kit/code/sections\",\n \"code\": \"COMORBIDITY\"\n }\n ],\n \"type\": \"group\",\n \"item\": [\n {\n \"linkId\": \"1.1\",\n \"code\": [\n {\n \"system\": \"http://inferno.healthit.gov/davinci-crd-test-kit/code/questions\",\n \"code\": \"COMORB\"\n }\n ],\n \"prefix\": \"1\",\n \"type\": \"choice\",\n \"answerValueSet\": \"http://hl7.org/fhir/ValueSet/yesnodontknow\",\n \"item\": [\n {\n \"linkId\": \"1.1.1\",\n \"code\": [\n {\n \"system\": \"http://inferno.healthit.gov/davinci-crd-test-kit/code/sections\",\n \"code\": \"CARDIAL\"\n }\n ],\n \"type\": \"group\",\n \"enableWhen\": [\n {\n \"question\": \"1.1\",\n \"operator\": \"=\",\n \"answerCoding\": {\n \"system\": \"http://terminology.hl7.org/CodeSystem/v2-0136\",\n \"code\": \"Y\"\n }\n }\n ],\n \"item\": [\n {\n \"linkId\": \"1.1.1.1\",\n \"code\": [\n {\n \"system\": \"http://inferno.healthit.gov/davinci-crd-test-kit/code/questions\",\n \"code\": \"COMORBCAR\"\n }\n ],\n \"prefix\": \"1.1\",\n \"type\": \"choice\",\n \"answerValueSet\": \"http://hl7.org/fhir/ValueSet/yesnodontknow\",\n \"item\": [\n {\n \"linkId\": \"1.1.1.1.1\",\n \"code\": [\n {\n \"system\": \"http://inferno.healthit.gov/davinci-crd-test-kit/code/questions\",\n \"code\": \"COMCAR00\",\n \"display\": \"Angina Pectoris\"\n },\n {\n \"system\": \"http://snomed.info/sct\",\n \"code\": \"194828000\",\n \"display\": \"Angina (disorder)\"\n }\n ],\n \"prefix\": \"1.1.1\",\n \"type\": \"choice\",\n \"answerValueSet\": \"http://hl7.org/fhir/ValueSet/yesnodontknow\"\n },\n {\n \"linkId\": \"1.1.1.1.2\",\n \"code\": [\n {\n \"system\": \"http://snomed.info/sct\",\n \"code\": \"22298006\",\n \"display\": \"Myocardial infarction (disorder)\"\n }\n ],\n \"prefix\": \"1.1.2\",\n \"type\": \"choice\",\n \"answerValueSet\": \"http://hl7.org/fhir/ValueSet/yesnodontknow\"\n }\n ]\n },\n {\n \"linkId\": \"1.1.1.2\",\n \"code\": [\n {\n \"system\": \"http://inferno.healthit.gov/davinci-crd-test-kit/code/questions\",\n \"code\": \"COMORBVAS\"\n }\n ],\n \"prefix\": \"1.2\",\n \"type\": \"choice\",\n \"answerValueSet\": \"http://hl7.org/fhir/ValueSet/yesnodontknow\"\n }\n ]\n }\n ]\n }\n ]\n },\n {\n \"linkId\": \"2\",\n \"code\": [\n {\n \"system\": \"http://inferno.healthit.gov/davinci-crd-test-kit/code/sections\",\n \"code\": \"HISTOPATHOLOGY\"\n }\n ],\n \"type\": \"group\",\n \"item\": [\n {\n \"linkId\": \"2.1\",\n \"code\": [\n {\n \"system\": \"http://inferno.healthit.gov/davinci-crd-test-kit/code/sections\",\n \"code\": \"ABDOMINAL\"\n }\n ],\n \"type\": \"group\",\n \"item\": [\n {\n \"linkId\": \"2.1.2\",\n \"code\": [\n {\n \"system\": \"http://inferno.healthit.gov/davinci-crd-test-kit/code/questions\",\n \"code\": \"STADPT\",\n \"display\": \"pT category\"\n }\n ],\n \"type\": \"choice\"\n }\n ]\n }\n ]\n }\n ]\n },\n \"extension\": {\n \"davinci-crd.if-none-exist\": \"url=<%= Inferno::Application['base_url'] %>/custom/crd_server_v221/fhir/Questionnaire?url=http://inferno.healthit.gov/davinci-crd-test-kit/forms/XYZ\\u0026version=2\"\n }\n },\n {\n \"type\": \"create\",\n \"description\": \"Add 'Complete ABC form' to the task list\",\n \"resource\": {\n \"resourceType\": \"Task\",\n \"status\": \"ready\",\n \"intent\": \"order\",\n \"code\": {\n \"coding\": [\n {\n \"system\": \"http://hl7.org/fhir/uv/sdc/CodeSystem/temp\",\n \"code\": \"complete-questionnaire\"\n }\n ]\n },\n \"description\": \"Complete XYZ form for local retention\",\n \"for\": {\n \"reference\": \"Patient/{{context.patientId}}\"\n },\n \"authoredOn\": \"{{today()}}\",\n \"requester\": {\n \"reference\": \"Organization/crd221-demo-payer-complete-prefetch\"\n },\n \"input\": [\n {\n \"type\": {\n \"text\": \"questionnaire\",\n \"coding\": [\n {\n \"system\": \"http://hl7.org/fhir/uv/sdc/CodeSystem/temp\",\n \"code\": \"questionnaire\"\n }\n ]\n },\n \"valueCanonical\": \"http://inferno.healthit.gov/davinci-crd-test-kit/forms/XYZ\"\n }\n ],\n \"id\": \"779579bd-2a55-41a1-8487-c372fd02e9e8\"\n }\n }\n ]\n }\n ],\n \"uuid\": \"5abc166b-c50f-4df4-bdb1-2b0b62cb8e45\",\n \"extension\": {\n \"com.inferno.includeForServices\": \"encounter-discharge-service\"\n }\n },\n {\n \"summary\": \"Encounter Discharge Request Form Completion Card (Subset Prefetch)\",\n \"detail\": \"This is a Request Form Completion Card which indicates that there are forms that need to be completed.\",\n \"indicator\": \"info\",\n \"source\": {\n \"label\": \"Inferno\",\n \"url\": \"https://inferno.healthit.gov/\",\n \"topic\": {\n \"system\": \"http://terminology.hl7.org/CodeSystem/cdshooks-card-type\",\n \"code\": \"coverage-info\",\n \"display\": \"Coverage Information\"\n }\n },\n \"selectionBehavior\": \"any\",\n \"suggestions\": [\n {\n \"label\": \"Add 'completion of the ABC form' to your task list (possibly for reassignment)\",\n \"uuid\": \"5abc166b-c51f-4df4-bdb1-2b0b62cb8e45\",\n \"actions\": [\n {\n \"type\": \"create\",\n \"description\": \"Add version 2 of the XYZ form to the clinical system's repository (if it doesn't already exist)\",\n \"resource\": {\n \"resourceType\": \"Questionnaire\",\n \"id\": \"XYZ\",\n \"url\": \"http://inferno.healthit.gov/davinci-crd-test-kit/forms/XYZ\",\n \"title\": \"Cancer Quality Forum Questionnaire XYZ\",\n \"version\": \"2\",\n \"status\": \"active\",\n \"subjectType\": [\n \"Patient\"\n ],\n \"date\": \"2012-01\",\n \"item\": [\n {\n \"linkId\": \"1\",\n \"code\": [\n {\n \"system\": \"http://inferno.healthit.gov/davinci-crd-test-kit/code/sections\",\n \"code\": \"COMORBIDITY\"\n }\n ],\n \"type\": \"group\",\n \"item\": [\n {\n \"linkId\": \"1.1\",\n \"code\": [\n {\n \"system\": \"http://inferno.healthit.gov/davinci-crd-test-kit/code/questions\",\n \"code\": \"COMORB\"\n }\n ],\n \"prefix\": \"1\",\n \"type\": \"choice\",\n \"answerValueSet\": \"http://hl7.org/fhir/ValueSet/yesnodontknow\",\n \"item\": [\n {\n \"linkId\": \"1.1.1\",\n \"code\": [\n {\n \"system\": \"http://inferno.healthit.gov/davinci-crd-test-kit/code/sections\",\n \"code\": \"CARDIAL\"\n }\n ],\n \"type\": \"group\",\n \"enableWhen\": [\n {\n \"question\": \"1.1\",\n \"operator\": \"=\",\n \"answerCoding\": {\n \"system\": \"http://terminology.hl7.org/CodeSystem/v2-0136\",\n \"code\": \"Y\"\n }\n }\n ],\n \"item\": [\n {\n \"linkId\": \"1.1.1.1\",\n \"code\": [\n {\n \"system\": \"http://inferno.healthit.gov/davinci-crd-test-kit/code/questions\",\n \"code\": \"COMORBCAR\"\n }\n ],\n \"prefix\": \"1.1\",\n \"type\": \"choice\",\n \"answerValueSet\": \"http://hl7.org/fhir/ValueSet/yesnodontknow\",\n \"item\": [\n {\n \"linkId\": \"1.1.1.1.1\",\n \"code\": [\n {\n \"system\": \"http://inferno.healthit.gov/davinci-crd-test-kit/code/questions\",\n \"code\": \"COMCAR00\",\n \"display\": \"Angina Pectoris\"\n },\n {\n \"system\": \"http://snomed.info/sct\",\n \"code\": \"194828000\",\n \"display\": \"Angina (disorder)\"\n }\n ],\n \"prefix\": \"1.1.1\",\n \"type\": \"choice\",\n \"answerValueSet\": \"http://hl7.org/fhir/ValueSet/yesnodontknow\"\n },\n {\n \"linkId\": \"1.1.1.1.2\",\n \"code\": [\n {\n \"system\": \"http://snomed.info/sct\",\n \"code\": \"22298006\",\n \"display\": \"Myocardial infarction (disorder)\"\n }\n ],\n \"prefix\": \"1.1.2\",\n \"type\": \"choice\",\n \"answerValueSet\": \"http://hl7.org/fhir/ValueSet/yesnodontknow\"\n }\n ]\n },\n {\n \"linkId\": \"1.1.1.2\",\n \"code\": [\n {\n \"system\": \"http://inferno.healthit.gov/davinci-crd-test-kit/code/questions\",\n \"code\": \"COMORBVAS\"\n }\n ],\n \"prefix\": \"1.2\",\n \"type\": \"choice\",\n \"answerValueSet\": \"http://hl7.org/fhir/ValueSet/yesnodontknow\"\n }\n ]\n }\n ]\n }\n ]\n },\n {\n \"linkId\": \"2\",\n \"code\": [\n {\n \"system\": \"http://inferno.healthit.gov/davinci-crd-test-kit/code/sections\",\n \"code\": \"HISTOPATHOLOGY\"\n }\n ],\n \"type\": \"group\",\n \"item\": [\n {\n \"linkId\": \"2.1\",\n \"code\": [\n {\n \"system\": \"http://inferno.healthit.gov/davinci-crd-test-kit/code/sections\",\n \"code\": \"ABDOMINAL\"\n }\n ],\n \"type\": \"group\",\n \"item\": [\n {\n \"linkId\": \"2.1.2\",\n \"code\": [\n {\n \"system\": \"http://inferno.healthit.gov/davinci-crd-test-kit/code/questions\",\n \"code\": \"STADPT\",\n \"display\": \"pT category\"\n }\n ],\n \"type\": \"choice\"\n }\n ]\n }\n ]\n }\n ]\n },\n \"extension\": {\n \"davinci-crd.if-none-exist\": \"url=<%= Inferno::Application['base_url'] %>/custom/crd_server_v221/fhir/Questionnaire?url=http://inferno.healthit.gov/davinci-crd-test-kit/forms/XYZ\\u0026version=2\"\n }\n },\n {\n \"type\": \"create\",\n \"description\": \"Add 'Complete ABC form' to the task list\",\n \"resource\": {\n \"resourceType\": \"Task\",\n \"status\": \"ready\",\n \"intent\": \"order\",\n \"code\": {\n \"coding\": [\n {\n \"system\": \"http://hl7.org/fhir/uv/sdc/CodeSystem/temp\",\n \"code\": \"complete-questionnaire\"\n }\n ]\n },\n \"description\": \"Complete XYZ form for local retention\",\n \"for\": {\n \"reference\": \"Patient/{{context.patientId}}\"\n },\n \"authoredOn\": \"{{today()}}\",\n \"requester\": {\n \"reference\": \"Organization/crd221-demo-payer-subset-prefetch\"\n },\n \"input\": [\n {\n \"type\": {\n \"text\": \"questionnaire\",\n \"coding\": [\n {\n \"system\": \"http://hl7.org/fhir/uv/sdc/CodeSystem/temp\",\n \"code\": \"questionnaire\"\n }\n ]\n },\n \"valueCanonical\": \"http://inferno.healthit.gov/davinci-crd-test-kit/forms/XYZ\"\n }\n ],\n \"id\": \"779579bd-2a55-41a1-8487-c372fd02e9e8\"\n }\n }\n ]\n }\n ],\n \"uuid\": \"5abc166b-c50f-4df4-bdb1-2b0b62cb8e45\",\n \"extension\": {\n \"com.inferno.includeForServices\": \"encounter-discharge-subset\"\n }\n }\n ],\n \"systemActions\": [\n {\n \"type\": \"update\",\n \"description\": \"Added auth needed coverage information to Encounter resource (Complete Prefetch).\",\n \"resource\": {\n \"extension\": [\n {\n \"extension\": [\n {\n \"url\": \"coverage\",\n \"valueReference\": {\n \"reference\": \"Coverage/crd221-demo-coverage-complete-prefetch\"\n }\n },\n {\n \"url\": \"covered\",\n \"valueCode\": \"conditional\"\n },\n {\n \"url\": \"pa-needed\",\n \"valueCode\": \"auth-needed\"\n },\n {\n \"url\": \"doc-needed\",\n \"valueCode\": \"clinical\"\n },\n {\n \"url\": \"doc-purpose\",\n \"valueCode\": \"withorder\"\n },\n {\n \"url\": \"billingCode\",\n \"valueCoding\": {\n \"system\": \"http://www.ama-assn.org/go/cpt\",\n \"code\": \"77067\"\n }\n },\n {\n \"url\": \"reason\",\n \"valueCodeableConcept\": {\n \"coding\": [\n {\n \"system\": \"http://hl7.org/fhir/us/davinci-crd/CodeSystem/temp\",\n \"code\": \"auth-out-network\"\n }\n ],\n \"text\": \"Authorization is necessary if out-of-network.\"\n }\n },\n {\n \"extension\": [\n {\n \"url\": \"category\",\n \"valueCode\": \"cat-other\"\n },\n {\n \"url\": \"code\",\n \"valueCodeableConcept\": {\n \"coding\": [\n {\n \"system\": \"http://terminology.hl7.org/CodeSystem/crd-coverage-detail\",\n \"code\": \"instructions\"\n }\n ]\n }\n },\n {\n \"url\": \"value\",\n \"valueUrl\": \"https://github.com/inferno-framework/davinci-crd-test-kit/wiki\"\n },\n {\n \"url\": \"qualification\",\n \"valueString\": \"CRD Test Kit Wiki\"\n }\n ],\n \"url\": \"detail\"\n },\n {\n \"url\": \"questionnaire\",\n \"valueCanonical\": \"http://inferno.healthit.gov/davinci-crd-test-kit/forms/XYZ\"\n },\n {\n \"url\": \"dependency\",\n \"valueReference\": {\n \"reference\": \"Encounter/crd221-demo-encounter-with-performer-loc-and-org\",\n \"display\": \"non-sensical self dependency\"\n }\n },\n {\n \"url\": \"info-needed\",\n \"valueCode\": \"performer\"\n },\n {\n \"url\": \"date\",\n \"valueDate\": \"{{today()}}\"\n },\n {\n \"url\": \"coverage-assertion-id\",\n \"valueString\": \"0730da9e5a13eededb08999dcc06b89f22adf797fa2457fc0d7c330599da1311\"\n },\n {\n \"url\": \"contact\",\n \"valueContactDetail\": {\n \"name\": \"CRD Test Kit Wiki\",\n \"telecom\": [\n {\n \"system\": \"url\",\n \"value\": \"https://github.com/inferno-framework/davinci-crd-test-kit/wiki\"\n }\n ]\n }\n },\n {\n \"url\": \"expiry-date\",\n \"valueDate\": \"{{today() + 7 days}}\"\n }\n ],\n \"url\": \"http://hl7.org/fhir/us/davinci-crd/StructureDefinition/ext-coverage-information\"\n }\n ]\n },\n \"extension\": {\n \"com.inferno.includeForServices\": \"encounter-discharge-service\",\n \"com.inferno.resourceSelectionCriteria\": \"prefetch.encounter\"\n }\n },\n {\n \"type\": \"update\",\n \"description\": \"Added pa satisfied coverage information to Encounter resource (Subset Prefetch).\",\n \"resource\": {\n \"extension\": [\n {\n \"extension\": [\n {\n \"url\": \"coverage\",\n \"valueReference\": {\n \"reference\": \"Coverage/crd221-demo-coverage-subset-prefetch\"\n }\n },\n {\n \"url\": \"covered\",\n \"valueCode\": \"covered\"\n },\n {\n \"url\": \"pa-needed\",\n \"valueCode\": \"satisfied\"\n },\n {\n \"url\": \"billingCode\",\n \"valueCoding\": {\n \"system\": \"http://www.ama-assn.org/go/cpt\",\n \"code\": \"77067\"\n }\n },\n {\n \"extension\": [\n {\n \"url\": \"category\",\n \"valueCode\": \"cat-other\"\n },\n {\n \"url\": \"code\",\n \"valueCodeableConcept\": {\n \"coding\": [\n {\n \"system\": \"http://terminology.hl7.org/CodeSystem/crd-coverage-detail\",\n \"code\": \"instructions\"\n }\n ]\n }\n },\n {\n \"url\": \"value\",\n \"valueUrl\": \"https://github.com/inferno-framework/davinci-crd-test-kit/wiki\"\n },\n {\n \"url\": \"qualification\",\n \"valueString\": \"CRD Test Kit Wiki\"\n }\n ],\n \"url\": \"detail\"\n },\n {\n \"url\": \"date\",\n \"valueDate\": \"{{today()}}\"\n },\n {\n \"url\": \"coverage-assertion-id\",\n \"valueString\": \"0730da9e5a13eededb08999dcc06b89f22bdf797fa2457fc0d7c330599da1311\"\n },\n {\n \"url\": \"satisfied-pa-id\",\n \"valueString\": \"XXYYZ\"\n },\n {\n \"url\": \"contact\",\n \"valueContactDetail\": {\n \"name\": \"CRD Test Kit Wiki\",\n \"telecom\": [\n {\n \"system\": \"url\",\n \"value\": \"https://github.com/inferno-framework/davinci-crd-test-kit/wiki\"\n }\n ]\n }\n },\n {\n \"url\": \"expiry-date\",\n \"valueDate\": \"{{today() + 7 days}}\"\n }\n ],\n \"url\": \"http://hl7.org/fhir/us/davinci-crd/StructureDefinition/ext-coverage-information\"\n }\n ]\n },\n \"extension\": {\n \"com.inferno.includeForServices\": \"encounter-discharge-subset\",\n \"com.inferno.resourceSelectionCriteria\": \"prefetch.enc\"\n }\n }\n ]\n}"
63
63
  },
64
64
  {
65
65
  "name": "order_select_selected_response_types",
@@ -76,7 +76,11 @@ module DaVinciCRDTestKit
76
76
  end
77
77
 
78
78
  def make_response
79
- if invoked_hook != requested_hook
79
+ if requested_hook.blank?
80
+ error_response("No hook requested - populate the 'hook' element in the request.",
81
+ code: 400,
82
+ outcome_code: 'value')
83
+ elsif invoked_hook != requested_hook
80
84
  error_response("#{request.env['PATH_INFO']} serves the #{invoked_hook}, but the client " \
81
85
  "requested the #{requested_hook} hook.",
82
86
  code: 400,
@@ -105,7 +109,7 @@ module DaVinciCRDTestKit
105
109
 
106
110
  def process_valid_hook
107
111
  if ig_version == 'v201'
108
- send(:"gather_#{requested_hook.gsub('-', '_')}_data")
112
+ send(:"gather_#{requested_hook&.gsub('-', '_')}_data")
109
113
  request_coverage
110
114
  elsif ig_version == 'v221'
111
115
  request_additional_fhir_data
@@ -136,7 +140,7 @@ module DaVinciCRDTestKit
136
140
  nil
137
141
  end
138
142
 
139
- def apply_hook_configuration(response_body)
143
+ def apply_hook_configuration(response_body) # rubocop:disable Metrics/CyclomaticComplexity
140
144
  return response_body unless response_body.present? && coverage_info_disabled?
141
145
 
142
146
  cards = response_body['cards']
@@ -147,6 +151,8 @@ module DaVinciCRDTestKit
147
151
  response_body['systemActions'] = system_actions.reject { |action| coverage_info_system_action_type?(action) }
148
152
  end
149
153
 
154
+ response_body.delete 'systemActions' if response_body['systemActions'].blank?
155
+
150
156
  response_body
151
157
  end
152
158
 
@@ -166,7 +172,7 @@ module DaVinciCRDTestKit
166
172
  wrong_hook_for_test? ||
167
173
  !AVAILABLE_HOOKS.include?(requested_hook)
168
174
 
169
- [hook_instance_tag, hook_or_group_tag]
175
+ [hook_instance_tag, hook_or_group_tag].compact
170
176
  end
171
177
 
172
178
  def hook_instance_tag
@@ -176,7 +182,7 @@ module DaVinciCRDTestKit
176
182
  def hook_or_group_tag
177
183
  if test.config.options[:crd_test_group].present?
178
184
  test.config.options[:crd_test_group]
179
- else
185
+ elsif name.present?
180
186
  DaVinciCRDTestKit.const_get(:"#{name.upcase}_TAG")
181
187
  end
182
188
  end
@@ -204,7 +210,7 @@ module DaVinciCRDTestKit
204
210
  end
205
211
 
206
212
  def name
207
- requested_hook.gsub('-', '_')
213
+ requested_hook&.gsub('-', '_')
208
214
  end
209
215
 
210
216
  # -----------------------
@@ -18,4 +18,4 @@
18
18
  "type": "absolute"
19
19
  }
20
20
  ]
21
- }
21
+ }
@@ -11,13 +11,6 @@
11
11
  "display": "Coverage Information"
12
12
  }
13
13
  },
14
- "suggestions": [
15
- {
16
- "label": "Inferno placeholder suggestion",
17
- "uuid": "5abc166b-c50f-4df4-bdb1-2b0b62cb8e55"
18
- }
19
- ],
20
- "selectionBehavior": "any",
21
14
  "links": [
22
15
  {
23
16
  "label": "Inferno",
@@ -14,6 +14,7 @@ require_relative 'verify_request/hook_request_data_fetch_verification_test'
14
14
  require_relative 'verify_response/inferno_response_validation'
15
15
  require_relative 'verify_response/client_display_cards_attest'
16
16
  require_relative 'verify_response/hook_response_support_coverage_information_test'
17
+ require_relative 'client_urls'
17
18
 
18
19
  module DaVinciCRDTestKit
19
20
  module V221
@@ -25,12 +26,18 @@ module DaVinciCRDTestKit
25
26
  the user is scheduling one or more future encounters/visits for the patient.
26
27
  The CRD IG places [additional constraints on the use of the appintment-book hook](https://hl7.org/fhir/us/davinci-crd/2.2.1/en/hooks.html#appointment-book),
27
28
  including the profiles that resources in each request must conform to.
29
+
30
+ Inferno's simulated `appointment-book` hook endpoints are available at:
31
+ - Complete Prefetch: `#{ClientURLs.base_url}#{APPOINTMENT_BOOK_PATH}`
32
+ - Subset Prefetch: `#{ClientURLs.base_url}#{APPOINTMENT_BOOK_PREFETCH_SUBSET_PATH}`
28
33
  DESCRIPTION
29
34
  run_as_group
30
35
 
31
36
  verifies_requirements 'hl7.fhir.us.davinci-crd_2.2.1@hook-2-A'
32
37
 
33
- input_order :cds_jwt_iss, :cds_jwk_set
38
+ input_order :appointment_book_response_approach,
39
+ :appointment_book_selected_response_types,
40
+ :appointment_book_custom_response_template
34
41
 
35
42
  config(
36
43
  inputs: {
@@ -25,12 +25,18 @@ module DaVinciCRDTestKit
25
25
  the notion of 'discharge' is relevant - typically an inpatient encounter.
26
26
  The CRD IG places [additional constraints on the use of the encounter-discharge hook](https://hl7.org/fhir/us/davinci-crd/2.2.1/en/hooks.html#encounter-discharge),
27
27
  including the profiles that resources in each request must conform to.
28
+
29
+ Inferno's simulated `encounter-discharge` hook endpoints are available at:
30
+ - Complete Prefetch: `#{ClientURLs.base_url}#{ENCOUNTER_DISCHARGE_PATH}`
31
+ - Subset Prefetch: `#{ClientURLs.base_url}#{ENCOUNTER_DISCHARGE_PREFETCH_SUBSET_PATH}`
28
32
  DESCRIPTION
29
33
  run_as_group
30
34
 
31
35
  verifies_requirements 'hl7.fhir.us.davinci-crd_2.2.1@hook-2-A'
32
36
 
33
- input_order :cds_jwt_iss, :cds_jwk_set
37
+ input_order :encounter_discharge_response_approach,
38
+ :encounter_discharge_selected_response_types,
39
+ :encounter_discharge_custom_response_template
34
40
 
35
41
  config(
36
42
  inputs: {
@@ -24,12 +24,18 @@ module DaVinciCRDTestKit
24
24
  when the user is initiating a new encounter. The CRD IG places [additional constraints on the use
25
25
  of the encounter-start hook](https://hl7.org/fhir/us/davinci-crd/2.2.1/en/hooks.html#encounter-start),
26
26
  including the profiles that resources in each request must conform to.
27
+
28
+ Inferno's simulated `encounter-start` hook endpoints are available at:
29
+ - Complete Prefetch: `#{ClientURLs.base_url}#{ENCOUNTER_START_PATH}`
30
+ - Subset Prefetch: `#{ClientURLs.base_url}#{ENCOUNTER_START_PREFETCH_SUBSET_PATH}`
27
31
  DESCRIPTION
28
32
  run_as_group
29
33
 
30
34
  verifies_requirements 'hl7.fhir.us.davinci-crd_2.2.1@hook-2-A'
31
35
 
32
- input_order :cds_jwt_iss, :cds_jwk_set
36
+ input_order :encounter_start_response_approach,
37
+ :encounter_start_selected_response_types,
38
+ :encounter_start_custom_response_template
33
39
 
34
40
  config(
35
41
  inputs: {