davinci_crd_test_kit 0.12.1 → 0.13.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 (27) hide show
  1. checksums.yaml +4 -4
  2. data/config/presets/inferno_crd_client_suite.json.erb +7 -7
  3. data/config/presets/inferno_crd_server_suite.json.erb +1 -1
  4. data/config/presets/ri_crd_server.json.erb +13 -13
  5. data/lib/davinci_crd_test_kit/client_hooks_group.rb +22 -23
  6. data/lib/davinci_crd_test_kit/client_tests/appointment_book_receive_request_test.rb +1 -1
  7. data/lib/davinci_crd_test_kit/client_tests/client_fhir_api_create_test.rb +3 -2
  8. data/lib/davinci_crd_test_kit/client_tests/client_fhir_api_read_test.rb +2 -1
  9. data/lib/davinci_crd_test_kit/client_tests/client_fhir_api_update_test.rb +3 -2
  10. data/lib/davinci_crd_test_kit/client_tests/client_fhir_api_validation_test.rb +3 -2
  11. data/lib/davinci_crd_test_kit/client_tests/order_dispatch_receive_request_test.rb +1 -1
  12. data/lib/davinci_crd_test_kit/client_tests/submitted_response_validation.rb +4 -0
  13. data/lib/davinci_crd_test_kit/crd_client_suite.rb +18 -2
  14. data/lib/davinci_crd_test_kit/crd_server_suite.rb +8 -0
  15. data/lib/davinci_crd_test_kit/requirements/cds-hooks_2.0_requirements.xlsx +0 -0
  16. data/lib/davinci_crd_test_kit/requirements/{davinci-crd-test-kit_requirements.csv → davinci_crd_test_kit_requirements.csv} +589 -312
  17. data/lib/davinci_crd_test_kit/requirements/generated/crd_client_requirements_coverage.csv +208 -0
  18. data/lib/davinci_crd_test_kit/requirements/generated/crd_server_requirements_coverage.csv +174 -0
  19. data/lib/davinci_crd_test_kit/requirements/hl7.fhir.us.davinci-crd_2.0.1_requirements.xlsx +0 -0
  20. data/lib/davinci_crd_test_kit/version.rb +2 -2
  21. data/lib/davinci_crd_test_kit.rb +0 -1
  22. metadata +20 -18
  23. data/lib/davinci_crd_test_kit/requirements/davinci-crd-test-kit_out_of_scope_requirements.csv +0 -1
  24. data/lib/davinci_crd_test_kit/requirements/generated/davinci-crd-test-kit_requirements_coverage.csv +0 -366
  25. data/lib/inferno_requirements_tools/ext/inferno_core/runnable.rb +0 -22
  26. data/lib/inferno_requirements_tools/tasks/requirements_coverage.rb +0 -284
  27. data/lib/requirements_config.yaml +0 -18
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e7aa24c2a8102e8bed59aa0048f99c0ef46a75b0f6d1019c089929a73ee72415
4
- data.tar.gz: ccd3b902a0daff447d42331458c5951f383ce59515d00504f6abb02e63c00342
3
+ metadata.gz: a0060a209fd65e125ef71cf35eeee70f4710500c57b95485fb6679d4a99ce063
4
+ data.tar.gz: 448dc0367edc2df4bd27f2db235d571b92d6694d2ebe8c8a6eb79d00a0297c15
5
5
  SHA512:
6
- metadata.gz: faa55e1274867c584dec2c5e3c6522b13590c41342eb1e55691e5f5f78ce1208b2d4df7674b0ef1e7ba23ab6bc22ce1226f283ca9c0cc1583d61e668ef80a56d
7
- data.tar.gz: 1b0d2526904aaf5138cf12d131e7fd769ca05652fb542d0139e9f93abce996edd929336c8f786639cea54bbda75b3c8ae67783ea5bf494a0e182ddde4eab092c
6
+ metadata.gz: e64a84ae6badfdf65bdc0112d498da9c1179b04bbed323ad16232e73a1a0066c4ac743ce802609aa5e14bb3f79fbb776a125f4361799b259c0ad50ef13e566b2
7
+ data.tar.gz: c6140385a82cdf3915748335abb227331addfd1b54ccaf5a4fbe939806278cfd67536764487014ab4d641236dd9840cfcda01de230ebf33bb6ee4ba67423f352
@@ -62,49 +62,49 @@
62
62
  "optional": true,
63
63
  "title": "Request body to use for the \"Demonstrate a Hook Response\" test",
