<?xml version="1.0" encoding="UTF-8"?>
<con:soapui-project activeEnvironment="Default" name="FPDS-PGD" soapui-version="5.0.0" abortOnError="false" runType="SEQUENTIAL" resourceRoot="" xmlns:con="http://eviware.com/soapui/config">
	<con:settings><con:setting id="ProjectSettings@hermesConfig">${HERMES_CFG}</con:setting></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/pgd/" definitionUrl="http://${#Project#mockServiceHost}:${#Project#fpdsServicePort}/repositories.med.DNS   /fpds/?_wadl" 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:endpoint>jms://${FPDS_QUEUE_JMS_ENDPOINT}</con:endpoint><con:endpoint>jms://FPDS_PGD::queue_jms/fpds/HmpPgdQueue</con:endpoint></con:endpoints>
		
	<con:resource name="" path="">
			<con:settings/>
			<con:parameters/>
			
			
		</con:resource><con:resource name="write" path="{templateId}/{filterId}/{identifier}"><con:settings/><con:parameters><con:parameter><con:name>templateId</con:name><con:value>templateId</con:value><con:style>TEMPLATE</con:style><con:default>templateId</con:default></con:parameter><con:parameter><con:name>request</con:name><con:value>request</con:value><con:style>TEMPLATE</con:style><con:default>request</con:default></con:parameter><con:parameter><con:name>requestId</con:name><con:value>requestId</con:value><con:style>TEMPLATE</con:style><con:default>requestId</con:default></con:parameter><con:parameter><con:name>filterId</con:name><con:value>filterId</con:value><con:style>TEMPLATE</con:style><con:default>filterId</con:default></con:parameter><con:parameter><con:name>identifier</con:name><con:value>identifier</con:value><con:style>TEMPLATE</con:style><con:default>identifier</con:default></con:parameter></con:parameters><con:method name="Method 1" method="POST"><con:settings/><con:parameters/><con:request name="writePGD" mediaType="application/json" postQueryString="false"><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:selectedAuthProfile>Basic</con:selectedAuthProfile><con:addedBasicAuthenticationTypes>Basic</con:addedBasicAuthenticationTypes><con:authType>Global HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:parameters/><con:parameterOrder><con:entry>templateId</con:entry><con:entry>request</con:entry><con:entry>requestId</con:entry><con:entry>filterId</con:entry><con:entry>identifier</con:entry></con:parameterOrder></con:request></con:method></con:resource><con:resource name="record" path="record/{identifier}"><con:settings/><con:parameters><con:parameter><con:name>identifier</con:name><con:style>TEMPLATE</con:style></con:parameter><con:parameter><con:name>filterId</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>clientName</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>_type</con:name><con:value/><con:style>QUERY</con:style><con:default/><con:description xsi:nil="true"/></con:parameter></con:parameters><con:method name="readByRecord" method="GET"><con:settings/><con:parameters/><con:request name="Request 1" mediaType="application/json"><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="requestId" value="${=java.util.UUID.randomUUID().toString()}       "/>
  <con:entry key="clientInitiationTime" value="${=org.apache.commons.lang.time.DateFormatUtils.ISO_DATETIME_TIME_ZONE_FORMAT.format( new Date() )}"/>
  <con:entry key="clientName" value="HMPPGD"/>
</con:parameters><con:parameterOrder><con:entry>identifier</con:entry><con:entry>filterId</con:entry><con:entry>requestId</con:entry><con:entry>clientName</con:entry><con:entry>clientRequestInitiationTime</con:entry><con:entry>_type</con:entry></con:parameterOrder></con:request></con:method></con:resource><con:resource name="patient" path="patient/"><con:settings/><con:parameters><con:parameter><con:name>filterId</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>collectionType</con:name><con:value/><con:style>QUERY</con:style><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>excludeIdentifier</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:parameter><con:name>templateId</con:name><con:value/><con:style>QUERY</con:style><con:default/><con:description xsi:nil="true"/></con:parameter><con:parameter><con:name>nationalId</con:name><con:value/><con:style>QUERY</con:style><con:default/><con:description xsi:nil="true"/></con:parameter></con:parameters><con:method name="readByPatient" method="GET"><con:settings/><con:parameters/><con:request name="Request 1" mediaType="application/json"><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="requestId" value="${=java.util.UUID.randomUUID().toString()}       "/>
  <con:entry key="clientName" value="HMPPGD"/>
</con:parameters><con:parameterOrder><con:entry>filterId</con:entry><con:entry>requestId</con:entry><con:entry>clientName</con:entry><con:entry>clientRequestInitiationTime</con:entry><con:entry>collectionType</con:entry><con:entry>nationalId</con:entry><con:entry>excludeIdentifier</con:entry><con:entry>resolvedIdentifier</con:entry><con:entry>templateId</con:entry><con:entry>_type</con:entry></con:parameterOrder></con:request></con:method></con:resource></con:interface>
	
	<con:testSuite name="PGD Test Suite"><con:settings/><con:runType>SEQUENTIAL</con:runType><con:testCase failOnError="true" failTestCaseOnErrors="true" keepSession="false" maxResults="0" name="doDelete" searchProperties="true" id="b7ee4f4c-8403-472c-b715-eaadceec7579"><con:settings/><con:testStep type="jdbc" name="JDBC Request"><con:settings/><con:config xsi:type="con:JdbcRequestTestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:driver> oracle.jdbc.driver.OracleDriver</con:driver><con:connectionString>${CDS_JDBC_CONNECTION_STRING}</con:connectionString><con:query>DELETE FROM ${#TestSuite#TABLE_NAME} WHERE PATIENT_IDENTITY = '${#TestSuite#PATIENT_IDENTIFIER}'</con:query><con:properties/></con:config></con:testStep><con:testStep type="groovy" name="doDelete" disabled="true"><con:settings/><con:config><script>import com.eviware.soapui.support.GroovyUtils.*
import groovy.sql.Sql;
import java.text.*;
import java.util.Date;

def dbPassword = com.eviware.soapui.SoapUI.globalProperties.getPropertyValue( "DB_PASSWORD" ) 
def dbUser = com.eviware.soapui.SoapUI.globalProperties.getPropertyValue( "DB_USER" )
def dbUrl = com.eviware.soapui.SoapUI.globalProperties.getPropertyValue( "DB_URL" ) 

log.info "Connecting to Oracle database ${dbUrl}";
com.eviware.soapui.support.GroovyUtils.registerJdbcDriver("oracle.jdbc.driver.OracleDriver")

log.info "Running Query against ${dbUrl}"

def sql = Sql.newInstance(dbUrl, dbUser, dbPassword, "oracle.jdbc.pool.OracleDataSource")
def tableName = testRunner.testCase.testSuite.getPropertyValue( "TABLE_NAME" ) 
def patientIdentifier = testRunner.testCase.testSuite.getPropertyValue("PATIENT_IDENTIFIER")
log.info tableName
log.info patientIdentifier

def res = sql.firstRow("delete from ${tableName} where PATIENT_IDENTITY='${patientIdentifier}' ") 
log.info res
</script></con:config></con:testStep><con:properties/></con:testCase><con:testCase failOnError="true" failTestCaseOnErrors="true" keepSession="false" maxResults="0" name="Create PGD TestCase" searchProperties="true" id="d0b7f28c-6859-44c0-bf10-4f6edb1fa8aa"><con:settings/><con:testStep type="groovy" name="Setup Test Data" id="b65cb6fb-89ff-4fa6-9654-350494ef2d75"><con:settings/><con:config><script>import java.util.UUID;  
import org.apache.commons.lang.time.DateFormatUtils;
context.CLIENT_INITIATION_TIME = DateFormatUtils.ISO_DATETIME_TIME_ZONE_FORMAT.format( new Date() );
context.REQUEST_ID = (UUID.randomUUID().toString()).trim()
context.UNIQUE_ID=(UUID.randomUUID().toString()).trim()
context.COLLECTION_TYPE='NONVAMEDS'
context.RECORD_UPDATE_TIME = '20140704172217-0600'

