Name | /FHIRSandbox/DaVinci/FHIR4-0-1-Notifications/01-Process-Message/dv-alerts-r4-02-message-error-handling-xml |
Description | Da Vinci - Notifications - FHIR R4 - 01 Process Message Error Handling - Test Da Vinci Notifications error handling by sending a malformed resource through the $process-message operation and expect a 4++ http response using XML syntax. |
Version | 2 | Latest | 2 |
<?xml version="1.0" encoding="UTF-8"?>
<TestScript xmlns="http://hl7.org/fhir">
<id value="dv-notifications-r4-01-Process-Message-Admit-xml"/>
<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 - Notifications - FHIR R4 - 01 Process Message Admit - XML</p>
</div>
</text>
<url value="http://wildfhir.aegis.net/fhir4-0-0/TestScript/dv-notifications-r4-01-Process-Message-admit-xml"/>
<name value="DaVinciNotificationsR401ProcessMessageAdmitXML"/>
<title value="Da Vinci - Notifications - FHIR R4 - 01 Process Message Admit - XML"/>
<status value="active"/>
<date value="2019-08-22"/>
<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="Da Vinci - Notifications - FHIR R4 - 01 Process Message Error Handling - Test Da Vinci Notifications error handling by sending a malformed resource through the $process-message operation and expect a 4++ http response using XML syntax."/>
<copyright value="This FHIR Test Script is licensed under Creative Commons (CC0) 'No Rights Reserved'. Learn more at https://creativecommons.org/licenses"/>
<origin id="Notification Sender (Provider)">
<index value="1"/>
<profile>
<system value="http://terminology.hl7.org/CodeSystem/testscript-profile-origin-types"/>
<code value="FHIR-Client"/>
</profile>
</origin>
<destination id="Notification Recipient (Payer)">
<index value="1"/>
<profile>
<system value="http://terminology.hl7.org/CodeSystem/testscript-profile-destination-types"/>
<code value="FHIR-Server"/>
</profile>
</destination>
<fixture id="comm-request-notification-message">
<autocreate value="false"/>
<autodelete value="false"/>
<resource>
<reference value="./_reference/resources/Bundle-message-error-01.xml"/>
</resource>
</fixture>
<test id="01-ProcessMessageAdmit">
<name value="ProcessMessageAdmit"/>
<description value="Test Da Vinci Notifications error handling by sending a malformed resource through the $process-message operation and expect an error response using XML syntax."/>
<action>
<operation>
<type>
<system value="http://terminology.hl7.org/CodeSystem/testscript-operation-codes"/>
<code value="process-message"/>
</type>
<description value="Send a malformed XML resource through $process-message and expect a 4++ http response with an OperationOutcome."/>
<accept value="xml"/>
<contentType value="xml"/>
<destination value="1"/>
<encodeRequestUrl value="true"/>
<origin value="1"/>
<params value="/$process-message"/>
<sourceId value="comm-request-notification-message"/>
</operation>
</action>
<action>
<assert>
<extension url="http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail">
<valueBoolean value="false"/>
</extension>
<description value="Verify a response is returned that indicates an error condition"/>
<direction value="response"/>
<operator value="greaterThan"/>
<responseCode value="399"/>
<warningOnly value="false"/>
</assert>
</action>
<action>
<assert>
<description value="Verify an OperationOutcome SHOULD exist in the response as an invalid request was sent (no MessageHeader) in the $process-message request"/>
<direction value="response"/>
<resource value="OperationOutcome"/>
<warningOnly value="true"/>
</assert>
</action>
</test>
</TestScript>