<?xml version="1.0" encoding="UTF-8"?>
<con:soapui-project activeEnvironment="Default" name="FPDS-PUBSUB" soapui-version="5.2.1" abortOnError="false" runType="SEQUENTIAL" resourceRoot="" id="a1bc5163-2f84-4975-ac9e-44e4f6e1ed59" xmlns:con="http://eviware.com/soapui/config">
	<con:settings/>
	<con:interface xsi:type="con:RestService" wadlVersion="http://wadl.dev.java.net/2009/02" name="FPDS" type="rest" basePath="/repositories.med.DNS   /fpds/vpr" definitionUrl="http://${#Project#mockServiceHost}:${#Project#fpdsServicePort}/repositories.med.DNS   /fpds/?_wadl" id="3f00f520-b23b-4aaf-b44e-24baa8119adf" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
		<con:settings/>
		<con:definitionCache type="TEXT" rootPart="http://${#Project#mockServiceHost}:${#Project#fpdsServicePort}/repositories.med.DNS   /fpds/?_wadl">
			<con:part>
				<con:url>http://${#Project#mockServiceHost}:${#Project#fpdsServicePort}/repositories.med.DNS   /fpds/?_wadl
				</con:url>
				<con:content>&lt;ns1:XMLFault
					xmlns:ns1="http://cxf.apache.org/bindings/xformat">
					&lt;ns1:faultstring>UriInfo object is expected to be part of the in
					message content list.&lt;/ns1:faultstring>
					&lt;/ns1:XMLFault></con:content>
				<con:type>http://cxf.apache.org/bindings/xformat</con:type>
			</con:part>
		</con:definitionCache>
		<con:endpoints>
			<con:endpoint>http://${#Project#fpdsServiceHost}:${#Project#fpdsServicePort}
			</con:endpoint>
		</con:endpoints>
	    <con:resource name="" path="/" id="1c6dd578-c8f4-4c8d-b6f4-b204acc4a021">
			<con:settings/>
			<con:parameters/>
			
			
		</con:resource>
	<con:resource name="getUpdates" path="/patientdata/{siteId}" id="5b763783-26b4-4a3f-bdbd-f3442bce6c03"><con:settings/><con:parameters><con:parameter required="false" disableUrlEncoding="false"><con:name>siteId</con:name><con:value/><con:style>TEMPLATE</con:style><con:type xmlns:xs="http://www.w3.org/2001/XMLSchema">xs:string</con:type><con:default/><con:description xsi:nil="true"/></con:parameter><con:parameter><con:name>server</con:name><con:value/><con:style>QUERY</con:style><con:default/></con:parameter><con:parameter required="false" disableUrlEncoding="false"><con:name>lastUpdate</con:name><con:value/><con:style>QUERY</con:style><con:type xmlns:xs="http://www.w3.org/2001/XMLSchema">xs:string</con:type><con:default/><con:description xsi:nil="true"/></con:parameter><con:parameter required="false" disableUrlEncoding="false"><con:name>max</con:name><con:value/><con:style>QUERY</con:style><con:type xmlns:xs="http://www.w3.org/2001/XMLSchema">xs:string</con:type><con:default/><con:description xsi:nil="true"/></con:parameter><con:parameter required="false" disableUrlEncoding="false"><con:name>extractSchema</con:name><con:value/><con:style>QUERY</con:style><con:type xmlns:xs="http://www.w3.org/2001/XMLSchema">xs:string</con:type><con:default/><con:description xsi:nil="true"/></con:parameter><con:parameter required="false" disableUrlEncoding="false"><con:name>requestId</con:name><con:value/><con:style>QUERY</con:style><con:type xmlns:xs="http://www.w3.org/2001/XMLSchema">xs:string</con:type><con:default/><con:description xsi:nil="true"/></con:parameter><con:parameter><con:name>clientRequestInitiationTime</con:name><con:value/><con:style>QUERY</con:style><con:default/><con:description xsi:nil="true"/></con:parameter><con:parameter><con:name>clientName</con:name><con:value/><con:style>QUERY</con:style><con:default/><con:description xsi:nil="true"/></con:parameter><con:parameter required="false" disableUrlEncoding="false"><con:name>_type</con:name><con:value/><con:style>QUERY</con:style><con:type xmlns:xs="http://www.w3.org/2001/XMLSchema">xs:string</con:type><con:default/><con:description xsi:nil="true"/></con:parameter></con:parameters><con:method name="getUpdates" method="GET" id="cbe5fa31-5a2a-427e-b50d-c0f560e26b76"><con:settings/><con:parameters/><con:request name="Request 1" mediaType="application/json" id="c561c24f-808b-45f2-a4ca-d7fa72b55ad7"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:endpoint>http://${#Project#fpdsServiceHost}:${#Project#fpdsServicePort} 			</con:endpoint><con:request/><con:credentials><con:authType>No Authorization</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:parameters>
  <con:entry key="_type" value="json"/>
  <con:entry key="server" value=""/>
</con:parameters><con:parameterOrder><con:entry>siteId</con:entry><con:entry>server</con:entry><con:entry>extractSchema</con:entry><con:entry>lastUpdate</con:entry><con:entry>max</con:entry><con:entry>requestId</con:entry><con:entry>clientRequestInitiationTime</con:entry><con:entry>clientName</con:entry><con:entry>_type</con:entry></con:parameterOrder></con:request></con:method></con:resource><con:resource name="subscribe" path="/subscribe" id="ccea5b2b-293d-4775-adb2-9ff99e86e071"><con:settings/><con:parameters><con:parameter><con:name>server</con:name><con:value/><con:style>QUERY</con:style><con:default/><con:description xsi:nil="true"/></con:parameter><con:parameter required="false" disableUrlEncoding="false"><con:name>nationalId</con:name><con:value/><con:style>QUERY</con:style><con:type xmlns:xs="http://www.w3.org/2001/XMLSchema">xs:string</con:type><con:default/><con:description xsi:nil="true"/></con:parameter><con:parameter><con:name>resolvedIdentifier</con:name><con:value/><con:style>QUERY</con:style><con:default/><con:description xsi:nil="true"/></con:parameter><con:parameter><con:name>requestId</con:name><con:value/><con:style>QUERY</con:style><con:default/><con:description xsi:nil="true"/></con:parameter><con:parameter><con:name>clientRequestInitiationTime</con:name><con:value/><con:style>QUERY</con:style><con:default/><con:description xsi:nil="true"/></con:parameter><con:parameter><con:name>clientName</con:name><con:value/><con:style>QUERY</con:style><con:default/><con:description xsi:nil="true"/></con:parameter><con:parameter><con:name>_type</con:name><con:value/><con:style>QUERY</con:style><con:default/><con:description xsi:nil="true"/></con:parameter></con:parameters><con:method name="subscribe" method="POST" id="4b73763f-d30f-4c39-9da7-96a98cbaffeb"><con:settings/><con:parameters/><con:request name="Request 1" mediaType="application/json" postQueryString="false" multiValueDelimiter="," id="c9db3ef5-f38d-4d12-9e20-361ff00382d2"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:endpoint>http://${#Project#fpdsServiceHost}:${#Project#fpdsServicePort}
			</con:endpoint><con:request/><con:credentials><con:authType>No Authorization</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:parameters><entry key="_type" value="json" xmlns="http://eviware.com/soapui/config"/></con:parameters><con:parameterOrder><con:entry>server</con:entry><con:entry>nationalId</con:entry><con:entry>resolvedIdentifier</con:entry><con:entry>requestId</con:entry><con:entry>clientRequestInitiationTime</con:entry><con:entry>clientName</con:entry><con:entry>_type</con:entry></con:parameterOrder></con:request></con:method></con:resource><con:resource name="cancel" path="/cancel" id="cf9500ff-d379-4a88-8fe8-4e6ba0bb16e6"><con:settings/><con:parameters><con:parameter><con:name>server</con:name><con:value/><con:style>QUERY</con:style><con:default/><con:description xsi:nil="true"/></con:parameter><con:parameter required="false" disableUrlEncoding="false"><con:name>nationalId</con:name><con:value/><con:style>QUERY</con:style><con:type xmlns:xs="http://www.w3.org/2001/XMLSchema">xs:string</con:type><con:default/><con:description xsi:nil="true"/></con:parameter><con:parameter><con:name>resolvedIdentifier</con:name><con:value/><con:style>QUERY</con:style><con:default/><con:description xsi:nil="true"/></con:parameter><con:parameter><con:name>requestId</con:name><con:value/><con:style>QUERY</con:style><con:default/><con:description xsi:nil="true"/></con:parameter><con:parameter><con:name>clientRequestInitiationTime</con:name><con:value/><con:style>QUERY</con:style><con:default/><con:description xsi:nil="true"/></con:parameter><con:parameter><con:name>clientName</con:name><con:value/><con:style>QUERY</con:style><con:default/><con:description xsi:nil="true"/></con:parameter><con:parameter><con:name>_type</con:name><con:value/><con:style>QUERY</con:style><con:default/><con:description xsi:nil="true"/></con:parameter></con:parameters><con:method name="cancel" method="POST" id="7b793908-a748-4438-9c68-b77b099956d9"><con:settings/><con:parameters/><con:request name="Request 1" mediaType="application/json" postQueryString="false" multiValueDelimiter="," id="c657b354-d677-4cd2-bd9b-95149c11833a"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:endpoint>http://${#Project#fpdsServiceHost}:${#Project#fpdsServicePort}
			</con:endpoint><con:request/><con:credentials><con:authType>No Authorization</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:parameters><entry key="_type" value="json" xmlns="http://eviware.com/soapui/config"/></con:parameters><con:parameterOrder><con:entry>server</con:entry><con:entry>nationalId</con:entry><con:entry>resolvedIdentifier</con:entry><con:entry>requestId</con:entry><con:entry>clientRequestInitiationTime</con:entry><con:entry>clientName</con:entry><con:entry>_type</con:entry></con:parameterOrder></con:request></con:method></con:resource><con:resource name="" path="/isAlive" id="c172d388-c24f-4ded-b4e6-35dad7b1a83c"><con:settings/><con:parameters/><con:method name="isAlive" method="GET" id="de13b383-4a05-4fee-8711-672d3db4e048"><con:settings/><con:parameters/><con:request name="Request 1" mediaType="application/json" id="978e013c-80a8-484f-b751-edb716db85a8"><con:settings/><con:endpoint>http://${#Project#fpdsServiceHost}:${#Project#fpdsServicePort}
			</con:endpoint><con:request/><con:credentials><con:authType>No Authorization</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:parameters/></con:request></con:method></con:resource><con:resource name="resetSubscriptions" path="/reset/{siteId}" id="21729667-adc4-4f4a-b5d5-a5007634e792"><con:settings/><con:parameters><con:parameter required="false" disableUrlEncoding="false"><con:name>siteId</con:name><con:value/><con:style>TEMPLATE</con:style><con:type xmlns:xs="http://www.w3.org/2001/XMLSchema">xs:string</con:type><con:default/><con:description xsi:nil="true"/></con:parameter><con:parameter><con:name>server</con:name><con:value/><con:style>QUERY</con:style><con:default/></con:parameter><con:parameter required="false" disableUrlEncoding="false"><con:name>requestId</con:name><con:value/><con:style>QUERY</con:style><con:type xmlns:xs="http://www.w3.org/2001/XMLSchema">xs:string</con:type><con:default/><con:description xsi:nil="true"/></con:parameter><con:parameter><con:name>clientRequestInitiationTime</con:name><con:value/><con:style>QUERY</con:style><con:default/><con:description xsi:nil="true"/></con:parameter><con:parameter><con:name>clientName</con:name><con:value/><con:style>QUERY</con:style><con:default/><con:description xsi:nil="true"/></con:parameter><con:parameter><con:name>_type</con:name><con:value/><con:style>QUERY</con:style><con:default/><con:description xsi:nil="true"/></con:parameter></con:parameters><con:method name="resetSubscriptions" method="GET" id="ce6f51f1-2b63-48d3-8f89-4f9462e535d4"><con:settings/><con:parameters/><con:request name="Request 1" mediaType="application/json" id="2ddbf889-2cae-4bfd-9c77-10a56fd8770f"><con:settings/><con:endpoint>http://${#Project#fpdsServiceHost}:${#Project#fpdsServicePort}
			</con:endpoint><con:request/><con:credentials><con:authType>No Authorization</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:parameters>
  <con:entry key="_type" value="json"/>
  <con:entry key="server" value=""/>
</con:parameters><con:parameterOrder><con:entry>siteId</con:entry><con:entry>server</con:entry><con:entry>requestId</con:entry><con:entry>clientRequestInitiationTime</con:entry><con:entry>clientName</con:entry><con:entry>_type</con:entry></con:parameterOrder></con:request></con:method></con:resource></con:interface>
	<con:testSuite name="FPDS PUBSUB Test Suite" id="ca26a17d-f9cb-427d-8eb8-cc1a4a57a2aa">
		<con:settings/>
		<con:runType>SEQUENTIAL</con:runType>
		<con:testCase failOnError="true" failTestCaseOnErrors="true" keepSession="false" maxResults="0" name="isAlive" searchProperties="true" id="2619527e-a441-4251-be91-b2c24f33f226"><con:settings/><con:testStep type="restrequest" name="isAlive" id="843f27d9-04d6-4239-a17c-b7c7beb492bc"><con:settings/><con:config service="FPDS" resourcePath="/repositories.med.DNS   /fpds/vpr/isAlive" methodName="isAlive" xsi:type="con:RestRequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:restRequest name="isAlive" mediaType="application/json" id="1467e54a-3ab6-427d-a3b3-b4ce2ebdc18e"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:endpoint>http://${#Project#fpdsServiceHost}:${#Project#fpdsServicePort} 			</con:endpoint><con:request/><con:originalUri>http://IP         /repositories.med.DNS   /fpds/vpr/isAlive</con:originalUri><con:assertion type="Simple Contains" name="Contains" id="1be0c210-7246-4fbd-a6bf-76d5509cad7e"><con:configuration><token>true</token><ignoreCase>false</ignoreCase><useRegEx>false</useRegEx></con:configuration></con:assertion><con:credentials><con:authType>No Authorization</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:parameters/></con:restRequest></con:config></con:testStep><con:properties/></con:testCase>
		<con:testCase failOnError="true" failTestCaseOnErrors="true" keepSession="false" maxResults="0" name="subscribePatient" searchProperties="true" id="1d967a49-58ef-4434-bd22-68707a37a3ef">
			<con:settings/>
			
			
			
			
			<con:testStep type="groovy" name="Setup Test Data" id="f587fe2d-0689-4091-adb7-ef487086934c"><con:settings/><con:config><script>//context.lastupdated=0;
