Name | /CDSHSandbox/DaVinci/CRD-BurdenReduction/05-Order-Select/dv-crd-r4-order-select |
Description | Executes an Order Select hook for a patient with medications that have no conflicts. If Touchstone is selected as the requesting system (origin), a known example patient, Patient/ pat014 and medications Azathioprine, Methotrexate, and Tylenol PM are included in the Order-Select hook request. If a test system is selected as the requesting system (origin), the request should contain more than 1 medication and the medications included should have no known conflicts. The expected result of the Order-Select is a empty card list. |
Version | 1 | Latest | 1 |
<?xml version="1.0" encoding="UTF-8"?>
<TestScript xmlns="http://hl7.org/fhir">
<id value="dv-crd-r4-order-select-no-issues-found"/>
<meta>
<profile value="http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript"/>
</meta>
<text>
<status value="generated"/>
<div xmlns="http://www.w3.org/1999/xhtml">
<p>Da Vinci - CRD - CDS Hooks 1.0 - FHIR R4 v4.0.1 - Order Select - No Issues Found</p>
</div>
</text>
<extension url="http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-rule">
<extension url="ruleId">
<valueId value="rule-verify-card-required"/>
</extension>
<extension url="path">
<valueString value="/CDSHCommon/_reference/rule/AssertCardsAllRequired.groovy"/>
</extension>
</extension>
<url value="http://wildfhir.aegis.net/CDSH1-0/fhir4-0-1/TestScript/order-select-1"/>
<name value="Order Select No Issues Found"/>
<title value="Da Vinci - CRD - CDS Hooks 1.0 - FHIR R4 v4.0.1 - Order Select - No Issues Found"/>
<status value="active"/>
<date value="2021-07-15"/>
<publisher value="AEGIS.net, Inc."/>
<contact>
<name value="Touchstone Support"/>
<telecom>
<system value="email"/>
<value value="Touchstone_Support@aegis.net"/>
<use value="work"/>
</telecom>
</contact>
<description value="Executes an Order Select hook for a patient with medications that have no conflicts. If Touchstone is selected as the requesting system (origin), a known example patient, Patient/ pat014 and medications Azathioprine, Methotrexate, and Tylenol PM are included in the Order-Select hook request. If a test system is selected as the requesting system (origin), the request should contain more than 1 medication and the medications included should have no known conflicts. The expected result of the Order-Select is a empty card list."/>
<copyright value="This FHIR Test Script is licensed under Creative Commons (CC0) 'No Rights Reserved'. Learn more at https://creativecommons.org/licenses"/>
<origin>
<index value="1"/>
<profile>
<system value="http://touchstone.com/fhir/testscript-profile-origin-types-extended"/>
<code value="CDSH-Client"/>
</profile>
</origin>
<destination>
<index value="1"/>
<profile>
<system value="http://touchstone.com/fhir/testscript-profile-destination-types-extended"/>
<code value="CDSH-Server"/>
</profile>
</destination>
<fixture id="order-select-1">
<autocreate value="false"/>
<autodelete value="false"/>
<resource>
<reference value="./_reference/resources/order-select-1.json"/>
</resource>
</fixture>
<profile id="bundle-profile">
<reference value="http://hl7.org/fhir/StructureDefinition/Bundle"/>
</profile>
<test id="Order-Select-No-Issues-Found">
<name value="Order-Select-No-Issues-Found"/>
<description value="Executes an Order Select hook for a patient with medications that have no conflicts. The expected result of the Order-Select is a empty card list."/>
<action>
<operation>
<type>
<system value="http://touchstone.com/cds-hooks/testscript-operation-codes"/>
<code value="order-select"/>
</type>
<description value="Executes an Order Select hook for a patient with medications that have no conflicts. The expected result of the Order-Select is a empty card list."/>
<accept value="json"/>
<contentType value="json"/>
<destination value="1"/>
<encodeRequestUrl value="true"/>
<origin value="1"/>
<sourceId value="order-select-1"/>
</operation>
</action>
<action>
<assert>
<description value="Confirm that the sent Accept format is of type json."/>
<direction value="request"/>
<headerField value="Accept"/>
<operator value="contains"/>
<value value="json"/>
<warningOnly value="false"/>
</assert>
</action>
<action>
<assert>
<description value="Confirm that the sent Content-Type format is of type json."/>
<direction value="request"/>
<headerField value="Content-Type"/>
<operator value="contains"/>
<value value="json"/>
<warningOnly value="false"/>
</assert>
</action>
<action>
<assert>
<extension url="http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail">
<valueBoolean value="false"/>
</extension>
<description value="Confirm that the returned HTTP status is 200(OK)."/>
<direction value="response"/>
<response value="okay"/>
<warningOnly value="false"/>
</assert>
</action>
<action>
<assert>
<description value="Confirm that the returned format is of type json."/>
<direction value="response"/>
<headerField value="Content-Type"/>
<operator value="contains"/>
<value value="json"/>
<warningOnly value="false"/>
</assert>
</action>
<action>
<assert>
<extension url="http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail">
<valueBoolean value="false"/>
</extension>
<description value="Verify no cards were returned."/>
<direction value="response"/>
<operator value="equals"/>
<path value="cards.length()"/>
<value value="0"/>
<warningOnly value="false"/>
</assert>
</action>
</test>
</TestScript>