davinci_crd_test_kit 0.10.0 → 0.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. checksums.yaml +4 -4
  2. data/config/presets/inferno_crd_client_suite.json.erb +110 -0
  3. data/config/presets/inferno_crd_server_suite.json.erb +173 -0
  4. data/config/presets/ri_crd_request_generator.json.erb +74 -0
  5. data/config/presets/ri_crd_server.json.erb +116 -0
  6. data/lib/davinci_crd_test_kit/crd_client_suite.rb +0 -3
  7. data/lib/davinci_crd_test_kit/crd_server_suite.rb +11 -9
  8. data/lib/davinci_crd_test_kit/igs/.keep +0 -0
  9. data/lib/davinci_crd_test_kit/igs/davinci-crd-2.0.1.tgz +0 -0
  10. data/lib/davinci_crd_test_kit/metadata.rb +75 -0
  11. data/lib/davinci_crd_test_kit/server_appointment_book_group.rb +4 -3
  12. data/lib/davinci_crd_test_kit/server_demonstrate_hook_response_group.rb +77 -0
  13. data/lib/davinci_crd_test_kit/server_encounter_discharge_group.rb +4 -3
  14. data/lib/davinci_crd_test_kit/server_encounter_start_group.rb +4 -3
  15. data/lib/davinci_crd_test_kit/server_hook_helper.rb +43 -0
  16. data/lib/davinci_crd_test_kit/server_order_dispatch_group.rb +4 -3
  17. data/lib/davinci_crd_test_kit/server_order_select_group.rb +4 -3
  18. data/lib/davinci_crd_test_kit/server_order_sign_group.rb +4 -3
  19. data/lib/davinci_crd_test_kit/server_tests/additional_orders_validation_test.rb +4 -6
  20. data/lib/davinci_crd_test_kit/server_tests/coverage_information_system_action_received_test.rb +6 -7
  21. data/lib/davinci_crd_test_kit/server_tests/coverage_information_system_action_validation_test.rb +0 -4
  22. data/lib/davinci_crd_test_kit/server_tests/create_or_update_coverage_info_response_validation_test.rb +3 -5
  23. data/lib/davinci_crd_test_kit/server_tests/discovery_endpoint_test.rb +1 -1
  24. data/lib/davinci_crd_test_kit/server_tests/external_reference_card_validation_test.rb +4 -5
  25. data/lib/davinci_crd_test_kit/server_tests/form_completion_response_validation_test.rb +3 -5
  26. data/lib/davinci_crd_test_kit/server_tests/instructions_card_received_test.rb +3 -5
  27. data/lib/davinci_crd_test_kit/server_tests/launch_smart_app_card_validation_test.rb +4 -5
  28. data/lib/davinci_crd_test_kit/server_tests/propose_alternate_request_card_validation_test.rb +3 -5
  29. data/lib/davinci_crd_test_kit/server_tests/service_call_test.rb +23 -8
  30. data/lib/davinci_crd_test_kit/server_tests/service_request_context_validation_test.rb +4 -6
  31. data/lib/davinci_crd_test_kit/server_tests/service_request_optional_fields_validation_test.rb +4 -6
  32. data/lib/davinci_crd_test_kit/server_tests/service_request_required_fields_validation_test.rb +7 -7
  33. data/lib/davinci_crd_test_kit/server_tests/service_response_validation_test.rb +7 -8
  34. data/lib/davinci_crd_test_kit/tags.rb +2 -0
  35. data/lib/davinci_crd_test_kit/version.rb +2 -1
  36. data/lib/davinci_crd_test_kit.rb +1 -0
  37. metadata +20 -10
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2ddb0a94328d93ac6333f9a892a3b858b657c2975d75676b87af3286393b0e3a
4
- data.tar.gz: ac058ce0ceeaa30c0ae47714e419286f4b9b78560967403ce5b6371672b1f4ee
3
+ metadata.gz: 1879b6dcc549cb54407ade46d61b02fa8e29b12aee9fc040a1a1b392168527fb
4
+ data.tar.gz: bf8a00808c555d93c3c6e1533222cbd432db76879e199d715a93f7e47edaffa5
5
5
  SHA512:
6
- metadata.gz: 68597767dad05fe18f2a479370c224cb05aca517c23badeb911e687b794e9de4404f9270e2ffbb36a25a8940162f28b42a8f70b9e660414ee573621936de5cac
7
- data.tar.gz: e1f21bf48b6966c8343b957ddc01a0e1ca717b30bdbc2ea0a894e65ed244cd52a2ef496786bb863ba653ef306ab94cf48e55efcbbb826df754ac65f078d907f3
6
+ metadata.gz: be08ac86518d07df11f700a772d8259e79bb6895cd656fce9ef1b0b536f50f334526346b4070e0051395a630189d7c0b82b93353d84c7bad25a9e769c16c415f
7
+ data.tar.gz: f0c5a1a345f580b3afd05a00ca2d4a4eb09ebd312ab0cba6de4a5d2bb179a8664a2792351ba32e2f929dcc41da46a6e863ecd0d2030b7a56b61ba8c896197dc1
@@ -0,0 +1,110 @@
1
+ {
2
+ "title": "Inferno CRD Client Suite",
3
+ "id": "inferno-crd-client-suite",
4
+ "test_suite_id": "crd_server",
5
+ "inputs": [
6
+ {
7
+ "name": "base_url",
8
+ "title": "CRD server base URL",
9
+ "type": "text",
10
+ "value": "<%= Inferno::Application['base_url'] %>/custom/crd_client"
11
+ },
12
+ {
13
+ "name": "authentication_required",
14
+ "default": "no",
15
+ "options": {
16
+ "list_options": [
17
+ {
18
+ "label": "No",
19
+ "value": "no"
20
+ },
21
+ {
22
+ "label": "Yes",
23
+ "value": "yes"
24
+ }
25
+ ]
26
+ },
27
+ "title": "Discovery endpoint requires authentication?",
28
+ "type": "radio",
29
+ "value": "no"
30
+ },
31
+ {
32
+ "name": "encryption_method",
33
+ "default": "ES384",
34
+ "description": "CDS Hooks recommends ES384 and RS384 for JWT signature verification. Select which method to use.",
35
+ "options": {
36
+ "list_options": [
37
+ {
38
+ "label": "ES384",
39
+ "value": "ES384"
40
+ },
41
+ {
42
+ "label": "RS384",
43
+ "value": "RS384"
44
+ }
45
+ ]
46
+ },
47
+ "title": "JWT Signing Algorithm",
48
+ "type": "radio",
49
+ "value": "ES384"
50
+ },
51
+ {
52
+ "name": "jwks_kid",
53
+ "description": "The key ID of the JWKS private key to use for signing the JWTs when invoking a CDS service endpoint requiring authentication. Defaults to the first JWK in the list if no kid is supplied.",
54
+ "optional": true,
55
+ "title": "CDS Services JWKS kid",
56
+ "type": "text",
57
+ "value": ""
58
+ },
59
+ {
60
+ "name": "any_hook_request_body",
61
+ "description": "Provide a single JSON request body to submit for the hook invocation. The type of hook invoked will be inferred based on the `hook` element in the request.",
62
+ "optional": true,
63
+ "title": "Request body to use for the \"Demonstrate a Hook Response\" test",
64
+ "type": "textarea",
65
+ "value": "{\n \"hookInstance\": \"d1577c69-dfbe-44ad-ba6d-3e05e953b2ea\",\n \"fhirServer\": \"https://inferno-qa.healthit.gov/reference-server/r4\",\n \"hook\": \"appointment-book\",\n \"fhirAuthorization\": {\n \"access_token\": \"SAMPLE_TOKEN\",\n \"token_type\": \"Bearer\",\n \"expires_in\": 300,\n \"scope\": \"user/Patient.read user/Observation.read\",\n \"subject\": \"cds-service\"\n },\n \"context\": {\n \"userId\": \"Practitioner/pra1255\",\n \"patientId\": \"pat014\",\n \"encounterId\": \"enc-pat014-cold\",\n \"appointments\": {\n \"resourceType\": \"Bundle\",\n \"id\": \"2a020b2f-1577-4ccb-8ee8-1dc09060f727\",\n \"meta\": {\n \"lastUpdated\": \"2024-05-10T03:55:33.823+00:00\"\n },\n \"type\": \"searchset\",\n \"total\": 2,\n \"link\": [\n {\n \"relation\": \"self\",\n \"url\": \"https://inferno-qa.healthit.gov/reference-server/r4/Appointment?patient=pat014\"\n }\n ],\n \"entry\": [\n {\n \"fullUrl\": \"https://inferno-qa.healthit.gov/reference-server/r4/Appointment/125\",\n \"resource\": {\n \"resourceType\": \"Appointment\",\n \"id\": \"125\",\n \"meta\": {\n \"versionId\": \"1\",\n \"lastUpdated\": \"2024-05-10T03:52:09.983+00:00\",\n \"source\": \"#KIaKP1Pfw7EVpLjl\"\n },\n \"status\": \"proposed\",\n \"serviceType\": [\n {\n \"coding\": [\n {\n \"system\": \"http://terminology.hl7.org/CodeSystem/service-type\",\n \"code\": \"183\",\n \"display\": \"Sleep Medicine\"\n }\n ]\n }\n ],\n \"appointmentType\": {\n \"coding\": [\n {\n \"system\": \"http://terminology.hl7.org/CodeSystem/v2-0276\",\n \"code\": \"FOLLOWUP\",\n \"display\": \"A follow up visit from a previous appointment\"\n }\n ]\n },\n \"description\": \"CPAP adjustments\",\n \"start\": \"2019-08-10T09:00:00Z\",\n \"end\": \"2019-08-10T11:00:00Z\",\n \"created\": \"2019-08-01\",\n \"participant\": [\n {\n \"actor\": {\n \"reference\": \"Patient/pat014\",\n \"display\": \"Peter James Chalmers\"\n },\n \"required\": \"required\",\n \"status\": \"tentative\"\n },\n {\n \"actor\": {\n \"reference\": \"Practitioner/pra1255\",\n \"display\": \"Dr Adam Careful\"\n },\n \"required\": \"required\",\n \"status\": \"accepted\"\n }\n ],\n \"requestedPeriod\": [\n {\n \"start\": \"2020-05-23\",\n \"end\": \"2020-05-23\"\n }\n ]\n },\n \"search\": {\n \"mode\": \"match\"\n }\n },\n {\n \"fullUrl\": \"https://inferno-qa.healthit.gov/reference-server/r4/Appointment/126\",\n \"resource\": {\n \"resourceType\": \"Appointment\",\n \"id\": \"126\",\n \"meta\": {\n \"versionId\": \"1\",\n \"lastUpdated\": \"2024-05-10T03:55:17.405+00:00\",\n \"source\": \"#RTJWuip7OTKyTjG7\"\n },\n \"status\": \"proposed\",\n \"appointmentType\": {\n \"coding\": [\n {\n \"system\": \"http://terminology.hl7.org/CodeSystem/v2-0276\",\n \"code\": \"CHECKUP\",\n \"display\": \"A routine check-up, such as an annual physical\"\n }\n ]\n },\n \"description\": \"Regular physical\",\n \"start\": \"2020-08-01T11:00:00Z\",\n \"end\": \"2020-08-01T13:00:00Z\",\n \"created\": \"2019-08-01\",\n \"participant\": [\n {\n \"actor\": {\n \"reference\": \"Patient/pat014\",\n \"display\": \"Peter James Chalmers\"\n },\n \"required\": \"required\",\n \"status\": \"tentative\"\n },\n {\n \"actor\": {\n \"reference\": \"Practitioner/pra1255\",\n \"display\": \"Dr Adam Careful\"\n },\n \"required\": \"required\",\n \"status\": \"accepted\"\n }\n ],\n \"requestedPeriod\": [\n {\n \"start\": \"2021-05-23\",\n \"end\": \"2021-05-23\"\n }\n ]\n },\n \"search\": {\n \"mode\": \"match\"\n }\n }\n ]\n }\n },\n \"prefetch\": {\n \"encounterBundle\": {\n \"resourceType\": \"Bundle\",\n \"id\": \"def4ab7c-3ce3-441a-bed6-49267d0f787a\",\n \"meta\": {\n \"lastUpdated\": \"2024-05-10T03:57:58.842+00:00\"\n },\n \"type\": \"searchset\",\n \"total\": 1,\n \"link\": [\n {\n \"relation\": \"self\",\n \"url\": \"https://inferno-qa.healthit.gov/reference-server/r4/Encounter?_id=enc-pat014-cold&_include=Encounter%3Apatient&_include=Encounter%3Aservice-provider&_include=Encounter%3Apractitioner&_include=Encounter%3Alocation\"\n }\n ],\n \"entry\": [\n {\n \"fullUrl\": \"https://inferno-qa.healthit.gov/reference-server/r4/Encounter/enc-pat014-cold\",\n \"resource\": {\n \"resourceType\": \"Encounter\",\n \"id\": \"enc-pat014-cold\",\n \"meta\": {\n \"versionId\": \"1\",\n \"lastUpdated\": \"2024-04-25T17:48:34.726+00:00\",\n \"source\": \"#2Co42uqYJxUtNNmA\"\n },\n \"status\": \"finished\",\n \"class\": {\n \"system\": \"http://terminology.hl7.org/CodeSystem/v3-ActCode\",\n \"code\": \"AMB\",\n \"display\": \"ambulatory\"\n },\n \"type\": [\n {\n \"coding\": [\n {\n \"system\": \"http://snomed.info/sct\",\n \"code\": \"185345009\",\n \"display\": \"Encounter for symptom\"\n }\n ]\n }\n ],\n \"priority\": {\n \"coding\": [\n {\n \"system\": \"http://snomed.info/sct\",\n \"code\": \"103391001\",\n \"display\": \"Urgent\"\n }\n ]\n },\n \"subject\": {\n \"reference\": \"Patient/pat014\",\n \"display\": \"Teddy\"\n },\n \"participant\": [\n {\n \"individual\": {\n \"reference\": \"Practitioner/pra-sstrange\"\n }\n }\n ],\n \"period\": {\n \"start\": \"2020-02-14T10:40:10+01:00\",\n \"end\": \"2020-02-14T12:40:10+01:00\"\n },\n \"length\": {\n \"value\": 56,\n \"unit\": \"minutes\",\n \"system\": \"http://unitsofmeasure.org\",\n \"code\": \"min\"\n },\n \"reasonCode\": [\n {\n \"coding\": [\n {\n \"system\": \"http://snomed.info/sct\",\n \"code\": \"82272006\",\n \"display\": \"Common cold (disorder)\"\n }\n ]\n }\n ],\n \"diagnosis\": [\n {\n \"condition\": {\n \"reference\": \"Condition/cond014b\",\n \"display\": \"The patient is treated for heartburn\"\n },\n \"use\": {\n \"coding\": [\n {\n \"system\": \"http://terminology.hl7.org/CodeSystem/diagnosis-role\",\n \"code\": \"AD\",\n \"display\": \"Admission diagnosis\"\n }\n ]\n },\n \"rank\": 2\n },\n {\n \"condition\": {\n \"reference\": \"Condition/cond014b\",\n \"display\": \"The patient is treated for heartburn\"\n },\n \"use\": {\n \"coding\": [\n {\n \"system\": \"http://terminology.hl7.org/CodeSystem/diagnosis-role\",\n \"code\": \"CC\",\n \"display\": \"Chief complaint\"\n }\n ]\n },\n \"rank\": 1\n }\n ]\n },\n \"search\": {\n \"mode\": \"match\"\n }\n },\n {\n \"fullUrl\": \"https://inferno-qa.healthit.gov/reference-server/r4/Patient/pat014\",\n \"resource\": {\n \"resourceType\": \"Patient\",\n \"id\": \"pat014\",\n \"meta\": {\n \"versionId\": \"1\",\n \"lastUpdated\": \"2024-04-25T17:48:34.662+00:00\",\n \"source\": \"#4RE6S8FR2Y44APk0\"\n },\n \"text\": {\n \"status\": \"generated\",\n \"div\": \"<div xmlns=\\\"http://www.w3.org/1999/xhtml\\\"><div class=\\\"hapiHeaderText\\\">Theodor Alan Roosevelt <b>ROOSEVELT </b></div><table class=\\\"hapiPropertyTable\\\"><tbody><tr><td>Identifier</td><td>0M846129001NF</td></tr><tr><td>Address</td><td><span>7525 Colshire Dr </span><br/><span>McLean </span><span>VA </span></td></tr><tr><td>Date of birth</td><td><span>04 July 1946</span></td></tr></tbody></table></div>\"\n },\n \"identifier\": [\n {\n \"use\": \"usual\",\n \"type\": {\n \"coding\": [\n {\n \"system\": \"http://terminology.hl7.org/CodeSystem/v2-0203\",\n \"code\": \"MR\"\n }\n ],\n \"text\": \"Medical Record Number\"\n },\n \"system\": \"http://hl7.org/fhir/sid/us-medicare\",\n \"value\": \"0M846129001NF\"\n }\n ],\n \"name\": [\n {\n \"use\": \"official\",\n \"family\": \"Roosevelt\",\n \"given\": [\n \"Theodor\",\n \"Alan\",\n \"Roosevelt\"\n ]\n }\n ],\n \"gender\": \"male\",\n \"birthDate\": \"1946-07-04\",\n \"address\": [\n {\n \"use\": \"home\",\n \"type\": \"both\",\n \"line\": [\n \"7525 Colshire Dr\"\n ],\n \"city\": \"McLean\",\n \"state\": \"VA\",\n \"postalCode\": \"22102\"\n }\n ]\n },\n \"search\": {\n \"mode\": \"include\"\n }\n },\n {\n \"fullUrl\": \"https://inferno-qa.healthit.gov/reference-server/r4/Practitioner/pra-sstrange\",\n \"resource\": {\n \"resourceType\": \"Practitioner\",\n \"id\": \"pra-sstrange\",\n \"meta\": {\n \"versionId\": \"1\",\n \"lastUpdated\": \"2024-04-25T17:48:33.939+00:00\",\n \"source\": \"#zUqXWSo8DhSDB3un\"\n },\n \"identifier\": [\n {\n \"system\": \"http://hl7.org/fhir/sid/us-npi\",\n \"value\": \"1122334466\"\n }\n ],\n \"name\": [\n {\n \"use\": \"official\",\n \"family\": \"Strange\",\n \"given\": [\n \"Stephen\"\n ],\n \"prefix\": [\n \"Dr.\"\n ]\n }\n ]\n },\n \"search\": {\n \"mode\": \"include\"\n }\n }\n ]\n },\n \"patient\": {\n \"resourceType\": \"Patient\",\n \"id\": \"pat014\",\n \"meta\": {\n \"versionId\": \"1\",\n \"lastUpdated\": \"2024-04-25T17:48:34.662+00:00\",\n \"source\": \"#4RE6S8FR2Y44APk0\"\n },\n \"text\": {\n \"status\": \"generated\",\n \"div\": \"<div xmlns=\\\"http://www.w3.org/1999/xhtml\\\"><div class=\\\"hapiHeaderText\\\">Theodor Alan Roosevelt <b>ROOSEVELT </b></div><table class=\\\"hapiPropertyTable\\\"><tbody><tr><td>Identifier</td><td>0M846129001NF</td></tr><tr><td>Address</td><td><span>7525 Colshire Dr </span><br/><span>McLean </span><span>VA </span></td></tr><tr><td>Date of birth</td><td><span>04 July 1946</span></td></tr></tbody></table></div>\"\n },\n \"identifier\": [\n {\n \"use\": \"usual\",\n \"type\": {\n \"coding\": [\n {\n \"system\": \"http://terminology.hl7.org/CodeSystem/v2-0203\",\n \"code\": \"MR\"\n }\n ],\n \"text\": \"Medical Record Number\"\n },\n \"system\": \"http://hl7.org/fhir/sid/us-medicare\",\n \"value\": \"0M846129001NF\"\n }\n ],\n \"name\": [\n {\n \"use\": \"official\",\n \"family\": \"Roosevelt\",\n \"given\": [\n \"Theodor\",\n \"Alan\",\n \"Roosevelt\"\n ]\n }\n ],\n \"gender\": \"male\",\n \"birthDate\": \"1946-07-04\",\n \"address\": [\n {\n \"use\": \"home\",\n \"type\": \"both\",\n \"line\": [\n \"7525 Colshire Dr\"\n ],\n \"city\": \"McLean\",\n \"state\": \"VA\",\n \"postalCode\": \"22102\"\n }\n ]\n },\n \"coverageBundle\": {\n \"resourceType\": \"Bundle\",\n \"id\": \"5b0be74e-9f57-4d11-a5e9-ec05fe9af42c\",\n \"meta\": {\n \"lastUpdated\": \"2024-05-10T03:56:46.942+00:00\"\n },\n \"type\": \"searchset\",\n \"total\": 1,\n \"link\": [\n {\n \"relation\": \"self\",\n \"url\": \"https://inferno-qa.healthit.gov/reference-server/r4/Coverage?patient=pat014\"\n }\n ],\n \"entry\": [\n {\n \"fullUrl\": \"https://inferno-qa.healthit.gov/reference-server/r4/Coverage/cov014\",\n \"resource\": {\n \"resourceType\": \"Coverage\",\n \"id\": \"cov014\",\n \"meta\": {\n \"versionId\": \"1\",\n \"lastUpdated\": \"2024-04-25T17:48:34.696+00:00\",\n \"source\": \"#XvndBJotP6fVi3pl\"\n },\n \"status\": \"active\",\n \"subscriberId\": \"10A3D58WH1600\",\n \"beneficiary\": {\n \"reference\": \"Patient/pat014\"\n },\n \"payor\": [\n {\n \"reference\": \"Organization/org1234\"\n }\n ],\n \"class\": [\n {\n \"type\": {\n \"coding\": [\n {\n \"system\": \"http://hl7.org/fhir/coverage-class\",\n \"code\": \"plan\"\n }\n ]\n },\n \"value\": \"Medicare Part B\"\n }\n ]\n },\n \"search\": {\n \"mode\": \"match\"\n }\n }\n ]\n }\n },\n \"extension\": {\n \"davinci-crd.configuration\": {\n \"coverage\": true,\n \"max-cards\": 10\n }\n }\n}\n"
66
+ },
67
+ {
68
+ "name": "appointment_book_request_bodies",
69
+ "description": "To send multiple requests, provide as a JSON list, e.g., [json_body_1, json_body_2].. e.g. [json_body_1, json_body_2]",
70
+ "title": "Request body or bodies for invoking the `appointment-book` hook",
71
+ "type": "textarea",
72
+ "value": "[\n {\n \"hookInstance\": \"d1577c69-dfbe-44ad-ba6d-3e05e953b2ea\",\n \"fhirServer\": \"https://inferno-qa.healthit.gov/reference-server/r4\",\n \"hook\": \"appointment-book\",\n \"fhirAuthorization\": {\n \"access_token\": \"SAMPLE_TOKEN\",\n \"token_type\": \"Bearer\",\n \"expires_in\": 300,\n \"scope\": \"user/Patient.read user/Observation.read\",\n \"subject\": \"cds-service\"\n },\n \"context\": {\n \"userId\": \"Practitioner/pra1255\",\n \"patientId\": \"pat014\",\n \"encounterId\": \"enc-pat014-cold\",\n \"appointments\": {\n \"resourceType\": \"Bundle\",\n \"id\": \"2a020b2f-1577-4ccb-8ee8-1dc09060f727\",\n \"meta\": {\n \"lastUpdated\": \"2024-05-10T03:55:33.823+00:00\"\n },\n \"type\": \"searchset\",\n \"total\": 2,\n \"link\": [\n {\n \"relation\": \"self\",\n \"url\": \"https://inferno-qa.healthit.gov/reference-server/r4/Appointment?patient=pat014\"\n }\n ],\n \"entry\": [\n {\n \"fullUrl\": \"https://inferno-qa.healthit.gov/reference-server/r4/Appointment/125\",\n \"resource\": {\n \"resourceType\": \"Appointment\",\n \"id\": \"125\",\n \"meta\": {\n \"versionId\": \"1\",\n \"lastUpdated\": \"2024-05-10T03:52:09.983+00:00\",\n \"source\": \"#KIaKP1Pfw7EVpLjl\"\n },\n \"status\": \"proposed\",\n \"serviceType\": [\n {\n \"coding\": [\n {\n \"system\": \"http://terminology.hl7.org/CodeSystem/service-type\",\n \"code\": \"183\",\n \"display\": \"Sleep Medicine\"\n }\n ]\n }\n ],\n \"appointmentType\": {\n \"coding\": [\n {\n \"system\": \"http://terminology.hl7.org/CodeSystem/v2-0276\",\n \"code\": \"FOLLOWUP\",\n \"display\": \"A follow up visit from a previous appointment\"\n }\n ]\n },\n \"description\": \"CPAP adjustments\",\n \"start\": \"2019-08-10T09:00:00Z\",\n \"end\": \"2019-08-10T11:00:00Z\",\n \"created\": \"2019-08-01\",\n \"participant\": [\n {\n \"actor\": {\n \"reference\": \"Patient/pat014\",\n \"display\": \"Peter James Chalmers\"\n },\n \"required\": \"required\",\n \"status\": \"tentative\"\n },\n {\n \"actor\": {\n \"reference\": \"Practitioner/pra1255\",\n \"display\": \"Dr Adam Careful\"\n },\n \"required\": \"required\",\n \"status\": \"accepted\"\n }\n ],\n \"requestedPeriod\": [\n {\n \"start\": \"2020-05-23\",\n \"end\": \"2020-05-23\"\n }\n ]\n },\n \"search\": {\n \"mode\": \"match\"\n }\n },\n {\n \"fullUrl\": \"https://inferno-qa.healthit.gov/reference-server/r4/Appointment/126\",\n \"resource\": {\n \"resourceType\": \"Appointment\",\n \"id\": \"126\",\n \"meta\": {\n \"versionId\": \"1\",\n \"lastUpdated\": \"2024-05-10T03:55:17.405+00:00\",\n \"source\": \"#RTJWuip7OTKyTjG7\"\n },\n \"status\": \"proposed\",\n \"appointmentType\": {\n \"coding\": [\n {\n \"system\": \"http://terminology.hl7.org/CodeSystem/v2-0276\",\n \"code\": \"CHECKUP\",\n \"display\": \"A routine check-up, such as an annual physical\"\n }\n ]\n },\n \"description\": \"Regular physical\",\n \"start\": \"2020-08-01T11:00:00Z\",\n \"end\": \"2020-08-01T13:00:00Z\",\n \"created\": \"2019-08-01\",\n \"participant\": [\n {\n \"actor\": {\n \"reference\": \"Patient/pat014\",\n \"display\": \"Peter James Chalmers\"\n },\n \"required\": \"required\",\n \"status\": \"tentative\"\n },\n {\n \"actor\": {\n \"reference\": \"Practitioner/pra1255\",\n \"display\": \"Dr Adam Careful\"\n },\n \"required\": \"required\",\n \"status\": \"accepted\"\n }\n ],\n \"requestedPeriod\": [\n {\n \"start\": \"2021-05-23\",\n \"end\": \"2021-05-23\"\n }\n ]\n },\n \"search\": {\n \"mode\": \"match\"\n }\n }\n ]\n }\n }\n }\n]\n"
73
+ },
74
+ {
75
+ "name": "encounter_start_request_bodies",
76
+ "description": "To send multiple requests, provide as a JSON list, e.g., [json_body_1, json_body_2].. e.g. [json_body_1, json_body_2]",
77
+ "title": "Request body or bodies for invoking the `encounter-start` hook",
78
+ "type": "textarea",
79
+ "value": "[\n {\n \"hookInstance\": \"f3945c69-dfbe-44vf-ba6d-3e05e953b2ea\",\n \"fhirServer\": \"https://inferno-qa.healthit.gov/reference-server/r4\",\n \"hook\": \"encounter-start\",\n \"fhirAuthorization\": {\n \"access_token\": \"SAMPLE_TOKEN\",\n \"token_type\": \"Bearer\",\n \"expires_in\": 300,\n \"scope\": \"user/Patient.read user/Practitioner.read user/Encounter.read\",\n \"subject\": \"cds-service\"\n },\n \"context\": {\n \"userId\": \"Practitioner/pra1255\",\n \"patientId\": \"pat015\",\n \"encounterId\": \"127\"\n }\n }\n]\n"
80
+ },
81
+ {
82
+ "name": "encounter_discharge_request_bodies",
83
+ "description": "To send multiple requests, provide as a JSON list, e.g., [json_body_1, json_body_2].. e.g. [json_body_1, json_body_2]",
84
+ "title": "Request body or bodies for invoking the `encounter-discharge` hook",
85
+ "type": "textarea",
86
+ "value": "[\n {\n \"hookInstance\": \"f3945c69-dfbe-44vf-ba6d-3e05e123b2ea\",\n \"fhirServer\": \"https://inferno-qa.healthit.gov/reference-server/r4\",\n \"hook\": \"encounter-discharge\",\n \"fhirAuthorization\": {\n \"access_token\": \"SAMPLE_TOKEN\",\n \"token_type\": \"Bearer\",\n \"expires_in\": 300,\n \"scope\": \"user/Patient.read user/Practitioner.read user/Encounter.read\",\n \"subject\": \"cds-service\"\n },\n \"context\": {\n \"userId\": \"Practitioner/pra1255\",\n \"patientId\": \"pat014\",\n \"encounterId\": \"enc-pat014-cold\"\n }\n }\n]\n"
87
+ },
88
+ {
89
+ "name": "order_select_request_bodies",
90
+ "description": "To send multiple requests, provide as a JSON list, e.g., [json_body_1, json_body_2].. e.g. [json_body_1, json_body_2]",
91
+ "title": "Request body or bodies for invoking the `order-select` hook",
92
+ "type": "textarea",
93
+ "value": "[\n {\n \"hookInstance\": \"d1577c69-dfbe-44ad-ba6d-3e05e953b2ea\",\n \"fhirServer\": \"https://inferno-qa.healthit.gov/reference-server/r4\",\n \"hook\": \"order-select\",\n \"fhirAuthorization\": {\n \"access_token\": \"SAMPLE_TOKEN\",\n \"token_type\": \"Bearer\",\n \"expires_in\": 300,\n \"scope\": \"patient/Patient.read patient/Observation.read\",\n \"subject\": \"cds-service4\"\n },\n \"context\": {\n \"userId\": \"Practitioner/pra1234\",\n \"patientId\": \"pat014\",\n \"encounterId\": \"enc-pat014-cold\",\n \"selections\": [\n \"MedicationRequest/pat014-mr-azathioprine\"\n ],\n \"draftOrders\": {\n \"resourceType\": \"Bundle\",\n \"entry\": [\n {\n \"fullUrl\": \"https://inferno-qa.healthit.gov/reference-server/r4/MedicationRequest/pat014-mr-azathioprine\",\n \"resource\": {\n \"resourceType\": \"MedicationRequest\",\n \"id\": \"pat014-mr-azathioprine\",\n \"meta\": {\n \"versionId\": \"1\",\n \"lastUpdated\": \"2024-04-25T17:48:34.896+00:00\",\n \"source\": \"#R0SZmSGTb4YcV7ig\"\n },\n \"identifier\": [\n {\n \"type\": {\n \"coding\": [\n {\n \"system\": \"http://terminology.hl7.org/CodeSystem/v2-0203\",\n \"code\": \"PLAC\"\n }\n ]\n },\n \"value\": \"25839b73-fcc9-4706-8c77-a806995b8109\"\n }\n ],\n \"status\": \"draft\",\n \"intent\": \"order\",\n \"medicationCodeableConcept\": {\n \"coding\": [\n {\n \"system\": \"http://www.nlm.nih.gov/research/umls/rxnorm\",\n \"code\": \"105611\",\n \"display\": \"azathioprine 50 MG Oral Tablet [Imuran]\"\n }\n ]\n },\n \"subject\": {\n \"reference\": \"Patient/pat014\",\n \"display\": \"Theodor Roosevelt\"\n },\n \"authoredOn\": \"2020-05-11\",\n \"requester\": {\n \"reference\": \"Practitioner/pra1234\",\n \"display\": \"Jane Doe\"\n },\n \"reasonCode\": [\n {\n \"coding\": [\n {\n \"system\": \"http://snomed.info/sct\",\n \"code\": \"52042003\",\n \"display\": \"Systemic lupus erythematosus glomerulonephritis syndrome, World Health Organization class V (disorder)\"\n }\n ]\n }\n ],\n \"insurance\": [\n {\n \"reference\": \"Coverage/cov014\"\n }\n ],\n \"dosageInstruction\": [\n {\n \"sequence\": 1,\n \"text\": \"50 mg PO daily for remission induction\",\n \"timing\": {\n \"repeat\": {\n \"frequency\": 1,\n \"period\": 1,\n \"periodUnit\": \"d\"\n }\n },\n \"route\": {\n \"coding\": [\n {\n \"system\": \"http://snomed.info/sct\",\n \"code\": \"26643006\",\n \"display\": \"Oral route (qualifier value)\"\n }\n ]\n },\n \"doseAndRate\": [\n {\n \"type\": {\n \"coding\": [\n {\n \"system\": \"http://terminology.hl7.org/CodeSystem/dose-rate-type\",\n \"code\": \"ordered\",\n \"display\": \"Ordered\"\n }\n ]\n },\n \"doseQuantity\": {\n \"value\": 50,\n \"unit\": \"mg\",\n \"system\": \"http://unitsofmeasure.org\",\n \"code\": \"mg\"\n }\n }\n ]\n }\n ],\n \"dispenseRequest\": {\n \"numberOfRepeatsAllowed\": 3,\n \"quantity\": {\n \"value\": 90,\n \"system\": \"http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm\",\n \"code\": \"TAB\"\n }\n }\n },\n \"search\": {\n \"mode\": \"match\"\n }\n }\n ]\n }\n }\n }\n]\n"
94
+ },
95
+ {
96
+ "name": "order_dispatch_request_bodies",
97
+ "description": "To send multiple requests, provide as a JSON list, e.g., [json_body_1, json_body_2].. e.g. [json_body_1, json_body_2]",
98
+ "title": "Request body or bodies for invoking the `order-dispatch` hook",
99
+ "type": "textarea",
100
+ "value": "[\n {\n \"hookInstance\": \"f3945c39-dfbe-44vf-ba6d-3e05e123b2va\",\n \"fhirServer\": \"https://inferno-qa.healthit.gov/reference-server/r4\",\n \"hook\": \"order-dispatch\",\n \"fhirAuthorization\": {\n \"access_token\": \"SAMPLE_TOKEN\",\n \"token_type\": \"Bearer\",\n \"expires_in\": 300,\n \"scope\": \"user/Patient.read user/Practitioner.read user/ServiceRequest.read\",\n \"subject\": \"cds-service\"\n },\n \"context\": {\n \"patientId\": \"pat015\",\n \"order\": \"DeviceRequest/devreq-015-e0250\",\n \"performer\": \"Practitioner/pra1255\"\n }\n }\n]\n"
101
+ },
102
+ {
103
+ "name": "order_sign_request_bodies",
104
+ "description": "To send multiple requests, provide as a JSON list, e.g., [json_body_1, json_body_2].. e.g. [json_body_1, json_body_2]",
105
+ "title": "Request body or bodies for invoking the `order-sign` hook",
106
+ "type": "textarea",
107
+ "value": "[\n {\n \"hookInstance\": \"d1577c69-dfbe-44ad-ba6d-3e05e953b2ea\",\n \"fhirServer\": \"https://inferno-qa.healthit.gov/reference-server/r4\",\n \"hook\": \"order-sign\",\n \"fhirAuthorization\": {\n \"access_token\": \"SAMPLE_TOKEN\",\n \"token_type\": \"Bearer\",\n \"expires_in\": 300,\n \"scope\": \"patient/Patient.read patient/Observation.read\",\n \"subject\": \"cds-service4\"\n },\n \"context\": {\n \"userId\": \"Practitioner/pra1234\",\n \"patientId\": \"pat015\",\n \"encounterId\": \"enc-pat014\",\n \"draftOrders\": {\n \"resourceType\": \"Bundle\",\n \"entry\": [\n {\n \"resource\": {\n \"resourceType\": \"DeviceRequest\",\n \"id\": \"devreq-015-e0250\",\n \"meta\": {\n \"versionId\": \"1\",\n \"lastUpdated\": \"2024-05-08T09:47:16.992-04:00\",\n \"source\": \"#Odh5ejWjud85tvNJ\",\n \"profile\": [\n \"http://hl7.org/fhir/us/davinci-crd/R4/StructureDefinition/profile-devicerequest-r4\"\n ]\n },\n \"identifier\": [\n {\n \"type\": {\n \"coding\": [\n {\n \"system\": \"http://terminology.hl7.org/CodeSystem/v2-0203\",\n \"code\": \"PLAC\"\n }\n ]\n },\n \"value\": \"f105372f-bbef-442c-ad7a-708fee7f8c93\"\n }\n ],\n \"status\": \"draft\",\n \"intent\": \"original-order\",\n \"codeCodeableConcept\": {\n \"coding\": [\n {\n \"system\": \"https://bluebutton.cms.gov/resources/codesystem/hcpcs\",\n \"code\": \"E0250\",\n \"display\": \"Hospital bed fixed height with any type of side rails, mattress\"\n }\n ]\n },\n \"subject\": {\n \"reference\": \"Patient/pat015\"\n },\n \"authoredOn\": \"2023-01-01T00:00:00Z\",\n \"requester\": {\n \"reference\": \"Practitioner/pra-hfairchild\"\n },\n \"performer\": {\n \"reference\": \"Practitioner/pra1234\"\n },\n \"insurance\": [\n {\n \"reference\": \"Coverage/cov015\"\n }\n ]\n }\n }\n ]\n }\n }\n }\n]\n"
108
+ }
109
+ ]
110
+ }
@@ -0,0 +1,173 @@
1
+ {
2
+ "title": "Inferno CRD Server Suite",
3
+ "id": "inferno-crd-server-suite",
4
+ "test_suite_id": "crd_client",
5
+ "inputs": [
6
+ {
7
+ "name": "iss",
8
+ "title": "URI of the issuer of the JWT used to authorize CDS Hooks calls",
9
+ "type": "text",
10
+ "value": "<%= Inferno::Application['base_url'] %>/custom/crd_server"
11
+ },
12
+ {
13
+ "name": "url",
14
+ "description": "URL of the FHIR endpoint used by SMART applications",
15
+ "title": "FHIR Endpoint",
16
+ "type": "text",
17
+ "value": "<%= ENV.fetch('INFERNO_REFERENCE_SERVER_URI', 'https://inferno-qa.healthit.gov') %>/reference-server/r4"
18
+ },
19
+ {
20
+ "name": "ehr_smart_credentials",
21
+ "optional": true,
22
+ "title": "OAuth Credentials",
23
+ "type": "oauth_credentials",
24
+ "value": {
25
+ "access_token": "SAMPLE_TOKEN",
26
+ "refresh_token": "",
27
+ "expires_in": "",
28
+ "client_id": "",
29
+ "client_secret": "",
30
+ "token_url": ""
31
+ }
32
+ },
33
+ {
34
+ "name": "ehr_client_id",
35
+ "description": "Client ID provided during registration of Inferno as an EHR launch application",
36
+ "title": "EHR Launch Client ID",
37
+ "type": "text",
38
+ "value": "SAMPLE_PUBLIC_CLIENT_ID"
39
+ },
40
+ {
41
+ "name": "ehr_requested_scopes",
42
+ "default": "launch openid fhirUser offline_access user/*.rs",
43
+ "description": "OAuth 2.0 scope provided by system to enable all required functionality",
44
+ "title": "EHR Launch Scope",
45
+ "type": "textarea",
46
+ "value": "launch openid fhirUser offline_access user/*.rs"
47
+ },
48
+ {
49
+ "name": "patient_ids",
50
+ "description": "Comma separated list of Patient IDs that in sum contain all MUST SUPPORT elements",
51
+ "optional": true,
52
+ "title": "Patient IDs",
53
+ "type": "text",
54
+ "value": "pat015"
55
+ },
56
+ {
57
+ "name": "device_ids",
58
+ "description": "Comma separated list of Device IDs that in sum contain all MUST SUPPORT elements",
59
+ "title": "Device IDs",
60
+ "type": "text",
61
+ "value": "example"
62
+ },
63
+ {
64
+ "name": "encounter_ids",
65
+ "description": "Comma separated list of Encounter IDs that in sum contain all MUST SUPPORT elements",
66
+ "optional": true,
67
+ "title": "Encounter IDs",
68
+ "type": "text",
69
+ "value": "pat015-rad-encounter"
70
+ },
71
+ {
72
+ "name": "organization_ids",
73
+ "description": "Comma separated list of Organization IDs that in sum contain all MUST SUPPORT elements",
74
+ "optional": true,
75
+ "title": "Organization IDs",
76
+ "type": "text",
77
+ "value": "org1234"
78
+ },
79
+ {
80
+ "name": "practitioner_ids",
81
+ "description": "Comma separated list of Practitioner IDs that in sum contain all MUST SUPPORT elements",
82
+ "optional": true,
83
+ "title": "Practitioner IDs",
84
+ "type": "text",
85
+ "value": "pra1234"
86
+ },
87
+ {
88
+ "name": "practitioner_role_ids",
89
+ "description": "Comma separated list of Practitioner IDs that in sum contain all MUST SUPPORT elements",
90
+ "optional": true,
91
+ "title": "PractitionerRole IDs",
92
+ "type": "text",
93
+ "value": "prarol1234"
94
+ },
95
+ {
96
+ "name": "location_ids",
97
+ "description": "Comma separated list of Location IDs that in sum contain all MUST SUPPORT elements",
98
+ "title": "Location IDs",
99
+ "type": "text",
100
+ "value": "loc1234"
101
+ },
102
+ {
103
+ "name": "appointment_update_resources",
104
+ "description": "Provide a list of resources to update. e.g., [json_resource_1, json_resource_2]",
105
+ "title": "Appointment Resources",
106
+ "type": "textarea",
107
+ "value": "[{\n \"resourceType\": \"Appointment\",\n \"id\": \"125\",\n \"meta\": {\n \"versionId\": \"1\",\n \"lastUpdated\": \"2024-05-18T17:20:39.156+00:00\"\n },\n \"status\": \"proposed\",\n \"serviceType\": [\n {\n \"coding\": [\n {\n \"system\": \"http://terminology.hl7.org/CodeSystem/service-type\",\n \"code\": \"183\",\n \"display\": \"Sleep Medicine\"\n }\n ]\n }\n ],\n \"appointmentType\": {\n \"coding\": [\n {\n \"system\": \"http://hl7.org/fhir/v2/0276\",\n \"code\": \"FOLLOWUP\",\n \"display\": \"A follow up visit from a previous appointment\"\n }\n ]\n },\n \"description\": \"CPAP adjustments\",\n \"start\": \"2019-08-10T09:00:00Z\",\n \"end\": \"2019-08-10T11:00:00Z\",\n \"created\": \"2019-08-01\",\n \"participant\": [\n {\n \"actor\": {\n \"reference\": \"Patient/pat014\",\n \"display\": \"Peter James Chalmers\"\n },\n \"required\": \"required\",\n \"status\": \"tentative\"\n },\n {\n \"actor\": {\n \"reference\": \"Practitioner/pra1255\",\n \"display\": \"Dr Adam Careful\"\n },\n \"required\": \"required\",\n \"status\": \"accepted\"\n }\n ],\n \"requestedPeriod\": [\n {\n \"start\": \"2020-05-23\",\n \"end\": \"2020-05-23\"\n }\n ]\n}]"
108
+ },
109
+ {
110
+ "name": "communication_request_update_resources",
111
+ "description": "Provide a list of resources to update. e.g., [json_resource_1, json_resource_2]",
112
+ "title": "CommunicationRequest Resources",
113
+ "type": "textarea",
114
+ "value": "[\n {\n \"resourceType\": \"CommunicationRequest\",\n \"id\": \"134\",\n \"identifier\": [\n {\n \"system\": \"http://www.jurisdiction.com/insurer/123456\",\n \"value\": \"ABC123\"\n }\n ],\n \"basedOn\": [\n {\n \"display\": \"EligibilityRequest\"\n }\n ],\n \"groupIdentifier\": {\n \"value\": \"12345\"\n },\n \"status\": \"draft\",\n \"category\": [\n {\n \"coding\": [\n {\n \"system\": \"http://terminology.hl7.org/CodeSystem/communication-category\",\n \"code\": \"instruction\"\n }\n ]\n }\n ],\n \"priority\": \"routine\",\n \"medium\": [\n {\n \"coding\": [\n {\n \"system\": \"http://terminology.hl7.org/CodeSystem/v3-ParticipationMode\",\n \"code\": \"WRITTEN\",\n \"display\": \"written\"\n }\n ],\n \"text\": \"written\"\n }\n ],\n \"subject\": {\n \"reference\": \"Patient/pat015\"\n },\n \"encounter\": {\n \"reference\": \"Encounter/pat015-rad-encounter\"\n },\n \"payload\": [\n {\n \"extension\": [\n {\n \"url\": \"http://hl7.org/fhir/5.0/StructureDefinition/extension-CommunicationRequest.payload.content[x]\",\n \"valueCodeableConcept\": {\n \"coding\": [\n {\n \"system\": \"http://loinc.org\",\n \"code\": \"65752-8\",\n \"display\": \"Liver Pathology biopsy report\"\n }\n ]\n }\n }\n ],\n \"contentString\": \"Liver pathology biopsy report\"\n }\n ],\n \"occurrenceDateTime\": \"2016-06-10T11:01:10-08:00\",\n \"authoredOn\": \"2016-06-10T11:01:10-08:00\",\n \"requester\": {\n \"reference\": \"Practitioner/pra1234\"\n },\n \"recipient\": [\n {\n \"reference\": \"Organization/org1234\"\n }\n ]\n }\n]"
115
+ },
116
+ {
117
+ "name": "device_request_update_resources",
118
+ "description": "Provide a list of resources to update. e.g., [json_resource_1, json_resource_2]",
119
+ "title": "DeviceRequest Resources",
120
+ "type": "textarea",
121
+ "value": "[{\n \"resourceType\": \"DeviceRequest\",\n \"id\": \"devreq014\",\n \"meta\": {\n \"versionId\": \"1\",\n \"lastUpdated\": \"2024-05-18T17:20:39.156+00:00\",\n \"profile\": [\n \"http://hl7.org/fhir/us/davinci-crd/R4/StructureDefinition/profile-devicerequest-r4\"\n ]\n },\n \"identifier\": [\n {\n \"type\": {\n \"coding\": [\n {\n \"system\": \"http://terminology.hl7.org/CodeSystem/v2-0203\",\n \"code\": \"PLAC\"\n }\n ]\n },\n \"value\": \"600dca50-ddae-482e-b8ac-383e1ab10c18\"\n }\n ],\n \"status\": \"draft\",\n \"intent\": \"original-order\",\n \"codeCodeableConcept\": {\n \"coding\": [\n {\n \"system\": \"https://bluebutton.cms.gov/resources/codesystem/hcpcs\",\n \"code\": \"E0424\",\n \"display\": \"Stationary Compressed Gaseous Oxygen System, Rental\"\n }\n ]\n },\n \"subject\": {\n \"reference\": \"Patient/pat014\"\n },\n \"authoredOn\": \"2023-01-01T00:00:00Z\",\n \"requester\": {\n \"reference\": \"Practitioner/pra-hfairchild\"\n },\n \"performer\": {\n \"reference\": \"Practitioner/pra1255\"\n },\n \"insurance\": [\n {\n \"reference\": \"Coverage/cov014\"\n }\n ]\n}]"
122
+ },
123
+ {
124
+ "name": "encounter_update_resources",
125
+ "description": "Provide a list of resources to update. e.g., [json_resource_1, json_resource_2]",
126
+ "title": "Encounter Resources",
127
+ "type": "textarea",
128
+ "value": "[{\n \"resourceType\": \"Encounter\",\n \"id\": \"pat015-rad-encounter\",\n \"meta\": {\n \"versionId\": \"1\",\n \"lastUpdated\": \"2024-05-18T17:20:39.156+00:00\"\n },\n \"status\": \"finished\",\n \"class\": {\n \"system\": \"http://terminology.hl7.org/CodeSystem/v3-ActCode\",\n \"code\": \"HH\",\n \"display\": \"home health\"\n },\n \"type\": [\n {\n \"coding\": [\n {\n \"system\": \"http://snomed.info/sct\",\n \"code\": \"185345009\",\n \"display\": \"Encounter for symptom\"\n }\n ]\n }\n ],\n \"priority\": {\n \"coding\": [\n {\n \"system\": \"http://snomed.info/sct\",\n \"code\": \"709122007\",\n \"display\": \"As soon as possible (qualifier value)\"\n }\n ]\n },\n \"subject\": {\n \"reference\": \"Patient/pat015\",\n \"display\": \"Roosevelt Theodore\"\n },\n \"participant\": [\n {\n \"type\": [\n {\n \"coding\": [\n {\n \"system\": \"http://terminology.hl7.org/CodeSystem/v3-ParticipationType\",\n \"code\": \"PPRF\",\n \"display\": \"primary performer\"\n }\n ]\n }\n ],\n \"individual\": {\n \"reference\": \"Practitioner/pra1234\",\n \"display\": \"Dr. Jane Doe\"\n }\n }\n ],\n \"period\": {\n \"start\": \"2020-07-01T10:40:10+01:00\",\n \"end\": \"2020-07-01T12:40:10+01:00\"\n },\n \"length\": {\n \"value\": 56,\n \"unit\": \"minutes\",\n \"system\": \"http://unitsofmeasure.org\",\n \"code\": \"min\"\n },\n \"reasonCode\": [\n {\n \"coding\": [\n {\n \"system\": \"http://hl7.org/fhir/sid/icd-10-cm\",\n \"code\": \"J44.9\",\n \"display\": \"Chronic obstructive pulmonary disease, unspecified\"\n }\n ]\n }\n ],\n \"diagnosis\": [\n {\n \"condition\": {\n \"reference\": \"Condition/cond015a\",\n \"display\": \"The patient is hospitalized for stroke\"\n },\n \"use\": {\n \"coding\": [\n {\n \"system\": \"http://terminology.hl7.org/CodeSystem/diagnosis-role\",\n \"code\": \"AD\",\n \"display\": \"Admission diagnosis\"\n }\n ]\n },\n \"rank\": 2\n },\n {\n \"condition\": {\n \"reference\": \"Condition/cond015a\",\n \"display\": \"The patient is hospitalized for lung condition\"\n },\n \"use\": {\n \"coding\": [\n {\n \"system\": \"http://terminology.hl7.org/CodeSystem/diagnosis-role\",\n \"code\": \"CC\",\n \"display\": \"Chief complaint\"\n }\n ]\n },\n \"rank\": 1\n }\n ]\n}]"
129
+ },
130
+ {
131
+ "name": "medication_request_update_resources",
132
+ "description": "Provide a list of resources to update. e.g., [json_resource_1, json_resource_2]",
133
+ "title": "MedicationRequest Resources",
134
+ "type": "textarea",
135
+ "value": "[{\n \"resourceType\": \"MedicationRequest\",\n \"id\": \"pat014-mr-azathioprine\",\n \"meta\": {\n \"versionId\": \"1\",\n \"lastUpdated\": \"2024-05-18T17:20:39.156+00:00\"\n },\n \"identifier\": [\n {\n \"type\": {\n \"coding\": [\n {\n \"system\": \"http://terminology.hl7.org/CodeSystem/v2-0203\",\n \"code\": \"PLAC\"\n }\n ]\n },\n \"value\": \"25839b73-fcc9-4706-8c77-a806995b8109\"\n }\n ],\n \"status\": \"active\",\n \"intent\": \"order\",\n \"medicationCodeableConcept\": {\n \"coding\": [\n {\n \"system\": \"http://www.nlm.nih.gov/research/umls/rxnorm\",\n \"code\": \"105611\",\n \"display\": \"azathioprine 50 MG Oral Tablet [Imuran]\"\n }\n ]\n },\n \"subject\": {\n \"reference\": \"Patient/pat014\",\n \"display\": \"Theodor Roosevelt\"\n },\n \"authoredOn\": \"2020-05-11\",\n \"requester\": {\n \"reference\": \"Practitioner/pra1234\",\n \"display\": \"Jane Doe\"\n },\n \"reasonCode\": [\n {\n \"coding\": [\n {\n \"system\": \"http://snomed.info/sct\",\n \"code\": \"52042003\",\n \"display\": \"Systemic lupus erythematosus glomerulonephritis syndrome, World Health Organization class V (disorder)\"\n }\n ]\n }\n ],\n \"insurance\": [\n {\n \"reference\": \"Coverage/cov014\"\n }\n ],\n \"dosageInstruction\": [\n {\n \"sequence\": 1,\n \"text\": \"50 mg PO daily for remission induction\",\n \"timing\": {\n \"repeat\": {\n \"frequency\": 1,\n \"period\": 1,\n \"periodUnit\": \"d\"\n }\n },\n \"route\": {\n \"coding\": [\n {\n \"system\": \"http://snomed.info/sct\",\n \"code\": \"26643006\",\n \"display\": \"Oral route (qualifier value)\"\n }\n ]\n },\n \"doseAndRate\": [\n {\n \"type\": {\n \"coding\": [\n {\n \"system\": \"http://terminology.hl7.org/CodeSystem/dose-rate-type\",\n \"code\": \"ordered\",\n \"display\": \"Ordered\"\n }\n ]\n },\n \"doseQuantity\": {\n \"value\": 50,\n \"unit\": \"mg\",\n \"system\": \"http://unitsofmeasure.org\",\n \"code\": \"mg\"\n }\n }\n ]\n }\n ],\n \"dispenseRequest\": {\n \"numberOfRepeatsAllowed\": 3,\n \"quantity\": {\n \"value\": 90,\n \"system\": \"http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm\",\n \"code\": \"TAB\"\n }\n }\n}]"
136
+ },
137
+ {
138
+ "name": "nutrition_order_update_resources",
139
+ "description": "Provide a list of resources to update. e.g., [json_resource_1, json_resource_2]",
140
+ "title": "NutritionOrder Resources",
141
+ "type": "textarea",
142
+ "value": "[{\n \"resourceType\": \"NutritionOrder\",\n \"id\": \"135\",\n \"meta\": {\n \"versionId\": \"1\",\n \"lastUpdated\": \"2024-05-23T15:32:28.628+00:00\"\n },\n \"identifier\": [\n {\n \"system\": \"http://goodhealthhospital.org/nutrition-requests\",\n \"value\": \"123\"\n }\n ],\n \"status\": \"draft\",\n \"intent\": \"order\",\n \"patient\": {\n \"reference\": \"Patient/pat014\"\n },\n \"encounter\": {\n \"reference\": \"Encounter/enc-pat014\"\n },\n \"dateTime\": \"2014-09-17\",\n \"orderer\": {\n \"reference\": \"Practitioner/pra1234\"\n },\n \"allergyIntolerance\": [\n {\n \"reference\": \"AllergyIntolerance/allergy-pat014-cashew\",\n \"display\": \"Cashew Nuts\"\n }\n ],\n \"foodPreferenceModifier\": [\n {\n \"coding\": [\n {\n \"system\": \"http://terminology.hl7.org/CodeSystem/diet\",\n \"code\": \"dairy-free\"\n }\n ]\n }\n ],\n \"excludeFoodModifier\": [\n {\n \"coding\": [\n {\n \"system\": \"http://snomed.info/sct\",\n \"code\": \"227493005\",\n \"display\": \"Cashew Nut\"\n }\n ]\n }\n ],\n \"oralDiet\": {\n \"type\": [\n {\n \"coding\": [\n {\n \"system\": \"http://snomed.info/sct\",\n \"code\": \"15108003\",\n \"display\": \"Restricted fiber diet\"\n }\n ],\n \"text\": \"Fiber restricted diet\"\n },\n {\n \"coding\": [\n {\n \"system\": \"http://snomed.info/sct\",\n \"code\": \"16208003\",\n \"display\": \"Low fat diet\"\n }\n ],\n \"text\": \"Low fat diet\"\n }\n ],\n \"schedule\": [\n {\n \"repeat\": {\n \"boundsPeriod\": {\n \"start\": \"2015-02-10\"\n },\n \"frequency\": 3,\n \"period\": 1,\n \"periodUnit\": \"d\"\n }\n }\n ],\n \"nutrient\": [\n {\n \"modifier\": {\n \"coding\": [\n {\n \"system\": \"http://snomed.info/sct\",\n \"code\": \"256674009\",\n \"display\": \"Fat\"\n }\n ]\n },\n \"amount\": {\n \"value\": 50,\n \"unit\": \"grams\",\n \"system\": \"http://unitsofmeasure.org\",\n \"code\": \"g\"\n }\n }\n ]\n }\n}]"
143
+ },
144
+ {
145
+ "name": "service_request_update_resources",
146
+ "description": "Provide a list of resources to update. e.g., [json_resource_1, json_resource_2]",
147
+ "title": "ServiceRequest Resources",
148
+ "type": "textarea",
149
+ "value": "[{\n \"resourceType\": \"ServiceRequest\",\n \"id\": \"servreq01\",\n \"meta\": {\n \"versionId\": \"1\",\n \"lastUpdated\": \"2024-05-18T17:20:39.156+00:00\"\n },\n \"identifier\": [\n {\n \"type\": {\n \"coding\": [\n {\n \"system\": \"http://terminology.hl7.org/CodeSystem/v2-0203\",\n \"code\": \"PLAC\"\n }\n ]\n },\n \"value\": \"63dae4d5-1b48-41f6-b56c-8b2fdea87067\"\n }\n ],\n \"status\": \"draft\",\n \"intent\": \"order\",\n \"category\": [\n {\n \"coding\": [\n {\n \"system\": \"http://snomed.info/sct\",\n \"code\": \"386053000\",\n \"display\": \"Evaluation procedure (procedure)\"\n }\n ],\n \"text\": \"Evaluation\"\n }\n ],\n \"code\": {\n \"coding\": [\n {\n \"system\": \"https://bluebutton.cms.gov/resources/codesystem/hcpcs\",\n \"code\": \"A0426\",\n \"display\": \"Ambulance service, advanced life support, non-emergency transport, level 1 (als 1)\"\n }\n ],\n \"text\": \"Ambulance service Non-Emergency Transport\"\n },\n \"subject\": {\n \"reference\": \"Patient/pat014\"\n },\n \"occurrenceDateTime\": \"2016-09-27\",\n \"authoredOn\": \"2016-09-20\",\n \"requester\": {\n \"display\": \"Smythe Juliette, MD\"\n },\n \"performer\": [\n {\n \"reference\": \"Practitioner/pra1255\"\n }\n ],\n \"reasonCode\": [\n {\n \"text\": \"Physical Therapy for Hip Fracture \"\n }\n ],\n \"insurance\": [\n {\n \"reference\": \"Coverage/cov014\"\n }\n ]\n}]"
150
+ },
151
+ {
152
+ "name": "claim_response_create_resources",
153
+ "description": "Provide a list of resources to create. e.g., [json_resource_1, json_resource_2]",
154
+ "title": "ClaimResponse Resources",
155
+ "type": "textarea",
156
+ "value": "[{\n \"resourceType\": \"ClaimResponse\",\n \"status\": \"active\",\n \"type\": {\n \"coding\": [\n {\n \"system\": \"http://terminology.hl7.org/CodeSystem/claim-type\",\n \"code\": \"professional\"\n }\n ]\n },\n \"use\": \"preauthorization\",\n \"patient\": {\n \"reference\": \"Patient/pat015\"\n },\n \"created\": \"2023-05-02T11:02:00+05:00\",\n \"insurer\": {\n \"reference\": \"Organization/org1234\"\n },\n \"requestor\": {\n \"reference\": \"Practitioner/pra1234\"\n },\n \"outcome\": \"complete\",\n \"preAuthRef\": \"A1B2C3D4\",\n \"addItem\": [\n {\n \"extension\": [\n {\n \"url\": \"http://hl7.org/fhir/us/davinci-hrex/StructureDefinition/extension-itemAuthorizedDate\",\n \"valuePeriod\": {\n \"start\": \"2005-05-02\",\n \"end\": \"2005-06-02\"\n }\n },\n {\n \"url\": \"http://hl7.org/fhir/us/davinci-hrex/StructureDefinition/extension-itemPreAuthIssueDate\",\n \"valueDate\": \"2005-05-02\"\n },\n {\n \"url\": \"http://hl7.org/fhir/us/davinci-hrex/StructureDefinition/extension-itemAuthorizedProvider\",\n \"valueReference\": {\n \"reference\": \"Practitioner/pra1234\"\n }\n }\n ],\n \"itemSequence\": [\n 1\n ],\n \"productOrService\": {\n \"coding\": [\n {\n \"system\": \"http://codesystem.x12.org/005010/1365\",\n \"code\": \"3\",\n \"display\": \"Consultation\"\n }\n ]\n },\n \"locationCodeableConcept\": {\n \"coding\": [\n {\n \"system\": \"https://www.cms.gov/Medicare/Coding/place-of-service-codes/Place_of_Service_Code_Set\",\n \"code\": \"11\"\n }\n ]\n },\n \"adjudication\": [\n {\n \"extension\": [\n {\n \"url\": \"http://hl7.org/fhir/us/davinci-hrex/StructureDefinition/extension-reviewAction\",\n \"extension\": [\n {\n \"url\": \"number\",\n \"valueString\": \"AUTH0001\"\n },\n {\n \"url\": \"http://hl7.org/fhir/us/davinci-hrex/StructureDefinition/extension-reviewActionCode\",\n \"valueCodeableConcept\": {\n \"coding\": [\n {\n \"system\": \"http://codesystem.x12.org/005010/306\",\n \"code\": \"A1\",\n \"display\": \"Certified in total\"\n }\n ]\n }\n }\n ]\n }\n ],\n \"category\": {\n \"coding\": [\n {\n \"system\": \"http://terminology.hl7.org/CodeSystem/adjudication\",\n \"code\": \"submitted\"\n }\n ]\n }\n }\n ]\n }\n ]\n}]"
157
+ },
158
+ {
159
+ "name": "task_create_resources",
160
+ "description": "Provide a list of resources to create. e.g., [json_resource_1, json_resource_2]",
161
+ "title": "Task Resources",
162
+ "type": "textarea",
163
+ "value": "[\n {\n \"resourceType\": \"Task\",\n \"basedOn\": [\n {\n \"reference\": \"MedicationRequest/pat014-mr-azathioprine\"\n }\n ],\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 \"for\": {\n \"reference\": \"Patient/pat015\"\n },\n \"encounter\": {\n \"reference\": \"Encounter/pat015-rad-encounter\"\n },\n \"authoredOn\": \"2018-08-09\",\n \"requester\": {\n \"reference\": \"Organization/org1234\"\n },\n \"reasonCode\": {\n \"coding\": [\n {\n \"system\": \"http://hl7.org/fhir/us/davinci-crd/CodeSystem/temp\",\n \"code\": \"reason-prior-auth\"\n }\n ],\n \"text\": \"Needed for prior authorization\"\n },\n \"input\": [\n {\n \"type\": {\n \"coding\": [\n {\n \"system\": \"http://hl7.org/fhir/uv/sdc/CodeSystem/temp\",\n \"code\": \"questionnaire\"\n }\n ]\n },\n \"valueCanonical\": \"https://crd-test.davinci.hl7.org/test-ehr/r4/Questionnaire/cdex-questionnaire-example1\"\n },\n {\n \"type\": {\n \"coding\": [\n {\n \"system\": \"http://hl7.org/fhir/uv/sdc/CodeSystem/temp\",\n \"code\": \"response-endpoint\"\n }\n ]\n },\n \"valueUrl\": \"https://crd-test.davinci.hl7.org/test-ehr\"\n },\n {\n \"type\": {\n \"coding\": [\n {\n \"system\": \"http://hl7.org/fhir/us/davinci-crd/CodeSystem/temp\",\n \"code\": \"after-completion-action\"\n }\n ]\n },\n \"valueCodeableConcept\": {\n \"coding\": [\n {\n \"system\": \"http://hl7.org/fhir/us/davinci-crd/CodeSystem/temp\",\n \"code\": \"prior-auth-include\",\n \"display\": \"Include in prior authorization\"\n }\n ]\n }\n }\n ]\n }\n]"
164
+ },
165
+ {
166
+ "name": "vision_prescription_update_resources",
167
+ "description": "Provide a list of resources to update. e.g., [json_resource_1, json_resource_2]",
168
+ "title": "VisionPrescription Resources",
169
+ "type": "textarea",
170
+ "value": "[{\n \"resourceType\": \"VisionPrescription\",\n \"id\": \"136\",\n \"meta\": {\n \"versionId\": \"1\",\n \"lastUpdated\": \"2024-05-23T15:34:54.580+00:00\"\n },\n \"identifier\": [\n {\n \"system\": \"http://www.happysight.com/prescription\",\n \"value\": \"15013\"\n }\n ],\n \"status\": \"draft\",\n \"created\": \"2014-06-15\",\n \"patient\": {\n \"reference\": \"Patient/pat015\"\n },\n \"dateWritten\": \"2014-06-15\",\n \"prescriber\": {\n \"reference\": \"Practitioner/pra1234\"\n },\n \"lensSpecification\": [\n {\n \"product\": {\n \"coding\": [\n {\n \"system\": \"http://terminology.hl7.org/CodeSystem/ex-visionprescriptionproduct\",\n \"code\": \"lens\"\n }\n ]\n },\n \"eye\": \"right\",\n \"sphere\": -2,\n \"prism\": [\n {\n \"amount\": 0.5,\n \"base\": \"down\"\n }\n ],\n \"add\": 2\n },\n {\n \"product\": {\n \"coding\": [\n {\n \"system\": \"http://terminology.hl7.org/CodeSystem/ex-visionprescriptionproduct\",\n \"code\": \"lens\"\n }\n ]\n },\n \"eye\": \"left\",\n \"sphere\": -1,\n \"cylinder\": -0.5,\n \"axis\": 180,\n \"prism\": [\n {\n \"amount\": 0.5,\n \"base\": \"up\"\n }\n ],\n \"add\": 2\n }\n ]\n}]"
171
+ }
172
+ ]
173
+ }
@@ -0,0 +1,74 @@
1
+ {
2
+ "title": "CRD Request Generator RI",
3
+ "id": "ri_crd_request_generator",
4
+ "test_suite_id": "crd_client",
5
+ "inputs": [
6
+ {
7
+ "name": "iss",
8
+ "title": "URI of the issuer of the JWT used to authorize CDS Hooks calls",
9
+ "type": "text",
10
+ "value": "<%= ENV.fetch('RI_CRD_REQUEST_GENERATOR_URI', 'https://crd-test.davinci.hl7.org') %>/test-ehr/r4"
11
+ },
12
+ {
13
+ "name": "url",
14
+ "description": "URL of the FHIR endpoint used by SMART applications",
15
+ "title": "FHIR Endpoint",
16
+ "type": "text",
17
+ "value": "<%= ENV.fetch('RI_CRD_REQUEST_GENERATOR_URI', 'https://crd-test.davinci.hl7.org') %>/test-ehr/r4"
18
+ },
19
+ {
20
+ "name": "patient_ids",
21
+ "description": "Comma separated list of Patient IDs that in sum contain all MUST SUPPORT elements",
22
+ "optional": true,
23
+ "title": "Patient IDs",
24
+ "type": "text",
25
+ "value": "pat015"
26
+ },
27
+ {
28
+ "name": "device_ids",
29
+ "description": "Comma separated list of Device IDs that in sum contain all MUST SUPPORT elements",
30
+ "title": "Device IDs",
31
+ "type": "text",
32
+ "value": "example"
33
+ },
34
+ {
35
+ "name": "encounter_ids",
36
+ "description": "Comma separated list of Encounter IDs that in sum contain all MUST SUPPORT elements",
37
+ "optional": true,
38
+ "title": "Encounter IDs",
39
+ "type": "text",
40
+ "value": "pat015-rad-encounter"
41
+ },
42
+ {
43
+ "name": "organization_ids",
44
+ "description": "Comma separated list of Organization IDs that in sum contain all MUST SUPPORT elements",
45
+ "optional": true,
46
+ "title": "Organization IDs",
47
+ "type": "text",
48
+ "value": "org1234"
49
+ },
50
+ {
51
+ "name": "practitioner_ids",
52
+ "description": "Comma separated list of Practitioner IDs that in sum contain all MUST SUPPORT elements",
53
+ "optional": true,
54
+ "title": "Practitioner IDs",
55
+ "type": "text",
56
+ "value": "pra1234"
57
+ },
58
+ {
59
+ "name": "practitioner_role_ids",
60
+ "description": "Comma separated list of Practitioner IDs that in sum contain all MUST SUPPORT elements",
61
+ "optional": true,
62
+ "title": "PractitionerRole IDs",
63
+ "type": "text",
64
+ "value": "prarol1234"
65
+ },
66
+ {
67
+ "name": "location_ids",
68
+ "description": "Comma separated list of Location IDs that in sum contain all MUST SUPPORT elements",
69
+ "title": "Location IDs",
70
+ "type": "text",
71
+ "value": "loc1234"
72
+ }
73
+ ]
74
+ }