testRunner.testCase.testSuite.setPropertyValue( "lastupdated","0")</script></con:config></con:testStep><con:testStep type="restrequest" name="subscribePatientByDFN" id="6ade4131-66f8-4440-b7ab-c56f6b04dc77"><con:settings/><con:config service="FPDS" resourcePath="/repositories.med.DNS   /fpds/vpr/subscribe" methodName="subscribe" xsi:type="con:RestRequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:restRequest name="subscribePatientByDFN" mediaType="application/json" postQueryString="false" id="205650cb-f66a-4479-85e4-8609423578e8"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:endpoint>http://${#Project#fpdsServiceHost}:${#Project#fpdsServicePort} 			</con:endpoint><con:request/><con:originalUri>http://IP         /repositories.med.DNS   /fpds/pubsub/howstricks/hmptest/8</con:originalUri><con:assertion type="Simple NotContains" name="Not Contains" id="cbf66b97-a14e-4ce3-81c4-322d767e7cc2"><con:configuration><token>errorSection</token><ignoreCase>false</ignoreCase><useRegEx>false</useRegEx></con:configuration></con:assertion><con:credentials><con:authType>No Authorization</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:parameters>
  <con:entry key="_type" value="json"/>
  <con:entry key="requestId" value="${=(java.util.UUID.randomUUID().toString()).trim()}      "/>
  <con:entry key="assigningAuthority" value="USVHA"/>
  <con:entry key="clientName" value="${#TestSuite#CLIENT_NAME}"/>
  <con:entry key="clientRequestInitiationTime" value="${=org.apache.commons.lang.time.DateFormatUtils.ISO_DATETIME_TIME_ZONE_FORMAT.format( new Date() )}"/>
  <con:entry key="server" value="${#TestSuite#SERVER_NAME}"/>
  <con:entry key="assigningFacility" value="554"/>
  <con:entry key="resolvedIdentifier" value="${#TestSuite#PATIENT_DFN}"/>
</con:parameters><con:parameterOrder><con:entry>server</con:entry><con:entry>nationalId</con:entry><con:entry>resolvedIdentifier</con:entry><con:entry>requestId</con:entry><con:entry>clientRequestInitiationTime</con:entry><con:entry>clientName</con:entry><con:entry>_type</con:entry></con:parameterOrder></con:restRequest></con:config></con:testStep><con:testStep type="restrequest" name="subscribePatientByICN" id="309ad9d9-1645-4b3c-8059-d2866e3b2a6f"><con:settings/><con:config service="FPDS" resourcePath="/repositories.med.DNS   /fpds/vpr/subscribe" methodName="subscribe" xsi:type="con:RestRequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:restRequest name="subscribePatientByICN" mediaType="application/json" postQueryString="false" id="52311eab-6cb8-47a9-bd5f-e217ec58d117"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:endpoint>http://${#Project#fpdsServiceHost}:${#Project#fpdsServicePort} 			</con:endpoint><con:request/><con:originalUri>http://IP         /repositories.med.DNS   /fpds/pubsub/howstricks/hmptest/8</con:originalUri><con:assertion type="Simple Contains" name="Contains" id="abadf761-a36c-404b-a3de-c2e50ce3d2bb"><con:configuration><token>*** RPC Entry not found (#2300) >>> ValidateRPCNum^VISTA.HDSREPGSPRtn ***</token><ignoreCase>false</ignoreCase><useRegEx>false</useRegEx></con:configuration></con:assertion><con:assertion type="GroovyScriptAssertion" name="Script Assertion" id="b6928ab8-92e0-4f21-a757-5e053a7f3064"><con:configuration><scriptText>import com.eviware.soapui.support.XmlHolder
import org.apache.commons.lang.StringUtils
import groovy.json.JsonSlurper

def response = messageExchange.response.responseContent
log.info response

def slurper = new JsonSlurper()
def json = slurper.parseText(response)

//verify the slurper isn't empty and values in response are expected
assert !json.isEmpty()
assert json.sites[1].errorSection.warnings.size==3
assert json.sites[1].errorSection.warnings[0].displayMessage=="Assigning Facility is 247. Patient id is 1. Domain entry point is GenericObservation. Database is VISTA-247-R. The Error reason is READ_REQUEST_DATA_SOURCE_FAILURE: VISTA SITE ERROR.:  *** RPC Entry not found (#2300) >>> ValidateRPCNum^VISTA.HDSREPGSPRtn ***"
assert json.sites[1].errorSection.warnings[1].displayMessage=="Assigning Facility is 580. Patient id is 174. Domain entry point is GenericObservation. Database is VISTA-580-R. The Error reason is READ_REQUEST_DATA_SOURCE_FAILURE: VISTA SITE ERROR.:  *** RPC Entry not found (#2300) >>> ValidateRPCNum^VISTA.HDSREPGSPRtn ***"
assert json.sites[1].errorSection.warnings[2].displayMessage=="Assigning Facility is 248. Patient id is 174. Domain entry point is GenericObservation. Database is VISTA-248-R. The Error reason is READ_REQUEST_DATA_SOURCE_FAILURE: VISTA SITE ERROR.:  *** RPC Entry not found (#2300) >>> ValidateRPCNum^VISTA.HDSREPGSPRtn ***"
</scriptText></con:configuration></con:assertion><con:credentials><con:authType>No Authorization</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:parameters>
  <con:entry key="_type" value="json"/>
  <con:entry key="nationalId" value="${#TestSuite#PATIENT_ICN}"/>
  <con:entry key="requestId" value="${=(java.util.UUID.randomUUID().toString()).trim()}      "/>
  <con:entry key="assigningAuthority" value="USVHA"/>
  <con:entry key="clientName" value="${#TestSuite#CLIENT_NAME}"/>
  <con:entry key="clientRequestInitiationTime" value="${=org.apache.commons.lang.time.DateFormatUtils.ISO_DATETIME_TIME_ZONE_FORMAT.format( new Date() )}"/>
  <con:entry key="server" value="${#TestSuite#SERVER_NAME}"/>
  <con:entry key="assigningFacility" value="554"/>
</con:parameters><con:parameterOrder><con:entry>nationalId</con:entry><con:entry>server</con:entry><con:entry>requestId</con:entry><con:entry>resolvedIdentifier</con:entry><con:entry>clientRequestInitiationTime</con:entry><con:entry>clientName</con:entry><con:entry>_type</con:entry></con:parameterOrder></con:restRequest></con:config></con:testStep><con:testStep type="restrequest" name="subscribePatientByDFNList" id="41a0d816-2f4d-4c0c-973d-394928312d75"><con:settings/><con:config service="FPDS" resourcePath="/repositories.med.DNS   /fpds/vpr/subscribe" methodName="subscribe" xsi:type="con:RestRequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:restRequest name="subscribePatientByDFNList" mediaType="application/json" postQueryString="false" multiValueDelimiter="," id="c541edc2-c2b8-448a-846e-00701d02e8bd"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:endpoint>http://${#Project#fpdsServiceHost}:${#Project#fpdsServicePort} 			</con:endpoint><con:request/><con:originalUri>http://IP         /repositories.med.DNS   /fpds/pubsub/howstricks/hmptest/8</con:originalUri><con:assertion type="Simple Contains" name="Contains" id="b9327566-5b94-48e5-a8cd-cd683c785acb"><con:configuration><token>*** RPC Entry not found (#2300) >>> ValidateRPCNum^VISTA.HDSREPGSPRtn ***</token><ignoreCase>false</ignoreCase><useRegEx>false</useRegEx></con:configuration></con:assertion><con:assertion type="GroovyScriptAssertion" name="Script Assertion" id="4df70272-c9cc-418b-b0eb-b5961bd19cf3"><con:configuration><scriptText>import com.eviware.soapui.support.XmlHolder
import org.apache.commons.lang.StringUtils
import groovy.json.JsonSlurper

def response = messageExchange.response.responseContent
log.info response

def slurper = new JsonSlurper()
def json = slurper.parseText(response)

//verify the slurper isn't empty and values in response are expected
assert !json.isEmpty()
assert json.sites[1].errorSection.warnings.size==1
assert json.sites[1].errorSection.warnings[0].displayMessage=="Assigning Facility is 580. Patient id is 174. Domain entry point is GenericObservation. Database is VISTA-580-R. The Error reason is READ_REQUEST_DATA_SOURCE_FAILURE: VISTA SITE ERROR.:  *** RPC Entry not found (#2300) >>> ValidateRPCNum^VISTA.HDSREPGSPRtn ***"</scriptText></con:configuration></con:assertion><con:credentials><con:authType>No Authorization</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:parameters>
  <con:entry key="_type" value="json"/>
  <con:entry key="requestId" value="${=(java.util.UUID.randomUUID().toString()).trim()}      "/>
  <con:entry key="assigningAuthority" value="USVHA"/>
  <con:entry key="clientName" value="${#TestSuite#CLIENT_NAME}"/>
  <con:entry key="clientRequestInitiationTime" value="${=org.apache.commons.lang.time.DateFormatUtils.ISO_DATETIME_TIME_ZONE_FORMAT.format( new Date() )}"/>
  <con:entry key="server" value="${#TestSuite#SERVER_NAME}"/>
  <con:entry key="assigningFacility" value="554"/>
  <con:entry key="resolvedIdentifier" value="${#TestSuite#PATIENT_DFN_LIST}"/>
</con:parameters><con:parameterOrder><con:entry>server</con:entry><con:entry>nationalId</con:entry><con:entry>resolvedIdentifier</con:entry><con:entry>requestId</con:entry><con:entry>clientRequestInitiationTime</con:entry><con:entry>clientName</con:entry><con:entry>_type</con:entry></con:parameterOrder></con:restRequest></con:config></con:testStep><con:testStep type="restrequest" name="subscribePatientByICNandDFN_assertICN_used" id="5c6d0ba5-98a3-4115-be5b-6f2712da9bd9"><con:settings/><con:config service="FPDS" resourcePath="/repositories.med.DNS   /fpds/vpr/subscribe" methodName="subscribe" xsi:type="con:RestRequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:restRequest name="subscribePatientByICNandDFN_assertICN_used" mediaType="application/json" postQueryString="false" id="d8285ad8-118b-4870-8c8f-f7f249e01503"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:endpoint>http://${#Project#fpdsServiceHost}:${#Project#fpdsServicePort} 			</con:endpoint><con:request/><con:originalUri>http://IP         /repositories.med.DNS   /fpds/pubsub/howstricks/hmptest/8</con:originalUri><con:assertion type="Simple Contains" name="Contains" id="82690b74-bdf8-4f5a-a2bf-b6cee4188444"><con:configuration><token>*** RPC Entry not found (#2300) >>> ValidateRPCNum^VISTA.HDSREPGSPRtn ***</token><ignoreCase>false</ignoreCase><useRegEx>false</useRegEx></con:configuration></con:assertion><con:assertion type="GroovyScriptAssertion" name="Script Assertion" id="ab0d7c82-06b3-49df-b59a-c342d7eee177"><con:configuration><scriptText>import com.eviware.soapui.support.XmlHolder
import org.apache.commons.lang.StringUtils
import groovy.json.JsonSlurper

def response = messageExchange.response.responseContent
log.info response

def slurper = new JsonSlurper()
def json = slurper.parseText(response)

//verify the slurper isn't empty and values in response are expected
assert !json.isEmpty()
assert json.sites[1].errorSection.warnings.size==3
assert json.sites[1].errorSection.warnings[0].displayMessage=="Assigning Facility is 247. Patient id is 1. Domain entry point is GenericObservation. Database is VISTA-247-R. The Error reason is READ_REQUEST_DATA_SOURCE_FAILURE: VISTA SITE ERROR.:  *** RPC Entry not found (#2300) >>> ValidateRPCNum^VISTA.HDSREPGSPRtn ***"
</scriptText></con:configuration></con:assertion><con:credentials><con:authType>No Authorization</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:parameters>
  <con:entry key="_type" value="json"/>
  <con:entry key="nationalId" value="${#TestSuite#PATIENT_ICN}"/>
  <con:entry key="requestId" value="${=(java.util.UUID.randomUUID().toString()).trim()}      "/>
  <con:entry key="assigningAuthority" value="USVHA"/>
  <con:entry key="clientName" value="${#TestSuite#CLIENT_NAME}"/>
  <con:entry key="clientRequestInitiationTime" value="${=org.apache.commons.lang.time.DateFormatUtils.ISO_DATETIME_TIME_ZONE_FORMAT.format( new Date() )}"/>
  <con:entry key="server" value="${#TestSuite#SERVER_NAME}"/>
  <con:entry key="assigningFacility" value="554"/>
  <con:entry key="resolvedIdentifier" value="175--"/>