testRunner.testCase.testSuite.setPropertyValue( "UniqueIdentifier",context.UNIQUE_ID)</script></con:config></con:testStep><con:testStep type="restrequest" name="Create JMS Test Request" id="e97a6d22-a650-4f21-a5fc-c1f243ae13d1"><con:settings/><con:config service="FPDS" methodName="Method 1" resourcePath="/repositories.med.DNS   /fpds/pgd/{templateId}/{filterId}/{identifier}" xsi:type="con:RestRequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:restRequest name="Create JMS Test Request" mediaType="application/json" postQueryString="false"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>jms://${FPDS_QUEUE_JMS_ENDPOINT}</con:endpoint><con:request>{"nonVaMedicationEvent":{
	"pharmacyPatientId":{	
		"identity": "123456789XXX",	
		"assigningFacility":"200HMP",
		"assigningAuthority":"USVHA"
	},
	"pharmacyPatientName":{
		"prefix":"Ms",
		"given": "Mary",
		"family":"Shelley",
		"middle":"Frank",
		"title":"Author"
	},
   "dosage":"1",
   "schedule":"DAILY",
   "status":"DISCONTINUED",
   "medication":{
         "medicationName": "ADVIL",
         "genericMedicationName": "IBUPROFEN"
    },
   "medicationForm":"CAP/TAB"
  }
}</con:request><con:assertion type="Simple NotContains" name="Not Contains - checkForErrors"><con:configuration><token>errorSection</token><ignoreCase>false</ignoreCase><useRegEx>false</useRegEx></con:configuration></con:assertion><con:assertion type="Simple Contains" name="Contains - checkForSuccess"><con:configuration><token>"SUCCESS"</token><ignoreCase>false</ignoreCase><useRegEx>false</useRegEx></con:configuration></con:assertion><con:credentials><con:selectedAuthProfile>Basic</con:selectedAuthProfile><con:addedBasicAuthenticationTypes>Basic</con:addedBasicAuthenticationTypes><con:authType>Global HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT" JMSReplyTo=""/><con:jmsPropertyConfig><con:jmsProperties name="UNIQUE_ID" value="${UNIQUE_ID}"/><con:jmsProperties name="PATIENT_IDENTITY" value="${#TestSuite#PATIENT_IDENTIFIER}"/><con:jmsProperties name="CLIENT_INITIATION_TIME" value="${CLIENT_INITIATION_TIME}"/><con:jmsProperties name="PATIENT_ASSIGNING_FACILITY" value="${#TestSuite#DEFAULT_FACILITY}"/><con:jmsProperties name="CLIENT_NAME" value="${#TestSuite#CLIENT_NAME}"/><con:jmsProperties name="RECORD_UPDATE_TIME" value="${RECORD_UPDATE_TIME}"/><con:jmsProperties name="COLLECTION_TYPE" value="${COLLECTION_TYPE}"/><con:jmsProperties name="PATIENT_ASSIGNING_AUTHORITY" value="${#TestSuite#DEFAULT_AUTHORITY}"/><con:jmsProperties name="REQUEST_ID" value="${REQUEST_ID}"/></con:jmsPropertyConfig><con:parameters>
  <con:entry key="templateId" value=""/>
  <con:entry key="collectionType" value=""/>
  <con:entry key="_type" value="json"/>
  <con:entry key="filterId" value=""/>
  <con:entry key="requestId" value=""/>
  <con:entry key="clientName" value=""/>
  <con:entry key="request" value=""/>
  <con:entry key="resolvedAssigningAuthority" value=""/>
  <con:entry key="identifier" value=""/>
  <con:entry key="resolvedAssigningFacility" value=""/>
</con:parameters><con:parameterOrder><con:entry>templateId</con:entry><con:entry>request</con:entry><con:entry>requestId</con:entry><con:entry>filterId</con:entry><con:entry>identifier</con:entry></con:parameterOrder></con:restRequest></con:config></con:testStep><con:testStep type="restrequest" name="Read REST by Patient"><con:settings/><con:config service="FPDS" methodName="readByPatient" resourcePath="/repositories.med.DNS   /fpds/pgd/patient/" xsi:type="con:RestRequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:restRequest name="Read REST by Patient" mediaType="application/json" postQueryString="false"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://${#Project#fpdsServiceHost}:${#Project#fpdsServicePort} 			</con:endpoint><con:request/><con:originalUri>http://IP         /repositories.med.DNS   /fpds/pgd/patient/</con:originalUri><con:assertion type="Simple NotContains" name="Not Contains"><con:configuration><token>errorSection</token><ignoreCase>false</ignoreCase><useRegEx>false</useRegEx></con:configuration></con:assertion><con:assertion type="GroovyScriptAssertion" name="Script Assertion"><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.patientGeneratedDataEvents.size==1
assert json.patientGeneratedDataEvents[0].uniqueIdentifier==messageExchange.modelItem.testStep.testCase.testSuite.getPropertyValue( "UniqueIdentifier")
assert json.patientGeneratedDataEvents[0].patient.identifier.identity==messageExchange.modelItem.testStep.testCase.testSuite.getPropertyValue( "PATIENT_IDENTIFIER")
assert json.patientGeneratedDataEvents[0].pgdContent.nonVaMedicationEvent.schedule=="DAILY"</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="collectionType" value="NONVAMEDS"/>
  <con:entry key="_type" value="json"/>
  <con:entry key="filterId" value="PGD_SINGLE_PATIENT_FILTER"/>
  <con:entry key="requestId" value="${=java.util.UUID.randomUUID().toString()}       "/>
  <con:entry key="clientName" value="${#TestSuite#CLIENT_NAME}"/>
  <con:entry key="request" value="request"/>
  <con:entry key="clientRequestInitiationTime" value="${=org.apache.commons.lang.time.DateFormatUtils.ISO_DATETIME_TIME_ZONE_FORMAT.format( new Date() )}"/>
  <con:entry key="resolvedIdentifier" value="${#TestSuite#RESOLVED_IDENTIFIER}"/>
  <con:entry key="identifier" value="identifier"/>
</con:parameters></con:restRequest></con:config></con:testStep><con:properties/></con:testCase><con:testCase failOnError="true" failTestCaseOnErrors="true" keepSession="false" maxResults="0" name="Update PGD TestCase" searchProperties="true" id="24ec982c-c031-49a4-ace0-5009b35e1325"><con:settings/><con:testStep type="groovy" name="Setup Test Data"><con:settings/><con:config><script>import java.util.UUID;  
import org.apache.commons.lang.time.DateFormatUtils;
context.CLIENT_INITIATION_TIME = DateFormatUtils.ISO_DATETIME_TIME_ZONE_FORMAT.format( new Date() );
context.REQUEST_ID = (UUID.randomUUID().toString()).trim()
context.COLLECTION_TYPE='NONVAMEDS'
context.RECORD_UPDATE_TIME = '20140704172218-0600'
context.OLD_RECORD_UPDATE_TIME = '20140704172217-0600'
context.UPDATE_REQUEST_ID=(UUID.randomUUID().toString()).trim()</script></con:config></con:testStep><con:testStep type="restrequest" name="Update JMS Test Request"><con:settings/><con:config service="FPDS" methodName="Method 1" resourcePath="/repositories.med.DNS   /fpds/pgd/{templateId}/{filterId}/{identifier}" xsi:type="con:RestRequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:restRequest name="Update JMS Test Request" mediaType="application/json" postQueryString="false"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>jms://${FPDS_QUEUE_JMS_ENDPOINT}</con:endpoint><con:request>{"nonVaMedicationEvent":{
	"pharmacyPatientId":{	
		"identity": "123456789XXX",	
		"assigningFacility":"200HMP",
		"assigningAuthority":"USVHA"
	},
	"pharmacyPatientName":{
		"prefix":"Ms",
		"given": "Mary",
		"family":"Shelley",
		"middle":"Frank",
		"title":"Author"
	},
   "dosage":"1",
   "schedule":"NIGHTLY",
   "status":"DISCONTINUED",
   "medication":{
         "medicationName": "ADVIL",
         "genericMedicationName": "IBUPROFEN"
    },
   "medicationForm":"CAP/TAB"
  }
}</con:request><con:assertion type="Simple NotContains" name="Not Contains - checkForErrors"><con:configuration><token>errorSection</token><ignoreCase>false</ignoreCase><useRegEx>false</useRegEx></con:configuration></con:assertion><con:assertion type="Simple Contains" name="Contains - checkForSuccess"><con:configuration><token>"SUCCESS"</token><ignoreCase>false</ignoreCase><useRegEx>false</useRegEx></con:configuration></con:assertion><con:credentials><con:selectedAuthProfile>Basic</con:selectedAuthProfile><con:addedBasicAuthenticationTypes>Basic</con:addedBasicAuthenticationTypes><con:authType>Global HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT" JMSReplyTo=""/><con:jmsPropertyConfig><con:jmsProperties name="UNIQUE_ID" value="${#TestSuite#UniqueIdentifier}"/><con:jmsProperties name="PATIENT_IDENTITY" value="${#TestSuite#PATIENT_IDENTIFIER}"/><con:jmsProperties name="CLIENT_INITIATION_TIME" value="${CLIENT_INITIATION_TIME}"/><con:jmsProperties name="PATIENT_ASSIGNING_FACILITY" value="${#TestSuite#DEFAULT_FACILITY}"/><con:jmsProperties name="CLIENT_NAME" value="${#TestSuite#CLIENT_NAME}"/><con:jmsProperties name="RECORD_UPDATE_TIME" value="${RECORD_UPDATE_TIME}"/><con:jmsProperties name="COLLECTION_TYPE" value="${COLLECTION_TYPE}"/><con:jmsProperties name="PATIENT_ASSIGNING_AUTHORITY" value="${#TestSuite#DEFAULT_AUTHORITY}"/><con:jmsProperties name="REQUEST_ID" value="${REQUEST_ID}"/></con:jmsPropertyConfig><con:parameters>
  <con:entry key="templateId" value=""/>
  <con:entry key="collectionType" value=""/>
  <con:entry key="_type" value="json"/>
  <con:entry key="filterId" value=""/>
  <con:entry key="requestId" value=""/>
  <con:entry key="clientName" value=""/>
  <con:entry key="request" value=""/>
  <con:entry key="resolvedAssigningAuthority" value=""/>
  <con:entry key="identifier" value=""/>
  <con:entry key="resolvedAssigningFacility" value=""/>
</con:parameters><con:parameterOrder><con:entry>templateId</con:entry><con:entry>request</con:entry><con:entry>requestId</con:entry><con:entry>filterId</con:entry><con:entry>identifier</con:entry></con:parameterOrder></con:restRequest></con:config></con:testStep><con:testStep type="restrequest" name="Read REST by UniqueId"><con:settings/><con:config service="FPDS" methodName="readByRecord" resourcePath="/repositories.med.DNS   /fpds/pgd/record/{identifier}" xsi:type="con:RestRequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:restRequest name="Read REST by UniqueId" mediaType="application/json"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://${#Project#fpdsServiceHost}:${#Project#fpdsServicePort} 			</con:endpoint><con:request/><con:originalUri>http://IP         /repositories.med.DNS   /fpds/pgd/PGDRead1/PGD_UNIQUE_ID_FILTER/eb7050e3-6644-4939-9747-08a538e90a28</con:originalUri><con:assertion type="Simple NotContains" name="Not Contains - checkForErrors"><con:configuration><token>errorSection</token><ignoreCase>false</ignoreCase><useRegEx>false</useRegEx></con:configuration></con:assertion><con:assertion type="GroovyScriptAssertion" name="Script Assertion - validateResponse"><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.patientGeneratedDataEvents.size==1
assert json.patientGeneratedDataEvents[0].uniqueIdentifier==messageExchange.modelItem.testStep.testCase.testSuite.getPropertyValue( "UniqueIdentifier")
assert json.patientGeneratedDataEvents[0].patient.identifier.identity==messageExchange.modelItem.testStep.testCase.testSuite.getPropertyValue( "PATIENT_IDENTIFIER")
assert json.patientGeneratedDataEvents[0].pgdContent.nonVaMedicationEvent.schedule=="NIGHTLY"</scriptText></con:configuration></con:assertion><con:credentials><con:selectedAuthProfile>Basic</con:selectedAuthProfile><con:addedBasicAuthenticationTypes>Basic</con:addedBasicAuthenticationTypes><con:authType>Global HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:parameters>
  <con:entry key="collectionType" value="thisShouldBeIgnored"/>
  <con:entry key="_type" value="json"/>
  <con:entry key="filterId" value="PGD_UNIQUE_ID_FILTER"/>
  <con:entry key="requestId" value="${=(java.util.UUID.randomUUID().toString()).trim()}      "/>
  <con:entry key="clientInitiationTime" value="${=org.apache.commons.lang.time.DateFormatUtils.ISO_DATETIME_TIME_ZONE_FORMAT.format( new Date() )}"/>
  <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=""/>
  <con:entry key="identifier" value="${#TestSuite#UniqueIdentifier}"/>
  <con:entry key="resolvedAssigningFacility" value=""/>
</con:parameters><con:parameterOrder><con:entry>filterId</con:entry><con:entry>identifier</con:entry><con:entry>requestId</con:entry><con:entry>clientName</con:entry><con:entry>clientRequestInitiationTime</con:entry><con:entry>_type</con:entry></con:parameterOrder></con:restRequest></con:config></con:testStep><con:testStep type="restrequest" name="Update  JMS Test Request (older udpate time)"><con:settings/><con:config service="FPDS" methodName="Method 1" resourcePath="/repositories.med.DNS   /fpds/pgd/{templateId}/{filterId}/{identifier}" xsi:type="con:RestRequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:restRequest name="Update  JMS Test Request (older udpate time)" mediaType="application/json" postQueryString="false"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>jms://${FPDS_QUEUE_JMS_ENDPOINT}</con:endpoint><con:request>{"nonVaMedicationEvent":{
	"pharmacyPatientId":{	
		"identity": "123456789XXX",	
		"assigningFacility":"200HMP",
		"assigningAuthority":"USVHA"
	},
	"pharmacyPatientName":{
		"prefix":"Ms",
		"given": "Mary",
		"family":"Shelley",
		"middle":"Frank",
		"title":"Author"
	},
   "dosage":"1",
   "schedule":"MORNINGS",
   "status":"DISCONTINUED",
   "medication":{
         "medicationName": "ADVIL",
         "genericMedicationName": "IBUPROFEN"
    },
   "medicationForm":"CAP/TAB"
  }
}</con:request><con:assertion type="Simple NotContains" name="Not Contains - checkForErrors"><con:configuration><token>errorSection</token><ignoreCase>false</ignoreCase><useRegEx>false</useRegEx></con:configuration></con:assertion><con:assertion type="Simple Contains" name="Contains - checkForSuccess"><con:configuration><token>"SUCCESS"</token><ignoreCase>false</ignoreCase><useRegEx>false</useRegEx></con:configuration></con:assertion><con:credentials><con:selectedAuthProfile>Basic</con:selectedAuthProfile><con:addedBasicAuthenticationTypes>Basic</con:addedBasicAuthenticationTypes><con:authType>Global HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT" JMSReplyTo=""/><con:jmsPropertyConfig><con:jmsProperties name="UNIQUE_ID" value="${#TestSuite#UniqueIdentifier}"/><con:jmsProperties name="PATIENT_IDENTITY" value="${#TestSuite#PATIENT_IDENTIFIER}"/><con:jmsProperties name="CLIENT_INITIATION_TIME" value="${CLIENT_INITIATION_TIME}"/><con:jmsProperties name="PATIENT_ASSIGNING_FACILITY" value="${#TestSuite#DEFAULT_FACILITY}"/><con:jmsProperties name="CLIENT_NAME" value="${#TestSuite#CLIENT_NAME}"/><con:jmsProperties name="RECORD_UPDATE_TIME" value="${OLD_RECORD_UPDATE_TIME}"/><con:jmsProperties name="COLLECTION_TYPE" value="${COLLECTION_TYPE}"/><con:jmsProperties name="PATIENT_ASSIGNING_AUTHORITY" value="${#TestSuite#DEFAULT_AUTHORITY}"/><con:jmsProperties name="REQUEST_ID" value="${UPDATE_REQUEST_ID}"/></con:jmsPropertyConfig><con:parameters>
  <con:entry key="templateId" value=""/>
  <con:entry key="collectionType" value=""/>
  <con:entry key="_type" value="json"/>
  <con:entry key="filterId" value=""/>
  <con:entry key="requestId" value=""/>
  <con:entry key="clientName" value=""/>
  <con:entry key="request" value=""/>
  <con:entry key="resolvedAssigningAuthority" value=""/>
  <con:entry key="identifier" value=""/>
  <con:entry key="resolvedAssigningFacility" value=""/>
</con:parameters><con:parameterOrder><con:entry>templateId</con:entry><con:entry>request</con:entry><con:entry>requestId</con:entry><con:entry>filterId</con:entry><con:entry>identifier</con:entry></con:parameterOrder></con:restRequest></con:config></con:testStep><con:testStep type="restrequest" name="Read Rest -  test older update did not overwrite newer record"><con:settings/><con:config service="FPDS" methodName="readByRecord" resourcePath="/repositories.med.DNS   /fpds/pgd/record/{identifier}" xsi:type="con:RestRequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:restRequest name="Read Rest -  test older update did not overwrite newer record" mediaType="application/json"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://${#Project#fpdsServiceHost}:${#Project#fpdsServicePort} 			</con:endpoint><con:request/><con:originalUri>http://IP         /repositories.med.DNS   /fpds/pgd/PGDRead1/PGD_UNIQUE_ID_FILTER/eb7050e3-6644-4939-9747-08a538e90a28</con:originalUri><con:assertion type="Simple NotContains" name="Not Contains - checkForErrors"><con:configuration><token>errorSection</token><ignoreCase>false</ignoreCase><useRegEx>false</useRegEx></con:configuration></con:assertion><con:assertion type="GroovyScriptAssertion" name="Script Assertion - validateResponse"><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.patientGeneratedDataEvents.size==1
assert json.patientGeneratedDataEvents[0].uniqueIdentifier==messageExchange.modelItem.testStep.testCase.testSuite.getPropertyValue( "UniqueIdentifier")
assert json.patientGeneratedDataEvents[0].patient.identifier.identity==messageExchange.modelItem.testStep.testCase.testSuite.getPropertyValue( "PATIENT_IDENTIFIER")
assert json.patientGeneratedDataEvents[0].pgdContent.nonVaMedicationEvent.schedule=="NIGHTLY"</scriptText></con:configuration></con:assertion><con:credentials><con:selectedAuthProfile>Basic</con:selectedAuthProfile><con:addedBasicAuthenticationTypes>Basic</con:addedBasicAuthenticationTypes><con:authType>Global HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:parameters>
  <con:entry key="_type" value="json"/>
  <con:entry key="collectionType" value=""/>
  <con:entry key="filterId" value="PGD_UNIQUE_ID_FILTER"/>
  <con:entry key="requestId" value="${=(java.util.UUID.randomUUID().toString()).trim()}      "/>
  <con:entry key="clientName" value="${#TestSuite#CLIENT_NAME}"/>
  <con:entry key="resolvedAssigningAuthority" value="thisshouldbeignored"/>
  <con:entry key="clientRequestInitiationTime" value="${=org.apache.commons.lang.time.DateFormatUtils.ISO_DATETIME_TIME_ZONE_FORMAT.format( new Date() )}"/>
  <con:entry key="identifier" value="${#TestSuite#UniqueIdentifier}"/>
  <con:entry key="resolvedAssigningFacility" value=""/>
</con:parameters><con:parameterOrder><con:entry>filterId</con:entry><con:entry>identifier</con:entry><con:entry>requestId</con:entry><con:entry>clientName</con:entry><con:entry>clientRequestInitiationTime</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="Create 2nd PGD Type TestCase" searchProperties="true" id="d851f5dd-55f4-442a-8d25-04b3c3a624da"><con:settings/><con:testStep type="groovy" name="Setup Test Data"><con:settings/><con:config><script>import java.util.UUID;  
import org.apache.commons.lang.time.DateFormatUtils;
context.CLIENT_INITIATION_TIME = DateFormatUtils.ISO_DATETIME_TIME_ZONE_FORMAT.format( new Date() );
context.REQUEST_ID = (UUID.randomUUID().toString()).trim()
context.UNIQUE_ID=(UUID.randomUUID().toString()).trim()
context.COLLECTION_TYPE='VITALS'
context.RECORD_UPDATE_TIME = '20140707172217-0600'</script></con:config></con:testStep><con:testStep type="restrequest" name="Create  JMS Test Request"><con:settings/><con:config service="FPDS" methodName="Method 1" resourcePath="/repositories.med.DNS   /fpds/pgd/{templateId}/{filterId}/{identifier}" xsi:type="con:RestRequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:restRequest name="Create  JMS Test Request" mediaType="application/json" postQueryString="false"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>jms://${FPDS_QUEUE_JMS_ENDPOINT}</con:endpoint><con:request>{"vitalSignObservationEvent":{
	"patiendId":{	
		"identity": "123456789XXX",	
		"assigningFacility":"200HMP",
		"assigningAuthority":"USVHA"
	},
     "temperature":"98 degrees" 
  } 
}</con:request><con:assertion type="Simple NotContains" name="Not Contains - checkForErrors"><con:configuration><token>errorSection</token><ignoreCase>false</ignoreCase><useRegEx>false</useRegEx></con:configuration></con:assertion><con:assertion type="Simple Contains" name="Contains - checkForSuccess"><con:configuration><token>"SUCCESS"</token><ignoreCase>false</ignoreCase><useRegEx>false</useRegEx></con:configuration></con:assertion><con:credentials><con:selectedAuthProfile>Basic</con:selectedAuthProfile><con:addedBasicAuthenticationTypes>Basic</con:addedBasicAuthenticationTypes><con:authType>Global HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT" JMSReplyTo=""/><con:jmsPropertyConfig><con:jmsProperties name="UNIQUE_ID" value="${UNIQUE_ID}"/><con:jmsProperties name="PATIENT_IDENTITY" value="${#TestSuite#PATIENT_IDENTIFIER}"/><con:jmsProperties name="CLIENT_INITIATION_TIME" value="${CLIENT_INITIATION_TIME}"/><con:jmsProperties name="PATIENT_ASSIGNING_FACILITY" value="${#TestSuite#DEFAULT_FACILITY}"/><con:jmsProperties name="CLIENT_NAME" value="${#TestSuite#CLIENT_NAME}"/><con:jmsProperties name="RECORD_UPDATE_TIME" value="${RECORD_UPDATE_TIME}"/><con:jmsProperties name="COLLECTION_TYPE" value="${COLLECTION_TYPE}"/><con:jmsProperties name="PATIENT_ASSIGNING_AUTHORITY" value="${#TestSuite#DEFAULT_AUTHORITY}"/><con:jmsProperties name="REQUEST_ID" value="${REQUEST_ID}"/></con:jmsPropertyConfig><con:parameters>
  <con:entry key="templateId" value=""/>
  <con:entry key="collectionType" value=""/>
  <con:entry key="_type" value="json"/>
  <con:entry key="filterId" value=""/>
  <con:entry key="requestId" value=""/>
  <con:entry key="clientName" value=""/>
  <con:entry key="request" value=""/>
  <con:entry key="resolvedAssigningAuthority" value=""/>
  <con:entry key="identifier" value=""/>
  <con:entry key="resolvedAssigningFacility" value=""/>
</con:parameters><con:parameterOrder><con:entry>templateId</con:entry><con:entry>request</con:entry><con:entry>requestId</con:entry><con:entry>filterId</con:entry><con:entry>identifier</con:entry></con:parameterOrder></con:restRequest></con:config></con:testStep><con:testStep type="restrequest" name="Read REST by Patient"><con:settings/><con:config service="FPDS" methodName="readByPatient" resourcePath="/repositories.med.DNS   /fpds/pgd/patient/" xsi:type="con:RestRequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:restRequest name="Read REST by Patient" mediaType="application/json"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://${#Project#fpdsServiceHost}:${#Project#fpdsServicePort} 			</con:endpoint><con:request/><con:originalUri>http://IP         /repositories.med.DNS   /fpds/pgd/PGDRead1/PGD_SINGLE_PATIENT_FILTER/123456789XXX</con:originalUri><con:assertion type="Simple NotContains" name="Not Contains - checkForErrors"><con:configuration><token>errorSection</token><ignoreCase>false</ignoreCase><useRegEx>false</useRegEx></con:configuration></con:assertion><con:assertion type="GroovyScriptAssertion" name="Script Assertion - validateResponse"><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.patientGeneratedDataEvents.size==2
assert json.patientGeneratedDataEvents[0].patient.identifier.identity==messageExchange.modelItem.testStep.testCase.testSuite.getPropertyValue( "PATIENT_IDENTIFIER")
</scriptText></con:configuration></con:assertion><con:credentials><con:selectedAuthProfile>Basic</con:selectedAuthProfile><con:addedBasicAuthenticationTypes>Basic</con:addedBasicAuthenticationTypes><con:authType>Global HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:parameters>
  <con:entry key="_type" value="json"/>
  <con:entry key="filterId" value="PGD_SINGLE_PATIENT_FILTER"/>
  <con:entry key="requestId" value="${=java.util.UUID.randomUUID().toString()}       "/>
  <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="resolvedIdentifier" value="${#TestSuite#RESOLVED_IDENTIFIER}"/>
</con:parameters><con:parameterOrder><con:entry>filterId</con:entry><con:entry>requestId</con:entry><con:entry>clientName</con:entry><con:entry>collectionType</con:entry><con:entry>nationalId</con:entry><con:entry>clientRequestInitiationTime</con:entry><con:entry>templateId</con:entry><con:entry>excludeIdentifier</con:entry></con:parameterOrder></con:restRequest></con:config></con:testStep><con:testStep type="restrequest" name="Read REST by CollectionType"><con:settings/><con:config service="FPDS" methodName="readByPatient" resourcePath="/repositories.med.DNS   /fpds/pgd/patient/" xsi:type="con:RestRequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:restRequest name="Read REST by CollectionType" mediaType="application/json"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://${#Project#fpdsServiceHost}:${#Project#fpdsServicePort} 			</con:endpoint><con:request/><con:originalUri>http://IP         /repositories.med.DNS   /fpds/pgd/PGDRead1/PGD_SINGLE_PATIENT_FILTER/123456789XXX</con:originalUri><con:assertion type="Simple NotContains" name="Not Contains - checkForErrors"><con:configuration><token>errorSection</token><ignoreCase>false</ignoreCase><useRegEx>false</useRegEx></con:configuration></con:assertion><con:assertion type="GroovyScriptAssertion" name="Script Assertion - validateResponse"><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.patientGeneratedDataEvents.size==1
assert json.patientGeneratedDataEvents[0].collectionType.equalsIgnoreCase("VITALS");
assert json.patientGeneratedDataEvents[0].patient.identifier.identity==messageExchange.modelItem.testStep.testCase.testSuite.getPropertyValue( "PATIENT_IDENTIFIER")
</scriptText></con:configuration></con:assertion><con:credentials><con:selectedAuthProfile>Basic</con:selectedAuthProfile><con:addedBasicAuthenticationTypes>Basic</con:addedBasicAuthenticationTypes><con:authType>Global HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:parameters>
  <con:entry key="_type" value="json"/>
  <con:entry key="collectionType" value="VITALS"/>
  <con:entry key="filterId" value="PGD_SINGLE_PATIENT_FILTER"/>
  <con:entry key="requestId" value="${=java.util.UUID.randomUUID().toString()}       "/>
  <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="resolvedIdentifier" value="${#TestSuite#RESOLVED_IDENTIFIER}"/>
</con:parameters><con:parameterOrder><con:entry>filterId</con:entry><con:entry>nationalId</con:entry><con:entry>requestId</con:entry><con:entry>clientName</con:entry><con:entry>clientRequestInitiationTime</con:entry><con:entry>collectionType</con:entry><con:entry>templateId</con:entry><con:entry>excludeIdentifier</con:entry></con:parameterOrder></con:restRequest></con:config></con:testStep><con:testStep type="restrequest" name="Read REST by CollectionType Mixed Case"><con:settings/><con:config service="FPDS" methodName="readByPatient" resourcePath="/repositories.med.DNS   /fpds/pgd/patient/" xsi:type="con:RestRequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:restRequest name="Read REST by CollectionType Mixed Case" mediaType="application/json"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://${#Project#fpdsServiceHost}:${#Project#fpdsServicePort} 			</con:endpoint><con:request/><con:originalUri>http://IP         /repositories.med.DNS   /fpds/pgd/PGDRead1/PGD_SINGLE_PATIENT_FILTER/123456789XXX</con:originalUri><con:assertion type="Simple NotContains" name="Not Contains - checkForErrors"><con:configuration><token>errorSection</token><ignoreCase>false</ignoreCase><useRegEx>false</useRegEx></con:configuration></con:assertion><con:assertion type="GroovyScriptAssertion" name="Script Assertion - validateResponse"><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.patientGeneratedDataEvents.size==1
assert json.patientGeneratedDataEvents[0].collectionType.equalsIgnoreCase("VITALS");
assert json.patientGeneratedDataEvents[0].patient.identifier.identity==messageExchange.modelItem.testStep.testCase.testSuite.getPropertyValue( "PATIENT_IDENTIFIER")
</scriptText></con:configuration></con:assertion><con:credentials><con:selectedAuthProfile>Basic</con:selectedAuthProfile><con:addedBasicAuthenticationTypes>Basic</con:addedBasicAuthenticationTypes><con:authType>Global HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:parameters>
  <con:entry key="collectionType" value="vItAls"/>
  <con:entry key="_type" value="json"/>
  <con:entry key="filterId" value="PGD_SINGLE_PATIENT_FILTER"/>
  <con:entry key="requestId" value="${=java.util.UUID.randomUUID().toString()}       "/>
  <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="resolvedIdentifier" value="${#TestSuite#RESOLVED_IDENTIFIER}"/>
</con:parameters><con:parameterOrder><con:entry>filterId</con:entry><con:entry>nationalId</con:entry><con:entry>requestId</con:entry><con:entry>clientName</con:entry><con:entry>clientRequestInitiationTime</con:entry><con:entry>collectionType</con:entry><con:entry>excludeIdentifier</con:entry><con:entry>templateId</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="Expected Errors Read TestCase" searchProperties="true" id="100ff2ee-7060-4ccc-87bd-41ea49d67da7"><con:settings/><con:testStep type="groovy" name="Setup Test Data"><con:settings/><con:config><script>import java.util.UUID;  
import org.apache.commons.lang.time.DateFormatUtils;
context.CLIENT_INITIATION_TIME = DateFormatUtils.ISO_DATETIME_TIME_ZONE_FORMAT.format( new Date() );
context.REQUEST_ID = (UUID.randomUUID().toString()).trim()
context.UNIQUE_ID=(UUID.randomUUID().toString()).trim()
context.COLLECTION_TYPE='NONVAMEDS'
context.RECORD_UPDATE_TIME = '20140704172217-0600'

testRunner.testCase.testSuite.setPropertyValue( "UniqueIdentifier",context.UNIQUE_ID)</script></con:config></con:testStep><con:testStep type="restrequest" name="Bad Template Read REST Test Request"><con:settings/><con:config service="FPDS" methodName="readByPatient" resourcePath="/repositories.med.DNS   /fpds/pgd/patient/" xsi:type="con:RestRequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:restRequest name="Bad Template Read REST Test Request" mediaType="application/json"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://${#Project#fpdsServiceHost}:${#Project#fpdsServicePort} 			</con:endpoint><con:request/><con:originalUri>http://IP         /repositories.med.DNS   /fpds/pgd/BAD_TEMPLATE/PGD_SINGLE_PATIENT_FILTER/123456789XXX</con:originalUri><con:assertion type="Simple Contains" name="Contains - errorSection"><con:configuration><token>errorSection</token><ignoreCase>false</ignoreCase><useRegEx>false</useRegEx></con:configuration></con:assertion><con:assertion type="GroovyScriptAssertion" name="Script Assertion -  validateResponse"><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.patientGeneratedDataEvents.size==1
assert json.patientGeneratedDataEvents[0].errorSection.fatalErrors[0].exceptionMessage=="INVALID_TEMPLATE"</scriptText></con:configuration></con:assertion><con:credentials><con:selectedAuthProfile>Basic</con:selectedAuthProfile><con:addedBasicAuthenticationTypes>Basic</con:addedBasicAuthenticationTypes><con:authType>Global HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:parameters>
  <con:entry key="templateId" value="BAD_TEMPLATE_ID"/>
  <con:entry key="collectionType" value="NONVAMEDS"/>
  <con:entry key="_type" value="json"/>
  <con:entry key="filterId" value="PGD_SINGLE_PATIENT_FILTER"/>
  <con:entry key="requestId" value="${=(java.util.UUID.randomUUID().toString()).trim()}      "/>
  <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="resolvedIdentifier" value="${#TestSuite#RESOLVED_IDENTIFIER}"/>
</con:parameters><con:parameterOrder><con:entry>filterId</con:entry><con:entry>nationalId</con:entry><con:entry>requestId</con:entry><con:entry>clientName</con:entry><con:entry>clientRequestInitiationTime</con:entry><con:entry>collectionType</con:entry><con:entry>templateId</con:entry><con:entry>excludeIdentifier</con:entry></con:parameterOrder></con:restRequest></con:config></con:testStep><con:testStep type="restrequest" name="Bad Filter Read Test Request"><con:settings/><con:config service="FPDS" methodName="readByPatient" resourcePath="/repositories.med.DNS   /fpds/pgd/patient/" xsi:type="con:RestRequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:restRequest name="Bad Filter Read Test Request" mediaType="application/json"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://${#Project#fpdsServiceHost}:${#Project#fpdsServicePort} 			</con:endpoint><con:request/><con:originalUri>http://IP         /repositories.med.DNS   /fpds/pgd/PGDRead1/BAD_FILTER/123456789XXX</con:originalUri><con:assertion type="Simple Contains" name="Contains - errorSection"><con:configuration><token>errorSection</token><ignoreCase>false</ignoreCase><useRegEx>false</useRegEx></con:configuration></con:assertion><con:assertion type="GroovyScriptAssertion" name="Script Assertion -  validateResponse"><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.patientGeneratedDataEvents.size==1
assert json.patientGeneratedDataEvents[0].errorSection.fatalErrors[0].displayMessage=="Invalid Filter Id: BAD_FILTER"</scriptText></con:configuration></con:assertion><con:credentials><con:selectedAuthProfile>Basic</con:selectedAuthProfile><con:addedBasicAuthenticationTypes>Basic</con:addedBasicAuthenticationTypes><con:authType>Global HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:parameters>
  <con:entry key="_type" value="json"/>
  <con:entry key="collectionType" value="NONVAMEDS"/>
  <con:entry key="filterId" value="BAD_FILTER"/>
  <con:entry key="requestId" value="${=(java.util.UUID.randomUUID().toString()).trim()}      "/>
  <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="resolvedIdentifier" value="${#TestSuite#RESOLVED_IDENTIFIER}"/>
</con:parameters><con:parameterOrder><con:entry>filterId</con:entry><con:entry>nationalId</con:entry><con:entry>requestId</con:entry><con:entry>clientName</con:entry><con:entry>clientRequestInitiationTime</con:entry><con:entry>collectionType</con:entry><con:entry>templateId</con:entry><con:entry>excludeIdentifier</con:entry></con:parameterOrder></con:restRequest></con:config></con:testStep><con:testStep type="restrequest" name="Missing ResolvedIdentifier Read REST Test Request"><con:settings/><con:config service="FPDS" methodName="readByPatient" resourcePath="/repositories.med.DNS   /fpds/pgd/patient/" xsi:type="con:RestRequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:restRequest name="Missing ResolvedIdentifier Read REST Test Request" mediaType="application/json"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://${#Project#fpdsServiceHost}:${#Project#fpdsServicePort} 			</con:endpoint><con:request/><con:originalUri>http://IP         /repositories.med.DNS   /fpds/pgd/PGDRead1/PGD_SINGLE_PATIENT_FILTER/123456789XXX</con:originalUri><con:assertion type="Simple Contains" name="Contains - errorSection"><con:configuration><token>errorSection</token><ignoreCase>false</ignoreCase><useRegEx>false</useRegEx></con:configuration></con:assertion><con:assertion type="GroovyScriptAssertion" name="Script Assertion -  validateResponse"><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.patientGeneratedDataEvents.size==1
//can't assert in a dev env on this, stub will return a warning error but the sqa/real IDM returns a fatal error ... will just assert that we get an error for now
//assert json.patientGeneratedDataEvents[0].errorSection.warnings.warning.displayMessage=="No patient identifiers could be resolved from the filter."
//assert json.patientGeneratedDataEvents[0].errorSection.fatalErrors.fatalError.exceptionMessage=="IDM_SERVICE_EXCEPTION"</scriptText></con:configuration></con:assertion><con:credentials><con:selectedAuthProfile>Basic</con:selectedAuthProfile><con:addedBasicAuthenticationTypes>Basic</con:addedBasicAuthenticationTypes><con:authType>Global HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:parameters>
  <con:entry key="collectionType" value="NONVAMEDS"/>
  <con:entry key="_type" value="json"/>
  <con:entry key="filterId" value="PGD_SINGLE_PATIENT_FILTER"/>
  <con:entry key="requestId" value="${=(java.util.UUID.randomUUID().toString()).trim()}      "/>
  <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:parameters><con:parameterOrder><con:entry>nationalId</con:entry><con:entry>filterId</con:entry><con:entry>requestId</con:entry><con:entry>clientName</con:entry><con:entry>clientRequestInitiationTime</con:entry><con:entry>collectionType</con:entry><con:entry>templateId</con:entry><con:entry>excludeIdentifier</con:entry></con:parameterOrder></con:restRequest></con:config></con:testStep><con:testStep type="restrequest" name="Missing RequestId Read REST Test Request"><con:settings/><con:config service="FPDS" methodName="readByPatient" resourcePath="/repositories.med.DNS   /fpds/pgd/patient/" xsi:type="con:RestRequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:restRequest name="Missing RequestId Read REST Test Request" mediaType="application/json"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://${#Project#fpdsServiceHost}:${#Project#fpdsServicePort} 			</con:endpoint><con:request/><con:originalUri>http://IP         /repositories.med.DNS   /fpds/pgd/PGDRead1/PGD_SINGLE_PATIENT_FILTER/123456789XXX</con:originalUri><con:assertion type="Simple Contains" name="Contains - errorSection"><con:configuration><token>errorSection</token><ignoreCase>false</ignoreCase><useRegEx>false</useRegEx></con:configuration></con:assertion><con:assertion type="GroovyScriptAssertion" name="Script Assertion -  validateResponse"><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.patientGeneratedDataEvents.size==1
assert json.patientGeneratedDataEvents[0].errorSection.fatalErrors[0].displayMessage=="Request parameter requestId was not provided or was empty."</scriptText></con:configuration></con:assertion><con:credentials><con:selectedAuthProfile>Basic</con:selectedAuthProfile><con:addedBasicAuthenticationTypes>Basic</con:addedBasicAuthenticationTypes><con:authType>Global HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:parameters>
  <con:entry key="_type" value="json"/>
  <con:entry key="collectionType" value="NONVAMEDS"/>
  <con:entry key="filterId" value="PGD_SINGLE_PATIENT_FILTER"/>
  <con:entry key="requestId" value=""/>
  <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="resolvedIdentifier" value="${#TestSuite#RESOLVED_IDENTIFIER}"/>
</con:parameters><con:parameterOrder><con:entry>filterId</con:entry><con:entry>nationalId</con:entry><con:entry>requestId</con:entry><con:entry>clientName</con:entry><con:entry>clientRequestInitiationTime</con:entry><con:entry>collectionType</con:entry><con:entry>excludeIdentifier</con:entry><con:entry>templateId</con:entry></con:parameterOrder></con:restRequest></con:config></con:testStep><con:testStep type="restrequest" name="Missing ClientName Read REST Test Request"><con:settings/><con:config service="FPDS" methodName="readByPatient" resourcePath="/repositories.med.DNS   /fpds/pgd/patient/" xsi:type="con:RestRequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:restRequest name="Missing ClientName Read REST Test Request" mediaType="application/json"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://${#Project#fpdsServiceHost}:${#Project#fpdsServicePort} 			</con:endpoint><con:request/><con:originalUri>http://IP         /repositories.med.DNS   /fpds/pgd/PGDRead1/PGD_SINGLE_PATIENT_FILTER/123456789XXX</con:originalUri><con:assertion type="Simple Contains" name="Contains - errorSection"><con:configuration><token>errorSection</token><ignoreCase>false</ignoreCase><useRegEx>false</useRegEx></con:configuration></con:assertion><con:assertion type="GroovyScriptAssertion" name="Script Assertion -  validateResponse"><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.patientGeneratedDataEvents.size==1
assert json.patientGeneratedDataEvents[0].errorSection.fatalErrors[0].displayMessage=="Request parameter clientName was not provided or was empty."</scriptText></con:configuration></con:assertion><con:credentials><con:selectedAuthProfile>Basic</con:selectedAuthProfile><con:addedBasicAuthenticationTypes>Basic</con:addedBasicAuthenticationTypes><con:authType>Global HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:parameters>
  <con:entry key="_type" value="json"/>
  <con:entry key="collectionType" value="NONVAMEDS"/>
  <con:entry key="filterId" value="PGD_SINGLE_PATIENT_FILTER"/>
  <con:entry key="requestId" value="${=(java.util.UUID.randomUUID().toString()).trim()}      "/>
  <con:entry key="clientName" value=""/>
  <con:entry key="clientRequestInitiationTime" value="${=org.apache.commons.lang.time.DateFormatUtils.ISO_DATETIME_TIME_ZONE_FORMAT.format( new Date() )}"/>
  <con:entry key="resolvedIdentifier" value="${#TestSuite#RESOLVED_IDENTIFIER}"/>
</con:parameters><con:parameterOrder><con:entry>filterId</con:entry><con:entry>nationalId</con:entry><con:entry>requestId</con:entry><con:entry>clientName</con:entry><con:entry>clientRequestInitiationTime</con:entry><con:entry>collectionType</con:entry><con:entry>templateId</con:entry><con:entry>excludeIdentifier</con:entry></con:parameterOrder></con:restRequest></con:config></con:testStep><con:testStep type="restrequest" name="2Exceptions  Missing RequestId-Missing ClientName REST Test Request"><con:settings/><con:config service="FPDS" methodName="readByPatient" resourcePath="/repositories.med.DNS   /fpds/pgd/patient/" xsi:type="con:RestRequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:restRequest name="2Exceptions  Missing RequestId-Missing ClientName REST Test Request" mediaType="application/json"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://${#Project#fpdsServiceHost}:${#Project#fpdsServicePort} 			</con:endpoint><con:request/><con:originalUri>http://IP         /repositories.med.DNS   /fpds/pgd/PGDRead1/PGD_SINGLE_PATIENT_FILTER/123456789XXX</con:originalUri><con:assertion type="Simple Contains" name="Contains - errorSection"><con:configuration><token>errorSection</token><ignoreCase>false</ignoreCase><useRegEx>false</useRegEx></con:configuration></con:assertion><con:assertion type="GroovyScriptAssertion" name="Script Assertion -  validateResponse"><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.patientGeneratedDataEvents.size==1
assert json.patientGeneratedDataEvents[0].errorSection.fatalErrors.size==2
assert json.patientGeneratedDataEvents[0].errorSection.fatalErrors[0].displayMessage=="Request parameter requestId was not provided or was empty."
assert json.patientGeneratedDataEvents[0].errorSection.fatalErrors[1].displayMessage=="Request parameter clientName was not provided or was empty."</scriptText></con:configuration></con:assertion><con:credentials><con:selectedAuthProfile>Basic</con:selectedAuthProfile><con:addedBasicAuthenticationTypes>Basic</con:addedBasicAuthenticationTypes><con:authType>Global HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:parameters>
  <con:entry key="collectionType" value="NONVAMEDS"/>
  <con:entry key="_type" value="json"/>
  <con:entry key="filterId" value="PGD_SINGLE_PATIENT_FILTER"/>
  <con:entry key="requestId" value="      "/>
  <con:entry key="clientName" value=""/>
  <con:entry key="clientRequestInitiationTime" value="${=org.apache.commons.lang.time.DateFormatUtils.ISO_DATETIME_TIME_ZONE_FORMAT.format( new Date() )}"/>
  <con:entry key="resolvedIdentifier" value="${#TestSuite#RESOLVED_IDENTIFIER}"/>
</con:parameters><con:parameterOrder><con:entry>filterId</con:entry><con:entry>nationalId</con:entry><con:entry>requestId</con:entry><con:entry>clientName</con:entry><con:entry>clientRequestInitiationTime</con:entry><con:entry>collectionType</con:entry><con:entry>templateId</con:entry><con:entry>excludeIdentifier</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="Expected Errors Create TestCase" searchProperties="true" id="8138dc46-d26d-48eb-b565-5cb2ec06467b"><con:settings/><con:testStep type="groovy" name="Setup Test Data" id="fb6c9eba-4be0-4d84-8829-a926f2dccbd2"><con:settings/><con:config><script>import java.util.UUID;  
import org.apache.commons.lang.time.DateFormatUtils;
context.CLIENT_INITIATION_TIME = DateFormatUtils.ISO_DATETIME_TIME_ZONE_FORMAT.format( new Date() );
context.REQUEST_ID = (UUID.randomUUID().toString()).trim()
context.UNIQUE_ID=(UUID.randomUUID().toString()).trim()
context.COLLECTION_TYPE='NONVAMEDS'
context.RECORD_UPDATE_TIME = '20140704172217-0600'</script></con:config></con:testStep><con:testStep type="restrequest" name="Missing PatientId Create JMS Test Request" id="a833f651-e7fc-42b2-87ec-eb7b00104ac7"><con:settings/><con:config service="FPDS" methodName="Method 1" resourcePath="/repositories.med.DNS   /fpds/pgd/{templateId}/{filterId}/{identifier}" xsi:type="con:RestRequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:restRequest name="Missing PatientId Create JMS Test Request" mediaType="application/json" postQueryString="false"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>jms://${FPDS_QUEUE_JMS_ENDPOINT}</con:endpoint><con:request>{"nonVaMedicationEvent":{
	"pharmacyPatientId":{	
		"identity": "123456789XXX",	
		"assigningFacility":"200HMP",
		"assigningAuthority":"USVHA"
	},
	"pharmacyPatientName":{
		"prefix":"Ms",
		"given": "Mary",
		"family":"Shelley",
		"middle":"Frank",
		"title":"Author"
	},
   "dosage":"1",
   "schedule":"DAILY",
   "status":"DISCONTINUED",
   "medication":{
         "medicationName": "ADVIL",
         "genericMedicationName": "IBUPROFEN"
    },
   "medicationForm":"CAP/TAB"
  }
}</con:request><con:assertion type="Simple Contains" name="Contains - errorSection"><con:configuration><token>errorSection</token><ignoreCase>false</ignoreCase><useRegEx>false</useRegEx></con:configuration></con:assertion><con:credentials><con:selectedAuthProfile>Basic</con:selectedAuthProfile><con:addedBasicAuthenticationTypes>Basic</con:addedBasicAuthenticationTypes><con:authType>Global HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT" JMSReplyTo=""/><con:jmsPropertyConfig><con:jmsProperties name="UNIQUE_ID" value="${UNIQUE_ID}"/><con:jmsProperties name="PATIENT_IDENTITY" value=""/><con:jmsProperties name="CLIENT_INITIATION_TIME" value="${CLIENT_INITIATION_TIME}"/><con:jmsProperties name="PATIENT_ASSIGNING_FACILITY" value="${#TestSuite#DEFAULT_FACILITY}"/><con:jmsProperties name="CLIENT_NAME" value="${#TestSuite#CLIENT_NAME}"/><con:jmsProperties name="RECORD_UPDATE_TIME" value="${RECORD_UPDATE_TIME}"/><con:jmsProperties name="COLLECTION_TYPE" value="${COLLECTION_TYPE}"/><con:jmsProperties name="PATIENT_ASSIGNING_AUTHORITY" value="${#TestSuite#DEFAULT_AUTHORITY}"/><con:jmsProperties name="REQUEST_ID" value="${REQUEST_ID}"/></con:jmsPropertyConfig><con:parameters>
  <con:entry key="templateId" value=""/>
  <con:entry key="collectionType" value=""/>
  <con:entry key="_type" value="json"/>
  <con:entry key="filterId" value=""/>
  <con:entry key="requestId" value=""/>
  <con:entry key="clientName" value=""/>
  <con:entry key="request" value=""/>
  <con:entry key="resolvedAssigningAuthority" value=""/>
  <con:entry key="identifier" value=""/>
  <con:entry key="resolvedAssigningFacility" value=""/>
</con:parameters><con:parameterOrder><con:entry>templateId</con:entry><con:entry>request</con:entry><con:entry>requestId</con:entry><con:entry>filterId</con:entry><con:entry>identifier</con:entry></con:parameterOrder></con:restRequest></con:config></con:testStep><con:testStep type="restrequest" name="Missing CollectionType Create JMS Test Request" id="67345ee6-2df4-44b7-8729-2f9702ca3ef3"><con:settings/><con:config service="FPDS" methodName="Method 1" resourcePath="/repositories.med.DNS   /fpds/pgd/{templateId}/{filterId}/{identifier}" xsi:type="con:RestRequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:restRequest name="Missing CollectionType Create JMS Test Request" mediaType="application/json" postQueryString="false"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>jms://${FPDS_QUEUE_JMS_ENDPOINT}</con:endpoint><con:request>{"nonVaMedicationEvent":{
	"pharmacyPatientId":{	
		"identity": "123456789XXX",	
		"assigningFacility":"200HMP",
		"assigningAuthority":"USVHA"
	},
	"pharmacyPatientName":{
		"prefix":"Ms",
		"given": "Mary",
		"family":"Shelley",
		"middle":"Frank",
		"title":"Author"
	},
   "dosage":"1",
   "schedule":"DAILY",
   "status":"DISCONTINUED",
   "medication":{
         "medicationName": "ADVIL",
         "genericMedicationName": "IBUPROFEN"
    },
   "medicationForm":"CAP/TAB"
  }
}</con:request><con:assertion type="Simple Contains" name="Contains - errorSection"><con:configuration><token>errorSection</token><ignoreCase>false</ignoreCase><useRegEx>false</useRegEx></con:configuration></con:assertion><con:credentials><con:selectedAuthProfile>Basic</con:selectedAuthProfile><con:addedBasicAuthenticationTypes>Basic</con:addedBasicAuthenticationTypes><con:authType>Global HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT" JMSReplyTo=""/><con:jmsPropertyConfig><con:jmsProperties name="UNIQUE_ID" value="${UNIQUE_ID}"/><con:jmsProperties name="PATIENT_IDENTITY" value="${#TestSuite#PATIENT_IDENTIFIER}"/><con:jmsProperties name="CLIENT_INITIATION_TIME" value="${CLIENT_INITIATION_TIME}"/><con:jmsProperties name="PATIENT_ASSIGNING_FACILITY" value="${#TestSuite#DEFAULT_FACILITY}"/><con:jmsProperties name="CLIENT_NAME" value="${#TestSuite#CLIENT_NAME}"/><con:jmsProperties name="RECORD_UPDATE_TIME" value="${RECORD_UPDATE_TIME}"/><con:jmsProperties name="COLLECTION_TYPE" value=""/><con:jmsProperties name="PATIENT_ASSIGNING_AUTHORITY" value="${#TestSuite#DEFAULT_AUTHORITY}"/><con:jmsProperties name="REQUEST_ID" value="${REQUEST_ID}"/></con:jmsPropertyConfig><con:parameters>
  <con:entry key="templateId" value=""/>
  <con:entry key="collectionType" value=""/>
  <con:entry key="_type" value="json"/>
  <con:entry key="filterId" value=""/>
  <con:entry key="requestId" value=""/>
  <con:entry key="clientName" value=""/>
  <con:entry key="request" value=""/>
  <con:entry key="resolvedAssigningAuthority" value=""/>
  <con:entry key="identifier" value=""/>
  <con:entry key="resolvedAssigningFacility" value=""/>
</con:parameters><con:parameterOrder><con:entry>templateId</con:entry><con:entry>request</con:entry><con:entry>requestId</con:entry><con:entry>filterId</con:entry><con:entry>identifier</con:entry></con:parameterOrder></con:restRequest></con:config></con:testStep><con:testStep type="restrequest" name="Missing RequestId Create JMS Test Request" id="a28a6c61-8216-4b98-903d-956d162ec286"><con:settings/><con:config service="FPDS" methodName="Method 1" resourcePath="/repositories.med.DNS   /fpds/pgd/{templateId}/{filterId}/{identifier}" xsi:type="con:RestRequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:restRequest name="Missing RequestId Create JMS Test Request" mediaType="application/json" postQueryString="false"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>jms://${FPDS_QUEUE_JMS_ENDPOINT}</con:endpoint><con:request>{"nonVaMedicationEvent":{
	"pharmacyPatientId":{	
		"identity": "123456789XXX",	
		"assigningFacility":"200HMP",
		"assigningAuthority":"USVHA"
	},
	"pharmacyPatientName":{
		"prefix":"Ms",
		"given": "Mary",
		"family":"Shelley",
		"middle":"Frank",
		"title":"Author"
	},
   "dosage":"1",
   "schedule":"DAILY",
   "status":"DISCONTINUED",
   "medication":{
         "medicationName": "ADVIL",
         "genericMedicationName": "IBUPROFEN"
    },
   "medicationForm":"CAP/TAB"
  }
}</con:request><con:assertion type="Simple Contains" name="Contains - errorSection"><con:configuration><token>errorSection</token><ignoreCase>false</ignoreCase><useRegEx>false</useRegEx></con:configuration></con:assertion><con:credentials><con:selectedAuthProfile>Basic</con:selectedAuthProfile><con:addedBasicAuthenticationTypes>Basic</con:addedBasicAuthenticationTypes><con:authType>Global HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT" JMSReplyTo=""/><con:jmsPropertyConfig><con:jmsProperties name="UNIQUE_ID" value="${UNIQUE_ID}"/><con:jmsProperties name="PATIENT_IDENTITY" value="${#TestSuite#PATIENT_IDENTIFIER}"/><con:jmsProperties name="CLIENT_INITIATION_TIME" value="${CLIENT_INITIATION_TIME}"/><con:jmsProperties name="PATIENT_ASSIGNING_FACILITY" value="${#TestSuite#DEFAULT_FACILITY}"/><con:jmsProperties name="CLIENT_NAME" value="${#TestSuite#CLIENT_NAME}"/><con:jmsProperties name="RECORD_UPDATE_TIME" value="${RECORD_UPDATE_TIME}"/><con:jmsProperties name="COLLECTION_TYPE" value="${COLLECTION_TYPE}"/><con:jmsProperties name="PATIENT_ASSIGNING_AUTHORITY" value="${#TestSuite#DEFAULT_AUTHORITY}"/><con:jmsProperties name="REQUEST_ID" value=""/></con:jmsPropertyConfig><con:parameters>
  <con:entry key="templateId" value=""/>
  <con:entry key="collectionType" value=""/>
  <con:entry key="_type" value="json"/>
  <con:entry key="filterId" value=""/>
  <con:entry key="requestId" value=""/>
  <con:entry key="clientName" value=""/>
  <con:entry key="request" value=""/>
  <con:entry key="resolvedAssigningAuthority" value=""/>
  <con:entry key="identifier" value=""/>
  <con:entry key="resolvedAssigningFacility" value=""/>
</con:parameters><con:parameterOrder><con:entry>templateId</con:entry><con:entry>request</con:entry><con:entry>requestId</con:entry><con:entry>filterId</con:entry><con:entry>identifier</con:entry></con:parameterOrder></con:restRequest></con:config></con:testStep><con:testStep type="restrequest" name="Missing UniqueId Create JMS Test Request" id="c455ce04-b4fd-42db-9840-ea042b57a1f9"><con:settings/><con:config service="FPDS" methodName="Method 1" resourcePath="/repositories.med.DNS   /fpds/pgd/{templateId}/{filterId}/{identifier}" xsi:type="con:RestRequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:restRequest name="Missing UniqueId Create JMS Test Request" mediaType="application/json" postQueryString="false"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>jms://${FPDS_QUEUE_JMS_ENDPOINT}</con:endpoint><con:request>{"nonVaMedicationEvent":{
	"pharmacyPatientId":{	
		"identity": "123456789XXX",	
		"assigningFacility":"200HMP",
		"assigningAuthority":"USVHA"
	},
	"pharmacyPatientName":{
		"prefix":"Ms",
		"given": "Mary",
		"family":"Shelley",
		"middle":"Frank",
		"title":"Author"
	},
   "dosage":"1",
   "schedule":"DAILY",
   "status":"DISCONTINUED",
   "medication":{
         "medicationName": "ADVIL",
         "genericMedicationName": "IBUPROFEN"
    },
   "medicationForm":"CAP/TAB"
  }
}</con:request><con:assertion type="Simple Contains" name="Contains - errorSection"><con:configuration><token>errorSection</token><ignoreCase>false</ignoreCase><useRegEx>false</useRegEx></con:configuration></con:assertion><con:credentials><con:selectedAuthProfile>Basic</con:selectedAuthProfile><con:addedBasicAuthenticationTypes>Basic</con:addedBasicAuthenticationTypes><con:authType>Global HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT" JMSReplyTo=""/><con:jmsPropertyConfig><con:jmsProperties name="UNIQUE_ID" value=""/><con:jmsProperties name="PATIENT_IDENTITY" value="${#TestSuite#PATIENT_IDENTIFIER}"/><con:jmsProperties name="CLIENT_INITIATION_TIME" value="${CLIENT_INITIATION_TIME}"/><con:jmsProperties name="PATIENT_ASSIGNING_FACILITY" value="${#TestSuite#DEFAULT_FACILITY}"/><con:jmsProperties name="CLIENT_NAME" value="${#TestSuite#CLIENT_NAME}"/><con:jmsProperties name="RECORD_UPDATE_TIME" value="${RECORD_UPDATE_TIME}"/><con:jmsProperties name="COLLECTION_TYPE" value="${COLLECTION_TYPE}"/><con:jmsProperties name="PATIENT_ASSIGNING_AUTHORITY" value="${#TestSuite#DEFAULT_AUTHORITY}"/><con:jmsProperties name="REQUEST_ID" value="${REQUEST_ID}"/></con:jmsPropertyConfig><con:parameters>
  <con:entry key="templateId" value=""/>
  <con:entry key="collectionType" value=""/>
  <con:entry key="_type" value="json"/>
  <con:entry key="filterId" value=""/>
  <con:entry key="requestId" value=""/>
  <con:entry key="clientName" value=""/>
  <con:entry key="request" value=""/>
  <con:entry key="resolvedAssigningAuthority" value=""/>
  <con:entry key="identifier" value=""/>
  <con:entry key="resolvedAssigningFacility" value=""/>
</con:parameters><con:parameterOrder><con:entry>templateId</con:entry><con:entry>request</con:entry><con:entry>requestId</con:entry><con:entry>filterId</con:entry><con:entry>identifier</con:entry></con:parameterOrder></con:restRequest></con:config></con:testStep><con:testStep type="restrequest" name="Missing RecordUpdateTime Create JMS Test Request" id="dba8b6a8-4a57-4c96-a6cf-27a8d88dc421"><con:settings/><con:config service="FPDS" methodName="Method 1" resourcePath="/repositories.med.DNS   /fpds/pgd/{templateId}/{filterId}/{identifier}" xsi:type="con:RestRequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:restRequest name="Missing RecordUpdateTime Create JMS Test Request" mediaType="application/json" postQueryString="false"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>jms://${FPDS_QUEUE_JMS_ENDPOINT}</con:endpoint><con:request>{"nonVaMedicationEvent":{
	"pharmacyPatientId":{	
		"identity": "123456789XXX",	
		"assigningFacility":"200HMP",
		"assigningAuthority":"USVHA"
	},
	"pharmacyPatientName":{
		"prefix":"Ms",
		"given": "Mary",
		"family":"Shelley",
		"middle":"Frank",
		"title":"Author"
	},
   "dosage":"1",
   "schedule":"DAILY",
   "status":"DISCONTINUED",
   "medication":{
         "medicationName": "ADVIL",
         "genericMedicationName": "IBUPROFEN"
    },
   "medicationForm":"CAP/TAB"
  }
}</con:request><con:assertion type="Simple Contains" name="Contains - errorSection"><con:configuration><token>errorSection</token><ignoreCase>false</ignoreCase><useRegEx>false</useRegEx></con:configuration></con:assertion><con:credentials><con:selectedAuthProfile>Basic</con:selectedAuthProfile><con:addedBasicAuthenticationTypes>Basic</con:addedBasicAuthenticationTypes><con:authType>Global HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT" JMSReplyTo=""/><con:jmsPropertyConfig><con:jmsProperties name="UNIQUE_ID" value="${UNIQUE_ID}"/><con:jmsProperties name="PATIENT_IDENTITY" value="${#TestSuite#PATIENT_IDENTIFIER}"/><con:jmsProperties name="CLIENT_INITIATION_TIME" value="${CLIENT_INITIATION_TIME}"/><con:jmsProperties name="PATIENT_ASSIGNING_FACILITY" value="${#TestSuite#DEFAULT_FACILITY}"/><con:jmsProperties name="CLIENT_NAME" value="${#TestSuite#CLIENT_NAME}"/><con:jmsProperties name="RECORD_UPDATE_TIME" value=""/><con:jmsProperties name="COLLECTION_TYPE" value="${COLLECTION_TYPE}"/><con:jmsProperties name="PATIENT_ASSIGNING_AUTHORITY" value="${#TestSuite#DEFAULT_AUTHORITY}"/><con:jmsProperties name="REQUEST_ID" value="${REQUEST_ID}"/></con:jmsPropertyConfig><con:parameters>
  <con:entry key="templateId" value=""/>
  <con:entry key="collectionType" value=""/>
  <con:entry key="_type" value="json"/>
  <con:entry key="filterId" value=""/>
  <con:entry key="requestId" value=""/>
  <con:entry key="clientName" value=""/>
  <con:entry key="request" value=""/>
  <con:entry key="resolvedAssigningAuthority" value=""/>
  <con:entry key="identifier" value=""/>
  <con:entry key="resolvedAssigningFacility" value=""/>
</con:parameters><con:parameterOrder><con:entry>templateId</con:entry><con:entry>request</con:entry><con:entry>requestId</con:entry><con:entry>filterId</con:entry><con:entry>identifier</con:entry></con:parameterOrder></con:restRequest></con:config></con:testStep><con:testStep type="restrequest" name="Missing JSON Content Create JMS Test Request" id="e60c647e-e9f8-41a0-b408-7affdf2b0a24"><con:settings/><con:config service="FPDS" methodName="Method 1" resourcePath="/repositories.med.DNS   /fpds/pgd/{templateId}/{filterId}/{identifier}" xsi:type="con:RestRequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:restRequest name="Missing JSON Content Create JMS Test Request" mediaType="application/json" postQueryString="false"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>jms://${FPDS_QUEUE_JMS_ENDPOINT}</con:endpoint><con:request/><con:assertion type="Simple Contains" name="Contains - errorSection"><con:configuration><token>errorSection</token><ignoreCase>false</ignoreCase><useRegEx>false</useRegEx></con:configuration></con:assertion><con:credentials><con:selectedAuthProfile>Basic</con:selectedAuthProfile><con:addedBasicAuthenticationTypes>Basic</con:addedBasicAuthenticationTypes><con:authType>Global HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT" JMSReplyTo=""/><con:jmsPropertyConfig><con:jmsProperties name="UNIQUE_ID" value="${UNIQUE_ID}"/><con:jmsProperties name="PATIENT_IDENTITY" value="${#TestSuite#PATIENT_IDENTIFIER}"/><con:jmsProperties name="CLIENT_INITIATION_TIME" value="${CLIENT_INITIATION_TIME}"/><con:jmsProperties name="PATIENT_ASSIGNING_FACILITY" value="${#TestSuite#DEFAULT_FACILITY}"/><con:jmsProperties name="CLIENT_NAME" value="${#TestSuite#CLIENT_NAME}"/><con:jmsProperties name="RECORD_UPDATE_TIME" value="${RECORD_UPDATE_TIME}"/><con:jmsProperties name="COLLECTION_TYPE" value="${COLLECTION_TYPE}"/><con:jmsProperties name="PATIENT_ASSIGNING_AUTHORITY" value="${#TestSuite#DEFAULT_AUTHORITY}"/><con:jmsProperties name="REQUEST_ID" value="${REQUEST_ID}"/></con:jmsPropertyConfig><con:parameters>
  <con:entry key="templateId" value=""/>
  <con:entry key="collectionType" value=""/>
  <con:entry key="_type" value="json"/>
  <con:entry key="filterId" value=""/>
  <con:entry key="requestId" value=""/>
  <con:entry key="clientName" value=""/>
  <con:entry key="request" value=""/>
  <con:entry key="resolvedAssigningAuthority" value=""/>
  <con:entry key="identifier" value=""/>
  <con:entry key="resolvedAssigningFacility" value=""/>
</con:parameters><con:parameterOrder><con:entry>templateId</con:entry><con:entry>request</con:entry><con:entry>requestId</con:entry><con:entry>filterId</con:entry><con:entry>identifier</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="Create Default Facility-Authority TestCase" searchProperties="true" id="adedf348-874d-4a17-849d-a2f3bdba170b"><con:settings/><con:testStep type="groovy" name="Setup Test Data"><con:settings/><con:config><script>import java.util.UUID;  
import org.apache.commons.lang.time.DateFormatUtils;
context.CLIENT_INITIATION_TIME = DateFormatUtils.ISO_DATETIME_TIME_ZONE_FORMAT.format( new Date() );
context.REQUEST_ID = (UUID.randomUUID().toString()).trim()
context.UNIQUE_ID_BOTH=(UUID.randomUUID().toString()).trim()
context.UNIQUE_ID_FACILITY=(UUID.randomUUID().toString()).trim()
context.UNIQUE_ID_AUTHORITY=(UUID.randomUUID().toString()).trim()
context.COLLECTION_TYPE='NONVAMEDS'
context.RECORD_UPDATE_TIME = '20140704172217-0600'

testRunner.testCase.setPropertyValue( "UniqueIdFacility",context.UNIQUE_ID_FACILITY)
testRunner.testCase.setPropertyValue( "UniqueIdAuthority",context.UNIQUE_ID_AUTHORITY)
testRunner.testCase.setPropertyValue( "UniqueIdBoth",context.UNIQUE_ID_BOTH)</script></con:config></con:testStep><con:testStep type="restrequest" name="Missing AssigningFacility Create JMS Test Request"><con:settings/><con:config service="FPDS" methodName="Method 1" resourcePath="/repositories.med.DNS   /fpds/pgd/{templateId}/{filterId}/{identifier}" xsi:type="con:RestRequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:restRequest name="Missing AssigningFacility Create JMS Test Request" mediaType="application/json" postQueryString="false"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>jms://${FPDS_QUEUE_JMS_ENDPOINT}</con:endpoint><con:request>{"nonVaMedicationEvent":{
	"pharmacyPatientId":{	
		"identity": "123456789XXX",	
		"assigningFacility":"200HMP",
		"assigningAuthority":"USVHA"
	},
	"pharmacyPatientName":{
		"prefix":"Ms",
		"given": "Mary",
		"family":"Shelley",
		"middle":"Frank",
		"title":"Author"
	},
   "dosage":"1",
   "schedule":"DAILY",
   "status":"DISCONTINUED",
   "medication":{
         "medicationName": "ADVIL",
         "genericMedicationName": "IBUPROFEN"
    },
   "medicationForm":"CAP/TAB"
  }
}</con:request><con:assertion type="Simple NotContains" name="Not Contains - checkForErrors"><con:configuration><token>errorSection</token><ignoreCase>false</ignoreCase><useRegEx>false</useRegEx></con:configuration></con:assertion><con:credentials><con:selectedAuthProfile>Basic</con:selectedAuthProfile><con:addedBasicAuthenticationTypes>Basic</con:addedBasicAuthenticationTypes><con:authType>Global HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT" JMSReplyTo=""/><con:jmsPropertyConfig><con:jmsProperties name="UNIQUE_ID" value="${UNIQUE_ID_FACILITY}"/><con:jmsProperties name="PATIENT_IDENTITY" value="${#TestSuite#PATIENT_IDENTIFIER}"/><con:jmsProperties name="CLIENT_INITIATION_TIME" value="${CLIENT_INITIATION_TIME}"/><con:jmsProperties name="PATIENT_ASSIGNING_FACILITY" value=""/><con:jmsProperties name="CLIENT_NAME" value="${#TestSuite#CLIENT_NAME}"/><con:jmsProperties name="RECORD_UPDATE_TIME" value="${RECORD_UPDATE_TIME}"/><con:jmsProperties name="COLLECTION_TYPE" value="${COLLECTION_TYPE}"/><con:jmsProperties name="PATIENT_ASSIGNING_AUTHORITY" value="${#TestSuite#DEFAULT_AUTHORITY}"/><con:jmsProperties name="REQUEST_ID" value="${REQUEST_ID}"/></con:jmsPropertyConfig><con:parameters>
  <con:entry key="templateId" value=""/>
  <con:entry key="collectionType" value=""/>
  <con:entry key="_type" value="json"/>
  <con:entry key="filterId" value=""/>
  <con:entry key="requestId" value=""/>
  <con:entry key="clientName" value=""/>
  <con:entry key="request" value=""/>
  <con:entry key="resolvedAssigningAuthority" value=""/>
  <con:entry key="identifier" value=""/>
  <con:entry key="resolvedAssigningFacility" value=""/>
</con:parameters><con:parameterOrder><con:entry>templateId</con:entry><con:entry>request</con:entry><con:entry>requestId</con:entry><con:entry>filterId</con:entry><con:entry>identifier</con:entry></con:parameterOrder></con:restRequest></con:config></con:testStep><con:testStep type="restrequest" name="Missing AssigningAuthority Create JMS Test Request"><con:settings/><con:config service="FPDS" methodName="Method 1" resourcePath="/repositories.med.DNS   /fpds/pgd/{templateId}/{filterId}/{identifier}" xsi:type="con:RestRequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:restRequest name="Missing AssigningAuthority Create JMS Test Request" mediaType="application/json" postQueryString="false"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>jms://${FPDS_QUEUE_JMS_ENDPOINT}</con:endpoint><con:request>{"nonVaMedicationEvent":{
	"pharmacyPatientId":{	
		"identity": "123456789XXX",	
		"assigningFacility":"200HMP",
		"assigningAuthority":"USVHA"
	},
	"pharmacyPatientName":{
		"prefix":"Ms",
		"given": "Mary",
		"family":"Shelley",
		"middle":"Frank",
		"title":"Author"
	},
   "dosage":"1",
   "schedule":"DAILY",
   "status":"DISCONTINUED",
   "medication":{
         "medicationName": "ADVIL",
         "genericMedicationName": "IBUPROFEN"
    },
   "medicationForm":"CAP/TAB"
  }
}</con:request><con:assertion type="Simple NotContains" name="Not Contains - checkForErrors"><con:configuration><token>errorSection</token><ignoreCase>false</ignoreCase><useRegEx>false</useRegEx></con:configuration></con:assertion><con:credentials><con:selectedAuthProfile>Basic</con:selectedAuthProfile><con:addedBasicAuthenticationTypes>Basic</con:addedBasicAuthenticationTypes><con:authType>Global HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT" JMSReplyTo=""/><con:jmsPropertyConfig><con:jmsProperties name="UNIQUE_ID" value="${UNIQUE_ID_AUTHORITY}"/><con:jmsProperties name="PATIENT_IDENTITY" value="${#TestSuite#PATIENT_IDENTIFIER}"/><con:jmsProperties name="CLIENT_INITIATION_TIME" value="${CLIENT_INITIATION_TIME}"/><con:jmsProperties name="PATIENT_ASSIGNING_FACILITY" value="${PATIENT_ASSIGNING_FACILITY}"/><con:jmsProperties name="CLIENT_NAME" value="${#TestSuite#CLIENT_NAME}"/><con:jmsProperties name="RECORD_UPDATE_TIME" value="${RECORD_UPDATE_TIME}"/><con:jmsProperties name="COLLECTION_TYPE" value="${COLLECTION_TYPE}"/><con:jmsProperties name="PATIENT_ASSIGNING_AUTHORITY" value=""/><con:jmsProperties name="REQUEST_ID" value="${REQUEST_ID}"/></con:jmsPropertyConfig><con:parameters>
  <con:entry key="templateId" value=""/>
  <con:entry key="collectionType" value=""/>
  <con:entry key="_type" value="json"/>
  <con:entry key="filterId" value=""/>
  <con:entry key="requestId" value=""/>
  <con:entry key="clientName" value=""/>
  <con:entry key="request" value=""/>
  <con:entry key="resolvedAssigningAuthority" value=""/>
  <con:entry key="identifier" value=""/>
  <con:entry key="resolvedAssigningFacility" value=""/>
</con:parameters><con:parameterOrder><con:entry>templateId</con:entry><con:entry>request</con:entry><con:entry>requestId</con:entry><con:entry>filterId</con:entry><con:entry>identifier</con:entry></con:parameterOrder></con:restRequest></con:config></con:testStep><con:testStep type="restrequest" name="Missing AssigningFacilityAndAuthority Create JMS Test Request"><con:settings/><con:config service="FPDS" methodName="Method 1" resourcePath="/repositories.med.DNS   /fpds/pgd/{templateId}/{filterId}/{identifier}" xsi:type="con:RestRequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:restRequest name="Missing AssigningFacilityAndAuthority Create JMS Test Request" mediaType="application/json" postQueryString="false"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>jms://${FPDS_QUEUE_JMS_ENDPOINT}</con:endpoint><con:request>{"nonVaMedicationEvent":{
	"pharmacyPatientId":{	
		"identity": "123456789XXX",	
		"assigningFacility":"200HMP",
		"assigningAuthority":"USVHA"
	},
	"pharmacyPatientName":{
		"prefix":"Ms",
		"given": "Mary",
		"family":"Shelley",
		"middle":"Frank",
		"title":"Author"
	},
   "dosage":"1",
   "schedule":"DAILY",
   "status":"DISCONTINUED",
   "medication":{
         "medicationName": "ADVIL",
         "genericMedicationName": "IBUPROFEN"
    },
   "medicationForm":"CAP/TAB"
  }
}</con:request><con:assertion type="Simple NotContains" name="Not Contains - checkForErrors"><con:configuration><token>errorSection</token><ignoreCase>false</ignoreCase><useRegEx>false</useRegEx></con:configuration></con:assertion><con:credentials><con:selectedAuthProfile>Basic</con:selectedAuthProfile><con:addedBasicAuthenticationTypes>Basic</con:addedBasicAuthenticationTypes><con:authType>Global HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT" JMSReplyTo=""/><con:jmsPropertyConfig><con:jmsProperties name="UNIQUE_ID" value="${UNIQUE_ID_BOTH}"/><con:jmsProperties name="PATIENT_IDENTITY" value="${#TestSuite#PATIENT_IDENTIFIER}"/><con:jmsProperties name="CLIENT_INITIATION_TIME" value="${CLIENT_INITIATION_TIME}"/><con:jmsProperties name="PATIENT_ASSIGNING_FACILITY" value=""/><con:jmsProperties name="CLIENT_NAME" value="${#TestSuite#CLIENT_NAME}"/><con:jmsProperties name="RECORD_UPDATE_TIME" value="${RECORD_UPDATE_TIME}"/><con:jmsProperties name="COLLECTION_TYPE" value="${COLLECTION_TYPE}"/><con:jmsProperties name="PATIENT_ASSIGNING_AUTHORITY" value=""/><con:jmsProperties name="REQUEST_ID" value="${REQUEST_ID}"/></con:jmsPropertyConfig><con:parameters>
  <con:entry key="templateId" value=""/>
  <con:entry key="collectionType" value=""/>
  <con:entry key="_type" value="json"/>
  <con:entry key="filterId" value=""/>
  <con:entry key="requestId" value=""/>
  <con:entry key="clientName" value=""/>
  <con:entry key="request" value=""/>
  <con:entry key="resolvedAssigningAuthority" value=""/>
  <con:entry key="identifier" value=""/>
  <con:entry key="resolvedAssigningFacility" value=""/>
</con:parameters><con:parameterOrder><con:entry>templateId</con:entry><con:entry>request</con:entry><con:entry>requestId</con:entry><con:entry>filterId</con:entry><con:entry>identifier</con:entry></con:parameterOrder></con:restRequest></con:config></con:testStep><con:properties><con:property><con:name>UniqueIdFacility</con:name><con:value>6fad990e-31c3-4c17-bb64-194f54b49937</con:value></con:property><con:property><con:name>UniqueIdAuthority</con:name><con:value>f14b5c53-624b-424c-8d49-7281c415ee8a</con:value></con:property><con:property><con:name>UniqueIdBoth</con:name><con:value>a58f3816-9f92-4b37-b7b5-526d2462fe01</con:value></con:property></con:properties></con:testCase><con:testCase failOnError="true" failTestCaseOnErrors="true" keepSession="false" maxResults="0" name="Create Missing ClientName and InitiationTime TestCase" searchProperties="true" id="01251303-f67f-4608-9e5a-71138c615687"><con:settings/><con:testStep type="groovy" name="Setup Test Data"><con:settings/><con:config><script>import java.util.UUID;  
import org.apache.commons.lang.time.DateFormatUtils;
context.CLIENT_INITIATION_TIME = DateFormatUtils.ISO_DATETIME_TIME_ZONE_FORMAT.format( new Date() );
context.REQUEST_ID = (UUID.randomUUID().toString()).trim()
context.UNIQUE_ID_BOTH=(UUID.randomUUID().toString()).trim()
context.UNIQUE_ID_NAME=(UUID.randomUUID().toString()).trim()
context.UNIQUE_ID_TIME=(UUID.randomUUID().toString()).trim()
context.COLLECTION_TYPE='NONVAMEDS'
context.RECORD_UPDATE_TIME = '20140704172217-0600'

testRunner.testCase.setPropertyValue( "UniqueIdFacility",context.UNIQUE_ID_FACILITY)
testRunner.testCase.setPropertyValue( "UniqueIdAuthority",context.UNIQUE_ID_AUTHORITY)
testRunner.testCase.setPropertyValue( "UniqueIdBoth",context.UNIQUE_ID_BOTH)</script></con:config></con:testStep><con:testStep type="restrequest" name="Missing ClientName Create JMS Test Request"><con:settings/><con:config service="FPDS" methodName="Method 1" resourcePath="/repositories.med.DNS   /fpds/pgd/{templateId}/{filterId}/{identifier}" xsi:type="con:RestRequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:restRequest name="Missing ClientName Create JMS Test Request" mediaType="application/json" postQueryString="false"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>jms://${FPDS_QUEUE_JMS_ENDPOINT}</con:endpoint><con:request>{"nonVaMedicationEvent":{
	"pharmacyPatientId":{	
		"identity": "123456789XXX",	
		"assigningFacility":"200HMP",
		"assigningAuthority":"USVHA"
	},
	"pharmacyPatientName":{
		"prefix":"Ms",
		"given": "Mary",
		"family":"Shelley",
		"middle":"Frank",
		"title":"Author"
	},
   "dosage":"1",
   "schedule":"DAILY",
   "status":"DISCONTINUED",
   "medication":{
         "medicationName": "ADVIL",
         "genericMedicationName": "IBUPROFEN"
    },
   "medicationForm":"CAP/TAB"
  }
}</con:request><con:assertion type="Simple NotContains" name="Not Contains - checkForErrors"><con:configuration><token>errorSection</token><ignoreCase>false</ignoreCase><useRegEx>false</useRegEx></con:configuration></con:assertion><con:credentials><con:selectedAuthProfile>Basic</con:selectedAuthProfile><con:addedBasicAuthenticationTypes>Basic</con:addedBasicAuthenticationTypes><con:authType>Global HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT" JMSReplyTo=""/><con:jmsPropertyConfig><con:jmsProperties name="UNIQUE_ID" value="${UNIQUE_ID_NAME}"/><con:jmsProperties name="PATIENT_IDENTITY" value="${#TestSuite#PATIENT_IDENTIFIER}"/><con:jmsProperties name="CLIENT_INITIATION_TIME" value="${CLIENT_INITIATION_TIME}"/><con:jmsProperties name="PATIENT_ASSIGNING_FACILITY" value="${PATIENT_ASSIGNING_FACILITY}"/><con:jmsProperties name="CLIENT_NAME" value=""/><con:jmsProperties name="RECORD_UPDATE_TIME" value="${RECORD_UPDATE_TIME}"/><con:jmsProperties name="COLLECTION_TYPE" value="${COLLECTION_TYPE}"/><con:jmsProperties name="PATIENT_ASSIGNING_AUTHORITY" value="${#TestSuite#DEFAULT_AUTHORITY}"/><con:jmsProperties name="REQUEST_ID" value="${REQUEST_ID}"/></con:jmsPropertyConfig><con:parameters>
  <con:entry key="templateId" value=""/>
  <con:entry key="collectionType" value=""/>
  <con:entry key="_type" value="json"/>
  <con:entry key="filterId" value=""/>
  <con:entry key="requestId" value=""/>
  <con:entry key="clientName" value=""/>
  <con:entry key="request" value=""/>
  <con:entry key="resolvedAssigningAuthority" value=""/>
  <con:entry key="identifier" value=""/>
  <con:entry key="resolvedAssigningFacility" value=""/>
</con:parameters><con:parameterOrder><con:entry>templateId</con:entry><con:entry>request</con:entry><con:entry>requestId</con:entry><con:entry>filterId</con:entry><con:entry>identifier</con:entry></con:parameterOrder></con:restRequest></con:config></con:testStep><con:testStep type="restrequest" name="Missing ClientInitiationTime Create JMS Test Request"><con:settings/><con:config service="FPDS" methodName="Method 1" resourcePath="/repositories.med.DNS   /fpds/pgd/{templateId}/{filterId}/{identifier}" xsi:type="con:RestRequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:restRequest name="Missing ClientInitiationTime Create JMS Test Request" mediaType="application/json" postQueryString="false"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>jms://${FPDS_QUEUE_JMS_ENDPOINT}</con:endpoint><con:request>{"nonVaMedicationEvent":{
	"pharmacyPatientId":{	
		"identity": "123456789XXX",	
		"assigningFacility":"200HMP",
		"assigningAuthority":"USVHA"
	},
	"pharmacyPatientName":{
		"prefix":"Ms",
		"given": "Mary",
		"family":"Shelley",
		"middle":"Frank",
		"title":"Author"
	},
   "dosage":"1",
   "schedule":"DAILY",
   "status":"DISCONTINUED",
   "medication":{
         "medicationName": "ADVIL",
         "genericMedicationName": "IBUPROFEN"
    },
   "medicationForm":"CAP/TAB"
  }
}</con:request><con:assertion type="Simple NotContains" name="Not Contains - checkForErrors"><con:configuration><token>errorSection</token><ignoreCase>false</ignoreCase><useRegEx>false</useRegEx></con:configuration></con:assertion><con:credentials><con:selectedAuthProfile>Basic</con:selectedAuthProfile><con:addedBasicAuthenticationTypes>Basic</con:addedBasicAuthenticationTypes><con:authType>Global HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT" JMSReplyTo=""/><con:jmsPropertyConfig><con:jmsProperties name="UNIQUE_ID" value="${UNIQUE_ID_TIME}"/><con:jmsProperties name="PATIENT_IDENTITY" value="${#TestSuite#PATIENT_IDENTIFIER}"/><con:jmsProperties name="CLIENT_INITIATION_TIME" value=""/><con:jmsProperties name="PATIENT_ASSIGNING_FACILITY" value="${PATIENT_ASSIGNING_FACILITY}"/><con:jmsProperties name="CLIENT_NAME" value="${#TestSuite#CLIENT_NAME}"/><con:jmsProperties name="RECORD_UPDATE_TIME" value="${RECORD_UPDATE_TIME}"/><con:jmsProperties name="COLLECTION_TYPE" value="${COLLECTION_TYPE}"/><con:jmsProperties name="PATIENT_ASSIGNING_AUTHORITY" value="${#TestSuite#DEFAULT_AUTHORITY}"/><con:jmsProperties name="REQUEST_ID" value="${REQUEST_ID}"/></con:jmsPropertyConfig><con:parameters>
  <con:entry key="templateId" value=""/>
  <con:entry key="collectionType" value=""/>
  <con:entry key="_type" value="json"/>
  <con:entry key="filterId" value=""/>
  <con:entry key="requestId" value=""/>
  <con:entry key="clientName" value=""/>
  <con:entry key="request" value=""/>
  <con:entry key="resolvedAssigningAuthority" value=""/>
  <con:entry key="identifier" value=""/>
  <con:entry key="resolvedAssigningFacility" value=""/>
</con:parameters><con:parameterOrder><con:entry>templateId</con:entry><con:entry>request</con:entry><con:entry>requestId</con:entry><con:entry>filterId</con:entry><con:entry>identifier</con:entry></con:parameterOrder></con:restRequest></con:config></con:testStep><con:properties><con:property><con:name>UniqueIdFacility</con:name><con:value xsi:nil="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/></con:property><con:property><con:name>UniqueIdAuthority</con:name><con:value xsi:nil="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/></con:property><con:property><con:name>UniqueIdBoth</con:name><con:value>2d04721f-1b82-431b-aa39-70f619042573</con:value></con:property></con:properties></con:testCase><con:testCase failOnError="true" failTestCaseOnErrors="true" keepSession="false" maxResults="0" name="Duplicate Record Create TestCase" searchProperties="true" id="d7ff4cdf-77cb-4d0f-868e-f55f720d9950"><con:settings/><con:testStep type="groovy" name="Setup Test Data"><con:settings/><con:config><script>import java.util.UUID;  
import org.apache.commons.lang.time.DateFormatUtils;
context.CLIENT_INITIATION_TIME = DateFormatUtils.ISO_DATETIME_TIME_ZONE_FORMAT.format( new Date() );
context.REQUEST_ID = (UUID.randomUUID().toString()).trim()
context.UNIQUE_ID=(UUID.randomUUID().toString()).trim()
context.COLLECTION_TYPE='NONVAMEDS'
context.RECORD_UPDATE_TIME = '20140704172217-0600'
context.RECORD_UPDATE_TIME_NEW = '201407011093015-0600'</script></con:config></con:testStep><con:testStep type="restrequest" name="First Original Record Create JMS Test Request"><con:settings/><con:config service="FPDS" methodName="Method 1" resourcePath="/repositories.med.DNS   /fpds/pgd/{templateId}/{filterId}/{identifier}" xsi:type="con:RestRequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:restRequest name="First Original Record Create JMS Test Request" mediaType="application/json" postQueryString="false"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>jms://${FPDS_QUEUE_JMS_ENDPOINT}</con:endpoint><con:request>{"nonVaMedicationEvent":{
	"pharmacyPatientId":{	
		"identity": "123456789XXX",	
		"assigningFacility":"200HMP",
		"assigningAuthority":"USVHA"
	},
	"pharmacyPatientName":{
		"prefix":"Ms",
		"given": "Mary",
		"family":"Shelley",
		"middle":"Frank",
		"title":"Author"
	},
   "dosage":"1",
   "schedule":"DAILY",
   "status":"DISCONTINUED",
   "medication":{
         "medicationName": "ADVIL",
         "genericMedicationName": "IBUPROFEN"
    },
   "medicationForm":"CAP/TAB"
  }
}</con:request><con:assertion type="Simple NotContains" name="Not Contains - checkForErrors"><con:configuration><token>errorSection</token><ignoreCase>false</ignoreCase><useRegEx>false</useRegEx></con:configuration></con:assertion><con:credentials><con:selectedAuthProfile>Basic</con:selectedAuthProfile><con:addedBasicAuthenticationTypes>Basic</con:addedBasicAuthenticationTypes><con:authType>Global HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT" JMSReplyTo=""/><con:jmsPropertyConfig><con:jmsProperties name="UNIQUE_ID" value="${UNIQUE_ID}"/><con:jmsProperties name="PATIENT_IDENTITY" value="${#TestSuite#PATIENT_IDENTIFIER}"/><con:jmsProperties name="CLIENT_INITIATION_TIME" value="${CLIENT_INITIATION_TIME}"/><con:jmsProperties name="PATIENT_ASSIGNING_FACILITY" value="${#TestSuite#DEFAULT_FACILITY}"/><con:jmsProperties name="CLIENT_NAME" value="${#TestSuite#CLIENT_NAME}"/><con:jmsProperties name="RECORD_UPDATE_TIME" value="${RECORD_UPDATE_TIME}"/><con:jmsProperties name="COLLECTION_TYPE" value="${COLLECTION_TYPE}"/><con:jmsProperties name="PATIENT_ASSIGNING_AUTHORITY" value="${#TestSuite#DEFAULT_AUTHORITY}"/><con:jmsProperties name="REQUEST_ID" value="${REQUEST_ID}"/></con:jmsPropertyConfig><con:parameters>
  <con:entry key="templateId" value=""/>
  <con:entry key="collectionType" value=""/>
  <con:entry key="_type" value="json"/>
  <con:entry key="filterId" value=""/>
  <con:entry key="requestId" value=""/>
  <con:entry key="clientName" value=""/>
  <con:entry key="request" value=""/>
  <con:entry key="resolvedAssigningAuthority" value=""/>
  <con:entry key="identifier" value=""/>
  <con:entry key="resolvedAssigningFacility" value=""/>
</con:parameters><con:parameterOrder><con:entry>templateId</con:entry><con:entry>request</con:entry><con:entry>requestId</con:entry><con:entry>filterId</con:entry><con:entry>identifier</con:entry></con:parameterOrder></con:restRequest></con:config></con:testStep><con:testStep type="restrequest" name="Duplicate Record Create JMS Test Request"><con:settings/><con:config service="FPDS" methodName="Method 1" resourcePath="/repositories.med.DNS   /fpds/pgd/{templateId}/{filterId}/{identifier}" xsi:type="con:RestRequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:restRequest name="Duplicate Record Create JMS Test Request" mediaType="application/json" postQueryString="false"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>jms://${FPDS_QUEUE_JMS_ENDPOINT}</con:endpoint><con:request>{"nonVaMedicationEvent":{
	"pharmacyPatientId":{	
		"identity": "123456789XXX",	
		"assigningFacility":"200HMP",
		"assigningAuthority":"USVHA"
	},
	"pharmacyPatientName":{
		"prefix":"Ms",
		"given": "Mary",
		"family":"Shelley",
		"middle":"Frank",
		"title":"Author"
	},
   "dosage":"1",
   "schedule":"DAILY",
   "status":"DISCONTINUED",
   "medication":{
         "medicationName": "ADVIL",
         "genericMedicationName": "IBUPROFEN"
    },
   "medicationForm":"CAP/TAB"
  }
}</con:request><con:assertion type="Simple Contains" name="Contains - errorSection"><con:configuration><token>errorSection</token><ignoreCase>false</ignoreCase><useRegEx>false</useRegEx></con:configuration></con:assertion><con:assertion type="Simple Contains" name="Contains - ConstraintViolation"><con:configuration><token>HDRII_CONSTRAINT_VIOLATED</token><ignoreCase>false</ignoreCase><useRegEx>false</useRegEx></con:configuration></con:assertion><con:credentials><con:selectedAuthProfile>Basic</con:selectedAuthProfile><con:addedBasicAuthenticationTypes>Basic</con:addedBasicAuthenticationTypes><con:authType>Global HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT" JMSReplyTo=""/><con:jmsPropertyConfig><con:jmsProperties name="UNIQUE_ID" value="${UNIQUE_ID}"/><con:jmsProperties name="PATIENT_IDENTITY" value="${#TestSuite#PATIENT_IDENTIFIER}"/><con:jmsProperties name="CLIENT_INITIATION_TIME" value="${CLIENT_INITIATION_TIME}"/><con:jmsProperties name="PATIENT_ASSIGNING_FACILITY" value="${#TestSuite#DEFAULT_FACILITY}"/><con:jmsProperties name="CLIENT_NAME" value="${#TestSuite#CLIENT_NAME}"/><con:jmsProperties name="RECORD_UPDATE_TIME" value="${RECORD_UPDATE_TIME}"/><con:jmsProperties name="COLLECTION_TYPE" value="${COLLECTION_TYPE}"/><con:jmsProperties name="PATIENT_ASSIGNING_AUTHORITY" value="${#TestSuite#DEFAULT_AUTHORITY}"/><con:jmsProperties name="REQUEST_ID" value="${REQUEST_ID}"/></con:jmsPropertyConfig><con:parameters>
  <con:entry key="templateId" value=""/>
  <con:entry key="collectionType" value=""/>
  <con:entry key="_type" value="json"/>
  <con:entry key="filterId" value=""/>
  <con:entry key="requestId" value=""/>
  <con:entry key="clientName" value=""/>
  <con:entry key="request" value=""/>
  <con:entry key="resolvedAssigningAuthority" value=""/>
  <con:entry key="identifier" value=""/>
  <con:entry key="resolvedAssigningFacility" value=""/>
</con:parameters><con:parameterOrder><con:entry>templateId</con:entry><con:entry>request</con:entry><con:entry>requestId</con:entry><con:entry>filterId</con:entry><con:entry>identifier</con:entry></con:parameterOrder></con:restRequest></con:config></con:testStep><con:properties/></con:testCase><con:properties><con:property><con:name>PATIENT_IDENTIFIER</con:name><con:value>123456789XXX</con:value></con:property><con:property><con:name>DEFAULT_FACILITY</con:name><con:value>200HMP</con:value></con:property><con:property><con:name>DEFAULT_AUTHORITY</con:name><con:value>USVHA</con:value></con:property><con:property><con:name>CLIENT_NAME</con:name><con:value>HMPPGD</con:value></con:property><con:property><con:name>TABLE_NAME</con:name><con:value>PGD</con:value></con:property><con:property><con:name>RESOLVED_IDENTIFIER</con:name><con:value>123456789XXX-200HMP-USVHA</con:value></con:property><con:property><con:name>EXCLUDE_IDENTIFIER</con:name><con:value>666-USVHA</con:value></con:property><con:property><con:name>UniqueIdentifier</con:name><con:value>d1ef029f-c8d3-468a-b02e-4437e51fa6b3</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>