64
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"
65
+ "value": "{\n \"hookInstance\": \"d1577c69-dfbe-44ad-ba6d-3e05e953b2ea\",\n \"fhirServer\": \"https://inferno.healthit.gov/reference-server/r4\",\n \"hook\": \"appointment-book\",\n \"fhirAuthorization\": {\n \"access_token\": \"SAMPLE_TOKEN\",\n \"token_type\": \"Bearer\",\n \"expires_in\": 300,\n \"scope\": \"user/Patient.read user/Observation.read\",\n \"subject\": \"cds-service\"\n },\n \"context\": {\n \"userId\": \"Practitioner/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.healthit.gov/reference-server/r4/Appointment?patient=pat014\"\n }\n ],\n \"entry\": [\n {\n \"fullUrl\": \"https://inferno.healthit.gov/reference-server/r4/Appointment/125\",\n \"resource\": {\n \"resourceType\": \"Appointment\",\n \"id\": \"125\",\n \"meta\": {\n \"versionId\": \"1\",\n \"lastUpdated\": \"2024-05-10T03:52:09.983+00:00\",\n \"source\": \"#KIaKP1Pfw7EVpLjl\"\n },\n \"status\": \"proposed\",\n \"serviceType\": [\n {\n \"coding\": [\n {\n \"system\": \"http://terminology.hl7.org/CodeSystem/service-type\",\n \"code\": \"183\",\n \"display\": \"Sleep Medicine\"\n }\n ]\n }\n ],\n \"appointmentType\": {\n \"coding\": [\n {\n \"system\": \"http://terminology.hl7.org/CodeSystem/v2-0276\",\n \"code\": \"FOLLOWUP\",\n \"display\": \"A follow up visit from a previous appointment\"\n }\n ]\n },\n \"description\": \"CPAP adjustments\",\n \"start\": \"2019-08-10T09:00:00Z\",\n \"end\": \"2019-08-10T11:00:00Z\",\n \"created\": \"2019-08-01\",\n \"participant\": [\n {\n \"actor\": {\n \"reference\": \"Patient/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.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.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.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.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.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.healthit.gov/reference-server/r4/Coverage?patient=pat014\"\n }\n ],\n \"entry\": [\n {\n \"fullUrl\": \"https://inferno.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
66
  },
67
67
  {
68
68
  "name": "appointment_book_request_bodies",
69
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
70
  "title": "Request body or bodies for invoking the `appointment-book` hook",
71
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"
72
+ "value": "[\n {\n \"hookInstance\": \"d1577c69-dfbe-44ad-ba6d-3e05e953b2ea\",\n \"fhirServer\": \"https://inferno.healthit.gov/reference-server/r4\",\n \"hook\": \"appointment-book\",\n \"fhirAuthorization\": {\n \"access_token\": \"SAMPLE_TOKEN\",\n \"token_type\": \"Bearer\",\n \"expires_in\": 300,\n \"scope\": \"user/Patient.read user/Observation.read\",\n \"subject\": \"cds-service\"\n },\n \"context\": {\n \"userId\": \"Practitioner/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.healthit.gov/reference-server/r4/Appointment?patient=pat014\"\n }\n ],\n \"entry\": [\n {\n \"fullUrl\": \"https://inferno.healthit.gov/reference-server/r4/Appointment/125\",\n \"resource\": {\n \"resourceType\": \"Appointment\",\n \"id\": \"125\",\n \"meta\": {\n \"versionId\": \"1\",\n \"lastUpdated\": \"2024-05-10T03:52:09.983+00:00\",\n \"source\": \"#KIaKP1Pfw7EVpLjl\"\n },\n \"status\": \"proposed\",\n \"serviceType\": [\n {\n \"coding\": [\n {\n \"system\": \"http://terminology.hl7.org/CodeSystem/service-type\",\n \"code\": \"183\",\n \"display\": \"Sleep Medicine\"\n }\n ]\n }\n ],\n \"appointmentType\": {\n \"coding\": [\n {\n \"system\": \"http://terminology.hl7.org/CodeSystem/v2-0276\",\n \"code\": \"FOLLOWUP\",\n \"display\": \"A follow up visit from a previous appointment\"\n }\n ]\n },\n \"description\": \"CPAP adjustments\",\n \"start\": \"2019-08-10T09:00:00Z\",\n \"end\": \"2019-08-10T11:00:00Z\",\n \"created\": \"2019-08-01\",\n \"participant\": [\n {\n \"actor\": {\n \"reference\": \"Patient/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.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
73
  },
74
74
  {
75
75
  "name": "encounter_start_request_bodies",
76
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
77
  "title": "Request body or bodies for invoking the `encounter-start` hook",
78
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"
79
+ "value": "[\n {\n \"hookInstance\": \"f3945c69-dfbe-44vf-ba6d-3e05e953b2ea\",\n \"fhirServer\": \"https://inferno.healthit.gov/reference-server/r4\",\n \"hook\": \"encounter-start\",\n \"fhirAuthorization\": {\n \"access_token\": \"SAMPLE_TOKEN\",\n \"token_type\": \"Bearer\",\n \"expires_in\": 300,\n \"scope\": \"user/Patient.read user/Practitioner.read user/Encounter.read\",\n \"subject\": \"cds-service\"\n },\n \"context\": {\n \"userId\": \"Practitioner/pra1255\",\n \"patientId\": \"pat015\",\n \"encounterId\": \"127\"\n }\n }\n]\n"
80
80
  },