</con:parameters><con:parameterOrder><con:entry>nationalId</con:entry><con:entry>server</con:entry><con:entry>requestId</con:entry><con:entry>resolvedIdentifier</con:entry><con:entry>clientRequestInitiationTime</con:entry><con:entry>clientName</con:entry><con:entry>_type</con:entry></con:parameterOrder></con:restRequest></con:config></con:testStep><con:properties/>
		</con:testCase><con:testCase failOnError="true" failTestCaseOnErrors="true" keepSession="false" maxResults="0" name="subscribePatientValidationExceptions" searchProperties="true" id="419fc697-838c-40a7-ad59-4c4b663f79c3">
			<con:settings/>
			
			
			
			
			<con:testStep type="restrequest" name="subscribePatientMissingServer" id="1241bb91-0ca9-44e3-8631-23012e47de00"><con:settings/><con:config service="FPDS" resourcePath="/repositories.med.DNS   /fpds/vpr/subscribe" methodName="subscribe" xsi:type="con:RestRequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:restRequest name="subscribePatientMissingServer" mediaType="application/json" postQueryString="false" id="5e44ec3d-1c06-4623-a24c-8fc899c37d46"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:endpoint>http://${#Project#fpdsServiceHost}:${#Project#fpdsServicePort} 			</con:endpoint><con:request/><con:originalUri>http://IP         /repositories.med.DNS   /fpds/pubsub/howstricks/hmptest/8</con:originalUri><con:assertion type="Simple Contains" name="Contains" id="73ce9799-2747-48e0-b730-801f38ecacb8"><con:configuration><token>errorSection</token><ignoreCase>false</ignoreCase><useRegEx>false</useRegEx></con:configuration></con:assertion><con:assertion type="GroovyScriptAssertion" name="Script Assertion" id="0af85031-5c8b-494f-b71a-91a5b9418d2d"><con:configuration><scriptText>import com.eviware.soapui.support.XmlHolder
import org.apache.commons.lang.StringUtils
import groovy.json.JsonSlurper

def response = messageExchange.response.responseContent
log.info response

def slurper = new JsonSlurper()
def json = slurper.parseText(response)

//verify the slurper isn't empty and values in response are expected
assert !json.isEmpty()
assert json.sites.size==1
assert json.sites[0].errorSection.fatalErrors[0].displayMessage=="Request parameter server was not provided or was empty."</scriptText></con:configuration></con:assertion><con:credentials><con:authType>No Authorization</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:parameters>
  <con:entry key="_type" value="json"/>
  <con:entry key="requestId" value="${=(java.util.UUID.randomUUID().toString()).trim()}      "/>
  <con:entry key="assigningAuthority" value="USVHA"/>
  <con:entry key="clientName" value="${#TestSuite#CLIENT_NAME}"/>
  <con:entry key="clientRequestInitiationTime" value="${=org.apache.commons.lang.time.DateFormatUtils.ISO_DATETIME_TIME_ZONE_FORMAT.format( new Date() )}"/>
  <con:entry key="assigningFacility" value="554"/>
  <con:entry key="resolvedIdentifier" value="${#TestSuite#PATIENT_DFN}"/>
</con:parameters><con:parameterOrder><con:entry>server</con:entry><con:entry>nationalId</con:entry><con:entry>resolvedIdentifier</con:entry><con:entry>requestId</con:entry><con:entry>clientRequestInitiationTime</con:entry><con:entry>clientName</con:entry><con:entry>_type</con:entry></con:parameterOrder></con:restRequest></con:config></con:testStep><con:testStep type="restrequest" name="subscribePatientByDFNMissingFacility" id="0d713f37-bf6e-4fa1-a1c4-5f8b63ba321e"><con:settings/><con:config service="FPDS" resourcePath="/repositories.med.DNS   /fpds/vpr/subscribe" methodName="subscribe" xsi:type="con:RestRequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:restRequest name="subscribePatientByDFNMissingFacility" mediaType="application/json" postQueryString="false" id="9353d2ff-bb0c-42d7-9b74-eb874d7ef40d"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:endpoint>http://${#Project#fpdsServiceHost}:${#Project#fpdsServicePort} 			</con:endpoint><con:request/><con:originalUri>http://IP         /repositories.med.DNS   /fpds/pubsub/howstricks/hmptest/8</con:originalUri><con:assertion type="Simple Contains" name="Contains" id="5fefee1b-f585-4aba-9d8a-89960a549687"><con:configuration><token>errorSection</token><ignoreCase>false</ignoreCase><useRegEx>false</useRegEx></con:configuration></con:assertion><con:assertion type="GroovyScriptAssertion" name="Script Assertion" id="c4ee7f5e-0a5f-42bb-8af6-2aff6abebec5"><con:configuration><scriptText>import com.eviware.soapui.support.XmlHolder
import org.apache.commons.lang.StringUtils
import groovy.json.JsonSlurper

def response = messageExchange.response.responseContent
log.info response

def slurper = new JsonSlurper()
def json = slurper.parseText(response)

//verify the slurper isn't empty and values in response are expected
assert !json.isEmpty()
assert json.sites.size==1
assert json.sites[0].errorSection.fatalErrors[0].displayMessage=="One or all of these elements are missing in the ResolvedIdentifier:  identifier-facilityId-authority  All of them are required."</scriptText></con:configuration></con:assertion><con:credentials><con:authType>No Authorization</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:parameters>
  <con:entry key="_type" value="json"/>
  <con:entry key="requestId" value="${=(java.util.UUID.randomUUID().toString()).trim()}      "/>
  <con:entry key="assigningAuthority" value="USVHA"/>
  <con:entry key="clientName" value="${#TestSuite#CLIENT_NAME}"/>
  <con:entry key="clientRequestInitiationTime" value="${=org.apache.commons.lang.time.DateFormatUtils.ISO_DATETIME_TIME_ZONE_FORMAT.format( new Date() )}"/>
  <con:entry key="server" value="${#TestSuite#SERVER_NAME}"/>
  <con:entry key="assigningFacility" value="554"/>
  <con:entry key="resolvedIdentifier" value="${#TestSuite#PATIENT_MISSING_FACILITY}"/>
</con:parameters><con:parameterOrder><con:entry>server</con:entry><con:entry>nationalId</con:entry><con:entry>resolvedIdentifier</con:entry><con:entry>requestId</con:entry><con:entry>clientRequestInitiationTime</con:entry><con:entry>clientName</con:entry><con:entry>_type</con:entry></con:parameterOrder></con:restRequest></con:config></con:testStep><con:testStep type="restrequest" name="subscribePatientByDfnMissingAuthority" id="c084e754-cca2-4bd5-bae4-13dedda80ad1"><con:settings/><con:config service="FPDS" resourcePath="/repositories.med.DNS   /fpds/vpr/subscribe" methodName="subscribe" xsi:type="con:RestRequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:restRequest name="subscribePatientByDfnMissingAuthority" mediaType="application/json" postQueryString="false" id="5de7f402-a6f8-4ff3-afe1-fa68ef97ee0e"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:endpoint>http://${#Project#fpdsServiceHost}:${#Project#fpdsServicePort} 			</con:endpoint><con:request/><con:originalUri>http://IP         /repositories.med.DNS   /fpds/pubsub/howstricks/hmptest/8</con:originalUri><con:assertion type="Simple Contains" name="Contains" id="4e8d9e99-be99-448d-ae48-39775afb4f63"><con:configuration><token>errorSection</token><ignoreCase>false</ignoreCase><useRegEx>false</useRegEx></con:configuration></con:assertion><con:assertion type="GroovyScriptAssertion" name="Script Assertion" id="1fc68d85-e32b-4563-9852-543e439ea340"><con:configuration><scriptText>import com.eviware.soapui.support.XmlHolder
import org.apache.commons.lang.StringUtils
import groovy.json.JsonSlurper

def response = messageExchange.response.responseContent
log.info response

def slurper = new JsonSlurper()
def json = slurper.parseText(response)

//verify the slurper isn't empty and values in response are expected
assert !json.isEmpty()
assert json.sites.size==1
assert json.sites[0].errorSection.fatalErrors[0].displayMessage=="One or all of these elements are missing in the ResolvedIdentifier:  identifier-facilityId-authority  All of them are required."</scriptText></con:configuration></con:assertion><con:credentials><con:authType>No Authorization</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:parameters>
  <con:entry key="_type" value="json"/>
  <con:entry key="requestId" value="${=(java.util.UUID.randomUUID().toString()).trim()}      "/>
  <con:entry key="assigningAuthority" value="USVHA"/>
  <con:entry key="clientName" value="${#TestSuite#CLIENT_NAME}"/>
  <con:entry key="clientRequestInitiationTime" value="${=org.apache.commons.lang.time.DateFormatUtils.ISO_DATETIME_TIME_ZONE_FORMAT.format( new Date() )}"/>
  <con:entry key="server" value="${#TestSuite#SERVER_NAME}"/>
  <con:entry key="assigningFacility" value="554"/>
  <con:entry key="resolvedIdentifier" value="${#TestSuite#PATIENT_MISSING_AUTHORITY}"/>
</con:parameters><con:parameterOrder><con:entry>server</con:entry><con:entry>nationalId</con:entry><con:entry>resolvedIdentifier</con:entry><con:entry>requestId</con:entry><con:entry>clientRequestInitiationTime</con:entry><con:entry>clientName</con:entry><con:entry>_type</con:entry></con:parameterOrder></con:restRequest></con:config></con:testStep><con:testStep type="restrequest" name="subscribePatientMissingRequestId" id="feb35cc0-983e-40eb-a2d4-fd96bd8de018"><con:settings/><con:config service="FPDS" resourcePath="/repositories.med.DNS   /fpds/vpr/subscribe" methodName="subscribe" xsi:type="con:RestRequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:restRequest name="subscribePatientMissingRequestId" mediaType="application/json" postQueryString="false" id="325e0c71-6105-4320-a67a-d881115a9d49"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:endpoint>http://${#Project#fpdsServiceHost}:${#Project#fpdsServicePort} 			</con:endpoint><con:request/><con:originalUri>http://IP         /repositories.med.DNS   /fpds/pubsub/howstricks/hmptest/8</con:originalUri><con:assertion type="Simple Contains" name="Contains" id="2bb8cc54-ee69-435c-9b65-8cd25f81d14c"><con:configuration><token>errorSection</token><ignoreCase>false</ignoreCase><useRegEx>false</useRegEx></con:configuration></con:assertion><con:assertion type="GroovyScriptAssertion" name="Script Assertion" id="89e84268-e2b2-49d6-90b2-dc7e82008161"><con:configuration><scriptText>import com.eviware.soapui.support.XmlHolder
import org.apache.commons.lang.StringUtils
import groovy.json.JsonSlurper

def response = messageExchange.response.responseContent
log.info response

def slurper = new JsonSlurper()
def json = slurper.parseText(response)

//verify the slurper isn't empty and values in response are expected
assert !json.isEmpty()
assert json.sites.size==1
assert json.sites[0].errorSection.fatalErrors[0].displayMessage=="Request parameter requestId was not provided or was empty."</scriptText></con:configuration></con:assertion><con:credentials><con:authType>No Authorization</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:parameters>
  <con:entry key="_type" value="json"/>
  <con:entry key="assigningAuthority" value="USVHA"/>
  <con:entry key="clientName" value="${#TestSuite#CLIENT_NAME}"/>
  <con:entry key="clientRequestInitiationTime" value="${=org.apache.commons.lang.time.DateFormatUtils.ISO_DATETIME_TIME_ZONE_FORMAT.format( new Date() )}"/>
  <con:entry key="server" value="${#TestSuite#SERVER_NAME}"/>
  <con:entry key="assigningFacility" value="554"/>
  <con:entry key="resolvedIdentifier" value="${#TestSuite#PATIENT_DFN}"/>
</con:parameters><con:parameterOrder><con:entry>server</con:entry><con:entry>nationalId</con:entry><con:entry>resolvedIdentifier</con:entry><con:entry>requestId</con:entry><con:entry>clientRequestInitiationTime</con:entry><con:entry>clientName</con:entry><con:entry>_type</con:entry></con:parameterOrder></con:restRequest></con:config></con:testStep><con:testStep type="restrequest" name="subscribePatientMissingClientName" id="14e1c589-ab69-4431-bab5-266501780337"><con:settings/><con:config service="FPDS" resourcePath="/repositories.med.DNS   /fpds/vpr/subscribe" methodName="subscribe" xsi:type="con:RestRequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:restRequest name="subscribePatientMissingClientName" mediaType="application/json" postQueryString="false" id="daf798b2-8f90-4d65-b112-23165df73bd4"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:endpoint>http://${#Project#fpdsServiceHost}:${#Project#fpdsServicePort} 			</con:endpoint><con:request/><con:originalUri>http://IP         /repositories.med.DNS   /fpds/pubsub/howstricks/hmptest/8</con:originalUri><con:assertion type="Simple Contains" name="Contains" id="b62a953d-411f-4145-93ce-9ef1f476fa00"><con:configuration><token>errorSection</token><ignoreCase>false</ignoreCase><useRegEx>false</useRegEx></con:configuration></con:assertion><con:assertion type="GroovyScriptAssertion" name="Script Assertion" id="364ff762-67de-4589-a026-c54810bd7ba0"><con:configuration><scriptText>import com.eviware.soapui.support.XmlHolder
import org.apache.commons.lang.StringUtils
import groovy.json.JsonSlurper

def response = messageExchange.response.responseContent
log.info response

def slurper = new JsonSlurper()
def json = slurper.parseText(response)

