Name | /FHIRSandbox/DaVinci/FHIR4-0-1-PAS/PAS-2-0-1/03-PAS-Pended/01-PAS-Subscriptions/02-Websocket/02-dv-pas-03-WebsocketSubBind |
Description | Client requests a websocket binding token, by invoking the $get-ws-binding-token operation via REST and the Server returns Parameters with a token,expiration, and websocket-url. |
Version | 1 | Latest | 1 |
<?xml version="1.0" encoding="UTF-8"?>
<TestScript xmlns="http://hl7.org/fhir">
<id value="dv-pas-r4-02-WebsocketSubBindProcess"/>
<url value="http://wildfhir.aegis.net/FHIRSandbox/DaVinci/fhir4-0-1-PAS/PAS-2-0-1/03-PAS-Pended/01-PAS-Subscriptions/02-Websocket/02-dv-pas-r4-02-WebsocketSubBind.xml"/>
<name value="WebsocketSubscriptionBind"/>
<status value="active"/>
<date value="2024-01-05"/>
<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="Client requests a websocket binding token, by invoking the $get-ws-binding-token operation via REST and the Server returns Parameters with a token,expiration, and websocket-url."/>
<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://terminology.hl7.org/CodeSystem/testscript-profile-origin-types"/>
<code value="FHIR-Client"/>
</profile>
</origin>
<destination>
<index value="1"/>
<profile>
<system value="http://terminology.hl7.org/CodeSystem/testscript-profile-destination-types"/>
<code value="FHIR-Server"/>
</profile>
</destination>
<profile id="ParametersProfile">
<reference value="http://hl7.org/fhir/StructureDefinition/Parameters"/>
</profile>
<variable>
<name value="SubsriptionId"/>
<description value="Id of the Subsription created in previous step"/>
<hint value="resource ID of the Subscription"/>
</variable>
<test id="WebsocketBind">
<name value="WebsocketBind"/>
<description value="Client requests a websocket binding token, by invoking the $get-ws-binding-token operation"/>
<action>
<operation>
<type>
<system value="http://hl7.org/fhir/testscript-operation-codes"/>
<code value="search"/>
</type>
<resource value="Subscription"/>
<description value="Invoke $get-binding-token"/>
<contentType value="json"/>
<destination value="1"/>
<encodeRequestUrl value="false"/>
<origin value="1"/>
<params value="${SubsriptionId}/$get-ws-binding-token"/>
</operation>
</action>
<action>
<assert>
<description value="Validate that the Parameters resource conforms to the corresponding FHIR profile."/>
<direction value="response"/>
<validateProfileId value="ParametersProfile"/>
<warningOnly value="false"/>
</assert>
</action>
<action>
<assert>
<direction value="response"/>
<responseCode value="200"/>
<warningOnly value="false"/>
</assert>
</action>
</test>
</TestScript>