81
81
  {
82
82
  "name": "encounter_discharge_request_bodies",
83
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
84
  "title": "Request body or bodies for invoking the `encounter-discharge` hook",
85
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"
86
+ "value": "[\n {\n \"hookInstance\": \"f3945c69-dfbe-44vf-ba6d-3e05e123b2ea\",\n \"fhirServer\": \"https://inferno.healthit.gov/reference-server/r4\",\n \"hook\": \"encounter-discharge\",\n \"fhirAuthorization\": {\n \"access_token\": \"SAMPLE_TOKEN\",\n \"token_type\": \"Bearer\",\n \"expires_in\": 300,\n \"scope\": \"user/Patient.read user/Practitioner.read user/Encounter.read\",\n \"subject\": \"cds-service\"\n },\n \"context\": {\n \"userId\": \"Practitioner/pra1255\",\n \"patientId\": \"pat014\",\n \"encounterId\": \"enc-pat014-cold\"\n }\n }\n]\n"
87
87
  },
88
88
  {
89
89
  "name": "order_select_request_bodies",
90
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
91
  "title": "Request body or bodies for invoking the `order-select` hook",
92
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"
93
+ "value": "[\n {\n \"hookInstance\": \"d1577c69-dfbe-44ad-ba6d-3e05e953b2ea\",\n \"fhirServer\": \"https://inferno.healthit.gov/reference-server/r4\",\n \"hook\": \"order-select\",\n \"fhirAuthorization\": {\n \"access_token\": \"SAMPLE_TOKEN\",\n \"token_type\": \"Bearer\",\n \"expires_in\": 300,\n \"scope\": \"patient/Patient.read patient/Observation.read\",\n \"subject\": \"cds-service4\"\n },\n \"context\": {\n \"userId\": \"Practitioner/pra1234\",\n \"patientId\": \"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.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
94
  },
95
95
  {
96
96
  "name": "order_dispatch_request_bodies",
97
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
98
  "title": "Request body or bodies for invoking the `order-dispatch` hook",
99
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"
100
+ "value": "[\n {\n \"hookInstance\": \"f3945c39-dfbe-44vf-ba6d-3e05e123b2va\",\n \"fhirServer\": \"https://inferno.healthit.gov/reference-server/r4\",\n \"hook\": \"order-dispatch\",\n \"fhirAuthorization\": {\n \"access_token\": \"SAMPLE_TOKEN\",\n \"token_type\": \"Bearer\",\n \"expires_in\": 300,\n \"scope\": \"user/Patient.read user/Practitioner.read user/ServiceRequest.read\",\n \"subject\": \"cds-service\"\n },\n \"context\": {\n \"patientId\": \"pat015\",\n \"order\": \"DeviceRequest/devreq-015-e0250\",\n \"performer\": \"Practitioner/pra1255\"\n }\n }\n]\n"
101
101
  },
102
102
  {
103
103
  "name": "order_sign_request_bodies",
104
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
105
  "title": "Request body or bodies for invoking the `order-sign` hook",
106
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"
107
+ "value": "[\n {\n \"hookInstance\": \"d1577c69-dfbe-44ad-ba6d-3e05e953b2ea\",\n \"fhirServer\": \"https://inferno.healthit.gov/reference-server/r4\",\n \"hook\": \"order-sign\",\n \"fhirAuthorization\": {\n \"access_token\": \"SAMPLE_TOKEN\",\n \"token_type\": \"Bearer\",\n \"expires_in\": 300,\n \"scope\": \"patient/Patient.read patient/Observation.read\",\n \"subject\": \"cds-service4\"\n },\n \"context\": {\n \"userId\": \"Practitioner/pra1234\",\n \"patientId\": \"pat015\",\n \"encounterId\": \"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
108
  }
109
109
  ]
110
110
  }
@@ -19,7 +19,7 @@
19
19
  "description": "URL of the FHIR endpoint used by SMART applications",
20
20
  "title": "FHIR Endpoint",
21
21
  "type": "text",
22
- "value": "<%= ENV.fetch('INFERNO_REFERENCE_SERVER_URI', 'https://inferno-qa.healthit.gov') %>/reference-server/r4"
22
+ "value": "<%= ENV.fetch('INFERNO_REFERENCE_SERVER_URI', 'https://inferno.healthit.gov') %>/reference-server/r4"
23
23
  },
24
24
  {
25
25
  "name": "smart_auth_info",