//verify the slurper isn't empty and values in response are expected
assert !json.isEmpty()
assert json.sites.size==1
assert json.sites[0].errorSection.fatalErrors[0].displayMessage=="Request parameter clientName was not provided or was empty."</scriptText></con:configuration></con:assertion><con:credentials><con:authType>No Authorization</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:parameters>
  <con:entry key="_type" value="json"/>
  <con:entry key="requestId" value="${=(java.util.UUID.randomUUID().toString()).trim()}      "/>
  <con:entry key="assigningAuthority" value="USVHA"/>
  <con:entry key="clientRequestInitiationTime" value="${=org.apache.commons.lang.time.DateFormatUtils.ISO_DATETIME_TIME_ZONE_FORMAT.format( new Date() )}"/>
  <con:entry key="server" value="${#TestSuite#SERVER_NAME}"/>
  <con:entry key="assigningFacility" value="554"/>
  <con:entry key="resolvedIdentifier" value="${#TestSuite#PATIENT_DFN}"/>
</con:parameters><con:parameterOrder><con:entry>server</con:entry><con:entry>nationalId</con:entry><con:entry>resolvedIdentifier</con:entry><con:entry>requestId</con:entry><con:entry>clientRequestInitiationTime</con:entry><con:entry>clientName</con:entry><con:entry>_type</con:entry></con:parameterOrder></con:restRequest></con:config></con:testStep><con:testStep type="restrequest" name="subscribePatientMissingClientInitiationTime" id="1911d4d1-945d-468b-896e-2bfa312f8854"><con:settings/><con:config service="FPDS" resourcePath="/repositories.med.DNS   /fpds/vpr/subscribe" methodName="subscribe" xsi:type="con:RestRequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:restRequest name="subscribePatientMissingClientInitiationTime" mediaType="application/json" postQueryString="false" id="e32687af-f9c6-437f-8839-28cef3144a76"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:endpoint>http://${#Project#fpdsServiceHost}:${#Project#fpdsServicePort} 			</con:endpoint><con:request/><con:originalUri>http://IP         /repositories.med.DNS   /fpds/pubsub/howstricks/hmptest/8</con:originalUri><con:assertion type="Simple Contains" name="Contains" id="6d6a4ee5-65b6-48d8-be28-45dc9ad3ec57"><con:configuration><token>errorSection</token><ignoreCase>false</ignoreCase><useRegEx>false</useRegEx></con:configuration></con:assertion><con:assertion type="GroovyScriptAssertion" name="Script Assertion" id="a7e6e7c0-8c2b-4dc2-ba7d-db1816dfd017"><con:configuration><scriptText>import com.eviware.soapui.support.XmlHolder
import org.apache.commons.lang.StringUtils
import groovy.json.JsonSlurper

def response = messageExchange.response.responseContent
log.info response

def slurper = new JsonSlurper()
def json = slurper.parseText(response)

//verify the slurper isn't empty and values in response are expected
assert !json.isEmpty()
assert json.sites.size==1
assert json.sites[0].errorSection.fatalErrors[0].displayMessage=="clientRequestInitiationTime is empty."</scriptText></con:configuration></con:assertion><con:credentials><con:authType>No Authorization</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:parameters>
  <con:entry key="_type" value="json"/>
  <con:entry key="requestId" value="${=(java.util.UUID.randomUUID().toString()).trim()}      "/>
  <con:entry key="assigningAuthority" value="USVHA"/>
  <con:entry key="clientName" value="${#TestSuite#CLIENT_NAME}"/>
  <con:entry key="server" value="${#TestSuite#SERVER_NAME}"/>
  <con:entry key="assigningFacility" value="554"/>
  <con:entry key="resolvedIdentifier" value="${#TestSuite#PATIENT_DFN}"/>
</con:parameters><con:parameterOrder><con:entry>server</con:entry><con:entry>nationalId</con:entry><con:entry>resolvedIdentifier</con:entry><con:entry>requestId</con:entry><con:entry>clientRequestInitiationTime</con:entry><con:entry>clientName</con:entry><con:entry>_type</con:entry></con:parameterOrder></con:restRequest></con:config></con:testStep><con:testStep type="restrequest" name="subscribePatientWithBadDFNIdentifier" id="e9567d1f-d30e-4688-a1ee-a8dbf2661185"><con:settings/><con:config service="FPDS" resourcePath="/repositories.med.DNS   /fpds/vpr/subscribe" methodName="subscribe" xsi:type="con:RestRequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:restRequest name="subscribePatientWithBadDFNIdentifier" mediaType="application/json" postQueryString="false" id="1eb13ecf-591c-4917-94c7-2ba78ec4f9b6"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:endpoint>http://${#Project#fpdsServiceHost}:${#Project#fpdsServicePort} 			</con:endpoint><con:request/><con:originalUri>http://IP         /repositories.med.DNS   /fpds/pubsub/howstricks/hmptest/8</con:originalUri><con:assertion type="Simple Contains" name="Contains" id="8e522a79-342a-4827-aca1-e79828621e2a"><con:configuration><token>errorSection</token><ignoreCase>false</ignoreCase><useRegEx>false</useRegEx></con:configuration></con:assertion><con:assertion type="GroovyScriptAssertion" name="Script Assertion" id="291a05da-b2e4-40b7-b985-aaa1f816a66f"><con:configuration><scriptText>import com.eviware.soapui.support.XmlHolder
import org.apache.commons.lang.StringUtils
import groovy.json.JsonSlurper

def response = messageExchange.response.responseContent
log.info response

def slurper = new JsonSlurper()
def json = slurper.parseText(response)

//verify the slurper isn't empty and values in response are expected
assert !json.isEmpty()
assert json.sites.size==1
assert json.sites[0].errorSection.fatalErrors[0].displayMessage=="Incorrect ResolvedIdentifier format, the correct format is identifier-facilityId-authority."</scriptText></con:configuration></con:assertion><con:credentials><con:authType>No Authorization</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:parameters>
  <con:entry key="_type" value="json"/>
  <con:entry key="requestId" value="${=(java.util.UUID.randomUUID().toString()).trim()}      "/>
  <con:entry key="assigningAuthority" value="USVHA"/>
  <con:entry key="clientName" value="${#TestSuite#CLIENT_NAME}"/>
  <con:entry key="clientRequestInitiationTime" value="${=org.apache.commons.lang.time.DateFormatUtils.ISO_DATETIME_TIME_ZONE_FORMAT.format( new Date() )}"/>
  <con:entry key="server" value="${#TestSuite#SERVER_NAME}"/>
  <con:entry key="assigningFacility" value="554"/>
  <con:entry key="resolvedIdentifier" value="-99-580-USVHA"/>
</con:parameters><con:parameterOrder><con:entry>server</con:entry><con:entry>nationalId</con:entry><con:entry>resolvedIdentifier</con:entry><con:entry>requestId</con:entry><con:entry>clientRequestInitiationTime</con:entry><con:entry>clientName</con:entry><con:entry>_type</con:entry></con:parameterOrder></con:restRequest></con:config></con:testStep><con:properties/>
		</con:testCase><con:testCase failOnError="true" failTestCaseOnErrors="true" keepSession="false" maxResults="0" name="getUpdates" searchProperties="true" id="b3b31634-e117-4c0c-9466-5b036c767e36"><con:settings/><con:testStep type="restrequest" name="getPatientUpdates" id="80cf8d17-e183-41eb-9f70-2eaf6c2ca743"><con:settings/><con:config service="FPDS" resourcePath="/repositories.med.DNS   /fpds/vpr/patientdata/{siteId}" methodName="getUpdates" xsi:type="con:RestRequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:restRequest name="getPatientUpdates" mediaType="application/json" id="e4d51de6-bf79-4429-bb97-8c79fb226f1d"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:endpoint>http://${#Project#fpdsServiceHost}:${#Project#fpdsServicePort} 			</con:endpoint><con:request/><con:originalUri>http://IP         /repositories.med.DNS   /fpds/pubsub/fetch/getPtUpdates/hmpserver/554</con:originalUri><con:assertion type="GroovyScriptAssertion" name="Script Assertion" disabled="true" id="fe12fcad-bb52-4f95-8159-a1fbd60c126d"><con:configuration><scriptText>import com.eviware.soapui.support.XmlHolder
import org.apache.commons.lang.StringUtils
import groovy.json.JsonSlurper

def response = messageExchange.response.responseContent

def slurper = new JsonSlurper()
def json = slurper.parseText(response)

//verify the slurper isn't empty and values in response are expected
assert !json.isEmpty()
assert json.sites.size==1

def totalItems = messageExchange.modelItem.testStep.testCase.testSuite.getPropertyValue("totalItems");

def intItems = new Integer(totalItems);
assert json.sites[0].data.totalItems > intItems;</scriptText></con:configuration></con:assertion><con:credentials><con:authType>NTLM</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:parameters>
  <con:entry key="extractSchema" value="${#TestSuite#EXTRACT_SCHEMA}"/>
  <con:entry key="_type" value="json"/>
  <con:entry key="max" value="${#TestSuite#MAX}"/>
  <con:entry key="siteId" value="${#TestSuite#SITE_ID}"/>
  <con:entry key="requestId" value="${=(java.util.UUID.randomUUID().toString()).trim()}"/>
  <con:entry key="lastUpdate" value="${#TestSuite#lastupdated}"/>
  <con:entry key="clientName" value="${#TestSuite#CLIENT_NAME}"/>
  <con:entry key="clientRequestInitiationTime" value="${=org.apache.commons.lang.time.DateFormatUtils.ISO_DATETIME_TIME_ZONE_FORMAT.format( new Date() )}"/>
  <con:entry key="server" value="${#TestSuite#SERVER_NAME}"/>
</con:parameters><con:parameterOrder><con:entry>siteId</con:entry><con:entry>server</con:entry><con:entry>extractSchema</con:entry><con:entry>lastUpdate</con:entry><con:entry>max</con:entry><con:entry>requestId</con:entry><con:entry>clientRequestInitiationTime</con:entry><con:entry>clientName</con:entry><con:entry>_type</con:entry></con:parameterOrder></con:restRequest></con:config></con:testStep><con:testStep type="transfer" name="getLastUpdated" id="41b824b1-41ba-4b85-8e2d-7e56b45fa317"><con:settings/><con:config xsi:type="con:PropertyTransfersStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:transfers setNullOnMissingSource="true" transferTextContent="true" failOnError="true" ignoreEmpty="false" transferToAll="false" useXQuery="false" entitize="false" transferChildNodes="false"><con:name>lastupdated</con:name><con:sourceType>ResponseAsXml</con:sourceType><con:sourceStep>getPatientUpdates</con:sourceStep><con:sourcePath>//*:lastUpdate</con:sourcePath><con:targetType>lastupdated</con:targetType><con:targetStep>#TestSuite#</con:targetStep><con:upgraded>true</con:upgraded></con:transfers></con:config></con:testStep><con:properties/></con:testCase><con:testCase failOnError="true" failTestCaseOnErrors="true" keepSession="false" maxResults="0" name="getUpdatesValidationExceptions" searchProperties="true" id="d7cac1ce-c00c-4af2-a501-c3d9f554a6bb">
			<con:settings/>
			
			
			
			
			<con:testStep type="restrequest" name="getUpdatesMissingServer" id="4ac195ec-5e1d-43cb-93ae-eb94f93d9393"><con:settings/><con:config service="FPDS" resourcePath="/repositories.med.DNS   /fpds/vpr/patientdata/{siteId}" methodName="getUpdates" xsi:type="con:RestRequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:restRequest name="getUpdatesMissingServer" mediaType="application/json" postQueryString="false" id="a46ebff1-eee6-418c-b828-eafed5bf95eb"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:endpoint>http://${#Project#fpdsServiceHost}:${#Project#fpdsServicePort} 			</con:endpoint><con:request/><con:originalUri>http://IP         /repositories.med.DNS   /fpds/pubsub/howstricks/hmptest/8</con:originalUri><con:assertion type="Simple Contains" name="Contains" id="1bbc516a-366b-4ea4-98a9-ad1c39a627d4"><con:configuration><token>errorSection</token><ignoreCase>false</ignoreCase><useRegEx>false</useRegEx></con:configuration></con:assertion><con:assertion type="GroovyScriptAssertion" name="Script Assertion" id="a34f6723-7ebc-41d2-9d55-992b0f7ed0a0"><con:configuration><scriptText>import com.eviware.soapui.support.XmlHolder
import org.apache.commons.lang.StringUtils
import groovy.json.JsonSlurper

def response = messageExchange.response.responseContent
log.info response

def slurper = new JsonSlurper()
def json = slurper.parseText(response)

//verify the slurper isn't empty and values in response are expected
assert !json.isEmpty()
assert json.sites.size==1
assert json.sites[0].errorSection.fatalErrors[0].displayMessage=="Request parameter server was not provided or was empty."</scriptText></con:configuration></con:assertion><con:credentials><con:authType>No Authorization</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:parameters>
  <con:entry key="extractSchema" value="${#TestSuite#EXTRACT_SCHEMA}"/>
  <con:entry key="max" value="${#TestSuite#MAX}"/>
  <con:entry key="requestId" value="${=(java.util.UUID.randomUUID().toString()).trim()}"/>
  <con:entry key="lastUpdate" value="${#TestSuite#lastupdated}"/>
  <con:entry key="_type" value="json"/>
  <con:entry key="patientId" value="${#TestSuite#PATIENT_DFN}"/>
  <con:entry key="siteId" value="${#TestSuite#SITE_ID}"/>
  <con:entry key="assigningAuthority" value="USVHA"/>
  <con:entry key="clientName" value="${#TestSuite#CLIENT_NAME}"/>
  <con:entry key="resolvedAssigningAuthority" value="${#TestSuite#RESOLVED_ASSIGNING_AUTHORITY}"/>
  <con:entry key="clientRequestInitiationTime" value="${=org.apache.commons.lang.time.DateFormatUtils.ISO_DATETIME_TIME_ZONE_FORMAT.format( new Date() )}"/>
  <con:entry key="assigningFacility" value="554"/>
  <con:entry key="resolvedAssigningFacility" value="${#TestSuite#RESOLVED_ASSIGNING_FACILITY}"/>
</con:parameters><con:parameterOrder><con:entry>siteId</con:entry><con:entry>server</con:entry><con:entry>extractSchema</con:entry><con:entry>lastUpdate</con:entry><con:entry>max</con:entry><con:entry>requestId</con:entry><con:entry>clientRequestInitiationTime</con:entry><con:entry>clientName</con:entry><con:entry>_type</con:entry></con:parameterOrder></con:restRequest></con:config></con:testStep><con:testStep type="restrequest" name="getUpdatesMissingRequestId" id="bc200b70-2850-4171-bc22-d9328d9c87b1"><con:settings/><con:config service="FPDS" resourcePath="/repositories.med.DNS   /fpds/vpr/patientdata/{siteId}" methodName="getUpdates" xsi:type="con:RestRequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:restRequest name="getUpdatesMissingRequestId" mediaType="application/json" postQueryString="false" id="ada07415-37fe-49c7-8a62-acd2515bafc0"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:endpoint>http://${#Project#fpdsServiceHost}:${#Project#fpdsServicePort} 			</con:endpoint><con:request/><con:originalUri>http://IP         /repositories.med.DNS   /fpds/pubsub/howstricks/hmptest/8</con:originalUri><con:assertion type="Simple Contains" name="Contains" id="af40dcc9-1ef8-4ad8-91aa-20bffa3f16f5"><con:configuration><token>errorSection</token><ignoreCase>false</ignoreCase><useRegEx>false</useRegEx></con:configuration></con:assertion><con:assertion type="GroovyScriptAssertion" name="Script Assertion" id="a66e29a3-0e36-4955-9ebb-a4ceda190156"><con:configuration><scriptText>import com.eviware.soapui.support.XmlHolder
import org.apache.commons.lang.StringUtils
import groovy.json.JsonSlurper

def response = messageExchange.response.responseContent
log.info response

def slurper = new JsonSlurper()
def json = slurper.parseText(response)

//verify the slurper isn't empty and values in response are expected
assert !json.isEmpty()
assert json.sites.size==1
assert json.sites[0].errorSection.fatalErrors[0].displayMessage=="Request parameter requestId was not provided or was empty."</scriptText></con:configuration></con:assertion><con:credentials><con:authType>No Authorization</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:parameters>
  <con:entry key="extractSchema" value="${#TestSuite#EXTRACT_SCHEMA}"/>
  <con:entry key="max" value="${#TestSuite#MAX}"/>
  <con:entry key="lastUpdate" value="${#TestSuite#lastupdated}"/>
  <con:entry key="_type" value="json"/>
  <con:entry key="patientId" value="${#TestSuite#PATIENT_DFN}"/>
  <con:entry key="siteId" value="${#TestSuite#SITE_ID}"/>
  <con:entry key="assigningAuthority" value="USVHA"/>
  <con:entry key="clientName" value="${#TestSuite#CLIENT_NAME}"/>
  <con:entry key="resolvedAssigningAuthority" value="${#TestSuite#RESOLVED_ASSIGNING_AUTHORITY}"/>
  <con:entry key="clientRequestInitiationTime" value="${=org.apache.commons.lang.time.DateFormatUtils.ISO_DATETIME_TIME_ZONE_FORMAT.format( new Date() )}"/>
  <con:entry key="server" value="${#TestSuite#SERVER_NAME}"/>
  <con:entry key="assigningFacility" value="554"/>
  <con:entry key="resolvedAssigningFacility" value="${#TestSuite#RESOLVED_ASSIGNING_FACILITY}"/>
</con:parameters><con:parameterOrder><con:entry>siteId</con:entry><con:entry>server</con:entry><con:entry>extractSchema</con:entry><con:entry>lastUpdate</con:entry><con:entry>max</con:entry><con:entry>requestId</con:entry><con:entry>clientRequestInitiationTime</con:entry><con:entry>clientName</con:entry><con:entry>_type</con:entry></con:parameterOrder></con:restRequest></con:config></con:testStep><con:testStep type="restrequest" name="getUpdatesMissingClientName" id="3fc8bb8a-c7ac-41d5-85ba-f2f9db58437f"><con:settings/><con:config service="FPDS" resourcePath="/repositories.med.DNS   /fpds/vpr/patientdata/{siteId}" methodName="getUpdates" xsi:type="con:RestRequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:restRequest name="getUpdatesMissingClientName" mediaType="application/json" postQueryString="false" id="406a25d0-24f9-4496-82ba-1ebffeb406af"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:endpoint>http://${#Project#fpdsServiceHost}:${#Project#fpdsServicePort} 			</con:endpoint><con:request/><con:originalUri>http://IP         /repositories.med.DNS   /fpds/pubsub/howstricks/hmptest/8</con:originalUri><con:assertion type="Simple Contains" name="Contains" id="75776b29-b133-4ea6-b3f8-747a3063d56d"><con:configuration><token>errorSection</token><ignoreCase>false</ignoreCase><useRegEx>false</useRegEx></con:configuration></con:assertion><con:assertion type="GroovyScriptAssertion" name="Script Assertion" id="842b5f88-5310-4139-8528-3118e26d81ee"><con:configuration><scriptText>import com.eviware.soapui.support.XmlHolder
import org.apache.commons.lang.StringUtils
import groovy.json.JsonSlurper

def response = messageExchange.response.responseContent
log.info response

def slurper = new JsonSlurper()
def json = slurper.parseText(response)

//verify the slurper isn't empty and values in response are expected
assert !json.isEmpty()
assert json.sites.size==1
assert json.sites[0].errorSection.fatalErrors[0].displayMessage=="Request parameter clientName was not provided or was empty."</scriptText></con:configuration></con:assertion><con:credentials><con:authType>No Authorization</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:parameters>
  <con:entry key="extractSchema" value="${#TestSuite#EXTRACT_SCHEMA}"/>
  <con:entry key="max" value="${#TestSuite#MAX}"/>
  <con:entry key="requestId" value="${=(java.util.UUID.randomUUID().toString()).trim()}      "/>
  <con:entry key="lastUpdate" value="${#TestSuite#lastupdated}"/>
  <con:entry key="_type" value="json"/>
  <con:entry key="siteId" value="${#TestSuite#SITE_ID}"/>
  <con:entry key="assigningAuthority" value="USVHA"/>
  <con:entry key="clientRequestInitiationTime" value="${=org.apache.commons.lang.time.DateFormatUtils.ISO_DATETIME_TIME_ZONE_FORMAT.format( new Date() )}"/>
  <con:entry key="server" value="${#TestSuite#SERVER_NAME}"/>
  <con:entry key="patient_id" value="${#TestSuite#PATIENT_DFN}"/>
  <con:entry key="assigningFacility" value="554"/>
  <con:entry key="resolved_assigning_facility" value="${#TestSuite#RESOLVED_ASSIGNING_FACILITY}"/>
  <con:entry key="resolved_assigning_authority" value="${#TestSuite#RESOLVED_ASSIGNING_AUTHORITY}"/>
</con:parameters><con:parameterOrder><con:entry>siteId</con:entry><con:entry>server</con:entry><con:entry>extractSchema</con:entry><con:entry>lastUpdate</con:entry><con:entry>max</con:entry><con:entry>requestId</con:entry><con:entry>clientRequestInitiationTime</con:entry><con:entry>clientName</con:entry><con:entry>_type</con:entry></con:parameterOrder></con:restRequest></con:config></con:testStep><con:testStep type="restrequest" name="getUpdatesMissingClientInitiationTime" id="b0f4212e-847d-4163-aa73-6d52bd6278b8"><con:settings/><con:config service="FPDS" resourcePath="/repositories.med.DNS   /fpds/vpr/patientdata/{siteId}" methodName="getUpdates" xsi:type="con:RestRequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:restRequest name="getUpdatesMissingClientInitiationTime" mediaType="application/json" postQueryString="false" id="8a0ff1fe-a075-497f-a4c4-a63670b135d8"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:endpoint>http://${#Project#fpdsServiceHost}:${#Project#fpdsServicePort} 			</con:endpoint><con:request/><con:originalUri>http://IP         /repositories.med.DNS   /fpds/pubsub/howstricks/hmptest/8</con:originalUri><con:assertion type="Simple Contains" name="Contains" id="4327c4a1-c34c-42b3-8bf7-c024b07da06e"><con:configuration><token>errorSection</token><ignoreCase>false</ignoreCase><useRegEx>false</useRegEx></con:configuration></con:assertion><con:assertion type="GroovyScriptAssertion" name="Script Assertion" id="2c94c8e4-6320-43ef-b83e-2138a24817ab"><con:configuration><scriptText>import com.eviware.soapui.support.XmlHolder
import org.apache.commons.lang.StringUtils
import groovy.json.JsonSlurper

def response = messageExchange.response.responseContent
log.info response

def slurper = new JsonSlurper()
def json = slurper.parseText(response)

//verify the slurper isn't empty and values in response are expected
assert !json.isEmpty()
assert json.sites.size==1
assert json.sites[0].errorSection.fatalErrors[0].displayMessage=="clientRequestInitiationTime is empty."</scriptText></con:configuration></con:assertion><con:credentials><con:authType>No Authorization</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:parameters>
  <con:entry key="extractSchema" value="${#TestSuite#EXTRACT_SCHEMA}"/>
  <con:entry key="_type" value="json"/>
  <con:entry key="max" value="${#TestSuite#MAX}"/>
  <con:entry key="siteId" value="${#TestSuite#SITE_ID}"/>
  <con:entry key="requestId" value="${=(java.util.UUID.randomUUID().toString()).trim()}      "/>
  <con:entry key="assigningAuthority" value="USVHA"/>
  <con:entry key="lastUpdate" value="${#TestSuite#lastupdated}"/>
  <con:entry key="clientName" value="${#TestSuite#CLIENT_NAME}"/>
  <con:entry key="server" value="${#TestSuite#SERVER_NAME}"/>
  <con:entry key="assigningFacility" value="554"/>
  <con:entry key="patient_id" value="${#TestSuite#PATIENT_DFN}"/>
  <con:entry key="resolved_assigning_facility" value="${#TestSuite#RESOLVED_ASSIGNING_FACILITY}"/>
  <con:entry key="resolved_assigning_authority" value="${#TestSuite#RESOLVED_ASSIGNING_AUTHORITY}"/>
</con:parameters><con:parameterOrder><con:entry>siteId</con:entry><con:entry>server</con:entry><con:entry>extractSchema</con:entry><con:entry>lastUpdate</con:entry><con:entry>max</con:entry><con:entry>requestId</con:entry><con:entry>clientRequestInitiationTime</con:entry><con:entry>clientName</con:entry><con:entry>_type</con:entry></con:parameterOrder></con:restRequest></con:config></con:testStep><con:testStep type="restrequest" name="getUpdatesMissingLast" id="10f02178-d0bd-4141-8a4e-5a707331b3fc"><con:settings/><con:config service="FPDS" resourcePath="/repositories.med.DNS   /fpds/vpr/patientdata/{siteId}" methodName="getUpdates" xsi:type="con:RestRequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:restRequest name="getUpdatesMissingLast" mediaType="application/json" postQueryString="false" id="9e4f253a-be62-4eb5-98a2-5d20890b3386"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:endpoint>http://${#Project#fpdsServiceHost}:${#Project#fpdsServicePort} 			</con:endpoint><con:request/><con:originalUri>http://IP         /repositories.med.DNS   /fpds/pubsub/howstricks/hmptest/8</con:originalUri><con:assertion type="Simple Contains" name="Contains" id="6ea068a2-5f7c-4787-905b-7c8250ad9400"><con:configuration><token>errorSection</token><ignoreCase>false</ignoreCase><useRegEx>false</useRegEx></con:configuration></con:assertion><con:assertion type="GroovyScriptAssertion" name="Script Assertion" id="0d5a8bc3-ecce-4d51-848c-83a9bf7b17c5"><con:configuration><scriptText>import com.eviware.soapui.support.XmlHolder
import org.apache.commons.lang.StringUtils
import groovy.json.JsonSlurper

def response = messageExchange.response.responseContent
log.info response

def slurper = new JsonSlurper()
def json = slurper.parseText(response)

//verify the slurper isn't empty and values in response are expected
assert !json.isEmpty()
assert json.sites.size==1
assert json.sites[0].errorSection.fatalErrors[0].displayMessage=="Request parameter lastUpdate was not provided or was empty."</scriptText></con:configuration></con:assertion><con:credentials><con:selectedAuthProfile>NTLM</con:selectedAuthProfile><con:addedBasicAuthenticationTypes>NTLM</con:addedBasicAuthenticationTypes><con:authType>NTLM</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:parameters>
  <con:entry key="extractSchema" value="${#TestSuite#EXTRACT_SCHEMA}"/>
  <con:entry key="_type" value="json"/>
  <con:entry key="patientId" value="${#TestSuite#PATIENT_DFN}"/>
  <con:entry key="max" value="${#TestSuite#MAX}"/>
  <con:entry key="siteId" value="${#TestSuite#SITE_ID}"/>
  <con:entry key="requestId" value="${=(java.util.UUID.randomUUID().toString()).trim()}"/>
  <con:entry key="assigningAuthority" value="USVHA"/>
  <con:entry key="clientName" value="${#TestSuite#CLIENT_NAME}"/>
  <con:entry key="resolvedAssigningAuthority" value="${#TestSuite#RESOLVED_ASSIGNING_AUTHORITY}"/>
  <con:entry key="clientRequestInitiationTime" value="${=org.apache.commons.lang.time.DateFormatUtils.ISO_DATETIME_TIME_ZONE_FORMAT.format( new Date() )}"/>
  <con:entry key="server" value="${#TestSuite#SERVER_NAME}"/>
  <con:entry key="assigningFacility" value="554"/>
</con:parameters><con:parameterOrder><con:entry>siteId</con:entry><con:entry>server</con:entry><con:entry>extractSchema</con:entry><con:entry>lastUpdate</con:entry><con:entry>max</con:entry><con:entry>requestId</con:entry><con:entry>clientRequestInitiationTime</con:entry><con:entry>clientName</con:entry><con:entry>_type</con:entry></con:parameterOrder></con:restRequest></con:config></con:testStep><con:testStep type="restrequest" name="getUpdatesMissingMax" id="623501bf-350b-44ad-a608-9cfb27b6aa25"><con:settings/><con:config service="FPDS" resourcePath="/repositories.med.DNS   /fpds/vpr/patientdata/{siteId}" methodName="getUpdates" xsi:type="con:RestRequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:restRequest name="getUpdatesMissingMax" mediaType="application/json" postQueryString="false" id="6b163fa1-0837-43e3-8ac6-4a3e46510df0"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:endpoint>http://${#Project#fpdsServiceHost}:${#Project#fpdsServicePort} 			</con:endpoint><con:request/><con:originalUri>http://IP         /repositories.med.DNS   /fpds/pubsub/howstricks/hmptest/8</con:originalUri><con:assertion type="Simple Contains" name="Contains" id="1cef51bc-9fe8-4ed5-81cd-654081714f81"><con:configuration><token>errorSection</token><ignoreCase>false</ignoreCase><useRegEx>false</useRegEx></con:configuration></con:assertion><con:assertion type="GroovyScriptAssertion" name="Script Assertion" id="33e58dd3-fd3b-4262-ad77-ac391fe91378"><con:configuration><scriptText>import com.eviware.soapui.support.XmlHolder
import org.apache.commons.lang.StringUtils
import groovy.json.JsonSlurper

def response = messageExchange.response.responseContent
log.info response

def slurper = new JsonSlurper()
def json = slurper.parseText(response)

//verify the slurper isn't empty and values in response are expected
assert !json.isEmpty()
assert json.sites.size==1
assert json.sites[0].errorSection.fatalErrors[0].displayMessage=="Request parameter lastUpdate was not provided or was empty."
assert json.sites[0].errorSection.fatalErrors[1].displayMessage=="Request parameter max was not provided or was empty."</scriptText></con:configuration></con:assertion><con:credentials><con:authType>No Authorization</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:parameters>
  <con:entry key="extractSchema" value="${#TestSuite#EXTRACT_SCHEMA}"/>
  <con:entry key="requestId" value="${=(java.util.UUID.randomUUID().toString()).trim()}      "/>
  <con:entry key="lastUpdate" value="${#TestSuite#lastupdated}"/>
  <con:entry key="_type" value="json"/>
  <con:entry key="patientId" value="${#TestSuite#PATIENT_DFN}"/>
  <con:entry key="siteId" value="${#TestSuite#SITE_ID}"/>
  <con:entry key="assigningAuthority" value="USVHA"/>
  <con:entry key="clientName" value="${#TestSuite#CLIENT_NAME}"/>
  <con:entry key="clientRequestInitiationTime" value="${=org.apache.commons.lang.time.DateFormatUtils.ISO_DATETIME_TIME_ZONE_FORMAT.format( new Date() )}"/>
  <con:entry key="resolvedAssigningAuthority" value="${#TestSuite#RESOLVED_ASSIGNING_AUTHORITY}"/>
  <con:entry key="server" value="${#TestSuite#SERVER_NAME}"/>
  <con:entry key="assigningFacility" value="554"/>
</con:parameters><con:parameterOrder><con:entry>siteId</con:entry><con:entry>server</con:entry><con:entry>extractSchema</con:entry><con:entry>lastUpdate</con:entry><con:entry>max</con:entry><con:entry>requestId</con:entry><con:entry>clientRequestInitiationTime</con:entry><con:entry>clientName</con:entry><con:entry>_type</con:entry></con:parameterOrder></con:restRequest></con:config></con:testStep><con:testStep type="restrequest" name="getUpdatesMissingExtractSchema" id="26d04b58-23ea-4dff-a61b-734f8010d5be"><con:settings/><con:config service="FPDS" resourcePath="/repositories.med.DNS   /fpds/vpr/patientdata/{siteId}" methodName="getUpdates" xsi:type="con:RestRequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:restRequest name="getUpdatesMissingExtractSchema" mediaType="application/json" postQueryString="false" id="9a7ea815-5aa6-483d-927c-690d7512669f"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:endpoint>http://${#Project#fpdsServiceHost}:${#Project#fpdsServicePort} 			</con:endpoint><con:request/><con:originalUri>http://IP         /repositories.med.DNS   /fpds/pubsub/howstricks/hmptest/8</con:originalUri><con:assertion type="Simple Contains" name="Contains" id="e6207da7-5ab1-482f-a6b9-0a5cca4b5be4"><con:configuration><token>errorSection</token><ignoreCase>false</ignoreCase><useRegEx>false</useRegEx></con:configuration></con:assertion><con:assertion type="GroovyScriptAssertion" name="Script Assertion" id="c492d0d6-84be-4423-84f3-f1a283fecfe5"><con:configuration><scriptText>import com.eviware.soapui.support.XmlHolder
import org.apache.commons.lang.StringUtils
import groovy.json.JsonSlurper

def response = messageExchange.response.responseContent
log.info response

def slurper = new JsonSlurper()
def json = slurper.parseText(response)

//verify the slurper isn't empty and values in response are expected
assert !json.isEmpty()
assert json.sites.size==1
assert json.sites[0].errorSection.fatalErrors[0].displayMessage=="Request parameter lastUpdate was not provided or was empty."
assert json.sites[0].errorSection.fatalErrors[1].displayMessage=="Request parameter extractSchema was not provided or was empty."</scriptText></con:configuration></con:assertion><con:credentials><con:authType>No Authorization</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:parameters>
  <con:entry key="max" value="${#TestSuite#MAX}"/>
  <con:entry key="requestId" value="${=(java.util.UUID.randomUUID().toString()).trim()}      "/>
  <con:entry key="lastUpdate" value="${#TestSuite#lastupdated}"/>
  <con:entry key="patientId" value="${#TestSuite#PATIENT_DFN}"/>
  <con:entry key="_type" value="json"/>
  <con:entry key="siteId" value="${#TestSuite#SITE_ID}"/>
  <con:entry key="assigningAuthority" value="USVHA"/>
  <con:entry key="clientName" value="${#TestSuite#CLIENT_NAME}"/>
  <con:entry key="resolvedAssigningAuthority" value="${#TestSuite#RESOLVED_ASSIGNING_AUTHORITY}"/>
  <con:entry key="clientRequestInitiationTime" value="${=org.apache.commons.lang.time.DateFormatUtils.ISO_DATETIME_TIME_ZONE_FORMAT.format( new Date() )}"/>
  <con:entry key="server" value="${#TestSuite#SERVER_NAME}"/>
  <con:entry key="assigningFacility" value="554"/>
</con:parameters><con:parameterOrder><con:entry>siteId</con:entry><con:entry>server</con:entry><con:entry>extractSchema</con:entry><con:entry>lastUpdate</con:entry><con:entry>max</con:entry><con:entry>requestId</con:entry><con:entry>clientRequestInitiationTime</con:entry><con:entry>clientName</con:entry><con:entry>_type</con:entry></con:parameterOrder></con:restRequest></con:config></con:testStep><con:properties/>
		</con:testCase><con:testCase failOnError="true" failTestCaseOnErrors="true" keepSession="false" maxResults="0" name="cancelSubscription" searchProperties="true" id="e28ee122-fb8e-425b-a4ec-83489fec09b5">
			<con:settings/>
			
			
			
			
			<con:testStep type="restrequest" name="cancelSubscriptionByDFN" id="b57a032a-e97a-4bc0-9305-2d5357bfae7a"><con:settings/><con:config service="FPDS" resourcePath="/repositories.med.DNS   /fpds/vpr/cancel" methodName="cancel" xsi:type="con:RestRequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:restRequest name="cancelSubscriptionByDFN" mediaType="application/json" postQueryString="false" id="a11b7140-ab27-42a9-b5f9-755f99bcc478"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:endpoint>http://${#Project#fpdsServiceHost}:${#Project#fpdsServicePort} 			</con:endpoint><con:request/><con:originalUri>http://IP         /repositories.med.DNS   /fpds/pubsub/howstricks/hmptest/8</con:originalUri><con:assertion type="GroovyScriptAssertion" name="Script Assertion" id="95c1df2e-42bc-4c04-8597-8e18ee78da99"><con:configuration><scriptText>import com.eviware.soapui.support.XmlHolder
import org.apache.commons.lang.StringUtils
import groovy.json.JsonSlurper

def response = messageExchange.response.responseContent
log.info response

def slurper = new JsonSlurper()
def json = slurper.parseText(response)

//verify the slurper isn't empty and values in response are expected
assert !json.isEmpty()
assert json.sites.size==1
assert json.sites[0].success=="true"</scriptText></con:configuration></con:assertion><con:credentials><con:authType>No Authorization</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:parameters>
  <con:entry key="_type" value="json"/>
  <con:entry key="requestId" value="${=(java.util.UUID.randomUUID().toString()).trim()}      "/>
  <con:entry key="assigningAuthority" value="USVHA"/>
  <con:entry key="clientName" value="${#TestSuite#CLIENT_NAME}"/>
  <con:entry key="clientRequestInitiationTime" value="${=org.apache.commons.lang.time.DateFormatUtils.ISO_DATETIME_TIME_ZONE_FORMAT.format( new Date() )}"/>
  <con:entry key="server" value="${#TestSuite#SERVER_NAME}"/>
  <con:entry key="assigningFacility" value="554"/>
  <con:entry key="resolvedIdentifier" value="${#TestSuite#PATIENT_DFN}"/>
</con:parameters><con:parameterOrder><con:entry>server</con:entry><con:entry>nationalId</con:entry><con:entry>resolvedIdentifier</con:entry><con:entry>requestId</con:entry><con:entry>clientRequestInitiationTime</con:entry><con:entry>clientName</con:entry><con:entry>_type</con:entry></con:parameterOrder></con:restRequest></con:config></con:testStep><con:testStep type="restrequest" name="cancelSubscriptionByICN" id="7c753a31-de37-4497-b0ae-1ba26be61a2e"><con:settings/><con:config service="FPDS" resourcePath="/repositories.med.DNS   /fpds/vpr/cancel" methodName="cancel" xsi:type="con:RestRequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:restRequest name="cancelSubscriptionByICN" mediaType="application/json" postQueryString="false" id="9627d80e-53d0-41d3-8be9-6e9a5c6231a9"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:endpoint>http://${#Project#fpdsServiceHost}:${#Project#fpdsServicePort} 			</con:endpoint><con:request/><con:originalUri>http://IP         /repositories.med.DNS   /fpds/pubsub/howstricks/hmptest/8</con:originalUri><con:assertion type="Simple Contains" name="Contains" id="f3d478aa-1b1a-4c09-bcdd-cf9cc8888d1f"><con:configuration><token>*** RPC Entry not found (#2300) >>> ValidateRPCNum^VISTA.HDSREPGSPRtn ***</token><ignoreCase>false</ignoreCase><useRegEx>false</useRegEx></con:configuration></con:assertion><con:assertion type="GroovyScriptAssertion" name="Script Assertion" id="87279b52-cdaf-4591-80d0-d2d59c0d16e7"><con:configuration><scriptText>import com.eviware.soapui.support.XmlHolder
import org.apache.commons.lang.StringUtils
import groovy.json.JsonSlurper

def response = messageExchange.response.responseContent
log.info response

def slurper = new JsonSlurper()
def json = slurper.parseText(response)

//verify the slurper isn't empty and values in response are expected
assert !json.isEmpty()
assert json.sites[1].errorSection.warnings.size==3
assert json.sites[1].errorSection.warnings[0].displayMessage=="Assigning Facility is 247. Patient id is 1. Domain entry point is GenericObservation. Database is VISTA-247-R. The Error reason is READ_REQUEST_DATA_SOURCE_FAILURE: VISTA SITE ERROR.:  *** RPC Entry not found (#2300) >>> ValidateRPCNum^VISTA.HDSREPGSPRtn ***"
assert json.sites[1].errorSection.warnings[1].displayMessage=="Assigning Facility is 580. Patient id is 174. Domain entry point is GenericObservation. Database is VISTA-580-R. The Error reason is READ_REQUEST_DATA_SOURCE_FAILURE: VISTA SITE ERROR.:  *** RPC Entry not found (#2300) >>> ValidateRPCNum^VISTA.HDSREPGSPRtn ***"
assert json.sites[1].errorSection.warnings[2].displayMessage=="Assigning Facility is 248. Patient id is 174. Domain entry point is GenericObservation. Database is VISTA-248-R. The Error reason is READ_REQUEST_DATA_SOURCE_FAILURE: VISTA SITE ERROR.:  *** RPC Entry not found (#2300) >>> ValidateRPCNum^VISTA.HDSREPGSPRtn ***"
</scriptText></con:configuration></con:assertion><con:credentials><con:authType>No Authorization</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:parameters>
  <con:entry key="_type" value="json"/>
  <con:entry key="nationalId" value="${#TestSuite#PATIENT_ICN}"/>
  <con:entry key="requestId" value="${=(java.util.UUID.randomUUID().toString()).trim()}      "/>
  <con:entry key="assigningAuthority" value="USVHA"/>
  <con:entry key="clientName" value="${#TestSuite#CLIENT_NAME}"/>
  <con:entry key="clientRequestInitiationTime" value="${=org.apache.commons.lang.time.DateFormatUtils.ISO_DATETIME_TIME_ZONE_FORMAT.format( new Date() )}"/>
  <con:entry key="server" value="${#TestSuite#SERVER_NAME}"/>
  <con:entry key="assigningFacility" value="554"/>
</con:parameters><con:parameterOrder><con:entry>server</con:entry><con:entry>nationalId</con:entry><con:entry>resolvedIdentifier</con:entry><con:entry>requestId</con:entry><con:entry>clientRequestInitiationTime</con:entry><con:entry>clientName</con:entry><con:entry>_type</con:entry></con:parameterOrder></con:restRequest></con:config></con:testStep><con:testStep type="restrequest" name="cancelSubscriptionByDFNList" id="32a4d349-2ab1-4414-96cf-cb9933863d60"><con:settings/><con:config service="FPDS" resourcePath="/repositories.med.DNS   /fpds/vpr/cancel" methodName="cancel" xsi:type="con:RestRequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:restRequest name="cancelSubscriptionByDFNList" mediaType="application/json" postQueryString="false" multiValueDelimiter="," id="f7141632-9148-46d6-9e0b-d79c77ebf0fa"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:endpoint>http://${#Project#fpdsServiceHost}:${#Project#fpdsServicePort} 			</con:endpoint><con:request/><con:originalUri>http://IP         /repositories.med.DNS   /fpds/pubsub/howstricks/hmptest/8</con:originalUri><con:assertion type="Simple Contains" name="Contains" id="40f18839-0ae1-49e8-809e-352f59e6f991"><con:configuration><token>*** RPC Entry not found (#2300) >>> ValidateRPCNum^VISTA.HDSREPGSPRtn ***</token><ignoreCase>false</ignoreCase><useRegEx>false</useRegEx></con:configuration></con:assertion><con:assertion type="GroovyScriptAssertion" name="Script Assertion" id="d87a5f54-e9ee-4f74-9009-6efbc13ce4f8"><con:configuration><scriptText>import com.eviware.soapui.support.XmlHolder
import org.apache.commons.lang.StringUtils
import groovy.json.JsonSlurper

def response = messageExchange.response.responseContent
log.info response

def slurper = new JsonSlurper()
def json = slurper.parseText(response)

//verify the slurper isn't empty and values in response are expected
assert !json.isEmpty()
assert json.sites[1].errorSection.warnings.size==1
assert json.sites[1].errorSection.warnings[0].displayMessage=="Assigning Facility is 580. Patient id is 174. Domain entry point is GenericObservation. Database is VISTA-580-R. The Error reason is READ_REQUEST_DATA_SOURCE_FAILURE: VISTA SITE ERROR.:  *** RPC Entry not found (#2300) >>> ValidateRPCNum^VISTA.HDSREPGSPRtn ***"</scriptText></con:configuration></con:assertion><con:credentials><con:authType>No Authorization</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:parameters>
  <con:entry key="_type" value="json"/>
  <con:entry key="requestId" value="${=(java.util.UUID.randomUUID().toString()).trim()}      "/>
  <con:entry key="assigningAuthority" value="USVHA"/>
  <con:entry key="clientName" value="${#TestSuite#CLIENT_NAME}"/>
  <con:entry key="clientRequestInitiationTime" value="${=org.apache.commons.lang.time.DateFormatUtils.ISO_DATETIME_TIME_ZONE_FORMAT.format( new Date() )}"/>
  <con:entry key="server" value="${#TestSuite#SERVER_NAME}"/>
  <con:entry key="assigningFacility" value="554"/>
  <con:entry key="resolvedIdentifier" value="${#TestSuite#PATIENT_DFN_LIST}"/>
</con:parameters><con:parameterOrder><con:entry>server</con:entry><con:entry>nationalId</con:entry><con:entry>resolvedIdentifier</con:entry><con:entry>requestId</con:entry><con:entry>clientRequestInitiationTime</con:entry><con:entry>clientName</con:entry><con:entry>_type</con:entry></con:parameterOrder></con:restRequest></con:config></con:testStep><con:properties/>
		</con:testCase><con:testCase failOnError="true" failTestCaseOnErrors="true" keepSession="false" maxResults="0" name="getUpdatesAfterCancel" searchProperties="true" id="becf780e-38a3-4db7-932e-77de23cacfa0"><con:settings/><con:testStep type="restrequest" name="getPatientUpdates" id="a0ae5db4-0f68-423d-9fef-4379be7d0868"><con:settings/><con:config service="FPDS" resourcePath="/repositories.med.DNS   /fpds/vpr/patientdata/{siteId}" methodName="getUpdates" xsi:type="con:RestRequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:restRequest name="getPatientUpdates" mediaType="application/json" id="ad31c60d-773f-4973-be92-755f1127c220"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:endpoint>http://${#Project#fpdsServiceHost}:${#Project#fpdsServicePort} 			</con:endpoint><con:request/><con:originalUri>http://IP         /repositories.med.DNS   /fpds/pubsub/fetch/getPtUpdates/hmpserver/554</con:originalUri><con:assertion type="GroovyScriptAssertion" name="Script Assertion" disabled="true" id="45e36ca2-cedb-48a9-8262-a95ef5c63f20"><con:configuration><scriptText>import com.eviware.soapui.support.XmlHolder
import org.apache.commons.lang.StringUtils
import groovy.json.JsonSlurper

def response = messageExchange.response.responseContent
//log.info response

def slurper = new JsonSlurper()
def json = slurper.parseText(response)

//verify the slurper isn't empty and values in response are expected
assert !json.isEmpty()
assert json.sites.size==1
def totalItems = messageExchange.modelItem.testStep.testCase.testSuite.getPropertyValue("totalItems");
log.info(totalItems);
//assert json.sites[0].data.totalItems == totalItems+2;</scriptText></con:configuration></con:assertion><con:credentials><con:authType>No Authorization</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:parameters>
  <con:entry key="extractSchema" value="${#TestSuite#EXTRACT_SCHEMA}"/>
  <con:entry key="_type" value="json"/>
  <con:entry key="max" value="${#TestSuite#MAX}"/>
  <con:entry key="siteId" value="${#TestSuite#SITE_ID}"/>
  <con:entry key="requestId" value="${=(java.util.UUID.randomUUID().toString()).trim()}"/>
  <con:entry key="lastUpdate" value="${#TestSuite#lastupdated}"/>
  <con:entry key="clientName" value="${#TestSuite#CLIENT_NAME}"/>
  <con:entry key="clientRequestInitiationTime" value="${=org.apache.commons.lang.time.DateFormatUtils.ISO_DATETIME_TIME_ZONE_FORMAT.format( new Date() )}"/>
  <con:entry key="server" value="${#TestSuite#SERVER_NAME}"/>
</con:parameters><con:parameterOrder><con:entry>siteId</con:entry><con:entry>server</con:entry><con:entry>extractSchema</con:entry><con:entry>lastUpdate</con:entry><con:entry>max</con:entry><con:entry>requestId</con:entry><con:entry>clientRequestInitiationTime</con:entry><con:entry>clientName</con:entry><con:entry>_type</con:entry></con:parameterOrder></con:restRequest></con:config></con:testStep><con:testStep type="groovy" name="validateCancelItemCount" disabled="true" id="481414c6-9b2d-4203-8ce3-7b0569ca9058"><con:settings/><con:config><script>import com.eviware.soapui.support.XmlHolder
import org.apache.commons.lang.StringUtils
import groovy.json.JsonSlurper

//def response = messageExchange.response.responseContent
//log.info response
def response = testRunner.testCase.testSteps["getPatientUpdates"].testRequest.response.contentAsString;

def slurper = new JsonSlurper()
def json = slurper.parseText(response)

//verify the slurper isn't empty and values in response are expected
assert !json.isEmpty()
assert json.sites.size==1
def totalItems = testRunner.testCase.testSuite.getPropertyValue("totalItems");
log.info(totalItems);
log.info(json.sites[0].data.totalItems)
def intItems = new Integer(totalItems);
assert json.sites[0].data.totalItems == intItems;</script></con:config></con:testStep><con:properties/></con:testCase><con:testCase failOnError="true" failTestCaseOnErrors="true" keepSession="false" maxResults="0" name="cancelPatientValidationExceptions" searchProperties="true" id="6b5a902f-b001-4c93-a196-8b25b8976afe">
			<con:settings/>
			
			
			
			
			<con:testStep type="restrequest" name="cancelPatientMissingServer" id="7bd58b45-eac4-4692-8f1f-d30b2c2bd655"><con:settings/><con:config service="FPDS" resourcePath="/repositories.med.DNS   /fpds/vpr/cancel" methodName="cancel" xsi:type="con:RestRequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:restRequest name="cancelPatientMissingServer" mediaType="application/json" postQueryString="false" id="5222af0b-1356-4966-acee-f9d4c8189911"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:endpoint>http://${#Project#fpdsServiceHost}:${#Project#fpdsServicePort} 			</con:endpoint><con:request/><con:originalUri>http://IP         /repositories.med.DNS   /fpds/pubsub/howstricks/hmptest/8</con:originalUri><con:assertion type="Simple Contains" name="Contains" id="abff7df8-ce68-4829-9a61-ceb1acfe85ef"><con:configuration><token>errorSection</token><ignoreCase>false</ignoreCase><useRegEx>false</useRegEx></con:configuration></con:assertion><con:assertion type="GroovyScriptAssertion" name="Script Assertion" id="79563d8b-3efb-474d-b7ed-a8552912d6ab"><con:configuration><scriptText>import com.eviware.soapui.support.XmlHolder
import org.apache.commons.lang.StringUtils
import groovy.json.JsonSlurper

def response = messageExchange.response.responseContent
log.info response

def slurper = new JsonSlurper()
def json = slurper.parseText(response)

//verify the slurper isn't empty and values in response are expected
assert !json.isEmpty()
assert json.sites.size==1
assert json.sites[0].errorSection.fatalErrors[0].displayMessage=="Request parameter server was not provided or was empty."</scriptText></con:configuration></con:assertion><con:credentials><con:authType>No Authorization</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:parameters>
  <con:entry key="_type" value="json"/>
  <con:entry key="requestId" value="${=(java.util.UUID.randomUUID().toString()).trim()}      "/>
  <con:entry key="assigningAuthority" value="USVHA"/>
  <con:entry key="clientName" value="${#TestSuite#CLIENT_NAME}"/>
  <con:entry key="clientRequestInitiationTime" value="${=org.apache.commons.lang.time.DateFormatUtils.ISO_DATETIME_TIME_ZONE_FORMAT.format( new Date() )}"/>
  <con:entry key="assigningFacility" value="554"/>
  <con:entry key="resolvedIdentifier" value="${#TestSuite#PATIENT_DFN}"/>
</con:parameters><con:parameterOrder><con:entry>server</con:entry><con:entry>nationalId</con:entry><con:entry>resolvedIdentifier</con:entry><con:entry>requestId</con:entry><con:entry>clientRequestInitiationTime</con:entry><con:entry>clientName</con:entry><con:entry>_type</con:entry></con:parameterOrder></con:restRequest></con:config></con:testStep><con:testStep type="restrequest" name="cancelPatientByDFNMissingFacility" id="e1909ef0-a60c-4b02-976a-620efd68714d"><con:settings/><con:config service="FPDS" resourcePath="/repositories.med.DNS   /fpds/vpr/cancel" methodName="cancel" xsi:type="con:RestRequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:restRequest name="cancelPatientByDFNMissingFacility" mediaType="application/json" postQueryString="false" id="eab59d59-f9ca-462e-84c5-05626cfac119"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:endpoint>http://${#Project#fpdsServiceHost}:${#Project#fpdsServicePort} 			</con:endpoint><con:request/><con:originalUri>http://IP         /repositories.med.DNS   /fpds/pubsub/howstricks/hmptest/8</con:originalUri><con:assertion type="Simple Contains" name="Contains" id="9e8588ad-b6f6-4424-8761-e493d45814fc"><con:configuration><token>errorSection</token><ignoreCase>false</ignoreCase><useRegEx>false</useRegEx></con:configuration></con:assertion><con:assertion type="GroovyScriptAssertion" name="Script Assertion" id="b5ac7bc3-1dbe-4d1f-820a-bb61fa36f7c9"><con:configuration><scriptText>import com.eviware.soapui.support.XmlHolder
import org.apache.commons.lang.StringUtils
import groovy.json.JsonSlurper

def response = messageExchange.response.responseContent
log.info response

def slurper = new JsonSlurper()
def json = slurper.parseText(response)

//verify the slurper isn't empty and values in response are expected
assert !json.isEmpty()
assert json.sites.size==1
assert json.sites[0].errorSection.fatalErrors[0].displayMessage=="One or all of these elements are missing in the ResolvedIdentifier:  identifier-facilityId-authority  All of them are required."</scriptText></con:configuration></con:assertion><con:credentials><con:authType>No Authorization</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:parameters>
  <con:entry key="_type" value="json"/>
  <con:entry key="requestId" value="${=(java.util.UUID.randomUUID().toString()).trim()}      "/>
  <con:entry key="assigningAuthority" value="USVHA"/>
  <con:entry key="clientName" value="${#TestSuite#CLIENT_NAME}"/>
  <con:entry key="clientRequestInitiationTime" value="${=org.apache.commons.lang.time.DateFormatUtils.ISO_DATETIME_TIME_ZONE_FORMAT.format( new Date() )}"/>
  <con:entry key="server" value="${#TestSuite#SERVER_NAME}"/>
  <con:entry key="assigningFacility" value="554"/>
  <con:entry key="resolvedIdentifier" value="${#TestSuite#PATIENT_MISSING_FACILITY}"/>
</con:parameters><con:parameterOrder><con:entry>server</con:entry><con:entry>nationalId</con:entry><con:entry>resolvedIdentifier</con:entry><con:entry>requestId</con:entry><con:entry>clientRequestInitiationTime</con:entry><con:entry>clientName</con:entry><con:entry>_type</con:entry></con:parameterOrder></con:restRequest></con:config></con:testStep><con:testStep type="restrequest" name="cancelPatientByDfnMissingAuthority" id="26723f59-7ba9-4a0c-afdd-1126db902f57"><con:settings/><con:config service="FPDS" resourcePath="/repositories.med.DNS   /fpds/vpr/cancel" methodName="cancel" xsi:type="con:RestRequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:restRequest name="cancelPatientByDfnMissingAuthority" mediaType="application/json" postQueryString="false" id="b0051d8e-5a36-4d44-af47-e8ff85878eff"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:endpoint>http://${#Project#fpdsServiceHost}:${#Project#fpdsServicePort} 			</con:endpoint><con:request/><con:originalUri>http://IP         /repositories.med.DNS   /fpds/pubsub/howstricks/hmptest/8</con:originalUri><con:assertion type="Simple Contains" name="Contains" id="6ab444c7-80ae-4f37-88f1-d41e8a88b128"><con:configuration><token>errorSection</token><ignoreCase>false</ignoreCase><useRegEx>false</useRegEx></con:configuration></con:assertion><con:assertion type="GroovyScriptAssertion" name="Script Assertion" id="afc48c78-9096-4f15-99ea-56b75f3a5891"><con:configuration><scriptText>import com.eviware.soapui.support.XmlHolder
import org.apache.commons.lang.StringUtils
import groovy.json.JsonSlurper

def response = messageExchange.response.responseContent
log.info response

def slurper = new JsonSlurper()
def json = slurper.parseText(response)

//verify the slurper isn't empty and values in response are expected
assert !json.isEmpty()
assert json.sites.size==1
assert json.sites[0].errorSection.fatalErrors[0].displayMessage=="One or all of these elements are missing in the ResolvedIdentifier:  identifier-facilityId-authority  All of them are required."</scriptText></con:configuration></con:assertion><con:credentials><con:authType>No Authorization</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:parameters>
  <con:entry key="_type" value="json"/>
  <con:entry key="requestId" value="${=(java.util.UUID.randomUUID().toString()).trim()}      "/>
  <con:entry key="assigningAuthority" value="USVHA"/>
  <con:entry key="clientName" value="${#TestSuite#CLIENT_NAME}"/>
  <con:entry key="clientRequestInitiationTime" value="${=org.apache.commons.lang.time.DateFormatUtils.ISO_DATETIME_TIME_ZONE_FORMAT.format( new Date() )}"/>
  <con:entry key="server" value="${#TestSuite#SERVER_NAME}"/>
  <con:entry key="assigningFacility" value="554"/>
  <con:entry key="resolvedIdentifier" value="${#TestSuite#PATIENT_MISSING_AUTHORITY}"/>
</con:parameters><con:parameterOrder><con:entry>server</con:entry><con:entry>nationalId</con:entry><con:entry>resolvedIdentifier</con:entry><con:entry>requestId</con:entry><con:entry>clientRequestInitiationTime</con:entry><con:entry>clientName</con:entry><con:entry>_type</con:entry></con:parameterOrder></con:restRequest></con:config></con:testStep><con:testStep type="restrequest" name="cancelPatientMissingRequestId" id="07024343-cdef-4c78-a7fe-09a68e94e484"><con:settings/><con:config service="FPDS" resourcePath="/repositories.med.DNS   /fpds/vpr/cancel" methodName="cancel" xsi:type="con:RestRequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:restRequest name="cancelPatientMissingRequestId" mediaType="application/json" postQueryString="false" id="7cf640de-2ae3-4620-8bae-ff7d9fa0d9d7"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:endpoint>http://${#Project#fpdsServiceHost}:${#Project#fpdsServicePort} 			</con:endpoint><con:request/><con:originalUri>http://IP         /repositories.med.DNS   /fpds/pubsub/howstricks/hmptest/8</con:originalUri><con:assertion type="Simple Contains" name="Contains" id="abe670aa-8157-420f-aa66-9601fb13a812"><con:configuration><token>errorSection</token><ignoreCase>false</ignoreCase><useRegEx>false</useRegEx></con:configuration></con:assertion><con:assertion type="GroovyScriptAssertion" name="Script Assertion" id="e64592c8-d939-440e-a5eb-7cf3a46765cb"><con:configuration><scriptText>import com.eviware.soapui.support.XmlHolder
import org.apache.commons.lang.StringUtils
import groovy.json.JsonSlurper

def response = messageExchange.response.responseContent
log.info response

def slurper = new JsonSlurper()
def json = slurper.parseText(response)

//verify the slurper isn't empty and values in response are expected
assert !json.isEmpty()
assert json.sites.size==1
assert json.sites[0].errorSection.fatalErrors[0].displayMessage=="Request parameter requestId was not provided or was empty."</scriptText></con:configuration></con:assertion><con:credentials><con:authType>No Authorization</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:parameters>
  <con:entry key="_type" value="json"/>
  <con:entry key="assigningAuthority" value="USVHA"/>
  <con:entry key="clientName" value="${#TestSuite#CLIENT_NAME}"/>
  <con:entry key="clientRequestInitiationTime" value="${=org.apache.commons.lang.time.DateFormatUtils.ISO_DATETIME_TIME_ZONE_FORMAT.format( new Date() )}"/>
  <con:entry key="server" value="${#TestSuite#SERVER_NAME}"/>
  <con:entry key="assigningFacility" value="554"/>
  <con:entry key="resolvedIdentifier" value="${#TestSuite#PATIENT_DFN}"/>
</con:parameters><con:parameterOrder><con:entry>server</con:entry><con:entry>nationalId</con:entry><con:entry>resolvedIdentifier</con:entry><con:entry>requestId</con:entry><con:entry>clientRequestInitiationTime</con:entry><con:entry>clientName</con:entry><con:entry>_type</con:entry></con:parameterOrder></con:restRequest></con:config></con:testStep><con:testStep type="restrequest" name="cancelPatientMissingClientName" id="ef739891-b278-4f23-a57c-5af1d54633d6"><con:settings/><con:config service="FPDS" resourcePath="/repositories.med.DNS   /fpds/vpr/cancel" methodName="cancel" xsi:type="con:RestRequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:restRequest name="cancelPatientMissingClientName" mediaType="application/json" postQueryString="false" id="3ad8df21-6751-4d4c-b08b-67abb41c0a03"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:endpoint>http://${#Project#fpdsServiceHost}:${#Project#fpdsServicePort} 			</con:endpoint><con:request/><con:originalUri>http://IP         /repositories.med.DNS   /fpds/pubsub/howstricks/hmptest/8</con:originalUri><con:assertion type="Simple Contains" name="Contains" id="aa696c87-61f8-4e4b-bcbf-e6de010c731e"><con:configuration><token>errorSection</token><ignoreCase>false</ignoreCase><useRegEx>false</useRegEx></con:configuration></con:assertion><con:assertion type="GroovyScriptAssertion" name="Script Assertion" id="15797572-db8b-4809-9f55-bb001f5c4b05"><con:configuration><scriptText>import com.eviware.soapui.support.XmlHolder
import org.apache.commons.lang.StringUtils
import groovy.json.JsonSlurper

def response = messageExchange.response.responseContent
log.info response

def slurper = new JsonSlurper()
def json = slurper.parseText(response)

//verify the slurper isn't empty and values in response are expected
assert !json.isEmpty()
assert json.sites.size==1
assert json.sites[0].errorSection.fatalErrors[0].displayMessage=="Request parameter clientName was not provided or was empty."</scriptText></con:configuration></con:assertion><con:credentials><con:authType>No Authorization</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:parameters>
  <con:entry key="_type" value="json"/>
  <con:entry key="requestId" value="${=(java.util.UUID.randomUUID().toString()).trim()}      "/>
  <con:entry key="assigningAuthority" value="USVHA"/>
  <con:entry key="clientRequestInitiationTime" value="${=org.apache.commons.lang.time.DateFormatUtils.ISO_DATETIME_TIME_ZONE_FORMAT.format( new Date() )}"/>
  <con:entry key="server" value="${#TestSuite#SERVER_NAME}"/>
  <con:entry key="assigningFacility" value="554"/>
  <con:entry key="resolvedIdentifier" value="${#TestSuite#PATIENT_DFN}"/>
</con:parameters><con:parameterOrder><con:entry>server</con:entry><con:entry>nationalId</con:entry><con:entry>resolvedIdentifier</con:entry><con:entry>requestId</con:entry><con:entry>clientRequestInitiationTime</con:entry><con:entry>clientName</con:entry><con:entry>_type</con:entry></con:parameterOrder></con:restRequest></con:config></con:testStep><con:testStep type="restrequest" name="cancelPatientWithBadDFNIdentifier" id="df82f98c-98e0-4d26-a2ba-0e1a08a4bec2"><con:settings/><con:config service="FPDS" resourcePath="/repositories.med.DNS   /fpds/vpr/subscribe" methodName="subscribe" xsi:type="con:RestRequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:restRequest name="cancelPatientWithBadDFNIdentifier" mediaType="application/json" postQueryString="false" id="344caf50-daa2-493f-8fe7-27933314b22d"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:endpoint>http://${#Project#fpdsServiceHost}:${#Project#fpdsServicePort} 			</con:endpoint><con:request/><con:originalUri>http://IP         /repositories.med.DNS   /fpds/pubsub/howstricks/hmptest/8</con:originalUri><con:assertion type="Simple Contains" name="Contains" id="346fe145-3821-4e8e-8664-0aafa874d8b2"><con:configuration><token>errorSection</token><ignoreCase>false</ignoreCase><useRegEx>false</useRegEx></con:configuration></con:assertion><con:assertion type="GroovyScriptAssertion" name="Script Assertion" id="e835bbc7-44e1-4835-b528-73ca8ba00ea3"><con:configuration><scriptText>import com.eviware.soapui.support.XmlHolder
import org.apache.commons.lang.StringUtils
import groovy.json.JsonSlurper

def response = messageExchange.response.responseContent
log.info response

def slurper = new JsonSlurper()
def json = slurper.parseText(response)

//verify the slurper isn't empty and values in response are expected
assert !json.isEmpty()
assert json.sites.size==1
assert json.sites[0].errorSection.fatalErrors[0].displayMessage=="Incorrect ResolvedIdentifier format, the correct format is identifier-facilityId-authority."</scriptText></con:configuration></con:assertion><con:credentials><con:authType>No Authorization</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:parameters>
  <con:entry key="_type" value="json"/>
  <con:entry key="requestId" value="${=(java.util.UUID.randomUUID().toString()).trim()}      "/>
  <con:entry key="assigningAuthority" value="USVHA"/>
  <con:entry key="clientName" value="${#TestSuite#CLIENT_NAME}"/>
  <con:entry key="clientRequestInitiationTime" value="${=org.apache.commons.lang.time.DateFormatUtils.ISO_DATETIME_TIME_ZONE_FORMAT.format( new Date() )}"/>
  <con:entry key="server" value="${#TestSuite#SERVER_NAME}"/>
  <con:entry key="assigningFacility" value="554"/>
  <con:entry key="resolvedIdentifier" value="-99-580-USVHA"/>
</con:parameters><con:parameterOrder><con:entry>server</con:entry><con:entry>nationalId</con:entry><con:entry>resolvedIdentifier</con:entry><con:entry>requestId</con:entry><con:entry>clientRequestInitiationTime</con:entry><con:entry>clientName</con:entry><con:entry>_type</con:entry></con:parameterOrder></con:restRequest></con:config></con:testStep><con:properties/>
		</con:testCase><con:properties><con:property><con:name>PATIENT_ICN</con:name><con:value>1008523096V381537</con:value></con:property><con:property><con:name>PATIENT_DFN</con:name><con:value>1-578-USVHA</con:value></con:property><con:property><con:name>PATIENT_DFN_LIST</con:name><con:value>1-578-USVHA,174-580-USVHA</con:value></con:property><con:property><con:name>PATIENT_MISSING_FACILITY</con:name><con:value>1--USVHA</con:value></con:property><con:property><con:name>PATIENT_MISSING_AUTHORITY</con:name><con:value>1-578-</con:value></con:property><con:property><con:name>SERVER_NAME</con:name><con:value>HMPTest</con:value></con:property><con:property><con:name>CLIENT_NAME</con:name><con:value>eHMP</con:value></con:property><con:property><con:name>MAX</con:name><con:value>500</con:value></con:property><con:property><con:name>SITE_ID</con:name><con:value>578</con:value></con:property><con:property><con:name>EXTRACT_SCHEMA</con:name><con:value>3.001</con:value></con:property><con:property><con:name>lastupdated</con:name><con:value xsi:nil="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/></con:property><con:property><con:name>totalItems</con:name><con:value>0</con:value></con:property></con:properties>
	</con:testSuite>
	<con:properties>
		<con:property>
			<con:name>fpdsServiceHost</con:name>
			<con:value>${fpds.appserver.target.host}</con:value>
		</con:property>
		<con:property>
			<con:name>fpdsServicePort</con:name>
			<con:value>${fpds.appserver.target.port}</con:value>
		</con:property>
	</con:properties>
	<con:wssContainer/>
	<con:oAuth2ProfileContainer/><con:sensitiveInformation/>
</con:soapui-project>