<?xml version="1.0" encoding="UTF-8"?>
<con:soapui-project activeEnvironment="Default" name="HDR-3.4-VLER-DBQ" resourceRoot="" soapui-version="4.5.1" abortOnError="false" runType="SEQUENTIAL" 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:WsdlInterface" wsaVersion="NONE" name="ClinicalDataServiceSynchronousInterfaceHttpBinding" type="wsdl" bindingName="{http://client.cds.URL       }ClinicalDataServiceSynchronousInterfaceHttpBinding" soapVersion="1_1" anonymous="optional" definition="http://IP              /cds-wsclient/cds-service?wsdl" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:settings/><con:definitionCache type="TEXT" rootPart="http://IP              /cds-wsclient/cds-service?wsdl"><con:part><con:url>http://IP              /cds-wsclient/cds-service?wsdl</con:url><con:content><![CDATA[<wsdl:definitions targetNamespace="http://client.cds.URL       " xmlns:soapenc12="http://www.w3.org/2003/05/soap-encoding" xmlns:tns="http://client.cds.URL       " xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap11="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soapenc11="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <wsdl:message name="updateClinicalDataResponse">
    <wsdl:part name="out" type="xsd:string"></wsdl:part>
  </wsdl:message>
  <wsdl:message name="createClinicalDataResponse">
    <wsdl:part name="out" type="xsd:string"></wsdl:part>
  </wsdl:message>
  <wsdl:message name="appendClinicalDataRequest">
    <wsdl:part name="in0" type="xsd:string"></wsdl:part>
    <wsdl:part name="in1" type="xsd:string"></wsdl:part>
    <wsdl:part name="in2" type="xsd:string"></wsdl:part>
  </wsdl:message>
  <wsdl:message name="deleteClinicalDataRequest">
    <wsdl:part name="in0" type="xsd:string"></wsdl:part>
    <wsdl:part name="in1" type="xsd:string"></wsdl:part>
    <wsdl:part name="in2" type="xsd:string"></wsdl:part>
  </wsdl:message>
  <wsdl:message name="deleteClinicalDataResponse">
    <wsdl:part name="out" type="xsd:string"></wsdl:part>
  </wsdl:message>
  <wsdl:message name="isAliveResponse">
    <wsdl:part name="out" type="xsd:boolean"></wsdl:part>
  </wsdl:message>
  <wsdl:message name="readClinicalData1Request">
    <wsdl:part name="in0" type="xsd:string"></wsdl:part>
    <wsdl:part name="in1" type="xsd:string"></wsdl:part>
    <wsdl:part name="in2" type="xsd:string"></wsdl:part>
    <wsdl:part name="in3" type="xsd:string"></wsdl:part>
  </wsdl:message>
  <wsdl:message name="createClinicalDataRequest">
    <wsdl:part name="in0" type="xsd:string"></wsdl:part>
    <wsdl:part name="in1" type="xsd:string"></wsdl:part>
    <wsdl:part name="in2" type="xsd:string"></wsdl:part>
  </wsdl:message>
  <wsdl:message name="readClinicalDataRequest">
    <wsdl:part name="in0" type="xsd:string"></wsdl:part>
    <wsdl:part name="in1" type="xsd:string"></wsdl:part>
    <wsdl:part name="in2" type="xsd:string"></wsdl:part>
  </wsdl:message>
  <wsdl:message name="readClinicalData1Response">
    <wsdl:part name="out" type="xsd:string"></wsdl:part>
  </wsdl:message>
  <wsdl:message name="readClinicalDataResponse">
    <wsdl:part name="out" type="xsd:string"></wsdl:part>
  </wsdl:message>
  <wsdl:message name="isAliveRequest"></wsdl:message>
  <wsdl:message name="appendClinicalDataResponse">
    <wsdl:part name="out" type="xsd:string"></wsdl:part>
  </wsdl:message>
  <wsdl:message name="updateClinicalDataRequest">
    <wsdl:part name="in0" type="xsd:string"></wsdl:part>
    <wsdl:part name="in1" type="xsd:string"></wsdl:part>
    <wsdl:part name="in2" type="xsd:string"></wsdl:part>
  </wsdl:message>
  <wsdl:portType name="ClinicalDataServiceSynchronousInterfacePortType">
    <wsdl:operation name="deleteClinicalData">
      <wsdl:input name="deleteClinicalDataRequest" message="tns:deleteClinicalDataRequest"></wsdl:input>
      <wsdl:output name="deleteClinicalDataResponse" message="tns:deleteClinicalDataResponse"></wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="createClinicalData">
      <wsdl:input name="createClinicalDataRequest" message="tns:createClinicalDataRequest"></wsdl:input>
      <wsdl:output name="createClinicalDataResponse" message="tns:createClinicalDataResponse"></wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="readClinicalData1">
      <wsdl:input name="readClinicalData1Request" message="tns:readClinicalData1Request"></wsdl:input>
      <wsdl:output name="readClinicalData1Response" message="tns:readClinicalData1Response"></wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="appendClinicalData">
      <wsdl:input name="appendClinicalDataRequest" message="tns:appendClinicalDataRequest"></wsdl:input>
      <wsdl:output name="appendClinicalDataResponse" message="tns:appendClinicalDataResponse"></wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="readClinicalData">
      <wsdl:input name="readClinicalDataRequest" message="tns:readClinicalDataRequest"></wsdl:input>
      <wsdl:output name="readClinicalDataResponse" message="tns:readClinicalDataResponse"></wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="isAlive">
      <wsdl:input name="isAliveRequest" message="tns:isAliveRequest"></wsdl:input>
      <wsdl:output name="isAliveResponse" message="tns:isAliveResponse"></wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="updateClinicalData">
      <wsdl:input name="updateClinicalDataRequest" message="tns:updateClinicalDataRequest"></wsdl:input>
      <wsdl:output name="updateClinicalDataResponse" message="tns:updateClinicalDataResponse"></wsdl:output>
    </wsdl:operation>
  </wsdl:portType>
  <wsdl:binding name="ClinicalDataServiceSynchronousInterfaceHttpBinding" type="tns:ClinicalDataServiceSynchronousInterfacePortType">
    <wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
    <wsdl:operation name="deleteClinicalData">
      <wsdlsoap:operation soapAction=""/>
      <wsdl:input name="deleteClinicalDataRequest">
        <wsdlsoap:body use="literal" namespace="http://client.cds.URL       "/>
      </wsdl:input>
      <wsdl:output name="deleteClinicalDataResponse">
        <wsdlsoap:body use="literal" namespace="http://client.cds.URL       "/>
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="createClinicalData">
      <wsdlsoap:operation soapAction=""/>
      <wsdl:input name="createClinicalDataRequest">
        <wsdlsoap:body use="literal" namespace="http://client.cds.URL       "/>
      </wsdl:input>
      <wsdl:output name="createClinicalDataResponse">
        <wsdlsoap:body use="literal" namespace="http://client.cds.URL       "/>
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="readClinicalData1">
      <wsdlsoap:operation soapAction=""/>
      <wsdl:input name="readClinicalData1Request">
        <wsdlsoap:body use="literal" namespace="http://client.cds.URL       "/>
      </wsdl:input>
      <wsdl:output name="readClinicalData1Response">
        <wsdlsoap:body use="literal" namespace="http://client.cds.URL       "/>
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="appendClinicalData">
      <wsdlsoap:operation soapAction=""/>
      <wsdl:input name="appendClinicalDataRequest">
        <wsdlsoap:body use="literal" namespace="http://client.cds.URL       "/>
      </wsdl:input>
      <wsdl:output name="appendClinicalDataResponse">
        <wsdlsoap:body use="literal" namespace="http://client.cds.URL       "/>
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="readClinicalData">
      <wsdlsoap:operation soapAction=""/>
      <wsdl:input name="readClinicalDataRequest">
        <wsdlsoap:body use="literal" namespace="http://client.cds.URL       "/>
      </wsdl:input>
      <wsdl:output name="readClinicalDataResponse">
        <wsdlsoap:body use="literal" namespace="http://client.cds.URL       "/>
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="isAlive">
      <wsdlsoap:operation soapAction=""/>
      <wsdl:input name="isAliveRequest">
        <wsdlsoap:body use="literal" namespace="http://client.cds.URL       "/>
      </wsdl:input>
      <wsdl:output name="isAliveResponse">
        <wsdlsoap:body use="literal" namespace="http://client.cds.URL       "/>
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="updateClinicalData">
      <wsdlsoap:operation soapAction=""/>
      <wsdl:input name="updateClinicalDataRequest">
        <wsdlsoap:body use="literal" namespace="http://client.cds.URL       "/>
      </wsdl:input>
      <wsdl:output name="updateClinicalDataResponse">
        <wsdlsoap:body use="literal" namespace="http://client.cds.URL       "/>
      </wsdl:output>
    </wsdl:operation>
  </wsdl:binding>
  <wsdl:service name="ClinicalDataServiceSynchronousInterface">
    <wsdl:port name="ClinicalDataServiceSynchronousInterfaceHttpPort" binding="tns:ClinicalDataServiceSynchronousInterfaceHttpBinding">
      <wsdlsoap:address location="http://IP              /cds-wsclient/cds-service"/>
    </wsdl:port>
  </wsdl:service>
</wsdl:definitions>]]></con:content><con:type>http://schemas.xmlsoap.org/wsdl/</con:type></con:part></con:definitionCache><con:endpoints><con:endpoint>http://IP              /cds-wsclient/cds-service</con:endpoint><con:endpoint>http://${DP2_CDS_SERVICE_SOAP_ENDPOINT}</con:endpoint></con:endpoints><con:operation isOneWay="false" action="" name="appendClinicalData" bindingOperationName="appendClinicalData" type="Request-Response" outputName="appendClinicalDataResponse" inputName="appendClinicalDataRequest" receivesAttachments="false" sendsAttachments="false"><con:settings/></con:operation><con:operation isOneWay="false" action="" name="createClinicalData" bindingOperationName="createClinicalData" type="Request-Response" outputName="createClinicalDataResponse" inputName="createClinicalDataRequest" receivesAttachments="false" sendsAttachments="false"><con:settings/></con:operation><con:operation isOneWay="false" action="" name="deleteClinicalData" bindingOperationName="deleteClinicalData" type="Request-Response" outputName="deleteClinicalDataResponse" inputName="deleteClinicalDataRequest" receivesAttachments="false" sendsAttachments="false"><con:settings/></con:operation><con:operation isOneWay="false" action="" name="isAlive" bindingOperationName="isAlive" type="Request-Response" outputName="isAliveResponse" inputName="isAliveRequest" receivesAttachments="false" sendsAttachments="false"><con:settings/></con:operation><con:operation isOneWay="false" action="" name="readClinicalData" bindingOperationName="readClinicalData" type="Request-Response" outputName="readClinicalDataResponse" inputName="readClinicalDataRequest" receivesAttachments="false" sendsAttachments="false"><con:settings/></con:operation><con:operation isOneWay="false" action="" name="readClinicalData1" bindingOperationName="readClinicalData1" type="Request-Response" outputName="readClinicalData1Response" inputName="readClinicalData1Request" receivesAttachments="false" sendsAttachments="false"><con:settings/></con:operation><con:operation isOneWay="false" action="" name="updateClinicalData" bindingOperationName="updateClinicalData" type="Request-Response" outputName="updateClinicalDataResponse" inputName="updateClinicalDataRequest" receivesAttachments="false" sendsAttachments="false"><con:settings/></con:operation></con:interface><con:testSuite name="HDR 3.4 DBQ Create &amp; Update Test Suite"><con:description>HDR 3.4 DBQ Create and Update Tests Mapped to the HDR 3.4 DBQ 
Requirements Specification Document.</con:description><con:settings/><con:runType>SEQUENTIAL</con:runType><con:testCase failOnError="true" failTestCaseOnErrors="true" keepSession="false" maxResults="0" name="HDR 3.4 DBQ Create with Patient DOB (17679)" searchProperties="true" id="f053af8d-1c1f-4a59-8b49-e497a7940a36"><con:description>Tests that new requirement to persist patient date of birth is working
correctly. Additionally tests that the create response has the status
indicator in it as well as record and document identifiers.</con:description><con:settings/><con:testStep type="groovy" name="Setup Test Data"><con:settings/><con:config><script><![CDATA[import java.util.UUID;  
import org.apache.commons.lang.time.DateFormatUtils;
context.CLIENT_REQUEST_INIT_TIME = DateFormatUtils.ISO_DATETIME_TIME_ZONE_FORMAT.format( new Date() );
context.REQUEST_ID = UUID.randomUUID().toString(); 
context.FILTER_REQUEST_ID = UUID.randomUUID().toString(); 
context.DOCUMENTIDENTIFIER_IDENTITY = UUID.randomUUID().toString();
context.CLAIM_NUMBER = UUID.randomUUID().toString(); 
context.APPROVED_FLAG = 'APPROVED';
context.APRV_BY_NAME_FAMILY = 'FamilyName';
context.APRV_BY_NAME_GIVEN = 'Given';
context.APRV_BY_NAME_MIDDLE = 'MiddleName';
context.APRV_BY_NAME_PREFIX = 'Prefix';
context.APRV_BY_NAME_SUFFIX = 'Suffix';
context.APRV_BY_NAME_TITLE = 'Title';
context.APRV_BY_PERSON_ASGNING_AUTH = 'USVHA';
context.APRV_BY_PERSON_ASGNING_FCLT = '402';
context.APRV_BY_PERSON_IDENTITY = 'test_AUTHORID_1003';
context.APRV_BY_PRACTITIONER_COMMENTS = 'Approved By Comment';
context.APRV_BY_PRACTITIONER_ID_S = 'IdSourceTable';
context.APRV_BY_PRACTITIONER_DT = '20120501162517-0600';
context.APRV_BY_PRACTITIONER_DT_UTC = ''; //set by system
context.AUTH_NAME_FAMILY = 'FamilyName';
context.AUTH_NAME_GIVEN = 'Given';
context.AUTH_NAME_MIDDLE = 'MiddleName';
context.AUTH_NAME_PREFIX = 'Prefix';
context.AUTH_NAME_SUFFIX = 'Suffix';
context.AUTH_NAME_TITLE = 'Title';
context.AUTH_PERSON_ASGNING_AUTHORITY = 'USVHA';
context.AUTH_PERSON_ASGNING_FACILITY = '402';
context.AUTH_PERSON_IDENTITY = 'test_AUTHORID_1003';
context.AUTH_PRACTITIONER_COMMENTS = 'Author Comment';
context.AUTH_PRACTITIONER_ID_SRC_TBL = 'IdSourceTable';
context.AUTH_PRACTITIONER_DT = '20120501162517-0600';
context.AUTH_PRACTITIONER_DT_UTC = ''; //set by system
context.DATE_MODIFIED__DT = null; 
context.DATE_MODIFIED__DT_UTC = null; 
context.DETAIL_XML = '<gov.va.agentorange.fasttrack.model.dbq.ihd.IschemicHeartDisease>  <id>7553</id>  <version>0</version>  <dateCreated class="sql-timestamp">2012-01-10 09:45:51.397</dateCreated>  <dateModified class="sql-timestamp">2012-01-10 09:45:51.397</dateModified>  <formType>FORM_TYPE_DBQ_IHD</formType>  <vetSsn>941288701</vetSsn>  <documentStatusType>COMPLETE</documentStatusType>  <documentChannelType>ONLINE</documentChannelType>  <formFileNetStatus>    <id>5760</id>    <version>1</version>    <dateCreated class="sql-timestamp">2012-01-10 09:45:51.437</dateCreated>    <dateModified>2012-01-10 09:45:51.507 EST</dateModified>    <formFnStatusType>PROCESSOR_PROCESSING</formFnStatusType>    <formEntity class="gov.va.agentorange.fasttrack.model.dbq.ihd.IschemicHeartDisease" reference="../.."/>  </formFileNetStatus>  <webFormType>IHD_DBQ</webFormType>  <veteranFirstName>Test</veteranFirstName>  <veteranLastName>Test</veteranLastName>  <physicianFirstName>Dr</physicianFirstName>  <physicianLastName>Test</physicianLastName>  <medicalLicenseNumber>12</medicalLicenseNumber>  <country>US</country>  <addressLine1>Test</addressLine1>  <addressLine2></addressLine2>  <addressLine3></addressLine3>  <city>Test</city>  <state>DELAWARE</state>  <zip>12345</zip>  <physicianPhoneNumber>1231221312</physicianPhoneNumber>  <privacyActAck>true</privacyActAck>  <physicianSignature>true</physicianSignature>  <impactsAbilityToWork>false</impactsAbilityToWork>  <remarks></remarks>  <dateSigned class="sql-timestamp">2012-01-10 09:45:51.397</dateSigned>  <diagnoses class="org.hibernate.collection.PersistentBag">    <initialized>true</initialized>    <owner class="gov.va.agentorange.fasttrack.model.dbq.ihd.IschemicHeartDisease" reference="../.."/>    <cachedSize>-1</cachedSize>    <role>gov.va.agentorange.fasttrack.model.dbq.DbqFormEntity.diagnoses</role>    <key class="long">7553</key>    <dirty>false</dirty>    <storedSnapshot class="list"/>    <bag/>  </diagnoses>  <medications class="org.hibernate.collection.PersistentBag">    <initialized>true</initialized>    <owner class="gov.va.agentorange.fasttrack.model.dbq.ihd.IschemicHeartDisease" reference="../.."/>    <cachedSize>-1</cachedSize>    <role>gov.va.agentorange.fasttrack.model.dbq.DbqFormEntity.medications</role>    <key class="long">7553</key>    <dirty>false</dirty>    <storedSnapshot class="list"/>    <bag/>  </medications>  <diagnosticTests class="org.hibernate.collection.PersistentBag">    <initialized>true</initialized>    <owner class="gov.va.agentorange.fasttrack.model.dbq.ihd.IschemicHeartDisease" reference="../.."/>    <cachedSize>-1</cachedSize>    <role>gov.va.agentorange.fasttrack.model.dbq.DbqFormEntity.diagnosticTests</role>    <key class="long">7553</key>    <dirty>false</dirty>    <storedSnapshot class="list"/>    <bag/>  </diagnosticTests>  <hasIschemicHeartDisease>true</hasIschemicHeartDisease>  <takesContinuousMedication>false</takesContinuousMedication>  <hasPercutaneousCoronaryIntervention>false</hasPercutaneousCoronaryIntervention>  <hasMyocardialInfarction>false</hasMyocardialInfarction>  <hasCoronaryBypassSurgery>false</hasCoronaryBypassSurgery>  <hasHeartTransplant>false</hasHeartTransplant>  <hasImplantedCardiacPacemaker>false</hasImplantedCardiacPacemaker>  <hasImplantedAicd>false</hasImplantedAicd>  <doesVeteranHaveCHF>false</doesVeteranHaveCHF>  <hasExerciseTestBeenConducted>false</hasExerciseTestBeenConducted>  <metsLevel>metsLevel13</metsLevel>  <hasDyspnea>false</hasDyspnea>  <hasFatigue>false</hasFatigue>  <hasAngina>false</hasAngina>  <hasDizziness>false</hasDizziness>  <hasSyncope>true</hasSyncope>  <isEvidenceOfHypertrophyOrDil>false</isEvidenceOfHypertrophyOrDil>  <hasEkg>false</hasEkg>  <hasChestXRay>false</hasChestXRay>  <hasEchocardiogram>false</hasEchocardiogram>  <hasOtherTest>false</hasOtherTest>  <hasLVEF>false</hasLVEF></gov.va.agentorange.fasttrack.model.dbq.ihd.IschemicHeartDisease>';
context.DOCUMENTIDENTIFIER_NAMESPACEID = '402';
context.DOCUMENTIDENTIFIER_UNIVERSALID = 'UID_13359111174322';
context.DOCUMENTIDENTIFIER_UNIVERSTYP = 'universalIdType';
context.DOCUMENT_TYPE = 'Document Type';
context.FACILITY_ASSIGNING_AUTHORITY = 'AssigningAuthNamespaceId';
context.FACILITY_IDENTITY = 'OrganizationId';
context.FACILITY_NAME = 'OrganizationName';
context.INITIATING_SYSTEM = 'InitiatingSystem';
context.MESSAGE_INSERTION_TIME = ''; //entered by system? 5/10/2012 2:28:41.116285 PM
context.PATIENT_ASSIGNING_AUTHORITY = 'USVHA';
context.PATIENT_ASSIGNING_FACILITY = '402';
context.PATIENT_IDENTITY = 'test_10004';
context.PATIENT_NAME_FAMILY = 'FamilyName';
context.PATIENT_NAME_GIVEN = 'Given';
context.PATIENT_NAME_MIDDLE = 'MiddleName';
context.PATIENT_NAME_PREFIX = 'Prefix';
context.PATIENT_NAME_SUFFIX = 'Suffix';
context.PATIENT_NAME_TITLE = 'Title';
context.PATIENT_DOB = '1973-07-04';
context.QUESTIONNAIRE_RESULT_ID = ''; //DB Primary Key?
context.RECORDIDENTIFIER_IDENTITY = null;
context.RECORDIDENTIFIER_NAMESPACEID = null;
context.RECORDIDENTIFIER_UNIVERSALID = null;
context.RECORDIDENTIFIER_UNIVERSTYP = null;
context.RECORD_UPDATE_DT = '19691231170000-0700'; //Updated by system?
context.RECORD_UPDATE_DT_UTC = ''; //set by system
context.RECORD_VERSION = 3;
//log.info("REQUEST_ID: " + context.REQUEST_ID);;
//log.info("RECORDIDENTIFIER_IDENTITY: " + context.REQUEST_ID);  ]]></script></con:config></con:testStep><con:testStep type="request" name="DBQ Create DBQ Data with Patient DOB - Valid"><con:settings/><con:config xsi:type="con:RequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>ClinicalDataServiceSynchronousInterfaceHttpBinding</con:interface><con:operation>appendClinicalData</con:operation><con:request name="DBQ Create DBQ Data with Patient DOB - Valid" outgoingWss="" incomingWss=""><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting><con:setting id="com.eviware.soapui.impl.support.AbstractHttpRequest@follow-redirects">true</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>jms://${CDS_DBQ_JMS_ENDPOINT}</con:endpoint><con:request><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
<clinicaldata:ClinicalData xmlns:clinicaldata="Clinicaldata">
	<templateId>DBQCreate2</templateId>
	<clientName>SOAP UI</clientName>
	<clientRequestInitiationTime>${CLIENT_REQUEST_INIT_TIME}</clientRequestInitiationTime>
	<patient>
		<questionnaireResults>
			<questionnaireResult>
				<patient>
					<identifier>
						<identity>${PATIENT_IDENTITY}</identity>
						<assigningFacility>${PATIENT_ASSIGNING_FACILITY}</assigningFacility>
						<assigningAuthority>${PATIENT_ASSIGNING_AUTHORITY}</assigningAuthority>
					</identifier>
					<name>
						<prefix>${PATIENT_NAME_PREFIX}</prefix>
						<given>${PATIENT_NAME_GIVEN}</given>
						<middle>${PATIENT_NAME_MIDDLE}</middle>
						<family>${PATIENT_NAME_FAMILY}</family>
						<suffix>${PATIENT_NAME_SUFFIX}</suffix>
						<title>${PATIENT_NAME_TITLE}</title>
					</name>
					<dateOfBirth>${PATIENT_DOB}</dateOfBirth>
				</patient>
				<dateCreated>
					<literal>${RECORD_UPDATE_DT}</literal>
				</dateCreated>
				<claimNumber>
					<root>${=java.util.UUID.randomUUID().toString()}</root>
				</claimNumber>
				<documentType>${DOCUMENT_TYPE}</documentType>
				<initiatingSystem>${INITIATING_SYSTEM}</initiatingSystem>
				<documentIdentifier>
					<identity>${DOCUMENTIDENTIFIER_IDENTITY}</identity>
					<namespaceId>${DOCUMENTIDENTIFIER_NAMESPACEID}</namespaceId>
					<universalId>${DOCUMENTIDENTIFIER_UNIVERSALID}</universalId>
					<universalIdType>${DOCUMENTIDENTIFIER_UNIVERSTYP}</universalIdType>
				</documentIdentifier>
				<facilityIdentifier>
					<identity>${FACILITY_IDENTITY}</identity>
					<name>${FACILITY_NAME}</name>
					<assigningAuthority>${FACILITY_ASSIGNING_AUTHORITY}</assigningAuthority>
				</facilityIdentifier>
				<approvedFlag>${APPROVED_FLAG}</approvedFlag>
				<approvedBy>
					<comment>${APRV_BY_PRACTITIONER_COMMENTS}</comment>
					<time>
						<literal>${APRV_BY_PRACTITIONER_DT}</literal>
					</time>
					<practitioner>
						<identifier>
							<identity>${APRV_BY_PERSON_IDENTITY}</identity>
							<assigningFacility>${APRV_BY_PERSON_ASGNING_FCLT}</assigningFacility>
							<assigningAuthority>${APRV_BY_PERSON_ASGNING_AUTH}</assigningAuthority>
						</identifier>
						<idSourceTable>${APRV_BY_PRACTITIONER_ID_S}</idSourceTable>
						<name>
							<prefix>${APRV_BY_NAME_PREFIX}</prefix>
							<given>${APRV_BY_NAME_GIVEN}</given>
							<middle>${APRV_BY_NAME_MIDDLE}</middle>
							<family>${APRV_BY_NAME_FAMILY}</family>
							<suffix>${APRV_BY_NAME_SUFFIX}</suffix>
							<title>${APRV_BY_NAME_TITLE}</title>
						</name>
					</practitioner>
				</approvedBy>
				<author>
					<comment>${AUTH_PRACTITIONER_COMMENTS}</comment>
					<time>
						<literal>${AUTH_PRACTITIONER_DT}</literal>
					</time>
					<practitioner>
						<identifier>
							<identity>${AUTH_PERSON_IDENTITY}</identity>
							<assigningFacility>${AUTH_PERSON_ASGNING_FACILITY}</assigningFacility>
							<assigningAuthority>${AUTH_PERSON_ASGNING_AUTHORITY}</assigningAuthority>
						</identifier>
						<idSourceTable>${AUTH_PRACTITIONER_ID_SRC_TBL}</idSourceTable>
						<name>
							<prefix>${AUTH_NAME_PREFIX}</prefix>
							<given>${AUTH_NAME_GIVEN}</given>
							<middle>${AUTH_NAME_MIDDLE}</middle>
							<family>${AUTH_NAME_FAMILY}</family>
							<suffix>${AUTH_NAME_SUFFIX}</suffix>
							<title>${AUTH_NAME_TITLE}</title>
						</name>
					</practitioner>
				</author>
				<detailXML>${DETAIL_XML}</detailXML>
			</questionnaireResult>
		</questionnaireResults>
	</patient>
</clinicaldata:ClinicalData>
]]></con:request><con:assertion type="XPath Match" name="Matches Request ID"><con:configuration><path>//requestId</path><content>${REQUEST_ID}</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>true</ignoreNamspaceDifferences><ignoreComments>false</ignoreComments></con:configuration></con:assertion><con:assertion type="XPath Match" name="Matches Docuent ID"><con:configuration><path>//identifier/documentIdentifier/identity</path><content>${DOCUMENTIDENTIFIER_IDENTITY}</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>true</ignoreNamspaceDifferences><ignoreComments>false</ignoreComments></con:configuration></con:assertion><con:assertion type="XPath Match" name="Response Includes Record Identifier"><con:configuration><path>count(//identifiers/identifier)</path><content>1</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>true</ignoreNamspaceDifferences><ignoreComments>false</ignoreComments></con:configuration></con:assertion><con:assertion type="XPath Match" name="Matches Approved Flag"><con:configuration><path>//identifier/status</path><content>${APPROVED_FLAG}</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>true</ignoreNamspaceDifferences><ignoreComments>false</ignoreComments></con:configuration></con:assertion><con:credentials><con:username xsi:nil="true"/><con:password xsi:nil="true"/><con:domain xsi:nil="true"/><con:authType>Global HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT" messageSelector="" TimeToLive=""/><con:jmsPropertyConfig><con:jmsProperties name="TEMPLATE_ID" value="DBQCreate2"/><con:jmsProperties name="REQUEST_ID" value="${REQUEST_ID}"/></con:jmsPropertyConfig><con:wsaConfig mustUnderstand="NONE" version="200508"/><con:wsrmConfig version="1.2"/></con:request></con:config></con:testStep><con:testStep type="groovy" name="Validate Create Response Includes Status"><con:settings/><con:config><script>import com.eviware.soapui.support.XmlHolder 
def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context );
def createResponseHolder = groovyUtils.getXmlHolder( "DBQ Create DBQ Data with Patient DOB - Valid#Response" ) ;

// There are three things that should be in a success resonse.
//   1) record id
//   2) document identifier
//   3) status

assert createResponseHolder['count(//recordIdentifier)'] == "1";
assert createResponseHolder['//recordIdentifier/identity'] != null &amp;&amp; createResponseHolder['//recordIdentifier/identity'] != '';

assert createResponseHolder['count(//documentIdentifier)'] == "1";
assert createResponseHolder['//documentIdentifier/identity'] == context.DOCUMENTIDENTIFIER_IDENTITY;

assert createResponseHolder['count(//identifier/status)'] == "1";
assert createResponseHolder['//identifier/status'] == context.APPROVED_FLAG;



</script></con:config></con:testStep><con:testStep type="transfer" name="DBQ Create Response Record Identifier Transfer"><con:settings/><con:config xsi:type="con:PropertyTransfersStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:transfers setNullOnMissingSource="true" transferTextContent="true" failOnError="true" ignoreEmpty="false" transferToAll="false" useXQuery="false" entitize="false" transferChildNodes="false"><con:name>RECORD_ID</con:name><con:sourceType>Response</con:sourceType><con:sourceStep>DBQ Create DBQ Data with Patient DOB - Valid</con:sourceStep><con:sourcePath>//recordIdentifier/identity</con:sourcePath><con:targetType>recordId</con:targetType><con:targetStep>#TestCase#</con:targetStep></con:transfers></con:config></con:testStep><con:testStep type="request" name="DBQ Detail Read By Single Record ID"><con:settings/><con:config xsi:type="con:RequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>ClinicalDataServiceSynchronousInterfaceHttpBinding</con:interface><con:operation>readClinicalData1</con:operation><con:request name="DBQ Detail Read By Single Record ID"><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://${CDS_SERVICE_SOAP_ENDPOINT}</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:cli="http://client.cds.URL       ">
   <soapenv:Header/>
   <soapenv:Body>
      <cli:readClinicalData1>
         <in0>DBQDetailRead2</in0>
         <in1><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
<!--Sample XML file generated by XMLSpy v2012 rel. 2 sp1 (http://www.altova.com)-->
<filter:filter vhimVersion="Vhim_4_00" xsi:schemaLocation="Filter DBQ_Detail_Data_Filter2.xsd" xmlns:filter="Filter" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
	<filterId>DBQ_DETAIL_DATA_FILTER2</filterId>
	<clientName>SOAP UI</clientName>
	<clientRequestInitiationTime>${CLIENT_REQUEST_INIT_TIME}</clientRequestInitiationTime>
	<entryPointFilter queryName="ID_1" isPatientCentric="false">
		<domainEntryPoint>QuestionnaireResult</domainEntryPoint>
		<otherQueryParameters>
			<recordIdentifier>${#TestCase#recordId}</recordIdentifier>
		</otherQueryParameters>
	</entryPointFilter>
</filter:filter>]]]]>><![CDATA[</in1>
         <in2>DBQ_DETAIL_DATA_FILTER2</in2>
         <in3>${FILTER_REQUEST_ID}</in3>
      </cli:readClinicalData1>
   </soapenv:Body>
</soapenv:Envelope>]]></con:request><con:assertion type="SOAP Response"/><con:credentials><con:authType>Global HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:wsaConfig mustUnderstand="NONE" version="200508"/><con:wsrmConfig version="1.2"/></con:request></con:config></con:testStep><con:testStep type="transfer" name="DBQ Read by Record Id Response Extractor"><con:settings/><con:config xsi:type="con:PropertyTransfersStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:transfers setNullOnMissingSource="true" transferTextContent="true" failOnError="true" ignoreEmpty="false" transferToAll="false" useXQuery="false" entitize="false" transferChildNodes="false"><con:name>Response Transfer</con:name><con:sourceType>Response</con:sourceType><con:sourceStep>DBQ Detail Read By Single Record ID</con:sourceStep><con:sourcePath>//out</con:sourcePath><con:targetType>readResponse</con:targetType><con:targetStep>#TestCase#</con:targetStep></con:transfers></con:config></con:testStep><con:testStep type="groovy" name="Validate Correct Date of Birth In Response"><con:settings/><con:config><script>import com.eviware.soapui.support.XmlHolder 
def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context );

def response = groovyUtils.getXmlHolder(testRunner.testCase.getPropertyValue( "readResponse" ));

assert response['//patient/dateOfBirth'] == context.PATIENT_DOB;

</script></con:config></con:testStep><con:properties><con:property><con:name>recordId</con:name><con:value>801</con:value></con:property><con:property><con:name>readResponse</con:name><con:value><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
<clinicaldata:ClinicalData xmlns:clinicaldata="Clinicaldata"><templateId>DBQDetailRead2</templateId><requestId>c7925947-3170-474f-b092-5e0f9da1f31f</requestId><errorSection><fatalErrors><fatalError><errorId>c7925947-3170-474f-b092-5e0f9da1f31f</errorId><exception>gov.va.med.cds.persistence.PersistenceException</exception><exceptionMessage>READ_REQUEST_ALL_DATASOURCES_FAILED</exceptionMessage><errorCode>READ_REQUEST_ALL_DATASOURCES_FAILED</errorCode><displayMessage>All datasources failed.  Unable to get data from applicable datasource(s) due to the following reason:
 [Assigning Facility is null. Patient id is null. Domain entry point is QuestionnaireResult. Database is HDRII-R. The Error reason is READ_REQUEST_DATA_SOURCE_FAILURE: null.: null].</displayMessage></fatalError></fatalErrors></errorSection></clinicaldata:ClinicalData>]]></con:value></con:property></con:properties></con:testCase><con:testCase failOnError="true" failTestCaseOnErrors="true" keepSession="false" maxResults="0" name="HDR 3.4 DBQ Restricted Updates Test Case (18575)" searchProperties="true" id="8617d4c0-1a23-4b04-bfa0-80277fb3781a"><con:settings/><con:testStep type="groovy" name="Setup Test Data"><con:settings/><con:config><script><![CDATA[import java.util.UUID;  
import org.apache.commons.lang.time.DateFormatUtils;
import org.apache.commons.lang.time.FastDateFormat;

def dateFormatter = FastDateFormat.getInstance('yyyyMMddHHmmssZ');

// initial create request setup data.
context.CLIENT_REQUEST_INIT_TIME = DateFormatUtils.ISO_DATETIME_TIME_ZONE_FORMAT.format( new Date() );
context.REQUEST_ID = UUID.randomUUID().toString(); 
context.DOCUMENTIDENTIFIER_IDENTITY = UUID.randomUUID().toString(); 
context.FILTER_REQUEST_ID = UUID.randomUUID().toString();

context.APPROVED_FLAG_PENDING = 'PENDING APPROVAL';
context.APPROVED_FLAG_APPROVED = 'APPROVED';
context.AUTH_NAME_FAMILY = 'FamilyName';
context.AUTH_NAME_GIVEN = 'Given';
context.AUTH_NAME_MIDDLE = 'MiddleName';
context.AUTH_NAME_PREFIX = 'Prefix';
context.AUTH_NAME_SUFFIX = 'Suffix';
context.AUTH_NAME_TITLE = 'Title';
context.AUTH_PERSON_ASGNING_AUTHORITY = 'USVHA';
context.AUTH_PERSON_ASGNING_FACILITY = '402';
context.AUTH_PERSON_IDENTITY = 'test_AUTHORID_1003';
context.AUTH_PRACTITIONER_COMMENTS = 'Author Comment';
context.AUTH_PRACTITIONER_ID_SRC_TBL = 'IdSourceTable';
context.AUTH_PRACTITIONER_DT = '20120501162517-0600';
context.AUTH_PRACTITIONER_DT_UTC = ''; //set by system
context.DETAIL_XML = '<gov.va.agentorange.fasttrack.model.dbq.ihd.IschemicHeartDisease>  <id>7553</id>  <version>0</version>  <dateCreated class="sql-timestamp">2012-01-10 09:45:51.397</dateCreated>  <dateModified class="sql-timestamp">2012-01-10 09:45:51.397</dateModified>  <formType>FORM_TYPE_DBQ_IHD</formType>  <vetSsn>941288701</vetSsn>  <documentStatusType>COMPLETE</documentStatusType>  <documentChannelType>ONLINE</documentChannelType>  <formFileNetStatus>    <id>5760</id>    <version>1</version>    <dateCreated class="sql-timestamp">2012-01-10 09:45:51.437</dateCreated>    <dateModified>2012-01-10 09:45:51.507 EST</dateModified>    <formFnStatusType>PROCESSOR_PROCESSING</formFnStatusType>    <formEntity class="gov.va.agentorange.fasttrack.model.dbq.ihd.IschemicHeartDisease" reference="../.."/>  </formFileNetStatus>  <webFormType>IHD_DBQ</webFormType>  <veteranFirstName>Test</veteranFirstName>  <veteranLastName>Test</veteranLastName>  <physicianFirstName>Dr</physicianFirstName>  <physicianLastName>Test</physicianLastName>  <medicalLicenseNumber>12</medicalLicenseNumber>  <country>US</country>  <addressLine1>Test</addressLine1>  <addressLine2></addressLine2>  <addressLine3></addressLine3>  <city>Test</city>  <state>DELAWARE</state>  <zip>12345</zip>  <physicianPhoneNumber>1231221312</physicianPhoneNumber>  <privacyActAck>true</privacyActAck>  <physicianSignature>true</physicianSignature>  <impactsAbilityToWork>false</impactsAbilityToWork>  <remarks></remarks>  <dateSigned class="sql-timestamp">2012-01-10 09:45:51.397</dateSigned>  <diagnoses class="org.hibernate.collection.PersistentBag">    <initialized>true</initialized>    <owner class="gov.va.agentorange.fasttrack.model.dbq.ihd.IschemicHeartDisease" reference="../.."/>    <cachedSize>-1</cachedSize>    <role>gov.va.agentorange.fasttrack.model.dbq.DbqFormEntity.diagnoses</role>    <key class="long">7553</key>    <dirty>false</dirty>    <storedSnapshot class="list"/>    <bag/>  </diagnoses>  <medications class="org.hibernate.collection.PersistentBag">    <initialized>true</initialized>    <owner class="gov.va.agentorange.fasttrack.model.dbq.ihd.IschemicHeartDisease" reference="../.."/>    <cachedSize>-1</cachedSize>    <role>gov.va.agentorange.fasttrack.model.dbq.DbqFormEntity.medications</role>    <key class="long">7553</key>    <dirty>false</dirty>    <storedSnapshot class="list"/>    <bag/>  </medications>  <diagnosticTests class="org.hibernate.collection.PersistentBag">    <initialized>true</initialized>    <owner class="gov.va.agentorange.fasttrack.model.dbq.ihd.IschemicHeartDisease" reference="../.."/>    <cachedSize>-1</cachedSize>    <role>gov.va.agentorange.fasttrack.model.dbq.DbqFormEntity.diagnosticTests</role>    <key class="long">7553</key>    <dirty>false</dirty>    <storedSnapshot class="list"/>    <bag/>  </diagnosticTests>  <hasIschemicHeartDisease>true</hasIschemicHeartDisease>  <takesContinuousMedication>false</takesContinuousMedication>  <hasPercutaneousCoronaryIntervention>false</hasPercutaneousCoronaryIntervention>  <hasMyocardialInfarction>false</hasMyocardialInfarction>  <hasCoronaryBypassSurgery>false</hasCoronaryBypassSurgery>  <hasHeartTransplant>false</hasHeartTransplant>  <hasImplantedCardiacPacemaker>false</hasImplantedCardiacPacemaker>  <hasImplantedAicd>false</hasImplantedAicd>  <doesVeteranHaveCHF>false</doesVeteranHaveCHF>  <hasExerciseTestBeenConducted>false</hasExerciseTestBeenConducted>  <metsLevel>metsLevel13</metsLevel>  <hasDyspnea>false</hasDyspnea>  <hasFatigue>false</hasFatigue>  <hasAngina>false</hasAngina>  <hasDizziness>false</hasDizziness>  <hasSyncope>true</hasSyncope>  <isEvidenceOfHypertrophyOrDil>false</isEvidenceOfHypertrophyOrDil>  <hasEkg>false</hasEkg>  <hasChestXRay>false</hasChestXRay>  <hasEchocardiogram>false</hasEchocardiogram>  <hasOtherTest>false</hasOtherTest>  <hasLVEF>false</hasLVEF></gov.va.agentorange.fasttrack.model.dbq.ihd.IschemicHeartDisease>';
context.DOCUMENTIDENTIFIER_NAMESPACEID = '402';
context.DOCUMENTIDENTIFIER_UNIVERSALID = 'UID_13359111174322';
context.DOCUMENTIDENTIFIER_UNIVERSTYP = 'universalIdType';
context.DOCUMENT_TYPE = 'Document Type';
context.FACILITY_ASSIGNING_AUTHORITY = 'AssigningAuthNamespaceId';
context.FACILITY_IDENTITY = 'OrganizationId';
context.FACILITY_NAME = 'OrganizationName';
context.INITIATING_SYSTEM = 'InitiatingSystem';
context.MESSAGE_INSERTION_TIME = ''; //entered by system? 5/10/2012 2:28:41.116285 PM
context.PATIENT_ASSIGNING_AUTHORITY = 'USVHA';
context.PATIENT_ASSIGNING_FACILITY = '402';
context.PATIENT_IDENTITY = 'test_10004';
context.PATIENT_NAME_FAMILY = 'FamilyName';
context.PATIENT_NAME_GIVEN = 'Given';
context.PATIENT_NAME_MIDDLE = 'MiddleName';
context.PATIENT_NAME_PREFIX = 'Prefix';
context.PATIENT_NAME_SUFFIX = 'Suffix';
context.PATIENT_NAME_TITLE = 'Title';
context.QUESTIONNAIRE_RESULT_ID = ''; //DB Primary Key?
context.RECORDIDENTIFIER_IDENTITY = null;
context.RECORDIDENTIFIER_NAMESPACEID = null;
context.RECORDIDENTIFIER_UNIVERSALID = null;
context.RECORDIDENTIFIER_UNIVERSTYP = null;
context.RECORD_UPDATE_DT = '19691231170000-0700'; //Updated by system?
context.RECORD_UPDATE_DT_UTC = ''; //set by system


// update test setup data
context.UPDATE_CLIENT_REQUEST_INIT_TIME = DateFormatUtils.ISO_DATETIME_TIME_ZONE_FORMAT.format( new Date() );
context.UPDATE_REQUEST_ID = UUID.randomUUID().toString(); 
context.UPDATE_DOCUMENTIDENTIFIER_IDENTITY = UUID.randomUUID().toString(); 
context.UPDATE_APPROVED_FLAG = 'APPROVED';
context.APRV_BY_NAME_FAMILY = 'FamilyName';
context.APRV_BY_NAME_GIVEN = 'Given';
context.APRV_BY_NAME_MIDDLE = 'MiddleName';
context.APRV_BY_NAME_PREFIX = 'Prefix';
context.APRV_BY_NAME_SUFFIX = 'Suffix';
context.APRV_BY_NAME_TITLE = 'Title';
context.APRV_BY_PERSON_ASGNING_AUTH = 'USVHA';
context.APRV_BY_PERSON_ASGNING_FCLT = '402';
context.APRV_BY_PERSON_IDENTITY = 'test_AUTHORID_1003';
context.APRV_BY_PRACTITIONER_COMMENTS = 'Approved By Comment';
context.APRV_BY_PRACTITIONER_ID_S = 'IdSourceTable';
context.APRV_BY_PRACTITIONER_DT = '20120501162517-0600';
context.APRV_BY_PRACTITIONER_DT_UTC = ''; //set by system
context.DATE_MODIFIED__DT = dateFormatter.format(new Date()); 
context.DATE_MODIFIED__DT_UTC = null; 
context.RECORD_VERSION = 1;]]></script></con:config></con:testStep><con:testStep type="request" name="DBQ Create Data - Valid"><con:settings/><con:config xsi:type="con:RequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>ClinicalDataServiceSynchronousInterfaceHttpBinding</con:interface><con:operation>appendClinicalData</con:operation><con:request name="DBQ Create Data - Valid" outgoingWss="" incomingWss=""><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting><con:setting id="com.eviware.soapui.impl.support.AbstractHttpRequest@follow-redirects">true</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>jms://${CDS_DBQ_JMS_ENDPOINT}</con:endpoint><con:request><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
<clinicaldata:ClinicalData xmlns:clinicaldata="Clinicaldata">
	<templateId>DBQCreate2</templateId>
	<clientName>SOAP UI</clientName>
	<clientRequestInitiationTime>${CLIENT_REQUEST_INIT_TIME}</clientRequestInitiationTime>
	<patient>
		<questionnaireResults>
			<questionnaireResult>
				<patient>
					<identifier>
						<identity>${PATIENT_IDENTITY}</identity>
						<assigningFacility>${PATIENT_ASSIGNING_FACILITY}</assigningFacility>
						<assigningAuthority>${PATIENT_ASSIGNING_AUTHORITY}</assigningAuthority>
					</identifier>
					<name>
						<prefix>${PATIENT_NAME_PREFIX}</prefix>
						<given>${PATIENT_NAME_GIVEN}</given>
						<middle>${PATIENT_NAME_MIDDLE}</middle>
						<family>${PATIENT_NAME_FAMILY}</family>
						<suffix>${PATIENT_NAME_SUFFIX}</suffix>
						<title>${PATIENT_NAME_TITLE}</title>
					</name>
				</patient>
				<dateCreated>
					<literal>${RECORD_UPDATE_DT}</literal>
				</dateCreated>
				<claimNumber>
					<root>${=java.util.UUID.randomUUID().toString()}</root>
				</claimNumber>
				<documentType>${DOCUMENT_TYPE}</documentType>
				<initiatingSystem>${INITIATING_SYSTEM}</initiatingSystem>
				<documentIdentifier>
					<identity>${DOCUMENTIDENTIFIER_IDENTITY}</identity>
					<namespaceId>${DOCUMENTIDENTIFIER_NAMESPACEID}</namespaceId>
					<universalId>${DOCUMENTIDENTIFIER_UNIVERSALID}</universalId>
					<universalIdType>${DOCUMENTIDENTIFIER_UNIVERSTYP}</universalIdType>
				</documentIdentifier>
				<facilityIdentifier>
					<identity>${FACILITY_IDENTITY}</identity>
					<name>${FACILITY_NAME}</name>
					<assigningAuthority>${FACILITY_ASSIGNING_AUTHORITY}</assigningAuthority>
				</facilityIdentifier>
				<approvedFlag>${APPROVED_FLAG_PENDING}</approvedFlag>
				<author>
					<comment>${AUTH_PRACTITIONER_COMMENTS}</comment>
					<time>
						<literal>${AUTH_PRACTITIONER_DT}</literal>
					</time>
					<practitioner>
						<identifier>
							<identity>${AUTH_PERSON_IDENTITY}</identity>
							<assigningFacility>${AUTH_PERSON_ASGNING_FACILITY}</assigningFacility>
							<assigningAuthority>${AUTH_PERSON_ASGNING_AUTHORITY}</assigningAuthority>
						</identifier>
						<idSourceTable>${AUTH_PRACTITIONER_ID_SRC_TBL}</idSourceTable>
						<name>
							<prefix>${AUTH_NAME_PREFIX}</prefix>
							<given>${AUTH_NAME_GIVEN}</given>
							<middle>${AUTH_NAME_MIDDLE}</middle>
							<family>${AUTH_NAME_FAMILY}</family>
							<suffix>${AUTH_NAME_SUFFIX}</suffix>
							<title>${AUTH_NAME_TITLE}</title>
						</name>
					</practitioner>
				</author>
				<detailXML>${DETAIL_XML}</detailXML>
			</questionnaireResult>
			<questionnaireResult>
				<patient>
					<identifier>
						<identity>${PATIENT_IDENTITY}</identity>
						<assigningFacility>${PATIENT_ASSIGNING_FACILITY}</assigningFacility>
						<assigningAuthority>${PATIENT_ASSIGNING_AUTHORITY}</assigningAuthority>
					</identifier>
					<name>
						<prefix>${PATIENT_NAME_PREFIX}</prefix>
						<given>${PATIENT_NAME_GIVEN}</given>
						<middle>${PATIENT_NAME_MIDDLE}</middle>
						<family>${PATIENT_NAME_FAMILY}</family>
						<suffix>${PATIENT_NAME_SUFFIX}</suffix>
						<title>${PATIENT_NAME_TITLE}</title>
					</name>
				</patient>
				<dateCreated>
					<literal>${RECORD_UPDATE_DT}</literal>
				</dateCreated>
				<claimNumber>
					<root>${=java.util.UUID.randomUUID().toString()}</root>
				</claimNumber>
				<documentType>${DOCUMENT_TYPE}</documentType>
				<initiatingSystem>${INITIATING_SYSTEM}</initiatingSystem>
				<documentIdentifier>
					<identity>${DOCUMENTIDENTIFIER_IDENTITY}</identity>
				</documentIdentifier>
				<facilityIdentifier>
					<identity>${FACILITY_IDENTITY}</identity>
					<name>${FACILITY_NAME}</name>
					<assigningAuthority>${FACILITY_ASSIGNING_AUTHORITY}</assigningAuthority>
				</facilityIdentifier>
				<approvedFlag>${APPROVED_FLAG_PENDING}</approvedFlag>
				<author>
					<comment>${AUTH_PRACTITIONER_COMMENTS}</comment>
					<time>
						<literal>${AUTH_PRACTITIONER_DT}</literal>
					</time>
					<practitioner>
						<identifier>
							<identity>${AUTH_PERSON_IDENTITY}</identity>
							<assigningFacility>${AUTH_PERSON_ASGNING_FACILITY}</assigningFacility>
							<assigningAuthority>${AUTH_PERSON_ASGNING_AUTHORITY}</assigningAuthority>
						</identifier>
						<idSourceTable>${AUTH_PRACTITIONER_ID_SRC_TBL}</idSourceTable>
						<name>
							<prefix>${AUTH_NAME_PREFIX}</prefix>
							<given>${AUTH_NAME_GIVEN}</given>
							<middle>${AUTH_NAME_MIDDLE}</middle>
							<family>${AUTH_NAME_FAMILY}</family>
							<suffix>${AUTH_NAME_SUFFIX}</suffix>
							<title>${AUTH_NAME_TITLE}</title>
						</name>
					</practitioner>
				</author>
				<detailXML>${DETAIL_XML}</detailXML>
			</questionnaireResult>
		</questionnaireResults>
	</patient>
</clinicaldata:ClinicalData>
]]></con:request><con:assertion type="XPath Match" name="Matches Request ID"><con:configuration><path>//requestId</path><content>${REQUEST_ID}</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>true</ignoreNamspaceDifferences><ignoreComments>false</ignoreComments></con:configuration></con:assertion><con:assertion type="XPath Match" name="Matches Docuent ID"><con:configuration><path>//identifier/documentIdentifier/identity</path><content>${DOCUMENTIDENTIFIER_IDENTITY}</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>true</ignoreNamspaceDifferences><ignoreComments>false</ignoreComments></con:configuration></con:assertion><con:assertion type="XPath Match" name="Response Includes Record Identifier"><con:configuration><path>count(//identifiers/identifier)</path><content>2</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>true</ignoreNamspaceDifferences><ignoreComments>false</ignoreComments></con:configuration></con:assertion><con:assertion type="XPath Match" name="Matches Status - Approved Flag Pending"><con:configuration><path>//identifier/status</path><content>${APPROVED_FLAG_PENDING}</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>true</ignoreNamspaceDifferences><ignoreComments>false</ignoreComments></con:configuration></con:assertion><con:credentials><con:username xsi:nil="true"/><con:password xsi:nil="true"/><con:domain xsi:nil="true"/><con:authType>Global HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT" messageSelector="" TimeToLive=""/><con:jmsPropertyConfig><con:jmsProperties name="TEMPLATE_ID" value="DBQCreate2"/><con:jmsProperties name="REQUEST_ID" value="${REQUEST_ID}"/></con:jmsPropertyConfig><con:wsaConfig mustUnderstand="NONE" version="200508"/><con:wsrmConfig version="1.2"/></con:request></con:config></con:testStep><con:testStep type="groovy" name="Validate Create Response Includes 'PENDING APPROVAL' Status"><con:settings/><con:config><script>import com.eviware.soapui.support.XmlHolder 
def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context );
def createResponseHolder = groovyUtils.getXmlHolder( "DBQ Create Data - Valid#Response" ) ;

// There are three things that should be in a success resonse.
//   1) record id
//   2) document identifier
//   3) status

assert createResponseHolder['count(//recordIdentifier)'] == "2";
assert createResponseHolder['//recordIdentifier/identity'] != null &amp;&amp; createResponseHolder['//recordIdentifier/identity'] != '';

assert createResponseHolder['count(//documentIdentifier)'] == "2";
assert createResponseHolder['//documentIdentifier/identity'][0] == context.DOCUMENTIDENTIFIER_IDENTITY;

assert createResponseHolder['count(//identifier/status)'] == "2";
assert createResponseHolder['//identifier/status'][0] == context.APPROVED_FLAG_PENDING;



</script></con:config></con:testStep><con:testStep type="transfer" name="Record ID Property Transfer"><con:settings/><con:config xsi:type="con:PropertyTransfersStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:transfers setNullOnMissingSource="true" transferTextContent="true" failOnError="true" ignoreEmpty="false" transferToAll="false" useXQuery="false" entitize="false" transferChildNodes="false"><con:name>RECORD_ID_XFER</con:name><con:sourceType>Response</con:sourceType><con:sourceStep>DBQ Create Data - Valid</con:sourceStep><con:sourcePath>//recordIdentifier/identity</con:sourcePath><con:targetType>RECORD_ID</con:targetType><con:targetStep>#TestCase#</con:targetStep></con:transfers></con:config></con:testStep><con:testStep type="request" name="DBQ Detail Read By Record ID - Pre Update Approved By"><con:settings/><con:config xsi:type="con:RequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>ClinicalDataServiceSynchronousInterfaceHttpBinding</con:interface><con:operation>readClinicalData1</con:operation><con:request name="DBQ Detail Read By Record ID - Pre Update Approved By"><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://${CDS_SERVICE_SOAP_ENDPOINT}</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:cli="http://client.cds.URL       ">
   <soapenv:Header/>
   <soapenv:Body>
      <cli:readClinicalData1>
         <in0>DBQDetailRead2</in0>
         <in1><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
<!--Sample XML file generated by XMLSpy v2012 rel. 2 sp1 (http://www.altova.com)-->
<filter:filter vhimVersion="Vhim_4_00" xsi:schemaLocation="Filter DBQ_Single_Record_All_Data_Filter.xsd" xmlns:filter="Filter" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
	<filterId>DBQ_DETAIL_DATA_FILTER2</filterId>
	<clientName>SOAP UI</clientName>
	<clientRequestInitiationTime>${CLIENT_REQUEST_INIT_TIME}</clientRequestInitiationTime>
	<entryPointFilter queryName="ID_1" isPatientCentric="false">
		<domainEntryPoint>QuestionnaireResult</domainEntryPoint>
		<otherQueryParameters>
			<recordIdentifier>${#TestCase#RECORD_ID}</recordIdentifier>
		</otherQueryParameters>
	</entryPointFilter>
</filter:filter>]]]]>><![CDATA[</in1>
         <in2>DBQ_DETAIL_DATA_FILTER2</in2>
         <in3>${FILTER_REQUEST_ID}</in3>
      </cli:readClinicalData1>
   </soapenv:Body>
</soapenv:Envelope]]></con:request><con:assertion type="SOAP Response"/><con:credentials><con:authType>Global HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:wsaConfig mustUnderstand="NONE" version="200508"/><con:wsrmConfig version="1.2"/></con:request></con:config></con:testStep><con:testStep type="groovy" name="Check DBQ Read By Record ID - Pre Update Approved By"><con:settings/><con:config><script>import com.eviware.soapui.support.XmlHolder 

def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context );

def soapResponseHolder = groovyUtils.getXmlHolder( "DBQ Detail Read By Record ID - Pre Update Approved By#Response" ) ;
def content = soapResponseHolder["//out"] ;
content = content.replaceAll( "&lt;!\\[CDATA\\[", "" ) 
content = content.replaceAll( "]]&gt;", "" ) 

def holder = groovyUtils.getXmlHolder( content ) ;
def recordCount = holder["count(//recordIdentifier)"];
assert recordCount == "1";
def approvalFlag = holder["//approvedFlag"];
assert approvalFlag == "PENDING APPROVAL";
def approverCount = holder["count(//approver)"];
assert approverCount == "0";</script></con:config></con:testStep><con:testStep type="request" name="DBQ Update Data - Schema Validation Error"><con:settings/><con:config xsi:type="con:RequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>ClinicalDataServiceSynchronousInterfaceHttpBinding</con:interface><con:operation>appendClinicalData</con:operation><con:request name="DBQ Update Data - Schema Validation Error" outgoingWss="" incomingWss=""><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting><con:setting id="com.eviware.soapui.impl.support.AbstractHttpRequest@follow-redirects">true</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>jms://${CDS_DBQ_UPDATE_JMS_ENDPOINT}</con:endpoint><con:request><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
<clinicaldata:ClinicalData xmlns:clinicaldata="Clinicaldata">
	<templateId>DBQUpdate2</templateId>
	<clientName>SOAP UI</clientName>
	<clientRequestInitiationTime>${CLIENT_REQUEST_INIT_TIME}</clientRequestInitiationTime>
	<patient>
		<questionnaireResults>
			<questionnaireResult>
				<recordIdentifier>
					<identity>${#TestCase#RECORD_ID}</identity>
				</recordIdentifier>
				<documentIdentifier>
					<identity>${DOCUMENTIDENTIFIER_IDENTITY}</identity>
				</documentIdentifier>
				<dateModified>
					<literal>${DATE_MODIFIED__DT}</literal>
				</dateModified>
				<approvedFlag>${APPROVED_FLAG_APPROVED}</approvedFlag>
				<approvedBy>
					<comment>${APRV_BY_PRACTITIONER_COMMENTS}</comment>
					<time>
						<literal>${APRV_BY_PRACTITIONER_DT}</literal>
					</time>
					<practitioner>
						<identifier>
							<identity>${APRV_BY_PERSON_IDENTITY}</identity>
							<assigningFacility>${APRV_BY_PERSON_ASGNING_FCLT}</assigningFacility>
							<assigningAuthority>${APRV_BY_PERSON_ASGNING_AUTH}</assigningAuthority>
						</identifier>
						<idSourceTable>${APRV_BY_PRACTITIONER_ID_S}</idSourceTable>
						<name>
							<prefix>${APRV_BY_NAME_PREFIX}</prefix>
							<given>${APRV_BY_NAME_GIVEN}</given>
							<middle>${APRV_BY_NAME_MIDDLE}</middle>
							<family>${APRV_BY_NAME_FAMILY}</family>
							<suffix>${APRV_BY_NAME_SUFFIX}</suffix>
							<title>${APRV_BY_NAME_TITLE}</title>
						</name>
					</practitioner>
				</approvedBy>
			</questionnaireResult>
		</questionnaireResults>
	</patient>
</clinicaldata:ClinicalData>]]></con:request><con:assertion type="Simple Contains" name="Contains"><con:configuration><token>SCHEMA_VALIDATION_FAILED</token><ignoreCase>false</ignoreCase><useRegEx>false</useRegEx></con:configuration></con:assertion><con:assertion type="XPath Match" name="Matches Request ID"><con:configuration><path>//requestId</path><content>${UPDATE_REQUEST_ID}</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>true</ignoreNamspaceDifferences><ignoreComments>false</ignoreComments></con:configuration></con:assertion><con:credentials><con:username xsi:nil="true"/><con:password xsi:nil="true"/><con:domain xsi:nil="true"/><con:authType>Global HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT" messageSelector="" TimeToLive=""/><con:jmsPropertyConfig><con:jmsProperties name="TEMPLATE_ID" value="DBQUpdate2"/><con:jmsProperties name="REQUEST_ID" value="${UPDATE_REQUEST_ID}"/></con:jmsPropertyConfig><con:wsaConfig mustUnderstand="NONE" version="200508"/><con:wsrmConfig version="1.2"/></con:request></con:config></con:testStep><con:testStep type="request" name="DBQ Update Data Without Date Modified - Schema Validation Error"><con:settings/><con:config xsi:type="con:RequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>ClinicalDataServiceSynchronousInterfaceHttpBinding</con:interface><con:operation>appendClinicalData</con:operation><con:request name="DBQ Update Data Without Date Modified - Schema Validation Error" outgoingWss="" incomingWss=""><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting><con:setting id="com.eviware.soapui.impl.support.AbstractHttpRequest@follow-redirects">true</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>jms://${CDS_DBQ_UPDATE_JMS_ENDPOINT}</con:endpoint><con:request><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
<clinicaldata:ClinicalData xmlns:clinicaldata="Clinicaldata">
	<templateId>DBQUpdate2</templateId>
	<clientName>SOAP UI</clientName>
	<clientRequestInitiationTime>${CLIENT_REQUEST_INIT_TIME}</clientRequestInitiationTime>
	<patient>
		<questionnaireResults>
			<questionnaireResult>
				<documentIdentifier>
					<identity>${DOCUMENTIDENTIFIER_IDENTITY}</identity>
				</documentIdentifier>
				<approvedFlag>${APPROVED_FLAG_APPROVED}</approvedFlag>
			</questionnaireResult>
		</questionnaireResults>
	</patient>
</clinicaldata:ClinicalData>]]></con:request><con:assertion type="Simple Contains" name="Contains"><con:configuration><token>SCHEMA_VALIDATION_FAILED</token><ignoreCase>false</ignoreCase><useRegEx>false</useRegEx></con:configuration></con:assertion><con:assertion type="XPath Match" name="Matches Request ID"><con:configuration><path>//requestId</path><content>${UPDATE_REQUEST_ID}</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>true</ignoreNamspaceDifferences><ignoreComments>false</ignoreComments></con:configuration></con:assertion><con:credentials><con:username xsi:nil="true"/><con:password xsi:nil="true"/><con:domain xsi:nil="true"/><con:authType>Global HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT" messageSelector="" TimeToLive=""/><con:jmsPropertyConfig><con:jmsProperties name="TEMPLATE_ID" value="DBQUpdate2"/><con:jmsProperties name="REQUEST_ID" value="${UPDATE_REQUEST_ID}"/></con:jmsPropertyConfig><con:wsaConfig mustUnderstand="NONE" version="200508"/><con:wsrmConfig version="1.2"/></con:request></con:config></con:testStep><con:testStep type="request" name="DBQ Update Approved Flag - Non-Unique Result"><con:settings/><con:config xsi:type="con:RequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>ClinicalDataServiceSynchronousInterfaceHttpBinding</con:interface><con:operation>appendClinicalData</con:operation><con:request name="DBQ Update Approved Flag - Non-Unique Result" outgoingWss="" incomingWss=""><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting><con:setting id="com.eviware.soapui.impl.support.AbstractHttpRequest@follow-redirects">true</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>jms://${CDS_DBQ_UPDATE_JMS_ENDPOINT}</con:endpoint><con:request><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
<clinicaldata:ClinicalData xmlns:clinicaldata="Clinicaldata">
	<templateId>DBQUpdate2</templateId>
	<clientName>SOAP UI</clientName>
	<clientRequestInitiationTime>${CLIENT_REQUEST_INIT_TIME}</clientRequestInitiationTime>
	<patient>
		<questionnaireResults>
			<questionnaireResult>
				<documentIdentifier>
					<identity>${DOCUMENTIDENTIFIER_IDENTITY}</identity>
				</documentIdentifier>
				<dateModified>
					<literal>${DATE_MODIFIED__DT}</literal>
				</dateModified>
				<approvedFlag>${APPROVED_FLAG_APPROVED}</approvedFlag>
			</questionnaireResult>
		</questionnaireResults>
	</patient>
</clinicaldata:ClinicalData>]]></con:request><con:assertion type="XPath Match" name="Matches Request ID"><con:configuration><path>//requestId</path><content>${UPDATE_REQUEST_ID}</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>true</ignoreNamspaceDifferences><ignoreComments>false</ignoreComments></con:configuration></con:assertion><con:assertion type="Simple Contains" name="Contains"><con:configuration><token>HDRII_OPERATION_FAILED</token><ignoreCase>false</ignoreCase><useRegEx>false</useRegEx></con:configuration></con:assertion><con:credentials><con:username xsi:nil="true"/><con:password xsi:nil="true"/><con:domain xsi:nil="true"/><con:authType>Global HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT" messageSelector="" TimeToLive=""/><con:jmsPropertyConfig><con:jmsProperties name="TEMPLATE_ID" value="DBQUpdate2"/><con:jmsProperties name="REQUEST_ID" value="${UPDATE_REQUEST_ID}"/></con:jmsPropertyConfig><con:wsaConfig mustUnderstand="NONE" version="200508"/><con:wsrmConfig version="1.2"/></con:request></con:config></con:testStep><con:testStep type="request" name="DBQ Update Approved Flag - Valid"><con:settings/><con:config xsi:type="con:RequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>ClinicalDataServiceSynchronousInterfaceHttpBinding</con:interface><con:operation>appendClinicalData</con:operation><con:request name="DBQ Update Approved Flag - Valid" outgoingWss="" incomingWss=""><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting><con:setting id="com.eviware.soapui.impl.support.AbstractHttpRequest@follow-redirects">true</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>jms://${CDS_DBQ_UPDATE_JMS_ENDPOINT}</con:endpoint><con:request><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
<clinicaldata:ClinicalData xmlns:clinicaldata="Clinicaldata">
	<templateId>DBQUpdate2</templateId>
	<clientName>SOAP UI</clientName>
	<clientRequestInitiationTime>${CLIENT_REQUEST_INIT_TIME}</clientRequestInitiationTime>
	<patient>
		<questionnaireResults>
			<questionnaireResult>
				<documentIdentifier>
					<identity>${DOCUMENTIDENTIFIER_IDENTITY}</identity>
					<namespaceId>${DOCUMENTIDENTIFIER_NAMESPACEID}</namespaceId>
					<universalId>${DOCUMENTIDENTIFIER_UNIVERSALID}</universalId>
					<universalIdType>${DOCUMENTIDENTIFIER_UNIVERSTYP}</universalIdType>
				</documentIdentifier>
				<dateModified>
					<literal>${DATE_MODIFIED__DT}</literal>
				</dateModified>
				<approvedFlag>${APPROVED_FLAG_APPROVED}</approvedFlag>
			</questionnaireResult>
		</questionnaireResults>
	</patient>
</clinicaldata:ClinicalData>]]></con:request><con:assertion type="XPath Match" name="Matches Request ID"><con:configuration><path>//requestId</path><content>${UPDATE_REQUEST_ID}</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>true</ignoreNamspaceDifferences><ignoreComments>false</ignoreComments></con:configuration></con:assertion><con:assertion type="XPath Match" name="Matches Docuent ID"><con:configuration><path>//identifier/documentIdentifier/identity</path><content>${DOCUMENTIDENTIFIER_IDENTITY}</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>true</ignoreNamspaceDifferences><ignoreComments>false</ignoreComments></con:configuration></con:assertion><con:credentials><con:username xsi:nil="true"/><con:password xsi:nil="true"/><con:domain xsi:nil="true"/><con:authType>Global HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT" messageSelector="" TimeToLive=""/><con:jmsPropertyConfig><con:jmsProperties name="TEMPLATE_ID" value="DBQUpdate2"/><con:jmsProperties name="REQUEST_ID" value="${UPDATE_REQUEST_ID}"/></con:jmsPropertyConfig><con:wsaConfig mustUnderstand="NONE" version="200508"/><con:wsrmConfig version="1.2"/></con:request></con:config></con:testStep><con:testStep type="request" name="DBQ Detail Read By Record ID - Post Update Approved By"><con:settings/><con:config xsi:type="con:RequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>ClinicalDataServiceSynchronousInterfaceHttpBinding</con:interface><con:operation>readClinicalData1</con:operation><con:request name="DBQ Detail Read By Record ID - Post Update Approved By"><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://${CDS_SERVICE_SOAP_ENDPOINT}</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:cli="http://client.cds.URL       ">
   <soapenv:Header/>
   <soapenv:Body>
      <cli:readClinicalData1>
         <in0>DBQDetailRead2</in0>
         <in1><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
<!--Sample XML file generated by XMLSpy v2012 rel. 2 sp1 (http://www.altova.com)-->
<filter:filter vhimVersion="Vhim_4_00" xsi:schemaLocation="Filter DBQ_Single_Record_All_Data_Filter.xsd" xmlns:filter="Filter" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
	<filterId>DBQ_DETAIL_DATA_FILTER2</filterId>
	<clientName>SOAP UI</clientName>
	<clientRequestInitiationTime>${CLIENT_REQUEST_INIT_TIME}</clientRequestInitiationTime>
	<entryPointFilter queryName="ID_1" isPatientCentric="false">
		<domainEntryPoint>QuestionnaireResult</domainEntryPoint>
		<otherQueryParameters>
			<recordIdentifier>${#TestCase#RECORD_ID}</recordIdentifier>
		</otherQueryParameters>
	</entryPointFilter>
</filter:filter>]]]]>><![CDATA[</in1>
         <in2>DBQ_DETAIL_DATA_FILTER2</in2>
         <in3>${FILTER_REQUEST_ID}</in3>
      </cli:readClinicalData1>
   </soapenv:Body>
</soapenv:Envelope]]></con:request><con:assertion type="SOAP Response"/><con:credentials><con:authType>Global HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:wsaConfig mustUnderstand="NONE" version="200508"/><con:wsrmConfig version="1.2"/></con:request></con:config></con:testStep><con:testStep type="groovy" name="Check DBQ Read By Record ID - Post Update Approved By"><con:settings/><con:config><script>import com.eviware.soapui.support.XmlHolder 

def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context );

def soapResponseHolder = groovyUtils.getXmlHolder( "DBQ Detail Read By Record ID - Post Update Approved By#Response" ) ;
def content = soapResponseHolder["//out"] ;
content = content.replaceAll( "&lt;!\\[CDATA\\[", "" ) 
content = content.replaceAll( "]]&gt;", "" ) 

def holder = groovyUtils.getXmlHolder( content ) ;
def recordCount = holder["count(//recordIdentifier)"]
assert recordCount == "1"
def approvalFlag = holder["//approvedFlag"];
assert approvalFlag == "APPROVED";
//def approvedByCount = holder["count(//approvedBy)"];
//assert approvedByCount == "1";</script></con:config></con:testStep><con:properties><con:property><con:name>RECORD_ID</con:name><con:value>803</con:value></con:property></con:properties></con:testCase><con:testCase failOnError="true" failTestCaseOnErrors="true" keepSession="false" maxResults="0" name="HDR 3.4 DBQ Batch Create Valid" searchProperties="true" id="d6cd022b-3a38-46cc-af2d-7334cd96c727"><con:settings/><con:testStep type="groovy" name="Setup Test Data"><con:settings/><con:config><script><![CDATA[import java.util.UUID;  
import org.apache.commons.lang.time.DateFormatUtils;
context.CLIENT_REQUEST_INIT_TIME = DateFormatUtils.ISO_DATETIME_TIME_ZONE_FORMAT.format( new Date() );
context.REQUEST_ID = UUID.randomUUID().toString(); 

context.DOCUMENTIDENTIFIER_IDENTITY_1 = UUID.randomUUID().toString(); 
context.DETAIL_XML_1 = '<gov.va.agentorange.fasttrack.model.dbq.ihd.IschemicHeartDisease>  <id>7553</id>  <version>0</version>  <dateCreated class="sql-timestamp">2012-01-10 09:45:51.397</dateCreated>  <dateModified class="sql-timestamp">2012-01-10 09:45:51.397</dateModified>  <formType>FORM_TYPE_DBQ_IHD</formType>  <vetSsn>941288701</vetSsn>  <documentStatusType>COMPLETE</documentStatusType>  <documentChannelType>ONLINE</documentChannelType>  <formFileNetStatus>    <id>5760</id>    <version>1</version>    <dateCreated class="sql-timestamp">2012-01-10 09:45:51.437</dateCreated>    <dateModified>2012-01-10 09:45:51.507 EST</dateModified>    <formFnStatusType>PROCESSOR_PROCESSING</formFnStatusType>    <formEntity class="gov.va.agentorange.fasttrack.model.dbq.ihd.IschemicHeartDisease" reference="../.."/>  </formFileNetStatus>  <webFormType>IHD_DBQ</webFormType>  <veteranFirstName>Test</veteranFirstName>  <veteranLastName>Test</veteranLastName>  <physicianFirstName>Dr</physicianFirstName>  <physicianLastName>Test</physicianLastName>  <medicalLicenseNumber>12</medicalLicenseNumber>  <country>US</country>  <addressLine1>Test</addressLine1>  <addressLine2></addressLine2>  <addressLine3></addressLine3>  <city>Test</city>  <state>DELAWARE</state>  <zip>12345</zip>  <physicianPhoneNumber>1231221312</physicianPhoneNumber>  <privacyActAck>true</privacyActAck>  <physicianSignature>true</physicianSignature>  <impactsAbilityToWork>false</impactsAbilityToWork>  <remarks></remarks>  <dateSigned class="sql-timestamp">2012-01-10 09:45:51.397</dateSigned>  <diagnoses class="org.hibernate.collection.PersistentBag">    <initialized>true</initialized>    <owner class="gov.va.agentorange.fasttrack.model.dbq.ihd.IschemicHeartDisease" reference="../.."/>    <cachedSize>-1</cachedSize>    <role>gov.va.agentorange.fasttrack.model.dbq.DbqFormEntity.diagnoses</role>    <key class="long">7553</key>    <dirty>false</dirty>    <storedSnapshot class="list"/>    <bag/>  </diagnoses>  <medications class="org.hibernate.collection.PersistentBag">    <initialized>true</initialized>    <owner class="gov.va.agentorange.fasttrack.model.dbq.ihd.IschemicHeartDisease" reference="../.."/>    <cachedSize>-1</cachedSize>    <role>gov.va.agentorange.fasttrack.model.dbq.DbqFormEntity.medications</role>    <key class="long">7553</key>    <dirty>false</dirty>    <storedSnapshot class="list"/>    <bag/>  </medications>  <diagnosticTests class="org.hibernate.collection.PersistentBag">    <initialized>true</initialized>    <owner class="gov.va.agentorange.fasttrack.model.dbq.ihd.IschemicHeartDisease" reference="../.."/>    <cachedSize>-1</cachedSize>    <role>gov.va.agentorange.fasttrack.model.dbq.DbqFormEntity.diagnosticTests</role>    <key class="long">7553</key>    <dirty>false</dirty>    <storedSnapshot class="list"/>    <bag/>  </diagnosticTests>  <hasIschemicHeartDisease>true</hasIschemicHeartDisease>  <takesContinuousMedication>false</takesContinuousMedication>  <hasPercutaneousCoronaryIntervention>false</hasPercutaneousCoronaryIntervention>  <hasMyocardialInfarction>false</hasMyocardialInfarction>  <hasCoronaryBypassSurgery>false</hasCoronaryBypassSurgery>  <hasHeartTransplant>false</hasHeartTransplant>  <hasImplantedCardiacPacemaker>false</hasImplantedCardiacPacemaker>  <hasImplantedAicd>false</hasImplantedAicd>  <doesVeteranHaveCHF>false</doesVeteranHaveCHF>  <hasExerciseTestBeenConducted>false</hasExerciseTestBeenConducted>  <metsLevel>metsLevel13</metsLevel>  <hasDyspnea>false</hasDyspnea>  <hasFatigue>false</hasFatigue>  <hasAngina>false</hasAngina>  <hasDizziness>false</hasDizziness>  <hasSyncope>true</hasSyncope>  <isEvidenceOfHypertrophyOrDil>false</isEvidenceOfHypertrophyOrDil>  <hasEkg>false</hasEkg>  <hasChestXRay>false</hasChestXRay>  <hasEchocardiogram>false</hasEchocardiogram>  <hasOtherTest>false</hasOtherTest>  <hasLVEF>false</hasLVEF></gov.va.agentorange.fasttrack.model.dbq.ihd.IschemicHeartDisease>';
context.DOCUMENT_TYPE_1 = 'IschemicHeartDisease';

context.DOCUMENTIDENTIFIER_IDENTITY_2 = UUID.randomUUID().toString(); 
context.DETAIL_XML_2 = '<gov.va.agentorange.fasttrack.model.dbq.prc.ProstateCancer><id>7125</id><version>0</version><dateCreated>2012-01-04 20:02:09.28 EST</dateCreated><dateModified reference="../dateCreated"/><formType>FORM_TYPE_DBQ_PRC</formType><vetSsn>091098299</vetSsn><documentStatusType>COMPLETE</documentStatusType><documentChannelType>VA</documentChannelType><createdBy>csmyth</createdBy><webFormType>PRC_DBQ_MED_SUMMARY</webFormType><dbqPurpose>MEDICAL_SUMMARY</dbqPurpose><sourcesOfInformation>add</sourcesOfInformation><veteranFirstName>delete</veteranFirstName><veteranLastName>delete</veteranLastName><impactsAbilityToWork>false</impactsAbilityToWork><dateSigned reference="../dateCreated"/><hasProstateCancer>true</hasProstateCancer><statusOfDisease>REMISSION</statusOfDisease><statusOfTreatment>WATCHFUL_WAITING</statusOfTreatment><hasResiduals>true</hasResiduals><hasVoidingDysfunction>false</hasVoidingDysfunction><hasUrinaryFrequencyProblems>true</hasUrinaryFrequencyProblems><hasObstructedVoidingProblems>false</hasObstructedVoidingProblems><hasUrinaryTractInfections>false</hasUrinaryTractInfections><hasErectileDysfunctionProblems>false</hasErectileDysfunctionProblems><hasRenalDysfunctionProblems>false</hasRenalDysfunctionProblems><hasOtherComplications>false</hasOtherComplications><daytimeFrequency>GREATER_THAN_THREE</daytimeFrequency><nighttimeFrequency>AWAKENING_VOID_2</nighttimeFrequency></gov.va.agentorange.fasttrack.model.dbq.prc.ProstateCancer>';
context.DOCUMENT_TYPE_2 = 'ProstateCancer';


context.APPROVED_FLAG = 'PENDING';
context.AUTH_NAME_FAMILY = 'FamilyName';
context.AUTH_NAME_GIVEN = 'Given';
context.AUTH_NAME_MIDDLE = 'MiddleName';
context.AUTH_NAME_PREFIX = 'Prefix';
context.AUTH_NAME_SUFFIX = 'Suffix';
context.AUTH_NAME_TITLE = 'Title';
context.AUTH_PERSON_ASGNING_AUTHORITY = 'USVHA';
context.AUTH_PERSON_ASGNING_FACILITY = '402';
context.AUTH_PERSON_IDENTITY = 'test_AUTHORID_1003';
context.AUTH_PRACTITIONER_COMMENTS = 'Author Comment';
context.AUTH_PRACTITIONER_ID_SRC_TBL = 'IdSourceTable';
context.AUTH_PRACTITIONER_DT = '20120501162517-0600';
context.AUTH_PRACTITIONER_DT_UTC = ''; //set by system
context.DATE_MODIFIED__DT = null; 
context.DATE_MODIFIED__DT_UTC = null; 
context.DOCUMENTIDENTIFIER_NAMESPACEID = '402';
context.DOCUMENTIDENTIFIER_UNIVERSALID = 'UID_13359111174322';
context.DOCUMENTIDENTIFIER_UNIVERSTYP = 'universalIdType';
context.FACILITY_ASSIGNING_AUTHORITY = 'AssigningAuthNamespaceId';
context.FACILITY_IDENTITY = 'OrganizationId';
context.FACILITY_NAME = 'OrganizationName';
context.INITIATING_SYSTEM = 'InitiatingSystem';
context.MESSAGE_INSERTION_TIME = ''; //entered by system? 5/10/2012 2:28:41.116285 PM
context.PATIENT_ASSIGNING_AUTHORITY = 'USVHA';
context.PATIENT_ASSIGNING_FACILITY = '402';
context.PATIENT_IDENTITY = 'test_10004';
context.PATIENT_NAME_FAMILY = 'FamilyName';
context.PATIENT_NAME_GIVEN = 'Given';
context.PATIENT_NAME_MIDDLE = 'MiddleName';
context.PATIENT_NAME_PREFIX = 'Prefix';
context.PATIENT_NAME_SUFFIX = 'Suffix';
context.PATIENT_NAME_TITLE = 'Title';
context.QUESTIONNAIRE_RESULT_ID = ''; //DB Primary Key?
context.RECORDIDENTIFIER_IDENTITY = null;
context.RECORDIDENTIFIER_NAMESPACEID = null;
context.RECORDIDENTIFIER_UNIVERSALID = null;
context.RECORDIDENTIFIER_UNIVERSTYP = null;
context.RECORD_UPDATE_DT = '19691231170000-0700'; //Updated by system?
context.RECORD_UPDATE_DT_UTC = ''; //set by system
context.RECORD_VERSION = 3;]]></script></con:config></con:testStep><con:testStep type="request" name="DBQ Create Data - Valid"><con:settings/><con:config xsi:type="con:RequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>ClinicalDataServiceSynchronousInterfaceHttpBinding</con:interface><con:operation>appendClinicalData</con:operation><con:request name="DBQ Create Data - Valid" outgoingWss="" incomingWss=""><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting><con:setting id="com.eviware.soapui.impl.support.AbstractHttpRequest@follow-redirects">true</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>jms://${CDS_DBQ_JMS_ENDPOINT}</con:endpoint><con:request><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
<clinicaldata:ClinicalData xmlns:clinicaldata="Clinicaldata">
	<templateId>DBQCreate2</templateId>
	<clientName>SOAP UI</clientName>
	<clientRequestInitiationTime>${CLIENT_REQUEST_INIT_TIME}</clientRequestInitiationTime>
	<patient>
		<questionnaireResults>
			<questionnaireResult>
				<patient>
					<identifier>
						<identity>${PATIENT_IDENTITY}</identity>
						<assigningFacility>${PATIENT_ASSIGNING_FACILITY}</assigningFacility>
						<assigningAuthority>${PATIENT_ASSIGNING_AUTHORITY}</assigningAuthority>
					</identifier>
					<name>
						<prefix>${PATIENT_NAME_PREFIX}</prefix>
						<given>${PATIENT_NAME_GIVEN}</given>
						<middle>${PATIENT_NAME_MIDDLE}</middle>
						<family>${PATIENT_NAME_FAMILY}</family>
						<suffix>${PATIENT_NAME_SUFFIX}</suffix>
						<title>${PATIENT_NAME_TITLE}</title>
					</name>
				</patient>
				<dateCreated>
					<literal>${RECORD_UPDATE_DT}</literal>
				</dateCreated>
				<claimNumber>
					<root>${=java.util.UUID.randomUUID().toString()}</root>
				</claimNumber>
				<documentType>${DOCUMENT_TYPE_1}</documentType>
				<initiatingSystem>${INITIATING_SYSTEM}</initiatingSystem>
				<documentIdentifier>
					<identity>${DOCUMENTIDENTIFIER_IDENTITY_1}</identity>
					<namespaceId>${DOCUMENTIDENTIFIER_NAMESPACEID}</namespaceId>
					<universalId>${DOCUMENTIDENTIFIER_UNIVERSALID}</universalId>
					<universalIdType>${DOCUMENTIDENTIFIER_UNIVERSTYP}</universalIdType>
				</documentIdentifier>
				<facilityIdentifier>
					<identity>${FACILITY_IDENTITY}</identity>
					<name>${FACILITY_NAME}</name>
					<assigningAuthority>${FACILITY_ASSIGNING_AUTHORITY}</assigningAuthority>
				</facilityIdentifier>
				<approvedFlag>${APPROVED_FLAG}</approvedFlag>
				<author>
					<comment>${AUTH_PRACTITIONER_COMMENTS}</comment>
					<time>
						<literal>${AUTH_PRACTITIONER_DT}</literal>
					</time>
					<practitioner>
						<identifier>
							<identity>${AUTH_PERSON_IDENTITY}</identity>
							<assigningFacility>${AUTH_PERSON_ASGNING_FACILITY}</assigningFacility>
							<assigningAuthority>${AUTH_PERSON_ASGNING_AUTHORITY}</assigningAuthority>
						</identifier>
						<idSourceTable>${AUTH_PRACTITIONER_ID_SRC_TBL}</idSourceTable>
						<name>
							<prefix>${AUTH_NAME_PREFIX}</prefix>
							<given>${AUTH_NAME_GIVEN}</given>
							<middle>${AUTH_NAME_MIDDLE}</middle>
							<family>${AUTH_NAME_FAMILY}</family>
							<suffix>${AUTH_NAME_SUFFIX}</suffix>
							<title>${AUTH_NAME_TITLE}</title>
						</name>
					</practitioner>
				</author>
				<detailXML>${DETAIL_XML_1}</detailXML>
			</questionnaireResult>
			<questionnaireResult>
				<patient>
					<identifier>
						<identity>${PATIENT_IDENTITY}</identity>
						<assigningFacility>${PATIENT_ASSIGNING_FACILITY}</assigningFacility>
						<assigningAuthority>${PATIENT_ASSIGNING_AUTHORITY}</assigningAuthority>
					</identifier>
					<name>
						<prefix>${PATIENT_NAME_PREFIX}</prefix>
						<given>${PATIENT_NAME_GIVEN}</given>
						<middle>${PATIENT_NAME_MIDDLE}</middle>
						<family>${PATIENT_NAME_FAMILY}</family>
						<suffix>${PATIENT_NAME_SUFFIX}</suffix>
						<title>${PATIENT_NAME_TITLE}</title>
					</name>
				</patient>
				<dateCreated>
					<literal>${RECORD_UPDATE_DT}</literal>
				</dateCreated>
				<claimNumber>
					<root>${=java.util.UUID.randomUUID().toString()}</root>
				</claimNumber>
				<documentType>${DOCUMENT_TYPE_2}</documentType>
				<initiatingSystem>${INITIATING_SYSTEM}</initiatingSystem>
				<documentIdentifier>
					<identity>${DOCUMENTIDENTIFIER_IDENTITY_2}</identity>
					<namespaceId>${DOCUMENTIDENTIFIER_NAMESPACEID}</namespaceId>
					<universalId>${DOCUMENTIDENTIFIER_UNIVERSALID}</universalId>
					<universalIdType>${DOCUMENTIDENTIFIER_UNIVERSTYP}</universalIdType>
				</documentIdentifier>
				<facilityIdentifier>
					<identity>${FACILITY_IDENTITY}</identity>
					<name>${FACILITY_NAME}</name>
					<assigningAuthority>${FACILITY_ASSIGNING_AUTHORITY}</assigningAuthority>
				</facilityIdentifier>
				<approvedFlag>${APPROVED_FLAG}</approvedFlag>
				<author>
					<comment>${AUTH_PRACTITIONER_COMMENTS}</comment>
					<time>
						<literal>${AUTH_PRACTITIONER_DT}</literal>
					</time>
					<practitioner>
						<identifier>
							<identity>${AUTH_PERSON_IDENTITY}</identity>
							<assigningFacility>${AUTH_PERSON_ASGNING_FACILITY}</assigningFacility>
							<assigningAuthority>${AUTH_PERSON_ASGNING_AUTHORITY}</assigningAuthority>
						</identifier>
						<idSourceTable>${AUTH_PRACTITIONER_ID_SRC_TBL}</idSourceTable>
						<name>
							<prefix>${AUTH_NAME_PREFIX}</prefix>
							<given>${AUTH_NAME_GIVEN}</given>
							<middle>${AUTH_NAME_MIDDLE}</middle>
							<family>${AUTH_NAME_FAMILY}</family>
							<suffix>${AUTH_NAME_SUFFIX}</suffix>
							<title>${AUTH_NAME_TITLE}</title>
						</name>
					</practitioner>
				</author>
				<detailXML>${DETAIL_XML_2}</detailXML>
			</questionnaireResult>
		</questionnaireResults>
	</patient>
</clinicaldata:ClinicalData>
]]></con:request><con:assertion type="XPath Match" name="Matches Request ID"><con:configuration><path>//requestId</path><content>${REQUEST_ID}</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>true</ignoreNamspaceDifferences><ignoreComments>false</ignoreComments></con:configuration></con:assertion><con:assertion type="XPath Match" name="Matches Docuent ID"><con:configuration><path>//identifier[1]/documentIdentifier/identity</path><content>${DOCUMENTIDENTIFIER_IDENTITY_1}</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>true</ignoreNamspaceDifferences><ignoreComments>false</ignoreComments></con:configuration></con:assertion><con:assertion type="XPath Match" name="Matches Docuent ID - 2"><con:configuration><path>//identifier[2]/documentIdentifier/identity</path><content>${DOCUMENTIDENTIFIER_IDENTITY_2}</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>true</ignoreNamspaceDifferences><ignoreComments>false</ignoreComments></con:configuration></con:assertion><con:assertion type="XPath Match" name="Response Includes Record Identifier"><con:configuration><path>count(//identifiers/identifier)</path><content>2</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>true</ignoreNamspaceDifferences><ignoreComments>false</ignoreComments></con:configuration></con:assertion><con:assertion type="XPath Match" name="Response Includes Status"><con:configuration><path>count(//status)</path><content>2</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>true</ignoreNamspaceDifferences><ignoreComments>false</ignoreComments></con:configuration></con:assertion><con:credentials><con:username xsi:nil="true"/><con:password xsi:nil="true"/><con:domain xsi:nil="true"/><con:authType>Global HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT" messageSelector="" TimeToLive=""/><con:jmsPropertyConfig><con:jmsProperties name="TEMPLATE_ID" value="DBQCreate2"/><con:jmsProperties name="REQUEST_ID" value="${REQUEST_ID}"/></con:jmsPropertyConfig><con:wsaConfig mustUnderstand="NONE" version="200508"/><con:wsrmConfig version="1.2"/></con:request></con:config></con:testStep><con:testStep type="groovy" name="Validation Script"><con:settings/><con:config><script>import groovy.sql.Sql;

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

def db = [url:dbUrl,
          user:dbUser,
          password:dbPassword,
          driver:'oracle.jdbc.OracleDriver']
          
def sql = Sql.newInstance(db.url, db.user, db.password, db.driver);


row = sql.rows("select * from questionnaire_result q where REQUEST_ID = :request_id", 
					[doc_id:context.REQUEST_ID]);

// Check Audit for clientRequestInitiationTime and clientId
def auditRows = sql.rows("select * from AUDIT_CLOB_STR a where REQUEST_ID = :request_id", 
					[request_id:context.REQUEST_ID]);
assert auditRows.size() == 2;
assert auditRows[0].CLIENT_IDENTIFIER == 'SOAP UI';
assert auditRows[0].REQUEST_ID == context.REQUEST_ID;

assert auditRows[1].CLIENT_IDENTIFIER == 'SOAP UI';
assert auditRows[1].REQUEST_ID == context.REQUEST_ID;</script></con:config></con:testStep><con:properties/></con:testCase><con:testCase failOnError="true" failTestCaseOnErrors="true" keepSession="false" maxResults="0" name="HDR 3.4 DBQ Batch Create Invalid" searchProperties="true" id="fdf668fc-bd1d-4f35-96c6-e4860409b412"><con:settings/><con:testStep type="groovy" name="Setup Test Data"><con:settings/><con:config><script><![CDATA[import java.util.UUID;  
import org.apache.commons.lang.time.DateFormatUtils;
context.CLIENT_REQUEST_INIT_TIME = DateFormatUtils.ISO_DATETIME_TIME_ZONE_FORMAT.format( new Date() );
context.REQUEST_ID = UUID.randomUUID().toString(); 

context.DOCUMENTIDENTIFIER_IDENTITY_1 = UUID.randomUUID().toString(); 
context.DETAIL_XML_1 = '<gov.va.agentorange.fasttrack.model.dbq.ihd.IschemicHeartDisease>  <id>7553</id>  <version>0</version>  <dateCreated class="sql-timestamp">2012-01-10 09:45:51.397</dateCreated>  <dateModified class="sql-timestamp">2012-01-10 09:45:51.397</dateModified>  <formType>FORM_TYPE_DBQ_IHD</formType>  <vetSsn>941288701</vetSsn>  <documentStatusType>COMPLETE</documentStatusType>  <documentChannelType>ONLINE</documentChannelType>  <formFileNetStatus>    <id>5760</id>    <version>1</version>    <dateCreated class="sql-timestamp">2012-01-10 09:45:51.437</dateCreated>    <dateModified>2012-01-10 09:45:51.507 EST</dateModified>    <formFnStatusType>PROCESSOR_PROCESSING</formFnStatusType>    <formEntity class="gov.va.agentorange.fasttrack.model.dbq.ihd.IschemicHeartDisease" reference="../.."/>  </formFileNetStatus>  <webFormType>IHD_DBQ</webFormType>  <veteranFirstName>Test</veteranFirstName>  <veteranLastName>Test</veteranLastName>  <physicianFirstName>Dr</physicianFirstName>  <physicianLastName>Test</physicianLastName>  <medicalLicenseNumber>12</medicalLicenseNumber>  <country>US</country>  <addressLine1>Test</addressLine1>  <addressLine2></addressLine2>  <addressLine3></addressLine3>  <city>Test</city>  <state>DELAWARE</state>  <zip>12345</zip>  <physicianPhoneNumber>1231221312</physicianPhoneNumber>  <privacyActAck>true</privacyActAck>  <physicianSignature>true</physicianSignature>  <impactsAbilityToWork>false</impactsAbilityToWork>  <remarks></remarks>  <dateSigned class="sql-timestamp">2012-01-10 09:45:51.397</dateSigned>  <diagnoses class="org.hibernate.collection.PersistentBag">    <initialized>true</initialized>    <owner class="gov.va.agentorange.fasttrack.model.dbq.ihd.IschemicHeartDisease" reference="../.."/>    <cachedSize>-1</cachedSize>    <role>gov.va.agentorange.fasttrack.model.dbq.DbqFormEntity.diagnoses</role>    <key class="long">7553</key>    <dirty>false</dirty>    <storedSnapshot class="list"/>    <bag/>  </diagnoses>  <medications class="org.hibernate.collection.PersistentBag">    <initialized>true</initialized>    <owner class="gov.va.agentorange.fasttrack.model.dbq.ihd.IschemicHeartDisease" reference="../.."/>    <cachedSize>-1</cachedSize>    <role>gov.va.agentorange.fasttrack.model.dbq.DbqFormEntity.medications</role>    <key class="long">7553</key>    <dirty>false</dirty>    <storedSnapshot class="list"/>    <bag/>  </medications>  <diagnosticTests class="org.hibernate.collection.PersistentBag">    <initialized>true</initialized>    <owner class="gov.va.agentorange.fasttrack.model.dbq.ihd.IschemicHeartDisease" reference="../.."/>    <cachedSize>-1</cachedSize>    <role>gov.va.agentorange.fasttrack.model.dbq.DbqFormEntity.diagnosticTests</role>    <key class="long">7553</key>    <dirty>false</dirty>    <storedSnapshot class="list"/>    <bag/>  </diagnosticTests>  <hasIschemicHeartDisease>true</hasIschemicHeartDisease>  <takesContinuousMedication>false</takesContinuousMedication>  <hasPercutaneousCoronaryIntervention>false</hasPercutaneousCoronaryIntervention>  <hasMyocardialInfarction>false</hasMyocardialInfarction>  <hasCoronaryBypassSurgery>false</hasCoronaryBypassSurgery>  <hasHeartTransplant>false</hasHeartTransplant>  <hasImplantedCardiacPacemaker>false</hasImplantedCardiacPacemaker>  <hasImplantedAicd>false</hasImplantedAicd>  <doesVeteranHaveCHF>false</doesVeteranHaveCHF>  <hasExerciseTestBeenConducted>false</hasExerciseTestBeenConducted>  <metsLevel>metsLevel13</metsLevel>  <hasDyspnea>false</hasDyspnea>  <hasFatigue>false</hasFatigue>  <hasAngina>false</hasAngina>  <hasDizziness>false</hasDizziness>  <hasSyncope>true</hasSyncope>  <isEvidenceOfHypertrophyOrDil>false</isEvidenceOfHypertrophyOrDil>  <hasEkg>false</hasEkg>  <hasChestXRay>false</hasChestXRay>  <hasEchocardiogram>false</hasEchocardiogram>  <hasOtherTest>false</hasOtherTest>  <hasLVEF>false</hasLVEF></gov.va.agentorange.fasttrack.model.dbq.ihd.IschemicHeartDisease>';
context.DOCUMENT_TYPE_1 = 'IschemicHeartDisease';

context.DOCUMENTIDENTIFIER_IDENTITY_2 = UUID.randomUUID().toString(); 
context.DETAIL_XML_2 = '<gov.va.agentorange.fasttrack.model.dbq.prc.ProstateCancer><id>7125</id><version>0</version><dateCreated>2012-01-04 20:02:09.28 EST</dateCreated><dateModified reference="../dateCreated"/><formType>FORM_TYPE_DBQ_PRC</formType><vetSsn>091098299</vetSsn><documentStatusType>COMPLETE</documentStatusType><documentChannelType>VA</documentChannelType><createdBy>csmyth</createdBy><webFormType>PRC_DBQ_MED_SUMMARY</webFormType><dbqPurpose>MEDICAL_SUMMARY</dbqPurpose><sourcesOfInformation>add</sourcesOfInformation><veteranFirstName>delete</veteranFirstName><veteranLastName>delete</veteranLastName><impactsAbilityToWork>false</impactsAbilityToWork><dateSigned reference="../dateCreated"/><hasProstateCancer>true</hasProstateCancer><statusOfDisease>REMISSION</statusOfDisease><statusOfTreatment>WATCHFUL_WAITING</statusOfTreatment><hasResiduals>true</hasResiduals><hasVoidingDysfunction>false</hasVoidingDysfunction><hasUrinaryFrequencyProblems>true</hasUrinaryFrequencyProblems><hasObstructedVoidingProblems>false</hasObstructedVoidingProblems><hasUrinaryTractInfections>false</hasUrinaryTractInfections><hasErectileDysfunctionProblems>false</hasErectileDysfunctionProblems><hasRenalDysfunctionProblems>false</hasRenalDysfunctionProblems><hasOtherComplications>false</hasOtherComplications><daytimeFrequency>GREATER_THAN_THREE</daytimeFrequency><nighttimeFrequency>AWAKENING_VOID_2</nighttimeFrequency></gov.va.agentorange.fasttrack.model.dbq.prc.ProstateCancer>';
context.DOCUMENT_TYPE_2 = 'ProstateCancer';


context.APPROVED_FLAG = 'PENDING';
context.AUTH_NAME_FAMILY = 'FamilyName';
context.AUTH_NAME_GIVEN = 'Given';
context.AUTH_NAME_MIDDLE = 'MiddleName';
context.AUTH_NAME_PREFIX = 'Prefix';
context.AUTH_NAME_SUFFIX = 'Suffix';
context.AUTH_NAME_TITLE = 'Title';
context.AUTH_PERSON_ASGNING_AUTHORITY = 'USVHA';
context.AUTH_PERSON_ASGNING_FACILITY = '402';
context.AUTH_PERSON_IDENTITY = 'test_AUTHORID_1003';
context.AUTH_PRACTITIONER_COMMENTS = 'Author Comment';
context.AUTH_PRACTITIONER_ID_SRC_TBL = 'IdSourceTable';
context.AUTH_PRACTITIONER_DT = '20120501162517-0600';
context.AUTH_PRACTITIONER_DT_UTC = ''; //set by system
context.DATE_MODIFIED__DT = null; 
context.DATE_MODIFIED__DT_UTC = null; 
context.DOCUMENTIDENTIFIER_NAMESPACEID = '402';
context.DOCUMENTIDENTIFIER_UNIVERSALID = 'UID_13359111174322';
context.DOCUMENTIDENTIFIER_UNIVERSTYP = 'universalIdType';
context.FACILITY_ASSIGNING_AUTHORITY = 'AssigningAuthNamespaceId';
context.FACILITY_IDENTITY = 'OrganizationId';
context.FACILITY_NAME = 'OrganizationName';
context.INITIATING_SYSTEM = 'InitiatingSystem';
context.MESSAGE_INSERTION_TIME = ''; //entered by system? 5/10/2012 2:28:41.116285 PM
context.PATIENT_ASSIGNING_AUTHORITY = 'USVHA';
context.PATIENT_ASSIGNING_FACILITY = '402';
context.PATIENT_IDENTITY = 'test_10004';
context.PATIENT_NAME_FAMILY = 'FamilyName';
context.PATIENT_NAME_GIVEN = 'Given';
context.PATIENT_NAME_MIDDLE = 'MiddleName';
context.PATIENT_NAME_PREFIX = 'Prefix';
context.PATIENT_NAME_SUFFIX = 'Suffix';
context.PATIENT_NAME_TITLE = 'Title';
context.QUESTIONNAIRE_RESULT_ID = ''; //DB Primary Key?
context.RECORDIDENTIFIER_IDENTITY = null;
context.RECORDIDENTIFIER_NAMESPACEID = null;
context.RECORDIDENTIFIER_UNIVERSALID = null;
context.RECORDIDENTIFIER_UNIVERSTYP = null;
context.RECORD_UPDATE_DT = '19691231170000-0700'; //Updated by system?
context.RECORD_UPDATE_DT_UTC = ''; //set by system
context.RECORD_VERSION = 3;]]></script></con:config></con:testStep><con:testStep type="request" name="DBQ Create Data - Valid"><con:settings/><con:config xsi:type="con:RequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>ClinicalDataServiceSynchronousInterfaceHttpBinding</con:interface><con:operation>appendClinicalData</con:operation><con:request name="DBQ Create Data - Valid" outgoingWss="" incomingWss=""><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting><con:setting id="com.eviware.soapui.impl.support.AbstractHttpRequest@follow-redirects">true</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>jms://${CDS_DBQ_JMS_ENDPOINT}</con:endpoint><con:request><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
<clinicaldata:ClinicalData xmlns:clinicaldata="Clinicaldata">
	<templateId>DBQCreate2</templateId>
	<clientName>SOAP UI</clientName>
	<clientRequestInitiationTime>${CLIENT_REQUEST_INIT_TIME}</clientRequestInitiationTime>
	<patient>
		<questionnaireResults>
			<questionnaireResult>
				<patient>
					<identifier>
						<identity>${PATIENT_IDENTITY}</identity>
						<assigningFacility>${PATIENT_ASSIGNING_FACILITY}</assigningFacility>
						<assigningAuthority>${PATIENT_ASSIGNING_AUTHORITY}</assigningAuthority>
					</identifier>
					<name>
						<prefix>${PATIENT_NAME_PREFIX}</prefix>
						<given>${PATIENT_NAME_GIVEN}</given>
						<middle>${PATIENT_NAME_MIDDLE}</middle>
						<family>${PATIENT_NAME_FAMILY}</family>
						<suffix>${PATIENT_NAME_SUFFIX}</suffix>
						<title>${PATIENT_NAME_TITLE}</title>
					</name>
				</patient>
				<dateCreated>
					<literal>${RECORD_UPDATE_DT}</literal>
				</dateCreated>
				<claimNumber>
					<root>${=java.util.UUID.randomUUID().toString()}</root>
				</claimNumber>
				<documentType>${DOCUMENT_TYPE_1}</documentType>
				<initiatingSystem>${INITIATING_SYSTEM}</initiatingSystem>
				<documentIdentifier>
					<identity>${DOCUMENTIDENTIFIER_IDENTITY_1}</identity>
					<namespaceId>${DOCUMENTIDENTIFIER_NAMESPACEID}</namespaceId>
					<universalId>${DOCUMENTIDENTIFIER_UNIVERSALID}</universalId>
					<universalIdType>${DOCUMENTIDENTIFIER_UNIVERSTYP}</universalIdType>
				</documentIdentifier>
				<facilityIdentifier>
					<identity>${FACILITY_IDENTITY}</identity>
					<name>${FACILITY_NAME}</name>
					<assigningAuthority>${FACILITY_ASSIGNING_AUTHORITY}</assigningAuthority>
				</facilityIdentifier>
				<approvedFlag>${APPROVED_FLAG}</approvedFlag>
				<author>
					<comment>${AUTH_PRACTITIONER_COMMENTS}</comment>
					<time>
						<literal>${AUTH_PRACTITIONER_DT}</literal>
					</time>
					<practitioner>
						<identifier>
							<identity>${AUTH_PERSON_IDENTITY}</identity>
							<assigningFacility>${AUTH_PERSON_ASGNING_FACILITY}</assigningFacility>
							<assigningAuthority>${AUTH_PERSON_ASGNING_AUTHORITY}</assigningAuthority>
						</identifier>
						<idSourceTable>${AUTH_PRACTITIONER_ID_SRC_TBL}</idSourceTable>
						<name>
							<prefix>${AUTH_NAME_PREFIX}</prefix>
							<given>${AUTH_NAME_GIVEN}</given>
							<middle>${AUTH_NAME_MIDDLE}</middle>
							<family>${AUTH_NAME_FAMILY}</family>
							<suffix>${AUTH_NAME_SUFFIX}</suffix>
							<title>${AUTH_NAME_TITLE}</title>
						</name>
					</practitioner>
				</author>
				<detailXML>${DETAIL_XML_1}</detailXML>
			</questionnaireResult>
			<questionnaireResult>
				<patient>
					<identifier>
						<identity>${PATIENT_IDENTITY}</identity>
						<assigningFacility>${PATIENT_ASSIGNING_FACILITY}</assigningFacility>
						<assigningAuthority>${PATIENT_ASSIGNING_AUTHORITY}</assigningAuthority>
					</identifier>
					<name>
						<prefix>${PATIENT_NAME_PREFIX}</prefix>
						<given>${PATIENT_NAME_GIVEN}</given>
						<middle>${PATIENT_NAME_MIDDLE}</middle>
						<family>${PATIENT_NAME_FAMILY}</family>
						<suffix>${PATIENT_NAME_SUFFIX}</suffix>
						<title>${PATIENT_NAME_TITLE}</title>
					</name>
				</patient>
				<dateCreated>
					<literal>${RECORD_UPDATE_DT}</literal>
				</dateCreated>
				<claimNumber>
					<root>${=java.util.UUID.randomUUID().toString()}</root>
				</claimNumber>
				<documentType>${DOCUMENT_TYPE_2}</documentType>
				<initiatingSystem>${INITIATING_SYSTEM}</initiatingSystem>
				<documentIdentifier>
					<identity>${DOCUMENTIDENTIFIER_IDENTITY_2}</identity>
					<namespaceId>${DOCUMENTIDENTIFIER_NAMESPACEID}</namespaceId>
					<universalId>${DOCUMENTIDENTIFIER_UNIVERSALID}</universalId>
					<universalIdType>${DOCUMENTIDENTIFIER_UNIVERSTYP}</universalIdType>
				</documentIdentifier>
				<facilityIdentifier>
					<identity>${FACILITY_IDENTITY}</identity>
					<name>${FACILITY_NAME}</name>
					<assigningAuthority>${FACILITY_ASSIGNING_AUTHORITY}</assigningAuthority>
				</facilityIdentifier>
				<approvedFlag>${APPROVED_FLAG}</approvedFlag>
				<author>
					<comment>${AUTH_PRACTITIONER_COMMENTS}</comment>
					<time>
						<literal>${AUTH_PRACTITIONER_DT}</literal>
					</time>
					<practitioner>
						<identifier>
							<identity>${AUTH_PERSON_IDENTITY}</identity>
							<assigningFacility>${AUTH_PERSON_ASGNING_FACILITY}</assigningFacility>
							<assigningAuthority>${AUTH_PERSON_ASGNING_AUTHORITY}</assigningAuthority>
						</identifier>
						<idSourceTable>${AUTH_PRACTITIONER_ID_SRC_TBL}</idSourceTable>
						<name>
							<prefix>${AUTH_NAME_PREFIX}</prefix>
							<given>${AUTH_NAME_GIVEN}</given>
							<middle>${AUTH_NAME_MIDDLE}</middle>
							<family>${AUTH_NAME_FAMILY}</family>
							<suffix>${AUTH_NAME_SUFFIX}</suffix>
							<title>${AUTH_NAME_TITLE}</title>
						</name>
					</practitioner>
				</author>
				<detailXML>${DETAIL_XML_2}</detailXML>
			</questionnaireResult>
			<questionnaireResult>
				<patient>
					<identifier>
						<identity>${PATIENT_IDENTITY}</identity>
						<assigningFacility>${PATIENT_ASSIGNING_FACILITY}</assigningFacility>
						<assigningAuthority>${PATIENT_ASSIGNING_AUTHORITY}</assigningAuthority>
					</identifier>
					<name>
						<prefix>${PATIENT_NAME_PREFIX}</prefix>
						<given>${PATIENT_NAME_GIVEN}</given>
						<middle>${PATIENT_NAME_MIDDLE}</middle>
						<family>${PATIENT_NAME_FAMILY}</family>
						<suffix>${PATIENT_NAME_SUFFIX}</suffix>
						<title>${PATIENT_NAME_TITLE}</title>
					</name>
				</patient>
				<dateCreated>
					<literal>${RECORD_UPDATE_DT}</literal>
				</dateCreated>
				<claimNumber>
					<root>${=java.util.UUID.randomUUID().toString()}</root>
				</claimNumber>
				<documentType>${DOCUMENT_TYPE_2}</documentType>
				<initiatingSystem>${INITIATING_SYSTEM}</initiatingSystem>
				<documentIdentifier>
					<identity>${DOCUMENTIDENTIFIER_IDENTITY_2}</identity>
					<namespaceId>${DOCUMENTIDENTIFIER_NAMESPACEID}</namespaceId>
					<universalId>${DOCUMENTIDENTIFIER_UNIVERSALID}</universalId>
					<universalIdType>${DOCUMENTIDENTIFIER_UNIVERSTYP}</universalIdType>
				</documentIdentifier>
				<facilityIdentifier>
					<identity>${FACILITY_IDENTITY}</identity>
					<name>${FACILITY_NAME}</name>
					<assigningAuthority>${FACILITY_ASSIGNING_AUTHORITY}</assigningAuthority>
				</facilityIdentifier>
				<approvedFlag>${APPROVED_FLAG}</approvedFlag>
				<author>
					<comment>${AUTH_PRACTITIONER_COMMENTS}</comment>
					<time>
						<literal>${AUTH_PRACTITIONER_DT}</literal>
					</time>
					<practitioner>
						<identifier>
							<identity>${AUTH_PERSON_IDENTITY}</identity>
							<assigningFacility>${AUTH_PERSON_ASGNING_FACILITY}</assigningFacility>
							<assigningAuthority>${AUTH_PERSON_ASGNING_AUTHORITY}</assigningAuthority>
						</identifier>
						<idSourceTable>${AUTH_PRACTITIONER_ID_SRC_TBL}</idSourceTable>
						<name>
							<prefix>${AUTH_NAME_PREFIX}</prefix>
							<given>${AUTH_NAME_GIVEN}</given>
							<middle>${AUTH_NAME_MIDDLE}</middle>
							<family>${AUTH_NAME_FAMILY}</family>
							<suffix>${AUTH_NAME_SUFFIX}</suffix>
							<title>${AUTH_NAME_TITLE}</title>
						</name>
					</practitioner>
				</author>
				<detailXML>${DETAIL_XML_2}</detailXML>
			</questionnaireResult>
		</questionnaireResults>
	</patient>
</clinicaldata:ClinicalData>
]]></con:request><con:assertion type="XPath Match" name="Matches Request ID"><con:configuration><path>//requestId</path><content>${REQUEST_ID}</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>true</ignoreNamspaceDifferences><ignoreComments>false</ignoreComments></con:configuration></con:assertion><con:assertion type="XPath Match" name="Response Includes Record Identifier"><con:configuration><path>count(//identifiers/identifier)</path><content>0</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>true</ignoreNamspaceDifferences><ignoreComments>false</ignoreComments></con:configuration></con:assertion><con:assertion type="Simple Contains" name="Contains"><con:configuration><token>HDRII_CONSTRAINT_VIOLATED</token><ignoreCase>false</ignoreCase><useRegEx>false</useRegEx></con:configuration></con:assertion><con:credentials><con:username xsi:nil="true"/><con:password xsi:nil="true"/><con:domain xsi:nil="true"/><con:authType>Global HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT" messageSelector="" TimeToLive=""/><con:jmsPropertyConfig><con:jmsProperties name="TEMPLATE_ID" value="DBQCreate2"/><con:jmsProperties name="REQUEST_ID" value="${REQUEST_ID}"/></con:jmsPropertyConfig><con:wsaConfig mustUnderstand="NONE" version="200508"/><con:wsrmConfig version="1.2"/></con:request></con:config></con:testStep><con:testStep type="groovy" name="Validation Script"><con:settings/><con:config><script>import groovy.sql.Sql;

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

def db = [url:dbUrl,
          user:dbUser,
          password:dbPassword,
          driver:'oracle.jdbc.OracleDriver']
          
def sql = Sql.newInstance(db.url, db.user, db.password, db.driver);


row = sql.rows("select * from questionnaire_result q where REQUEST_ID = :request_id", 
					[doc_id:context.REQUEST_ID]);

assert row.size() == 0;

// Check Audit for clientRequestInitiationTime and clientId
def auditRows = sql.rows("select * from AUDIT_CLOB_STR a where REQUEST_ID = :request_id", 
					[request_id:context.REQUEST_ID]);
assert auditRows.size() == 2;
assert auditRows[0].CLIENT_IDENTIFIER == 'SOAP UI';
assert auditRows[0].REQUEST_ID == context.REQUEST_ID;

assert auditRows[1].CLIENT_IDENTIFIER == 'SOAP UI';
assert auditRows[1].REQUEST_ID == context.REQUEST_ID;
</script></con:config></con:testStep><con:properties/></con:testCase><con:properties/></con:testSuite><con:testSuite name="HDR 3.4 DBQ Read Test Suite"><con:description>HDR 3.4 DBQ Read Tests Mapped to the HDR 3.4 DBQ 
Requirements Specification Document.</con:description><con:settings/><con:runType>SEQUENTIAL</con:runType><con:testCase failOnError="true" failTestCaseOnErrors="true" keepSession="false" maxResults="0" name="HDR 3.4 DBQ Read Results Reverse Chronological Order by Creation Date (17678)" searchProperties="true" id="05ffacf0-3f86-44bf-8efb-6435baa32304"><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.PATIENT_ID = UUID.randomUUID().toString();

context.CLIENT_REQUEST_INIT_TIME = DateFormatUtils.ISO_DATETIME_TIME_ZONE_FORMAT.format( new Date() );
context.FILTER_REQUEST_ID = UUID.randomUUID().toString();
context.REQUEST_ID  = UUID.randomUUID().toString(); 
context.DOCUMENTIDENTIFIER_IDENTITY = UUID.randomUUID().toString(); 
context.CREATED_DATE1 = '19991231170000-0700';
context.DOCUMENT_TYPE = 'Ischemic_Heart_Disease';


context.CLIENT_REQUEST_INIT_TIME2 = DateFormatUtils.ISO_DATETIME_TIME_ZONE_FORMAT.format( new Date() );
context.FILTER_REQUEST_ID2 = UUID.randomUUID().toString();
context.REQUEST_ID2  = UUID.randomUUID().toString(); 
context.DOCUMENTIDENTIFIER_IDENTITY2 = UUID.randomUUID().toString(); 
context.CREATED_DATE2 = '20011231170000-0700';
context.DOCUMENT_TYPE2 = 'Ischemic_Heart_Disease';

context.CLIENT_REQUEST_INIT_TIME3 = DateFormatUtils.ISO_DATETIME_TIME_ZONE_FORMAT.format( new Date() );
context.REQUEST_ID3  = UUID.randomUUID().toString(); 
context.DOCUMENTIDENTIFIER_IDENTITY3 = UUID.randomUUID().toString(); 
context.CREATED_DATE3 = '20051231170000-0700';
context.DOCUMENT_TYPE3 = 'Hematologic_and_Lymphatic_Conditions';

context.CLIENT_REQUEST_INIT_TIME4 = DateFormatUtils.ISO_DATETIME_TIME_ZONE_FORMAT.format( new Date() );
context.REQUEST_ID4  = UUID.randomUUID().toString(); 
context.DOCUMENTIDENTIFIER_IDENTITY4 = UUID.randomUUID().toString(); 
context.CREATED_DATE4 = '20101231170000-0700';
context.DOCUMENT_TYPE4 = 'Parkinson\'s_Disease';
context.PATIENT_ID4 = UUID.randomUUID().toString();


context.FILTER_REQUEST_ID1 = UUID.randomUUID().toString();
context.FILTER_REQUEST_ID2 = UUID.randomUUID().toString();
context.FILTER_REQUEST_ID3 = UUID.randomUUID().toString();
context.FILTER_REQUEST_ID4 = UUID.randomUUID().toString();
context.FILTER_REQUEST_ID5 = UUID.randomUUID().toString();
context.FILTER_REQUEST_ID6 = UUID.randomUUID().toString();
context.FILTER_REQUEST_ID7 = UUID.randomUUID().toString();
context.FILTER_REQUEST_ID8 = UUID.randomUUID().toString();
context.FILTER_REQUEST_ID9 = UUID.randomUUID().toString();
context.FILTER_REQUEST_ID10 = UUID.randomUUID().toString();
context.FILTER_REQUEST_ID11 = UUID.randomUUID().toString();

context.APPROVED_FLAG = "CHECK_ME";
context.APPROVED_FLAG_2 = "CHECK_ME" + "_2";
</script></con:config></con:testStep><con:testStep type="request" name="DBQ Create Date 1999-12-31"><con:settings/><con:config xsi:type="con:RequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>ClinicalDataServiceSynchronousInterfaceHttpBinding</con:interface><con:operation>appendClinicalData</con:operation><con:request name="DBQ Create Date 1999-12-31" outgoingWss="" incomingWss=""><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://${CDS_DBQ_JMS_ENDPOINT}</con:endpoint><con:request><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
<clinicaldata:ClinicalData xmlns:clinicaldata="Clinicaldata">
	<templateId>DBQCreate2</templateId>
	<clientName>SOAP UI</clientName>
	<clientRequestInitiationTime>${CLIENT_REQUEST_INIT_TIME}</clientRequestInitiationTime>
	<patient>
		<questionnaireResults>
			<questionnaireResult>
				<patient>
					<identifier>
						<identity>${PATIENT_ID}</identity>
						<assigningFacility>200HD</assigningFacility>
						<assigningAuthority>USVHA</assigningAuthority>
					</identifier>
					<name>
						<prefix>${PATIENT_NAME_PREFIX}</prefix>
						<given>Given</given>
						<middle>MiddleName</middle>
						<family>FamilyName</family>
						<suffix>Suffix</suffix>
						<title>Title</title>
					</name>
				</patient>
				<dateCreated>
					<literal>${CREATED_DATE1}</literal>
				</dateCreated>
				<claimNumber>
					<root>${=java.util.UUID.randomUUID().toString()}</root>
				</claimNumber>
				<documentType>${DOCUMENT_TYPE}</documentType>
				<initiatingSystem>SOAP UI</initiatingSystem>
				<documentIdentifier>
					<identity>${DOCUMENTIDENTIFIER_IDENTITY}</identity>
					<namespaceId>402</namespaceId>
					<universalId>UID_13359111174322</universalId>
					<universalIdType>universalIdType</universalIdType>
				</documentIdentifier>
				<facilityIdentifier>
					<identity>OrganizationId</identity>
					<name>OrganizationName</name>
					<assigningAuthority>AssigningAuthNamespaceId</assigningAuthority>
				</facilityIdentifier>
		          <approvedFlag>${APPROVED_FLAG}</approvedFlag>
				<approvedBy>
					<comment>Approved By Comment</comment>
					<time>
						<literal>20120501162517-0600</literal>
					</time>
					<practitioner>
						<identifier>
							<identity>test_AUTHORID_1003</identity>
							<assigningFacility>402</assigningFacility>
							<assigningAuthority>USVHA</assigningAuthority>
						</identifier>
						<idSourceTable>IdSourceTable</idSourceTable>
						<name>
							<prefix>Prefix</prefix>
							<given>Given</given>
							<middle>MiddleName</middle>
							<family>FamilyName</family>
							<suffix>Suffix</suffix>
							<title>Title</title>
						</name>
					</practitioner>
				</approvedBy>
				<author>
					<comment>Author Comment</comment>
					<time>
						<literal>20120501162517-0600</literal>
					</time>
					<practitioner>
						<identifier>
							<identity>test_AUTHORID_1003</identity>
							<assigningFacility>402</assigningFacility>
							<assigningAuthority>USVHA</assigningAuthority>
						</identifier>
						<idSourceTable>IdSourceTable</idSourceTable>
						<name>
							<prefix>Prefix</prefix>
							<given>Given</given>
							<middle>MiddleName</middle>
							<family>FamilyName</family>
							<suffix>Suffix</suffix>
							<title>Title</title>
						</name>
					</practitioner>
				</author>
				<detailXML><gov.va.agentorange.fasttrack.model.dbq.ihd.IschemicHeartDisease>  <id>7553</id>  <version>0</version>  <dateCreated class="sql-timestamp">2012-01-10 09:45:51.397</dateCreated>  <dateModified class="sql-timestamp">2012-01-10 09:45:51.397</dateModified>  <formType>FORM_TYPE_DBQ_IHD</formType>  <vetSsn>941288701</vetSsn>  <documentStatusType>COMPLETE</documentStatusType>  <documentChannelType>ONLINE</documentChannelType>  <formFileNetStatus>    <id>5760</id>    <version>1</version>    <dateCreated class="sql-timestamp">2012-01-10 09:45:51.437</dateCreated>    <dateModified>2012-01-10 09:45:51.507 EST</dateModified>    <formFnStatusType>PROCESSOR_PROCESSING</formFnStatusType>    <formEntity class="gov.va.agentorange.fasttrack.model.dbq.ihd.IschemicHeartDisease" reference="../.."/>  </formFileNetStatus>  <webFormType>IHD_DBQ</webFormType>  <veteranFirstName>Test</veteranFirstName>  <veteranLastName>Test</veteranLastName>  <physicianFirstName>Dr</physicianFirstName>  <physicianLastName>Test</physicianLastName>  <medicalLicenseNumber>12</medicalLicenseNumber>  <country>US</country>  <addressLine1>Test</addressLine1>  <addressLine2></addressLine2>  <addressLine3></addressLine3>  <city>Test</city>  <state>DELAWARE</state>  <zip>12345</zip>  <physicianPhoneNumber>1231221312</physicianPhoneNumber>  <privacyActAck>true</privacyActAck>  <physicianSignature>true</physicianSignature>  <impactsAbilityToWork>false</impactsAbilityToWork>  <remarks></remarks>  <dateSigned class="sql-timestamp">2012-01-10 09:45:51.397</dateSigned>  <diagnoses class="org.hibernate.collection.PersistentBag">    <initialized>true</initialized>    <owner class="gov.va.agentorange.fasttrack.model.dbq.ihd.IschemicHeartDisease" reference="../.."/>    <cachedSize>-1</cachedSize>    <role>gov.va.agentorange.fasttrack.model.dbq.DbqFormEntity.diagnoses</role>    <key class="long">7553</key>    <dirty>false</dirty>    <storedSnapshot class="list"/>    <bag/>  </diagnoses>  <medications class="org.hibernate.collection.PersistentBag">    <initialized>true</initialized>    <owner class="gov.va.agentorange.fasttrack.model.dbq.ihd.IschemicHeartDisease" reference="../.."/>    <cachedSize>-1</cachedSize>    <role>gov.va.agentorange.fasttrack.model.dbq.DbqFormEntity.medications</role>    <key class="long">7553</key>    <dirty>false</dirty>    <storedSnapshot class="list"/>    <bag/>  </medications>  <diagnosticTests class="org.hibernate.collection.PersistentBag">    <initialized>true</initialized>    <owner class="gov.va.agentorange.fasttrack.model.dbq.ihd.IschemicHeartDisease" reference="../.."/>    <cachedSize>-1</cachedSize>    <role>gov.va.agentorange.fasttrack.model.dbq.DbqFormEntity.diagnosticTests</role>    <key class="long">7553</key>    <dirty>false</dirty>    <storedSnapshot class="list"/>    <bag/>  </diagnosticTests>  <hasIschemicHeartDisease>true</hasIschemicHeartDisease>  <takesContinuousMedication>false</takesContinuousMedication>  <hasPercutaneousCoronaryIntervention>false</hasPercutaneousCoronaryIntervention>  <hasMyocardialInfarction>false</hasMyocardialInfarction>  <hasCoronaryBypassSurgery>false</hasCoronaryBypassSurgery>  <hasHeartTransplant>false</hasHeartTransplant>  <hasImplantedCardiacPacemaker>false</hasImplantedCardiacPacemaker>  <hasImplantedAicd>false</hasImplantedAicd>  <doesVeteranHaveCHF>false</doesVeteranHaveCHF>  <hasExerciseTestBeenConducted>false</hasExerciseTestBeenConducted>  <metsLevel>metsLevel13</metsLevel>  <hasDyspnea>false</hasDyspnea>  <hasFatigue>false</hasFatigue>  <hasAngina>false</hasAngina>  <hasDizziness>false</hasDizziness>  <hasSyncope>true</hasSyncope>  <isEvidenceOfHypertrophyOrDil>false</isEvidenceOfHypertrophyOrDil>  <hasEkg>false</hasEkg>  <hasChestXRay>false</hasChestXRay>  <hasEchocardiogram>false</hasEchocardiogram>  <hasOtherTest>false</hasOtherTest>  <hasLVEF>false</hasLVEF></gov.va.agentorange.fasttrack.model.dbq.ihd.IschemicHeartDisease></detailXML>
			</questionnaireResult>
		</questionnaireResults>
	</patient>
</clinicaldata:ClinicalData>
]]></con:request><con:assertion type="XPath Match" name="Matches Request ID"><con:configuration><path>//requestId</path><content>${REQUEST_ID}</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>true</ignoreNamspaceDifferences><ignoreComments>false</ignoreComments></con:configuration></con:assertion><con:assertion type="XPath Match" name="Matches Docuent ID"><con:configuration><path>//identifier/documentIdentifier/identity</path><content>${DOCUMENTIDENTIFIER_IDENTITY}</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>true</ignoreNamspaceDifferences><ignoreComments>false</ignoreComments></con:configuration></con:assertion><con:assertion type="XPath Match" name="Response Includes Record Identifier"><con:configuration><path>count(//identifiers/identifier)</path><content>1</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>true</ignoreNamspaceDifferences><ignoreComments>false</ignoreComments></con:configuration></con:assertion><con:credentials><con:username xsi:nil="true"/><con:password xsi:nil="true"/><con:domain xsi:nil="true"/><con:authType>Global HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT" messageSelector="" TimeToLive=""/><con:jmsPropertyConfig><con:jmsProperties name="TEMPLATE_ID" value="DBQCreate2"/><con:jmsProperties name="REQUEST_ID" value="${REQUEST_ID}"/></con:jmsPropertyConfig><con:wsaConfig mustUnderstand="NONE" version="200508"/><con:wsrmConfig version="1.2"/></con:request></con:config></con:testStep><con:testStep type="request" name="DBQ Create Date 2001-12-31"><con:settings/><con:config xsi:type="con:RequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>ClinicalDataServiceSynchronousInterfaceHttpBinding</con:interface><con:operation>appendClinicalData</con:operation><con:request name="DBQ Create Date 2001-12-31" outgoingWss="" incomingWss=""><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://${CDS_DBQ_JMS_ENDPOINT}</con:endpoint><con:request><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
<clinicaldata:ClinicalData xmlns:clinicaldata="Clinicaldata">
	<templateId>DBQCreate2</templateId>
	<clientName>SOAP UI</clientName>
	<clientRequestInitiationTime>${CLIENT_REQUEST_INIT_TIME2}</clientRequestInitiationTime>
	<patient>
		<questionnaireResults>
			<questionnaireResult>
				<patient>
					<identifier>
						<identity>${PATIENT_ID}</identity>
						<assigningFacility>200HD</assigningFacility>
						<assigningAuthority>USVHA</assigningAuthority>
					</identifier>
					<name>
						<prefix>${PATIENT_NAME_PREFIX}</prefix>
						<given>Given</given>
						<middle>MiddleName</middle>
						<family>FamilyName</family>
						<suffix>Suffix</suffix>
						<title>Title</title>
					</name>
				</patient>
				<dateCreated>
					<literal>${CREATED_DATE2}</literal>
				</dateCreated>
				<claimNumber>
					<root>${=java.util.UUID.randomUUID().toString()}</root>
				</claimNumber>
				<documentType>${DOCUMENT_TYPE2}</documentType>
				<initiatingSystem>SOAP UI</initiatingSystem>
				<documentIdentifier>
					<identity>${DOCUMENTIDENTIFIER_IDENTITY2}</identity>
					<namespaceId>402</namespaceId>
					<universalId>UID_13359111174322</universalId>
					<universalIdType>universalIdType</universalIdType>
				</documentIdentifier>
				<facilityIdentifier>
					<identity>OrganizationId</identity>
					<name>OrganizationName</name>
					<assigningAuthority>AssigningAuthNamespaceId</assigningAuthority>
				</facilityIdentifier>
		          <approvedFlag>${APPROVED_FLAG_2}</approvedFlag>
				<approvedBy>
					<comment>Approved By Comment</comment>
					<time>
						<literal>20120501162517-0600</literal>
					</time>
					<practitioner>
						<identifier>
							<identity>test_AUTHORID_1003</identity>
							<assigningFacility>402</assigningFacility>
							<assigningAuthority>USVHA</assigningAuthority>
						</identifier>
						<idSourceTable>IdSourceTable</idSourceTable>
						<name>
							<prefix>Prefix</prefix>
							<given>Given</given>
							<middle>MiddleName</middle>
							<family>FamilyName</family>
							<suffix>Suffix</suffix>
							<title>Title</title>
						</name>
					</practitioner>
				</approvedBy>
				<author>
					<comment>Author Comment</comment>
					<time>
						<literal>20120501162517-0600</literal>
					</time>
					<practitioner>
						<identifier>
							<identity>test_AUTHORID_1003</identity>
							<assigningFacility>402</assigningFacility>
							<assigningAuthority>USVHA</assigningAuthority>
						</identifier>
						<idSourceTable>IdSourceTable</idSourceTable>
						<name>
							<prefix>Prefix</prefix>
							<given>Given</given>
							<middle>MiddleName</middle>
							<family>FamilyName</family>
							<suffix>Suffix</suffix>
							<title>Title</title>
						</name>
					</practitioner>
				</author>
				<detailXML><gov.va.agentorange.fasttrack.model.dbq.ihd.IschemicHeartDisease>  <id>7553</id>  <version>0</version>  <dateCreated class="sql-timestamp">2012-01-10 09:45:51.397</dateCreated>  <dateModified class="sql-timestamp">2012-01-10 09:45:51.397</dateModified>  <formType>FORM_TYPE_DBQ_IHD</formType>  <vetSsn>941288701</vetSsn>  <documentStatusType>COMPLETE</documentStatusType>  <documentChannelType>ONLINE</documentChannelType>  <formFileNetStatus>    <id>5760</id>    <version>1</version>    <dateCreated class="sql-timestamp">2012-01-10 09:45:51.437</dateCreated>    <dateModified>2012-01-10 09:45:51.507 EST</dateModified>    <formFnStatusType>PROCESSOR_PROCESSING</formFnStatusType>    <formEntity class="gov.va.agentorange.fasttrack.model.dbq.ihd.IschemicHeartDisease" reference="../.."/>  </formFileNetStatus>  <webFormType>IHD_DBQ</webFormType>  <veteranFirstName>Test</veteranFirstName>  <veteranLastName>Test</veteranLastName>  <physicianFirstName>Dr</physicianFirstName>  <physicianLastName>Test</physicianLastName>  <medicalLicenseNumber>12</medicalLicenseNumber>  <country>US</country>  <addressLine1>Test</addressLine1>  <addressLine2></addressLine2>  <addressLine3></addressLine3>  <city>Test</city>  <state>DELAWARE</state>  <zip>12345</zip>  <physicianPhoneNumber>1231221312</physicianPhoneNumber>  <privacyActAck>true</privacyActAck>  <physicianSignature>true</physicianSignature>  <impactsAbilityToWork>false</impactsAbilityToWork>  <remarks></remarks>  <dateSigned class="sql-timestamp">2012-01-10 09:45:51.397</dateSigned>  <diagnoses class="org.hibernate.collection.PersistentBag">    <initialized>true</initialized>    <owner class="gov.va.agentorange.fasttrack.model.dbq.ihd.IschemicHeartDisease" reference="../.."/>    <cachedSize>-1</cachedSize>    <role>gov.va.agentorange.fasttrack.model.dbq.DbqFormEntity.diagnoses</role>    <key class="long">7553</key>    <dirty>false</dirty>    <storedSnapshot class="list"/>    <bag/>  </diagnoses>  <medications class="org.hibernate.collection.PersistentBag">    <initialized>true</initialized>    <owner class="gov.va.agentorange.fasttrack.model.dbq.ihd.IschemicHeartDisease" reference="../.."/>    <cachedSize>-1</cachedSize>    <role>gov.va.agentorange.fasttrack.model.dbq.DbqFormEntity.medications</role>    <key class="long">7553</key>    <dirty>false</dirty>    <storedSnapshot class="list"/>    <bag/>  </medications>  <diagnosticTests class="org.hibernate.collection.PersistentBag">    <initialized>true</initialized>    <owner class="gov.va.agentorange.fasttrack.model.dbq.ihd.IschemicHeartDisease" reference="../.."/>    <cachedSize>-1</cachedSize>    <role>gov.va.agentorange.fasttrack.model.dbq.DbqFormEntity.diagnosticTests</role>    <key class="long">7553</key>    <dirty>false</dirty>    <storedSnapshot class="list"/>    <bag/>  </diagnosticTests>  <hasIschemicHeartDisease>true</hasIschemicHeartDisease>  <takesContinuousMedication>false</takesContinuousMedication>  <hasPercutaneousCoronaryIntervention>false</hasPercutaneousCoronaryIntervention>  <hasMyocardialInfarction>false</hasMyocardialInfarction>  <hasCoronaryBypassSurgery>false</hasCoronaryBypassSurgery>  <hasHeartTransplant>false</hasHeartTransplant>  <hasImplantedCardiacPacemaker>false</hasImplantedCardiacPacemaker>  <hasImplantedAicd>false</hasImplantedAicd>  <doesVeteranHaveCHF>false</doesVeteranHaveCHF>  <hasExerciseTestBeenConducted>false</hasExerciseTestBeenConducted>  <metsLevel>metsLevel13</metsLevel>  <hasDyspnea>false</hasDyspnea>  <hasFatigue>false</hasFatigue>  <hasAngina>false</hasAngina>  <hasDizziness>false</hasDizziness>  <hasSyncope>true</hasSyncope>  <isEvidenceOfHypertrophyOrDil>false</isEvidenceOfHypertrophyOrDil>  <hasEkg>false</hasEkg>  <hasChestXRay>false</hasChestXRay>  <hasEchocardiogram>false</hasEchocardiogram>  <hasOtherTest>false</hasOtherTest>  <hasLVEF>false</hasLVEF></gov.va.agentorange.fasttrack.model.dbq.ihd.IschemicHeartDisease></detailXML>
			</questionnaireResult>
		</questionnaireResults>
	</patient>
</clinicaldata:ClinicalData>
]]></con:request><con:assertion type="XPath Match" name="Matches Request ID"><con:configuration><path>//requestId</path><content>${REQUEST_ID2}</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>true</ignoreNamspaceDifferences><ignoreComments>false</ignoreComments></con:configuration></con:assertion><con:assertion type="XPath Match" name="Matches Docuent ID"><con:configuration><path>//identifier/documentIdentifier/identity</path><content>${DOCUMENTIDENTIFIER_IDENTITY2}</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>true</ignoreNamspaceDifferences><ignoreComments>false</ignoreComments></con:configuration></con:assertion><con:assertion type="XPath Match" name="Response Includes Record Identifier"><con:configuration><path>count(//identifiers/identifier)</path><content>1</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>true</ignoreNamspaceDifferences><ignoreComments>false</ignoreComments></con:configuration></con:assertion><con:credentials><con:username xsi:nil="true"/><con:password xsi:nil="true"/><con:domain xsi:nil="true"/><con:authType>Global HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT" messageSelector="" TimeToLive=""/><con:jmsPropertyConfig><con:jmsProperties name="TEMPLATE_ID" value="DBQCreate2"/><con:jmsProperties name="REQUEST_ID" value="${REQUEST_ID2}"/></con:jmsPropertyConfig><con:wsaConfig mustUnderstand="NONE" version="200508"/><con:wsrmConfig version="1.2"/></con:request></con:config></con:testStep><con:testStep type="request" name="DBQ Create Date 2005-12-31"><con:settings/><con:config xsi:type="con:RequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>ClinicalDataServiceSynchronousInterfaceHttpBinding</con:interface><con:operation>appendClinicalData</con:operation><con:request name="DBQ Create Date 2005-12-31" outgoingWss="" incomingWss=""><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://${CDS_DBQ_JMS_ENDPOINT}</con:endpoint><con:request><![CDATA[<clinicaldata:ClinicalData xmlns:clinicaldata="Clinicaldata">
   <templateId>DBQCreate2</templateId>
   <clientName>SOAP UI</clientName>
   <clientRequestInitiationTime>${CLIENT_REQUEST_INIT_TIME}</clientRequestInitiationTime>
   <patient>
      <questionnaireResults>
         <questionnaireResult>
            <patient>
               <identifier>
                  <identity>${PATIENT_ID}</identity>
                  <assigningFacility>200HD</assigningFacility>
                  <assigningAuthority>USVHA</assigningAuthority>
               </identifier>
               <name>
                  <prefix>${PATIENT_NAME_PREFIX}</prefix>
                  <given>Given</given>
                  <middle>MiddleName</middle>
                  <family>FamilyName</family>
                  <suffix>Suffix</suffix>
                  <title>Title</title>
               </name>
            </patient>
            <dateCreated>
               <literal>${CREATED_DATE3}</literal>
            </dateCreated>
            <claimNumber>
			<root>${=java.util.UUID.randomUUID().toString()}</root>
		  </claimNumber>
		  <documentType>${DOCUMENT_TYPE3}</documentType>
            <initiatingSystem>SOAP UI</initiatingSystem>
            <documentIdentifier>
               <identity>${DOCUMENTIDENTIFIER_IDENTITY3}</identity>
               <namespaceId>402</namespaceId>
               <universalId>UID_13359111174322</universalId>
               <universalIdType>universalIdType</universalIdType>
            </documentIdentifier>
            <facilityIdentifier>
               <identity>OrganizationId</identity>
               <name>OrganizationName</name>
               <assigningAuthority>AssigningAuthNamespaceId</assigningAuthority>
            </facilityIdentifier>
            <approvedFlag>${APPROVED_FLAG}</approvedFlag>
            <approvedBy>
               <comment>Approved By Comment</comment>
               <time>
                  <literal>20120501162517-0600</literal>
               </time>
               <practitioner>
                  <identifier>
                     <identity>test_AUTHORID_1003</identity>
                     <assigningFacility>402</assigningFacility>
                     <assigningAuthority>USVHA</assigningAuthority>
                  </identifier>
                  <idSourceTable>IdSourceTable</idSourceTable>
                  <name>
                     <prefix>Prefix</prefix>
                     <given>Given</given>
                     <middle>MiddleName</middle>
                     <family>FamilyName</family>
                     <suffix>Suffix</suffix>
                     <title>Title</title>
                  </name>
               </practitioner>
            </approvedBy>
            <author>
               <comment>Author Comment</comment>
               <time>
                  <literal>20120501162517-0600</literal>
               </time>
               <practitioner>
                  <identifier>
                     <identity>test_AUTHORID_1003</identity>
                     <assigningFacility>402</assigningFacility>
                     <assigningAuthority>USVHA</assigningAuthority>
                  </identifier>
                  <idSourceTable>IdSourceTable</idSourceTable>
                  <name>
                     <prefix>Prefix</prefix>
                     <given>Given</given>
                     <middle>MiddleName</middle>
                     <family>FamilyName</family>
                     <suffix>Suffix</suffix>
                     <title>Title</title>
                  </name>
               </practitioner>
            </author>
            <detailXML>
<gov.va.agentorange.fasttrack.model.dbq.hem.HematologicLymphatic>
	<id>6949</id>
	<version>0</version>
	<dateCreated class="sql-timestamp">2012-01-03 11:57:05.25</dateCreated>
	<dateModified class="sql-timestamp">2012-01-03 11:57:05.25</dateModified>
	<formType>FORM_TYPE_DBQ_HEM</formType>
	<vetSsn>190842394</vetSsn>
	<documentStatusType>COMPLETE</documentStatusType>
	<documentChannelType>ONLINE</documentChannelType>
	<formFileNetStatus>
		<id>5180</id>
		<version>1</version>
		<dateCreated class="sql-timestamp">2012-01-03 11:57:05.3</dateCreated>
		<dateModified>2012-01-03 11:57:40.556 EST</dateModified>
		<formFnStatusType>PROCESSOR_PROCESSING</formFnStatusType>
		<formEntity class="gov.va.agentorange.fasttrack.model.dbq.hem.HematologicLymphatic" reference="../.."/>
	</formFileNetStatus>
	<webFormType>HEM_DBQ</webFormType>
	<veteranFirstName>Delete</veteranFirstName>
	<veteranLastName>Delete</veteranLastName>
	<physicianFirstName>Doctor</physicianFirstName>
	<physicianLastName>HEM</physicianLastName>
	<medicalLicenseNumber>123</medicalLicenseNumber>
	<country>US</country>
	<addressLine1>1 Address</addressLine1>
	<addressLine2/>
	<addressLine3/>
	<city>Town</city>
	<state>KANSAS</state>
	<zip>23455</zip>
	<physicianPhoneNumber>3256246436</physicianPhoneNumber>
	<privacyActAck>true</privacyActAck>
	<physicianSignature>true</physicianSignature>
	<impactsAbilityToWork>true</impactsAbilityToWork>
	<impactDescription/>
	<remarks/>
	<dateSigned class="sql-timestamp">2012-01-03 11:57:05.25</dateSigned>
	<diagnoses class="org.hibernate.collection.PersistentBag">
		<initialized>true</initialized>
		<owner class="gov.va.agentorange.fasttrack.model.dbq.hem.HematologicLymphatic" reference="../.."/>
		<cachedSize>-1</cachedSize>
		<role>gov.va.agentorange.fasttrack.model.dbq.DbqFormEntity.diagnoses</role>
		<key class="long">6949</key>
		<dirty>false</dirty>
		<storedSnapshot class="list"/>
		<bag/>
	</diagnoses>
	<diagnoses class="org.hibernate.collection.PersistentBag">
		<initialized>true</initialized>
		<owner class="gov.va.agentorange.fasttrack.model.dbq.hem.HematologicLymphatic" reference="../.."/>
		<cachedSize>-1</cachedSize>
		<role>gov.va.agentorange.fasttrack.model.dbq.DbqFormEntity.diagnoses</role>
		<key class="long">7777</key>
		<dirty>false</dirty>
		<storedSnapshot class="list"/>
		<bag/>
	</diagnoses>
	<medications class="org.hibernate.collection.PersistentBag">
		<initialized>true</initialized>
		<owner class="gov.va.agentorange.fasttrack.model.dbq.hem.HematologicLymphatic" reference="../.."/>
		<cachedSize>-1</cachedSize>
		<role>gov.va.agentorange.fasttrack.model.dbq.DbqFormEntity.medications</role>
		<key class="long">6949</key>
		<dirty>false</dirty>
		<storedSnapshot class="list"/>
		<bag/>
	</medications>
	<diagnosticTests class="org.hibernate.collection.PersistentBag">
		<initialized>true</initialized>
		<owner class="gov.va.agentorange.fasttrack.model.dbq.hem.HematologicLymphatic" reference="../.."/>
		<cachedSize>-1</cachedSize>
		<role>gov.va.agentorange.fasttrack.model.dbq.DbqFormEntity.diagnosticTests</role>
		<key class="long">6949</key>
		<dirty>false</dirty>
		<storedSnapshot class="list"/>
		<bag/>
	</diagnosticTests>
	<hasHemicLymphatic>true</hasHemicLymphatic>
	<hasALL>false</hasALL>
	<hasAML>false</hasAML>
	<hasCML>false</hasCML>
	<hasCLL>false</hasCLL>
	<hasHodgkins>false</hasHodgkins>
	<hasNonHodgkins>false</hasNonHodgkins>
	<hasMyeloma>true</hasMyeloma>
	<myelomaICD/>
	<hasMyeloSyndrome>false</hasMyeloSyndrome>
	<hasPlasmacytoma>false</hasPlasmacytoma>
	<hasAnemia>false</hasAnemia>
	<hasThrombo>false</hasThrombo>
	<hasPolycythemia>false</hasPolycythemia>
	<hasSickleCell>false</hasSickleCell>
	<hasSplenectomy>false</hasSplenectomy>
	<hasBCellLeukemia>false</hasBCellLeukemia>
	<hasOtherDiagnosis>false</hasOtherDiagnosis>
	<briefHistory/>
	<diseaseStatus>ACTIVE</diseaseStatus>
	<continuousMedication>false</continuousMedication>
	<treatmentStatus>NO_TREATMENT_WATCHFUL_WAITING</treatmentStatus>
	<transfusion>false</transfusion>
	<findings>false</findings>
	<recurringInfections>false</recurringInfections>
	<diagRelatedScar>false</diagRelatedScar>
	<otherPertinentFinding>false</otherPertinentFinding>
	<labTesting>false</labTesting>
	<otherSignificantResults>false</otherSignificantResults>
</gov.va.agentorange.fasttrack.model.dbq.hem.HematologicLymphatic>
</detailXML>
         </questionnaireResult>
      </questionnaireResults>
   </patient>
</clinicaldata:ClinicalData>]]></con:request><con:assertion type="XPath Match" name="Matches Request ID"><con:configuration><path>//requestId</path><content>${REQUEST_ID3}</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>true</ignoreNamspaceDifferences><ignoreComments>false</ignoreComments></con:configuration></con:assertion><con:assertion type="XPath Match" name="Matches Docuent ID"><con:configuration><path>//identifier/documentIdentifier/identity</path><content>${DOCUMENTIDENTIFIER_IDENTITY3}</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>true</ignoreNamspaceDifferences><ignoreComments>false</ignoreComments></con:configuration></con:assertion><con:assertion type="XPath Match" name="Response Includes Record Identifier"><con:configuration><path>count(//identifiers/identifier)</path><content>1</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>true</ignoreNamspaceDifferences><ignoreComments>false</ignoreComments></con:configuration></con:assertion><con:credentials><con:username xsi:nil="true"/><con:password xsi:nil="true"/><con:domain xsi:nil="true"/><con:authType>Global HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT" messageSelector="" TimeToLive=""/><con:jmsPropertyConfig><con:jmsProperties name="TEMPLATE_ID" value="DBQCreate2"/><con:jmsProperties name="REQUEST_ID" value="${REQUEST_ID3}"/></con:jmsPropertyConfig><con:wsaConfig mustUnderstand="NONE" version="200508"/><con:wsrmConfig version="1.2"/></con:request></con:config></con:testStep><con:testStep type="request" name="DBQ List Read All By Patient"><con:settings/><con:config xsi:type="con:RequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>ClinicalDataServiceSynchronousInterfaceHttpBinding</con:interface><con:operation>readClinicalData1</con:operation><con:request name="DBQ List Read All By Patient"><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://${CDS_SERVICE_SOAP_ENDPOINT}</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:cli="http://client.cds.URL       ">
   <soapenv:Header/>
   <soapenv:Body>
      <cli:readClinicalData1>
         <in0>DBQListRead1</in0>
         <in1><![CDATA[
<?xml version="1.0" encoding="UTF-8"?>
<filter:filter vhimVersion="Vhim_4_00" xsi:schemaLocation="Filter DBQ_Single_Patient_All_Data_Filter.xsd" xmlns:filter="Filter" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
	<filterId>DBQ_SINGLE_PATIENT_LIST_DATA_FILTER</filterId>
	<clientName>SOAP UI</clientName>
	<clientRequestInitiationTime>${CLIENT_REQUEST_INIT_TIME}</clientRequestInitiationTime>
	<patients>
		<resolvedIdentifiers>
			<assigningAuthority>USVHA</assigningAuthority>
			<assigningFacility>200HD</assigningFacility>
			<identity>${PATIENT_ID}</identity>
		</resolvedIdentifiers>
	</patients>
	<entryPointFilter queryName="ID_1">
		<domainEntryPoint>QuestionnaireResult</domainEntryPoint>
	</entryPointFilter>
</filter:filter>
         ]]]]>><![CDATA[</in1>
         <in2>DBQ_SINGLE_PATIENT_LIST_DATA_FILTER</in2>
         <in3>${FILTER_REQUEST_ID1}</in3>
      </cli:readClinicalData1>
   </soapenv:Body>
</soapenv:Envelope>]]></con:request><con:assertion type="SOAP Response"/><con:assertion type="Simple Contains" name="Contains"><con:configuration><token/><ignoreCase>false</ignoreCase><useRegEx>false</useRegEx></con:configuration></con:assertion><con:credentials><con:authType>Global HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:wsaConfig mustUnderstand="NONE" version="200508"/><con:wsrmConfig version="1.2"/></con:request></con:config></con:testStep><con:testStep type="groovy" name="Validate List Read Reverse Chronological Order by Creation Date"><con:settings/><con:config><script>import com.eviware.soapui.support.XmlHolder 

def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context );

def soapResponseHolder = groovyUtils.getXmlHolder( "DBQ List Read All By Patient#Response" ) ;
def content = soapResponseHolder["//out"] ;
content = content.replaceAll( "&lt;!\\[CDATA\\[", "" ) 
content = content.replaceAll( "]]&gt;", "" ) 

def holder = groovyUtils.getXmlHolder( content ) ;
def recordCount = holder["count(//recordIdentifier)"]
assert recordCount == "3"

assert holder["//dateCreated/literal"][0] == "20051231170000-0700"
assert holder["//dateCreated/literal"][1]== "20011231170000-0700"
assert holder["//dateCreated/literal"][2] == "19991231170000-0700"</script></con:config></con:testStep><con:properties><con:property><con:name>CDataSection</con:name><con:value><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
<clinicaldata:ClinicalData xmlns:clinicaldata="Clinicaldata"><templateId>DBQListRead1</templateId><requestId>06f40693-7806-4195-ac24-53eac5807b37</requestId><patients><patient><requestedResolvedIdentifiers><requestedResolvedIdentifier><identity>8009327c-73d9-41ec-9152-f2063adfaed3</identity><assigningFacility>200HD</assigningFacility><assigningAuthority>USVHA</assigningAuthority></requestedResolvedIdentifier></requestedResolvedIdentifiers><resultantIdentifiers><resultantIdentifier><identity>8009327c-73d9-41ec-9152-f2063adfaed3</identity><assigningFacility>200HD</assigningFacility><assigningAuthority>USVHA</assigningAuthority></resultantIdentifier></resultantIdentifiers><questionnaireResults><questionnaireResult><patient><identifier><identity>8009327c-73d9-41ec-9152-f2063adfaed3</identity><assigningFacility>200HD</assigningFacility><assigningAuthority>USVHA</assigningAuthority></identifier><name><given>Given</given><middle>MiddleName</middle><family>FamilyName</family><suffix>Suffix</suffix><title>Title</title></name></patient><documentType>Hematologic_and_Lymphatic_Conditions</documentType><recordIdentifier><identity>139</identity></recordIdentifier><documentIdentifier><identity>ec283ed4-452b-4ff0-8863-888a5cd6a004</identity><namespaceId>402</namespaceId><universalId>UID_13359111174322</universalId><universalIdType>universalIdType</universalIdType></documentIdentifier><initiatingSystem>SOAP UI</initiatingSystem><facilityIdentifier><identity>OrganizationId</identity><name>OrganizationName</name><assigningAuthority>AssigningAuthNamespaceId</assigningAuthority></facilityIdentifier><approvedFlag>CHECK_ME</approvedFlag><author><comment>Author Comment</comment><time><literal>20120501162517-0600</literal></time><practitioner><identifier><identity>test_AUTHORID_1003</identity><assigningFacility>402</assigningFacility><assigningAuthority>USVHA</assigningAuthority></identifier><name><prefix>Prefix</prefix><given>Given</given><middle>MiddleName</middle><family>FamilyName</family><suffix>Suffix</suffix><title>Title</title></name></practitioner></author><approvedBy><comment>Approved By Comment</comment><time><literal>20120501162517-0600</literal></time><practitioner><identifier><identity>test_AUTHORID_1003</identity><assigningFacility>402</assigningFacility><assigningAuthority>USVHA</assigningAuthority></identifier><name><prefix>Prefix</prefix><given>Given</given><middle>MiddleName</middle><family>FamilyName</family><suffix>Suffix</suffix><title>Title</title></name></practitioner></approvedBy><dateCreated><literal>20051231170000-0700</literal></dateCreated><recordVersion>3</recordVersion></questionnaireResult><questionnaireResult><patient><identifier><identity>8009327c-73d9-41ec-9152-f2063adfaed3</identity><assigningFacility>200HD</assigningFacility><assigningAuthority>USVHA</assigningAuthority></identifier><name><given>Given</given><middle>MiddleName</middle><family>FamilyName</family><suffix>Suffix</suffix><title>Title</title></name></patient><documentType>Ischemic_Heart_Disease</documentType><recordIdentifier><identity>138</identity></recordIdentifier><documentIdentifier><identity>9856c201-2acf-4735-944e-b18b6c4be7e8</identity><namespaceId>402</namespaceId><universalId>UID_13359111174322</universalId><universalIdType>universalIdType</universalIdType></documentIdentifier><initiatingSystem>SOAP UI</initiatingSystem><facilityIdentifier><identity>OrganizationId</identity><name>OrganizationName</name><assigningAuthority>AssigningAuthNamespaceId</assigningAuthority></facilityIdentifier><approvedFlag>CHECK_ME_2</approvedFlag><author><comment>Author Comment</comment><time><literal>20120501162517-0600</literal></time><practitioner><identifier><identity>test_AUTHORID_1003</identity><assigningFacility>402</assigningFacility><assigningAuthority>USVHA</assigningAuthority></identifier><name><prefix>Prefix</prefix><given>Given</given><middle>MiddleName</middle><family>FamilyName</family><suffix>Suffix</suffix><title>Title</title></name></practitioner></author><approvedBy><comment>Approved By Comment</comment><time><literal>20120501162517-0600</literal></time><practitioner><identifier><identity>test_AUTHORID_1003</identity><assigningFacility>402</assigningFacility><assigningAuthority>USVHA</assigningAuthority></identifier><name><prefix>Prefix</prefix><given>Given</given><middle>MiddleName</middle><family>FamilyName</family><suffix>Suffix</suffix><title>Title</title></name></practitioner></approvedBy><dateCreated><literal>20011231170000-0700</literal></dateCreated><recordVersion>3</recordVersion></questionnaireResult><questionnaireResult><patient><identifier><identity>8009327c-73d9-41ec-9152-f2063adfaed3</identity><assigningFacility>200HD</assigningFacility><assigningAuthority>USVHA</assigningAuthority></identifier><name><given>Given</given><middle>MiddleName</middle><family>FamilyName</family><suffix>Suffix</suffix><title>Title</title></name></patient><documentType>Ischemic_Heart_Disease</documentType><recordIdentifier><identity>137</identity></recordIdentifier><documentIdentifier><identity>13e1402e-147b-4846-8c2c-fabe2872d02e</identity><namespaceId>402</namespaceId><universalId>UID_13359111174322</universalId><universalIdType>universalIdType</universalIdType></documentIdentifier><initiatingSystem>SOAP UI</initiatingSystem><facilityIdentifier><identity>OrganizationId</identity><name>OrganizationName</name><assigningAuthority>AssigningAuthNamespaceId</assigningAuthority></facilityIdentifier><approvedFlag>CHECK_ME</approvedFlag><author><comment>Author Comment</comment><time><literal>20120501162517-0600</literal></time><practitioner><identifier><identity>test_AUTHORID_1003</identity><assigningFacility>402</assigningFacility><assigningAuthority>USVHA</assigningAuthority></identifier><name><prefix>Prefix</prefix><given>Given</given><middle>MiddleName</middle><family>FamilyName</family><suffix>Suffix</suffix><title>Title</title></name></practitioner></author><approvedBy><comment>Approved By Comment</comment><time><literal>20120501162517-0600</literal></time><practitioner><identifier><identity>test_AUTHORID_1003</identity><assigningFacility>402</assigningFacility><assigningAuthority>USVHA</assigningAuthority></identifier><name><prefix>Prefix</prefix><given>Given</given><middle>MiddleName</middle><family>FamilyName</family><suffix>Suffix</suffix><title>Title</title></name></practitioner></approvedBy><dateCreated><literal>19991231170000-0700</literal></dateCreated><recordVersion>3</recordVersion></questionnaireResult><totalResultCount>3</totalResultCount></questionnaireResults></patient></patients></clinicaldata:ClinicalData>]]></con:value></con:property><con:property><con:name>RecordId1</con:name><con:value>139</con:value></con:property><con:property><con:name>RecordId2</con:name><con:value>138</con:value></con:property><con:property><con:name>RecordId3</con:name><con:value>137</con:value></con:property><con:property><con:name>RecordId4</con:name><con:value>140</con:value></con:property></con:properties></con:testCase><con:testCase failOnError="true" failTestCaseOnErrors="true" keepSession="false" maxResults="0" name="HDR 3.4 DBQ Read by Status (17673)" searchProperties="true" id="8186b186-8a93-4ed4-9e1a-c788449166ed"><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_REQUEST_INIT_TIME = DateFormatUtils.ISO_DATETIME_TIME_ZONE_FORMAT.format( new Date() );
context.FILTER_REQUEST_ID = UUID.randomUUID().toString();
context.REQUEST_ID  = UUID.randomUUID().toString(); 
context.DOCUMENTIDENTIFIER_IDENTITY = UUID.randomUUID().toString(); 
context.PATIENT_ID = UUID.randomUUID().toString();

context.CLIENT_REQUEST_INIT_TIME2 = DateFormatUtils.ISO_DATETIME_TIME_ZONE_FORMAT.format( new Date() );
context.FILTER_REQUEST_ID2 = UUID.randomUUID().toString();
context.REQUEST_ID2  = UUID.randomUUID().toString(); 
context.DOCUMENTIDENTIFIER_IDENTITY2 = UUID.randomUUID().toString(); 

context.CLIENT_REQUEST_INIT_TIME3 = DateFormatUtils.ISO_DATETIME_TIME_ZONE_FORMAT.format( new Date() );
context.REQUEST_ID3  = UUID.randomUUID().toString(); 
context.DOCUMENTIDENTIFIER_IDENTITY3 = UUID.randomUUID().toString(); 

context.FACILITY_IDENTITY = UUID.randomUUID().toString();
context.FACILITY_ASSIGNING_AUTHORITY = 'AssigningAuthNamespaceId';
context.FACILITY_NAME = 'OrganizationName';

context.DOCUMENT_TYPE = UUID.randomUUID().toString();
context.DOCUMENT_TYPE_2 = context.DOCUMENT_TYPE + "_2";

context.STATUS = UUID.randomUUID().toString();

</script></con:config></con:testStep><con:testStep type="request" name="DBQ Create Data - Valid"><con:settings/><con:config xsi:type="con:RequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>ClinicalDataServiceSynchronousInterfaceHttpBinding</con:interface><con:operation>appendClinicalData</con:operation><con:request name="DBQ Create Data - Valid" outgoingWss="" incomingWss=""><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://${CDS_DBQ_JMS_ENDPOINT}</con:endpoint><con:request><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
<clinicaldata:ClinicalData xmlns:clinicaldata="Clinicaldata">
	<templateId>DBQCreate2</templateId>
	<clientName>SOAP UI</clientName>
	<clientRequestInitiationTime>${CLIENT_REQUEST_INIT_TIME}</clientRequestInitiationTime>
	<patient>
		<questionnaireResults>
			<questionnaireResult>
				<patient>
					<identifier>
						<identity>${PATIENT_ID}</identity>
						<assigningFacility>200HD</assigningFacility>
						<assigningAuthority>USVHA</assigningAuthority>
					</identifier>
					<name>
						<prefix>${PATIENT_NAME_PREFIX}</prefix>
						<given>Given</given>
						<middle>MiddleName</middle>
						<family>FamilyName</family>
						<suffix>Suffix</suffix>
						<title>Title</title>
					</name>
				</patient>
				<dateCreated>
					<literal>19691231170000-0700</literal>
				</dateCreated>
				<claimNumber>
					<root>${=java.util.UUID.randomUUID().toString()}</root>
				</claimNumber>
				<documentType>${DOCUMENT_TYPE}</documentType>
				<initiatingSystem>SOAP UI</initiatingSystem>
				<documentIdentifier>
					<identity>${DOCUMENTIDENTIFIER_IDENTITY}</identity>
					<namespaceId>402</namespaceId>
					<universalId>UID_13359111174322</universalId>
					<universalIdType>universalIdType</universalIdType>
				</documentIdentifier>
				<facilityIdentifier>
					<identity>${FACILITY_IDENTITY}</identity>
					<name>${FACILITY_NAME}</name>
					<assigningAuthority>${FACILITY_ASSIGNING_AUTHORITY}</assigningAuthority>
				</facilityIdentifier>
				<approvedFlag>${STATUS}</approvedFlag>
				<approvedBy>
					<comment>Approved By Comment</comment>
					<time>
						<literal>20120501162517-0600</literal>
					</time>
					<practitioner>
						<identifier>
							<identity>test_AUTHORID_1003</identity>
							<assigningFacility>402</assigningFacility>
							<assigningAuthority>USVHA</assigningAuthority>
						</identifier>
						<idSourceTable>IdSourceTable</idSourceTable>
						<name>
							<prefix>Prefix</prefix>
							<given>Given</given>
							<middle>MiddleName</middle>
							<family>FamilyName</family>
							<suffix>Suffix</suffix>
							<title>Title</title>
						</name>
					</practitioner>
				</approvedBy>
				<author>
					<comment>Author Comment</comment>
					<time>
						<literal>20120501162517-0600</literal>
					</time>
					<practitioner>
						<identifier>
							<identity>test_AUTHORID_1003</identity>
							<assigningFacility>402</assigningFacility>
							<assigningAuthority>USVHA</assigningAuthority>
						</identifier>
						<idSourceTable>IdSourceTable</idSourceTable>
						<name>
							<prefix>Prefix</prefix>
							<given>Given</given>
							<middle>MiddleName</middle>
							<family>FamilyName</family>
							<suffix>Suffix</suffix>
							<title>Title</title>
						</name>
					</practitioner>
				</author>
				<detailXML><gov.va.agentorange.fasttrack.model.dbq.ihd.IschemicHeartDisease>  <id>7553</id>  <version>0</version>  <dateCreated class="sql-timestamp">2012-01-10 09:45:51.397</dateCreated>  <dateModified class="sql-timestamp">2012-01-10 09:45:51.397</dateModified>  <formType>FORM_TYPE_DBQ_IHD</formType>  <vetSsn>941288701</vetSsn>  <documentStatusType>COMPLETE</documentStatusType>  <documentChannelType>ONLINE</documentChannelType>  <formFileNetStatus>    <id>5760</id>    <version>1</version>    <dateCreated class="sql-timestamp">2012-01-10 09:45:51.437</dateCreated>    <dateModified>2012-01-10 09:45:51.507 EST</dateModified>    <formFnStatusType>PROCESSOR_PROCESSING</formFnStatusType>    <formEntity class="gov.va.agentorange.fasttrack.model.dbq.ihd.IschemicHeartDisease" reference="../.."/>  </formFileNetStatus>  <webFormType>IHD_DBQ</webFormType>  <veteranFirstName>Test</veteranFirstName>  <veteranLastName>Test</veteranLastName>  <physicianFirstName>Dr</physicianFirstName>  <physicianLastName>Test</physicianLastName>  <medicalLicenseNumber>12</medicalLicenseNumber>  <country>US</country>  <addressLine1>Test</addressLine1>  <addressLine2></addressLine2>  <addressLine3></addressLine3>  <city>Test</city>  <state>DELAWARE</state>  <zip>12345</zip>  <physicianPhoneNumber>1231221312</physicianPhoneNumber>  <privacyActAck>true</privacyActAck>  <physicianSignature>true</physicianSignature>  <impactsAbilityToWork>false</impactsAbilityToWork>  <remarks></remarks>  <dateSigned class="sql-timestamp">2012-01-10 09:45:51.397</dateSigned>  <diagnoses class="org.hibernate.collection.PersistentBag">    <initialized>true</initialized>    <owner class="gov.va.agentorange.fasttrack.model.dbq.ihd.IschemicHeartDisease" reference="../.."/>    <cachedSize>-1</cachedSize>    <role>gov.va.agentorange.fasttrack.model.dbq.DbqFormEntity.diagnoses</role>    <key class="long">7553</key>    <dirty>false</dirty>    <storedSnapshot class="list"/>    <bag/>  </diagnoses>  <medications class="org.hibernate.collection.PersistentBag">    <initialized>true</initialized>    <owner class="gov.va.agentorange.fasttrack.model.dbq.ihd.IschemicHeartDisease" reference="../.."/>    <cachedSize>-1</cachedSize>    <role>gov.va.agentorange.fasttrack.model.dbq.DbqFormEntity.medications</role>    <key class="long">7553</key>    <dirty>false</dirty>    <storedSnapshot class="list"/>    <bag/>  </medications>  <diagnosticTests class="org.hibernate.collection.PersistentBag">    <initialized>true</initialized>    <owner class="gov.va.agentorange.fasttrack.model.dbq.ihd.IschemicHeartDisease" reference="../.."/>    <cachedSize>-1</cachedSize>    <role>gov.va.agentorange.fasttrack.model.dbq.DbqFormEntity.diagnosticTests</role>    <key class="long">7553</key>    <dirty>false</dirty>    <storedSnapshot class="list"/>    <bag/>  </diagnosticTests>  <hasIschemicHeartDisease>true</hasIschemicHeartDisease>  <takesContinuousMedication>false</takesContinuousMedication>  <hasPercutaneousCoronaryIntervention>false</hasPercutaneousCoronaryIntervention>  <hasMyocardialInfarction>false</hasMyocardialInfarction>  <hasCoronaryBypassSurgery>false</hasCoronaryBypassSurgery>  <hasHeartTransplant>false</hasHeartTransplant>  <hasImplantedCardiacPacemaker>false</hasImplantedCardiacPacemaker>  <hasImplantedAicd>false</hasImplantedAicd>  <doesVeteranHaveCHF>false</doesVeteranHaveCHF>  <hasExerciseTestBeenConducted>false</hasExerciseTestBeenConducted>  <metsLevel>metsLevel13</metsLevel>  <hasDyspnea>false</hasDyspnea>  <hasFatigue>false</hasFatigue>  <hasAngina>false</hasAngina>  <hasDizziness>false</hasDizziness>  <hasSyncope>true</hasSyncope>  <isEvidenceOfHypertrophyOrDil>false</isEvidenceOfHypertrophyOrDil>  <hasEkg>false</hasEkg>  <hasChestXRay>false</hasChestXRay>  <hasEchocardiogram>false</hasEchocardiogram>  <hasOtherTest>false</hasOtherTest>  <hasLVEF>false</hasLVEF></gov.va.agentorange.fasttrack.model.dbq.ihd.IschemicHeartDisease></detailXML>
			</questionnaireResult>
		</questionnaireResults>
	</patient>
</clinicaldata:ClinicalData>
]]></con:request><con:assertion type="XPath Match" name="Matches Request ID"><con:configuration><path>//requestId</path><content>${REQUEST_ID}</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>true</ignoreNamspaceDifferences><ignoreComments>false</ignoreComments></con:configuration></con:assertion><con:assertion type="XPath Match" name="Matches Docuent ID"><con:configuration><path>//identifier/documentIdentifier/identity</path><content>${DOCUMENTIDENTIFIER_IDENTITY}</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>true</ignoreNamspaceDifferences><ignoreComments>false</ignoreComments></con:configuration></con:assertion><con:assertion type="XPath Match" name="Response Includes Record Identifier"><con:configuration><path>count(//identifiers/identifier)</path><content>1</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>true</ignoreNamspaceDifferences><ignoreComments>false</ignoreComments></con:configuration></con:assertion><con:credentials><con:username xsi:nil="true"/><con:password xsi:nil="true"/><con:domain xsi:nil="true"/><con:authType>Global HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT" messageSelector="" TimeToLive=""/><con:jmsPropertyConfig><con:jmsProperties name="TEMPLATE_ID" value="DBQCreate2"/><con:jmsProperties name="REQUEST_ID" value="${REQUEST_ID}"/></con:jmsPropertyConfig><con:wsaConfig mustUnderstand="NONE" version="200508"/><con:wsrmConfig version="1.2"/></con:request></con:config></con:testStep><con:testStep type="request" name="DBQ Create Data - Valid2"><con:settings/><con:config xsi:type="con:RequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>ClinicalDataServiceSynchronousInterfaceHttpBinding</con:interface><con:operation>appendClinicalData</con:operation><con:request name="DBQ Create Data - Valid2" outgoingWss="" incomingWss=""><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://${CDS_DBQ_JMS_ENDPOINT}</con:endpoint><con:request><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
<clinicaldata:ClinicalData xmlns:clinicaldata="Clinicaldata">
	<templateId>DBQCreate2</templateId>
	<clientName>SOAP UI</clientName>
	<clientRequestInitiationTime>${CLIENT_REQUEST_INIT_TIME2}</clientRequestInitiationTime>
	<patient>
		<questionnaireResults>
			<questionnaireResult>
				<patient>
					<identifier>
						<identity>${PATIENT_ID}</identity>
						<assigningFacility>200HD</assigningFacility>
						<assigningAuthority>USVHA</assigningAuthority>
					</identifier>
					<name>
						<prefix>${PATIENT_NAME_PREFIX}</prefix>
						<given>Given</given>
						<middle>MiddleName</middle>
						<family>FamilyName</family>
						<suffix>Suffix</suffix>
						<title>Title</title>
					</name>
				</patient>
				<dateCreated>
					<literal>20111231170000-0700</literal>
				</dateCreated>
				<claimNumber>
					<root>${=java.util.UUID.randomUUID().toString()}</root>
				</claimNumber>
				<documentType>${DOCUMENT_TYPE_2}</documentType>
				<initiatingSystem>SOAP UI</initiatingSystem>
				<documentIdentifier>
					<identity>${DOCUMENTIDENTIFIER_IDENTITY2}</identity>
					<namespaceId>402</namespaceId>
					<universalId>UID_13359111174322</universalId>
					<universalIdType>universalIdType</universalIdType>
				</documentIdentifier>
				<facilityIdentifier>
					<identity>${FACILITY_IDENTITY}</identity>
					<name>${FACILITY_NAME}</name>
					<assigningAuthority>${FACILITY_ASSIGNING_AUTHORITY}</assigningAuthority>
				</facilityIdentifier>
				<approvedFlag>${STATUS}</approvedFlag>
				<approvedBy>
					<comment>Approved By Comment</comment>
					<time>
						<literal>20120501162517-0600</literal>
					</time>
					<practitioner>
						<identifier>
							<identity>test_AUTHORID_1003</identity>
							<assigningFacility>402</assigningFacility>
							<assigningAuthority>USVHA</assigningAuthority>
						</identifier>
						<idSourceTable>IdSourceTable</idSourceTable>
						<name>
							<prefix>Prefix</prefix>
							<given>Given</given>
							<middle>MiddleName</middle>
							<family>FamilyName</family>
							<suffix>Suffix</suffix>
							<title>Title</title>
						</name>
					</practitioner>
				</approvedBy>
				<author>
					<comment>Author Comment</comment>
					<time>
						<literal>20120501162517-0600</literal>
					</time>
					<practitioner>
						<identifier>
							<identity>test_AUTHORID_1003</identity>
							<assigningFacility>402</assigningFacility>
							<assigningAuthority>USVHA</assigningAuthority>
						</identifier>
						<idSourceTable>IdSourceTable</idSourceTable>
						<name>
							<prefix>Prefix</prefix>
							<given>Given</given>
							<middle>MiddleName</middle>
							<family>FamilyName</family>
							<suffix>Suffix</suffix>
							<title>Title</title>
						</name>
					</practitioner>
				</author>
				<detailXML><gov.va.agentorange.fasttrack.model.dbq.ihd.IschemicHeartDisease>  <id>7553</id>  <version>0</version>  <dateCreated class="sql-timestamp">2012-01-10 09:45:51.397</dateCreated>  <dateModified class="sql-timestamp">2012-01-10 09:45:51.397</dateModified>  <formType>FORM_TYPE_DBQ_IHD</formType>  <vetSsn>941288701</vetSsn>  <documentStatusType>COMPLETE</documentStatusType>  <documentChannelType>ONLINE</documentChannelType>  <formFileNetStatus>    <id>5760</id>    <version>1</version>    <dateCreated class="sql-timestamp">2012-01-10 09:45:51.437</dateCreated>    <dateModified>2012-01-10 09:45:51.507 EST</dateModified>    <formFnStatusType>PROCESSOR_PROCESSING</formFnStatusType>    <formEntity class="gov.va.agentorange.fasttrack.model.dbq.ihd.IschemicHeartDisease" reference="../.."/>  </formFileNetStatus>  <webFormType>IHD_DBQ</webFormType>  <veteranFirstName>Test</veteranFirstName>  <veteranLastName>Test</veteranLastName>  <physicianFirstName>Dr</physicianFirstName>  <physicianLastName>Test</physicianLastName>  <medicalLicenseNumber>12</medicalLicenseNumber>  <country>US</country>  <addressLine1>Test</addressLine1>  <addressLine2></addressLine2>  <addressLine3></addressLine3>  <city>Test</city>  <state>DELAWARE</state>  <zip>12345</zip>  <physicianPhoneNumber>1231221312</physicianPhoneNumber>  <privacyActAck>true</privacyActAck>  <physicianSignature>true</physicianSignature>  <impactsAbilityToWork>false</impactsAbilityToWork>  <remarks></remarks>  <dateSigned class="sql-timestamp">2012-01-10 09:45:51.397</dateSigned>  <diagnoses class="org.hibernate.collection.PersistentBag">    <initialized>true</initialized>    <owner class="gov.va.agentorange.fasttrack.model.dbq.ihd.IschemicHeartDisease" reference="../.."/>    <cachedSize>-1</cachedSize>    <role>gov.va.agentorange.fasttrack.model.dbq.DbqFormEntity.diagnoses</role>    <key class="long">7553</key>    <dirty>false</dirty>    <storedSnapshot class="list"/>    <bag/>  </diagnoses>  <medications class="org.hibernate.collection.PersistentBag">    <initialized>true</initialized>    <owner class="gov.va.agentorange.fasttrack.model.dbq.ihd.IschemicHeartDisease" reference="../.."/>    <cachedSize>-1</cachedSize>    <role>gov.va.agentorange.fasttrack.model.dbq.DbqFormEntity.medications</role>    <key class="long">7553</key>    <dirty>false</dirty>    <storedSnapshot class="list"/>    <bag/>  </medications>  <diagnosticTests class="org.hibernate.collection.PersistentBag">    <initialized>true</initialized>    <owner class="gov.va.agentorange.fasttrack.model.dbq.ihd.IschemicHeartDisease" reference="../.."/>    <cachedSize>-1</cachedSize>    <role>gov.va.agentorange.fasttrack.model.dbq.DbqFormEntity.diagnosticTests</role>    <key class="long">7553</key>    <dirty>false</dirty>    <storedSnapshot class="list"/>    <bag/>  </diagnosticTests>  <hasIschemicHeartDisease>true</hasIschemicHeartDisease>  <takesContinuousMedication>false</takesContinuousMedication>  <hasPercutaneousCoronaryIntervention>false</hasPercutaneousCoronaryIntervention>  <hasMyocardialInfarction>false</hasMyocardialInfarction>  <hasCoronaryBypassSurgery>false</hasCoronaryBypassSurgery>  <hasHeartTransplant>false</hasHeartTransplant>  <hasImplantedCardiacPacemaker>false</hasImplantedCardiacPacemaker>  <hasImplantedAicd>false</hasImplantedAicd>  <doesVeteranHaveCHF>false</doesVeteranHaveCHF>  <hasExerciseTestBeenConducted>false</hasExerciseTestBeenConducted>  <metsLevel>metsLevel13</metsLevel>  <hasDyspnea>false</hasDyspnea>  <hasFatigue>false</hasFatigue>  <hasAngina>false</hasAngina>  <hasDizziness>false</hasDizziness>  <hasSyncope>true</hasSyncope>  <isEvidenceOfHypertrophyOrDil>false</isEvidenceOfHypertrophyOrDil>  <hasEkg>false</hasEkg>  <hasChestXRay>false</hasChestXRay>  <hasEchocardiogram>false</hasEchocardiogram>  <hasOtherTest>false</hasOtherTest>  <hasLVEF>false</hasLVEF></gov.va.agentorange.fasttrack.model.dbq.ihd.IschemicHeartDisease></detailXML>
			</questionnaireResult>
		</questionnaireResults>
	</patient>
</clinicaldata:ClinicalData>
]]></con:request><con:assertion type="XPath Match" name="Matches Request ID"><con:configuration><path>//requestId</path><content>${REQUEST_ID2}</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>true</ignoreNamspaceDifferences><ignoreComments>false</ignoreComments></con:configuration></con:assertion><con:assertion type="XPath Match" name="Matches Docuent ID"><con:configuration><path>//identifier/documentIdentifier/identity</path><content>${DOCUMENTIDENTIFIER_IDENTITY2}</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>true</ignoreNamspaceDifferences><ignoreComments>false</ignoreComments></con:configuration></con:assertion><con:assertion type="XPath Match" name="Response Includes Record Identifier"><con:configuration><path>count(//identifiers/identifier)</path><content>1</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>true</ignoreNamspaceDifferences><ignoreComments>false</ignoreComments></con:configuration></con:assertion><con:credentials><con:username xsi:nil="true"/><con:password xsi:nil="true"/><con:domain xsi:nil="true"/><con:authType>Global HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT" messageSelector="" TimeToLive=""/><con:jmsPropertyConfig><con:jmsProperties name="TEMPLATE_ID" value="DBQCreate2"/><con:jmsProperties name="REQUEST_ID" value="${REQUEST_ID2}"/></con:jmsPropertyConfig><con:wsaConfig mustUnderstand="NONE" version="200508"/><con:wsrmConfig version="1.2"/></con:request></con:config></con:testStep><con:testStep type="request" name="DBQ Create Data - Valid3"><con:settings/><con:config xsi:type="con:RequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>ClinicalDataServiceSynchronousInterfaceHttpBinding</con:interface><con:operation>appendClinicalData</con:operation><con:request name="DBQ Create Data - Valid3" outgoingWss="" incomingWss=""><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://${CDS_DBQ_JMS_ENDPOINT}</con:endpoint><con:request><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
<clinicaldata:ClinicalData xmlns:clinicaldata="Clinicaldata">
	<templateId>DBQCreate2</templateId>
	<clientName>SOAP UI</clientName>
	<clientRequestInitiationTime>${CLIENT_REQUEST_INIT_TIME3}</clientRequestInitiationTime>
	<patient>
		<questionnaireResults>
			<questionnaireResult>
				<patient>
					<identifier>
						<identity>${PATIENT_ID}</identity>
						<assigningFacility>200HD</assigningFacility>
						<assigningAuthority>USVHA</assigningAuthority>
					</identifier>
					<name>
						<prefix>${PATIENT_NAME_PREFIX}</prefix>
						<given>Given</given>
						<middle>MiddleName</middle>
						<family>FamilyName</family>
						<suffix>Suffix</suffix>
						<title>Title</title>
					</name>
				</patient>
				<dateCreated>
					<literal>20111231170000-0700</literal>
				</dateCreated>
				<claimNumber>
					<root>${=java.util.UUID.randomUUID().toString()}</root>
				</claimNumber>
				<documentType>${DOCUMENT_TYPE}</documentType>
				<initiatingSystem>SOAP UI</initiatingSystem>
				<documentIdentifier>
					<identity>${DOCUMENTIDENTIFIER_IDENTITY3}</identity>
					<namespaceId>402</namespaceId>
					<universalId>UID_13359111174322</universalId>
					<universalIdType>universalIdType</universalIdType>
				</documentIdentifier>
				<facilityIdentifier>
					<identity>${FACILITY_IDENTITY}</identity>
					<name>${FACILITY_NAME}</name>
					<assigningAuthority>${FACILITY_ASSIGNING_AUTHORITY}</assigningAuthority>
				</facilityIdentifier>
				<approvedFlag>${STATUS}-T</approvedFlag>
				<approvedBy>
					<comment>Approved By Comment</comment>
					<time>
						<literal>20120501162517-0600</literal>
					</time>
					<practitioner>
						<identifier>
							<identity>test_AUTHORID_1003</identity>
							<assigningFacility>402</assigningFacility>
							<assigningAuthority>USVHA</assigningAuthority>
						</identifier>
						<idSourceTable>IdSourceTable</idSourceTable>
						<name>
							<prefix>Prefix</prefix>
							<given>Given</given>
							<middle>MiddleName</middle>
							<family>FamilyName</family>
							<suffix>Suffix</suffix>
							<title>Title</title>
						</name>
					</practitioner>
				</approvedBy>
				<author>
					<comment>Author Comment</comment>
					<time>
						<literal>20120501162517-0600</literal>
					</time>
					<practitioner>
						<identifier>
							<identity>test_AUTHORID_1003</identity>
							<assigningFacility>402</assigningFacility>
							<assigningAuthority>USVHA</assigningAuthority>
						</identifier>
						<idSourceTable>IdSourceTable</idSourceTable>
						<name>
							<prefix>Prefix</prefix>
							<given>Given</given>
							<middle>MiddleName</middle>
							<family>FamilyName</family>
							<suffix>Suffix</suffix>
							<title>Title</title>
						</name>
					</practitioner>
				</author>
				<detailXML><gov.va.agentorange.fasttrack.model.dbq.ihd.IschemicHeartDisease>  <id>7553</id>  <version>0</version>  <dateCreated class="sql-timestamp">2012-01-10 09:45:51.397</dateCreated>  <dateModified class="sql-timestamp">2012-01-10 09:45:51.397</dateModified>  <formType>FORM_TYPE_DBQ_IHD</formType>  <vetSsn>941288701</vetSsn>  <documentStatusType>COMPLETE</documentStatusType>  <documentChannelType>ONLINE</documentChannelType>  <formFileNetStatus>    <id>5760</id>    <version>1</version>    <dateCreated class="sql-timestamp">2012-01-10 09:45:51.437</dateCreated>    <dateModified>2012-01-10 09:45:51.507 EST</dateModified>    <formFnStatusType>PROCESSOR_PROCESSING</formFnStatusType>    <formEntity class="gov.va.agentorange.fasttrack.model.dbq.ihd.IschemicHeartDisease" reference="../.."/>  </formFileNetStatus>  <webFormType>IHD_DBQ</webFormType>  <veteranFirstName>Test</veteranFirstName>  <veteranLastName>Test</veteranLastName>  <physicianFirstName>Dr</physicianFirstName>  <physicianLastName>Test</physicianLastName>  <medicalLicenseNumber>12</medicalLicenseNumber>  <country>US</country>  <addressLine1>Test</addressLine1>  <addressLine2></addressLine2>  <addressLine3></addressLine3>  <city>Test</city>  <state>DELAWARE</state>  <zip>12345</zip>  <physicianPhoneNumber>1231221312</physicianPhoneNumber>  <privacyActAck>true</privacyActAck>  <physicianSignature>true</physicianSignature>  <impactsAbilityToWork>false</impactsAbilityToWork>  <remarks></remarks>  <dateSigned class="sql-timestamp">2012-01-10 09:45:51.397</dateSigned>  <diagnoses class="org.hibernate.collection.PersistentBag">    <initialized>true</initialized>    <owner class="gov.va.agentorange.fasttrack.model.dbq.ihd.IschemicHeartDisease" reference="../.."/>    <cachedSize>-1</cachedSize>    <role>gov.va.agentorange.fasttrack.model.dbq.DbqFormEntity.diagnoses</role>    <key class="long">7553</key>    <dirty>false</dirty>    <storedSnapshot class="list"/>    <bag/>  </diagnoses>  <medications class="org.hibernate.collection.PersistentBag">    <initialized>true</initialized>    <owner class="gov.va.agentorange.fasttrack.model.dbq.ihd.IschemicHeartDisease" reference="../.."/>    <cachedSize>-1</cachedSize>    <role>gov.va.agentorange.fasttrack.model.dbq.DbqFormEntity.medications</role>    <key class="long">7553</key>    <dirty>false</dirty>    <storedSnapshot class="list"/>    <bag/>  </medications>  <diagnosticTests class="org.hibernate.collection.PersistentBag">    <initialized>true</initialized>    <owner class="gov.va.agentorange.fasttrack.model.dbq.ihd.IschemicHeartDisease" reference="../.."/>    <cachedSize>-1</cachedSize>    <role>gov.va.agentorange.fasttrack.model.dbq.DbqFormEntity.diagnosticTests</role>    <key class="long">7553</key>    <dirty>false</dirty>    <storedSnapshot class="list"/>    <bag/>  </diagnosticTests>  <hasIschemicHeartDisease>true</hasIschemicHeartDisease>  <takesContinuousMedication>false</takesContinuousMedication>  <hasPercutaneousCoronaryIntervention>false</hasPercutaneousCoronaryIntervention>  <hasMyocardialInfarction>false</hasMyocardialInfarction>  <hasCoronaryBypassSurgery>false</hasCoronaryBypassSurgery>  <hasHeartTransplant>false</hasHeartTransplant>  <hasImplantedCardiacPacemaker>false</hasImplantedCardiacPacemaker>  <hasImplantedAicd>false</hasImplantedAicd>  <doesVeteranHaveCHF>false</doesVeteranHaveCHF>  <hasExerciseTestBeenConducted>false</hasExerciseTestBeenConducted>  <metsLevel>metsLevel13</metsLevel>  <hasDyspnea>false</hasDyspnea>  <hasFatigue>false</hasFatigue>  <hasAngina>false</hasAngina>  <hasDizziness>false</hasDizziness>  <hasSyncope>true</hasSyncope>  <isEvidenceOfHypertrophyOrDil>false</isEvidenceOfHypertrophyOrDil>  <hasEkg>false</hasEkg>  <hasChestXRay>false</hasChestXRay>  <hasEchocardiogram>false</hasEchocardiogram>  <hasOtherTest>false</hasOtherTest>  <hasLVEF>false</hasLVEF></gov.va.agentorange.fasttrack.model.dbq.ihd.IschemicHeartDisease></detailXML>
			</questionnaireResult>
		</questionnaireResults>
	</patient>
</clinicaldata:ClinicalData>
]]></con:request><con:assertion type="XPath Match" name="Matches Request ID"><con:configuration><path>//requestId</path><content>${REQUEST_ID3}</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>true</ignoreNamspaceDifferences><ignoreComments>false</ignoreComments></con:configuration></con:assertion><con:assertion type="XPath Match" name="Matches Docuent ID"><con:configuration><path>//identifier/documentIdentifier/identity</path><content>${DOCUMENTIDENTIFIER_IDENTITY3}</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>true</ignoreNamspaceDifferences><ignoreComments>false</ignoreComments></con:configuration></con:assertion><con:assertion type="XPath Match" name="Response Includes Record Identifier"><con:configuration><path>count(//identifiers/identifier)</path><content>1</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>true</ignoreNamspaceDifferences><ignoreComments>false</ignoreComments></con:configuration></con:assertion><con:credentials><con:username xsi:nil="true"/><con:password xsi:nil="true"/><con:domain xsi:nil="true"/><con:authType>Global HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT" messageSelector="" TimeToLive=""/><con:jmsPropertyConfig><con:jmsProperties name="TEMPLATE_ID" value="DBQCreate2"/><con:jmsProperties name="REQUEST_ID" value="${REQUEST_ID3}"/></con:jmsPropertyConfig><con:wsaConfig mustUnderstand="NONE" version="200508"/><con:wsrmConfig version="1.2"/></con:request></con:config></con:testStep><con:testStep type="request" name="DBQ List Read By Status"><con:settings/><con:config xsi:type="con:RequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>ClinicalDataServiceSynchronousInterfaceHttpBinding</con:interface><con:operation>readClinicalData1</con:operation><con:request name="DBQ List Read By Status"><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://${CDS_SERVICE_SOAP_ENDPOINT}</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:cli="http://client.cds.URL       ">
   <soapenv:Header/>
   <soapenv:Body>
      <cli:readClinicalData1>
         <in0>DBQListRead1</in0>
         <in1><![CDATA[
<?xml version="1.0" encoding="UTF-8"?>
<filter:filter vhimVersion="Vhim_4_00" xsi:schemaLocation="Filter DBQ_LIST_DATA_FILTER.xsd" xmlns:filter="Filter" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
	<filterId>DBQ_LIST_DATA_FILTER</filterId>
	<clientName>SOAP UI</clientName>
	<clientRequestInitiationTime>${CLIENT_REQUEST_INIT_TIME}</clientRequestInitiationTime>
	<entryPointFilter queryName="ByStatus" isPatientCentric="false">
		<domainEntryPoint>QuestionnaireResult</domainEntryPoint>
		<otherQueryParameters>
			<approvedFlag>${STATUS}</approvedFlag>
		</otherQueryParameters>
	</entryPointFilter>
</filter:filter>
         ]]]]>><![CDATA[</in1>
         <in2>DBQ_LIST_DATA_FILTER</in2>
         <in3>${FILTER_REQUEST_ID}</in3>
      </cli:readClinicalData1>
   </soapenv:Body>
</soapenv:Envelope>]]></con:request><con:assertion type="SOAP Response"/><con:assertion type="Simple NotContains" name="Not Contains &lt;errorSection>"><con:configuration><token>&lt;errorSection></token><ignoreCase>false</ignoreCase><useRegEx>false</useRegEx></con:configuration></con:assertion><con:credentials><con:authType>Global HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:wsaConfig mustUnderstand="NONE" version="200508"/><con:wsrmConfig version="1.2"/></con:request></con:config></con:testStep><con:testStep type="transfer" name="Extract CDATA Section"><con:settings/><con:config xsi:type="con:PropertyTransfersStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:transfers setNullOnMissingSource="true" transferTextContent="true" failOnError="true" ignoreEmpty="false" transferToAll="false" useXQuery="false" entitize="false" transferChildNodes="false"><con:name>ExtractCDATASection</con:name><con:sourceType>Response</con:sourceType><con:sourceStep>DBQ List Read By Status</con:sourceStep><con:sourcePath>//out</con:sourcePath><con:targetType>CDataSection</con:targetType><con:targetStep>#TestCase#</con:targetStep></con:transfers></con:config></con:testStep><con:testStep type="groovy" name="Check STATUS Records Returned"><con:settings/><con:config><script>import com.eviware.soapui.support.XmlHolder 

def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context );
def content = testRunner.testCase.getPropertyValue( "CDataSection" ); 
content = content.replaceAll( "&lt;!\\[CDATA\\[", "" ) 
content = content.replaceAll( "]]&gt;", "" ) 

def holder = groovyUtils.getXmlHolder( content ) ;
def recordCount = holder["count(//recordIdentifier)"]
assert recordCount == "2"</script></con:config></con:testStep><con:testStep type="request" name="DBQ List Read By Status and Date Range"><con:settings/><con:config xsi:type="con:RequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>ClinicalDataServiceSynchronousInterfaceHttpBinding</con:interface><con:operation>readClinicalData1</con:operation><con:request name="DBQ List Read By Status and Date Range"><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://${CDS_SERVICE_SOAP_ENDPOINT}</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:cli="http://client.cds.URL       ">
   <soapenv:Header/>
   <soapenv:Body>
      <cli:readClinicalData1>
         <in0>DBQListRead1</in0>
         <in1><![CDATA[
<?xml version="1.0" encoding="UTF-8"?>
<filter:filter vhimVersion="Vhim_4_00" xsi:schemaLocation="Filter DBQ_LIST_DATA_FILTER.xsd" xmlns:filter="Filter" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
	<filterId>DBQ_LIST_DATA_FILTER</filterId>
	<clientName>SOAP UI</clientName>
	<clientRequestInitiationTime>${CLIENT_REQUEST_INIT_TIME}</clientRequestInitiationTime>
	<entryPointFilter queryName="ByStatus" isPatientCentric="false">
		<domainEntryPoint>QuestionnaireResult</domainEntryPoint>
		<startDate>2011-06-01-05:00</startDate>
		<endDate>2012-06-01-05:00</endDate>
		<otherQueryParameters>
			<approvedFlag>${STATUS}</approvedFlag>
		</otherQueryParameters>
	</entryPointFilter>
</filter:filter>
         ]]]]>><![CDATA[</in1>
         <in2>DBQ_LIST_DATA_FILTER</in2>
         <in3>${FILTER_REQUEST_ID}</in3>
      </cli:readClinicalData1>
   </soapenv:Body>
</soapenv:Envelope>]]></con:request><con:assertion type="SOAP Response"/><con:assertion type="Simple NotContains" name="Not Contains &lt;errorSection>"><con:configuration><token>&lt;errorSection></token><ignoreCase>false</ignoreCase><useRegEx>false</useRegEx></con:configuration></con:assertion><con:credentials><con:authType>Global HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:wsaConfig mustUnderstand="NONE" version="200508"/><con:wsrmConfig version="1.2"/></con:request></con:config></con:testStep><con:testStep type="transfer" name="Extract CDATA Section 2"><con:settings/><con:config xsi:type="con:PropertyTransfersStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:transfers setNullOnMissingSource="true" transferTextContent="true" failOnError="true" ignoreEmpty="false" transferToAll="false" useXQuery="false" entitize="false" transferChildNodes="false"><con:name>ExtractCDATASection</con:name><con:sourceType>Response</con:sourceType><con:sourceStep>DBQ List Read By Status and Date Range</con:sourceStep><con:sourcePath>//out</con:sourcePath><con:targetType>CDataSection</con:targetType><con:targetStep>#TestCase#</con:targetStep></con:transfers></con:config></con:testStep><con:testStep type="groovy" name="Check STATUS in Date Range Records Returned"><con:settings/><con:config><script>import com.eviware.soapui.support.XmlHolder 

def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context );
def content = testRunner.testCase.getPropertyValue( "CDataSection" ); 
content = content.replaceAll( "&lt;!\\[CDATA\\[", "" ) 
content = content.replaceAll( "]]&gt;", "" ) 

def holder = groovyUtils.getXmlHolder( content ) ;
def recordCount = holder["count(//recordIdentifier)"]
assert recordCount == "1"</script></con:config></con:testStep><con:properties><con:property><con:name>CDataSection</con:name><con:value><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
<clinicaldata:ClinicalData xmlns:clinicaldata="Clinicaldata"><templateId>DBQListRead1</templateId><requestId>75a251b0-17dd-4578-ac49-d182d99f811e</requestId><patients><patient><questionnaireResults><questionnaireResult><patient><identifier><identity>12372101-7e87-4c99-80fc-a02720624bd7</identity><assigningFacility>200HD</assigningFacility><assigningAuthority>USVHA</assigningAuthority></identifier><name><given>Given</given><middle>MiddleName</middle><family>FamilyName</family><suffix>Suffix</suffix><title>Title</title></name></patient><documentType>9eeade3e-5135-4a5f-a644-29c5f9798c7f_2</documentType><recordIdentifier><identity>808</identity></recordIdentifier><documentIdentifier><identity>a0305b7c-a1d6-4cd8-97b0-bc0de06ef7d9</identity><namespaceId>402</namespaceId><universalId>UID_13359111174322</universalId><universalIdType>universalIdType</universalIdType></documentIdentifier><initiatingSystem>SOAP UI</initiatingSystem><facilityIdentifier><identity>ce815597-76a1-4065-b76e-b75570bfe4bb</identity><name>OrganizationName</name><assigningAuthority>AssigningAuthNamespaceId</assigningAuthority></facilityIdentifier><approvedFlag>7d2e15dd-7040-4ca7-912a-ee14badfe29c</approvedFlag><author><comment>Author Comment</comment><time><literal>20120501162517-0600</literal></time><practitioner><identifier><identity>test_AUTHORID_1003</identity><assigningFacility>402</assigningFacility><assigningAuthority>USVHA</assigningAuthority></identifier><name><prefix>Prefix</prefix><given>Given</given><middle>MiddleName</middle><family>FamilyName</family><suffix>Suffix</suffix><title>Title</title></name></practitioner></author><approvedBy><comment>Approved By Comment</comment><time><literal>20120501162517-0600</literal></time><practitioner><identifier><identity>test_AUTHORID_1003</identity><assigningFacility>402</assigningFacility><assigningAuthority>USVHA</assigningAuthority></identifier><name><prefix>Prefix</prefix><given>Given</given><middle>MiddleName</middle><family>FamilyName</family><suffix>Suffix</suffix><title>Title</title></name></practitioner></approvedBy><dateCreated><literal>20111231170000-0700</literal></dateCreated><claimNumber><root>4460249f-9f3c-480d-a7ed-d190a48212ca</root></claimNumber><recordVersion>3</recordVersion></questionnaireResult><pageInformation><pageFirstRecord>1</pageFirstRecord><pageLastRecord>1</pageLastRecord></pageInformation><totalResultCount>1</totalResultCount></questionnaireResults></patient></patients></clinicaldata:ClinicalData>]]></con:value></con:property></con:properties></con:testCase><con:testCase failOnError="true" failTestCaseOnErrors="true" keepSession="false" maxResults="0" name="HDR 3.4 DBQ Read By Partial Practitioner (17674 - 17677)" searchProperties="true" id="e151b4a7-0845-4eb7-8e21-fb4625120097"><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_REQUEST_INIT_TIME = DateFormatUtils.ISO_DATETIME_TIME_ZONE_FORMAT.format( new Date() );
context.FILTER_REQUEST_ID = UUID.randomUUID().toString();
context.REQUEST_ID  = UUID.randomUUID().toString(); 
context.DOCUMENTIDENTIFIER_IDENTITY = UUID.randomUUID().toString(); 
context.PATIENT_ID = UUID.randomUUID().toString();

context.CLIENT_REQUEST_INIT_TIME2 = DateFormatUtils.ISO_DATETIME_TIME_ZONE_FORMAT.format( new Date() );
context.FILTER_REQUEST_ID2 = UUID.randomUUID().toString();
context.REQUEST_ID2  = UUID.randomUUID().toString(); 
context.DOCUMENTIDENTIFIER_IDENTITY2 = UUID.randomUUID().toString();

context.APRV_BY_NAME_FAMILY = UUID.randomUUID().toString();
context.APRV_BY_NAME_GIVEN = 'Aprv Given';
context.APRV_BY_NAME_MIDDLE = 'AprvMiddleName';
context.APRV_BY_NAME_PREFIX = 'AprvPrefix';
context.APRV_BY_NAME_SUFFIX = 'AprvSuffix';
context.APRV_BY_NAME_TITLE = 'AprvTitle';

context.APRV_BY_PERSON_ASGNING_AUTH = 'USVHA';
context.APRV_BY_PERSON_ASGNING_FCLT = 'AprvAssigningFacility';
context.APRV_BY_PERSON_IDENTITY = UUID.randomUUID().toString();

context.APRV_BY_PRACTITIONER_ID_S = 'IdSourceTable';

context.AUTH_NAME_FAMILY = UUID.randomUUID().toString();
context.AUTH_NAME_GIVEN = 'AuthGiven';
context.AUTH_NAME_MIDDLE = 'AuthMiddleName';
context.AUTH_NAME_PREFIX = 'AuthPrefix';
context.AUTH_NAME_SUFFIX = 'AuthSuffix';
context.AUTH_NAME_TITLE = 'AuthTitle';

context.AUTH_PERSON_ASGNING_AUTHORITY = 'Auth-USVHA';
context.AUTH_PERSON_ASGNING_FACILITY = 'AuthAssigningFacility';
context.AUTH_PERSON_IDENTITY = UUID.randomUUID().toString();

context.AUTH_PRACTITIONER_ID_SRC_TBL = 'IdSourceTable';

context.FACILITY_IDENTITY = 'ByPractitioner';
context.FACILITY_ASSIGNING_AUTHORITY = 'AssigningAuthNamespaceId';
context.FACILITY_NAME = 'OrganizationName';

context.DOCUMENT_TYPE = UUID.randomUUID().toString();
context.APPROVED_FLAG = "CHECK_ME";
context.APPROVED_FLAG_2 = "CHECK_ME" + "_2";
</script></con:config></con:testStep><con:testStep type="request" name="DBQ Create Data - Valid"><con:settings/><con:config xsi:type="con:RequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>ClinicalDataServiceSynchronousInterfaceHttpBinding</con:interface><con:operation>appendClinicalData</con:operation><con:request name="DBQ Create Data - Valid" outgoingWss="" incomingWss=""><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://${CDS_DBQ_JMS_ENDPOINT}</con:endpoint><con:request><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
<clinicaldata:ClinicalData xmlns:clinicaldata="Clinicaldata">
	<templateId>DBQCreate2</templateId>
	<clientName>SOAP UI</clientName>
	<clientRequestInitiationTime>${CLIENT_REQUEST_INIT_TIME}</clientRequestInitiationTime>
	<patient>
		<questionnaireResults>
			<questionnaireResult>
				<patient>
					<identifier>
						<identity>${PATIENT_ID}</identity>
						<assigningFacility>200HD</assigningFacility>
						<assigningAuthority>USVHA</assigningAuthority>
					</identifier>
					<name>
						<prefix>${PATIENT_NAME_PREFIX}</prefix>
						<given>Given</given>
						<middle>MiddleName</middle>
						<family>FamilyName</family>
						<suffix>Suffix</suffix>
						<title>Title</title>
					</name>
				</patient>
				<dateCreated>
					<literal>19691231170000-0700</literal>
				</dateCreated>
				<claimNumber>
					<root>${=java.util.UUID.randomUUID().toString()}</root>
				</claimNumber>
				<documentType>Ischemic_Heart_Disease</documentType>
				<initiatingSystem>SOAP UI</initiatingSystem>
				<documentIdentifier>
					<identity>${DOCUMENTIDENTIFIER_IDENTITY}</identity>
					<namespaceId>402</namespaceId>
					<universalId>UID_13359111174322</universalId>
					<universalIdType>universalIdType</universalIdType>
				</documentIdentifier>
				<facilityIdentifier>
					<identity>${FACILITY_IDENTITY}</identity>
					<name>${FACILITY_NAME}</name>
					<assigningAuthority>${FACILITY_ASSIGNING_AUTHORITY}</assigningAuthority>
				</facilityIdentifier>
				<approvedFlag>${APPROVED_FLAG}</approvedFlag>
				<approvedBy>
					<comment>Approved By Comment</comment>
					<time>
						<literal>20120501162517-0600</literal>
					</time>
					<practitioner>
						<identifier>
							<identity>${APRV_BY_PERSON_IDENTITY}</identity>
							<assigningFacility>${APRV_BY_PERSON_ASGNING_FCLT}</assigningFacility>
							<assigningAuthority>${APRV_BY_PERSON_ASGNING_AUTH}</assigningAuthority>
						</identifier>
						<idSourceTable>${APRV_BY_PRACTITIONER_ID_S}</idSourceTable>
						<name>
							<prefix>${APRV_BY_NAME_PREFIX}</prefix>
							<given>${APRV_BY_NAME_GIVEN}</given>
							<middle>${APRV_BY_NAME_MIDDLE}</middle>
							<family>${APRV_BY_NAME_FAMILY}</family>
							<suffix>${APRV_BY_NAME_SUFFIX}</suffix>
							<title>${APRV_BY_NAME_TITLE}</title>
						</name>
					</practitioner>
				</approvedBy>
				<author>
					<comment>Author Comment</comment>
					<time>
						<literal>20120501162517-0600</literal>
					</time>
					<practitioner>
						<identifier>
							<identity>${AUTH_PERSON_IDENTITY}</identity>
							<assigningFacility>${AUTH_PERSON_ASGNING_FACILITY}</assigningFacility>
							<assigningAuthority>${AUTH_PERSON_ASGNING_AUTHORITY}</assigningAuthority>
						</identifier>
						<idSourceTable>${AUTH_PRACTITIONER_ID_SRC_TBL}</idSourceTable>
						<name>
							<prefix>${AUTH_NAME_PREFIX}</prefix>
							<given>${AUTH_NAME_GIVEN}</given>
							<middle>${AUTH_NAME_MIDDLE}</middle>
							<family>${AUTH_NAME_FAMILY}</family>
							<suffix>${AUTH_NAME_SUFFIX}</suffix>
							<title>${AUTH_NAME_TITLE}</title>
						</name>
					</practitioner>
				</author>
				<detailXML><gov.va.agentorange.fasttrack.model.dbq.ihd.IschemicHeartDisease>  <id>7553</id>  <version>0</version>  <dateCreated class="sql-timestamp">2012-01-10 09:45:51.397</dateCreated>  <dateModified class="sql-timestamp">2012-01-10 09:45:51.397</dateModified>  <formType>FORM_TYPE_DBQ_IHD</formType>  <vetSsn>941288701</vetSsn>  <documentStatusType>COMPLETE</documentStatusType>  <documentChannelType>ONLINE</documentChannelType>  <formFileNetStatus>    <id>5760</id>    <version>1</version>    <dateCreated class="sql-timestamp">2012-01-10 09:45:51.437</dateCreated>    <dateModified>2012-01-10 09:45:51.507 EST</dateModified>    <formFnStatusType>PROCESSOR_PROCESSING</formFnStatusType>    <formEntity class="gov.va.agentorange.fasttrack.model.dbq.ihd.IschemicHeartDisease" reference="../.."/>  </formFileNetStatus>  <webFormType>IHD_DBQ</webFormType>  <veteranFirstName>Test</veteranFirstName>  <veteranLastName>Test</veteranLastName>  <physicianFirstName>Dr</physicianFirstName>  <physicianLastName>Test</physicianLastName>  <medicalLicenseNumber>12</medicalLicenseNumber>  <country>US</country>  <addressLine1>Test</addressLine1>  <addressLine2></addressLine2>  <addressLine3></addressLine3>  <city>Test</city>  <state>DELAWARE</state>  <zip>12345</zip>  <physicianPhoneNumber>1231221312</physicianPhoneNumber>  <privacyActAck>true</privacyActAck>  <physicianSignature>true</physicianSignature>  <impactsAbilityToWork>false</impactsAbilityToWork>  <remarks></remarks>  <dateSigned class="sql-timestamp">2012-01-10 09:45:51.397</dateSigned>  <diagnoses class="org.hibernate.collection.PersistentBag">    <initialized>true</initialized>    <owner class="gov.va.agentorange.fasttrack.model.dbq.ihd.IschemicHeartDisease" reference="../.."/>    <cachedSize>-1</cachedSize>    <role>gov.va.agentorange.fasttrack.model.dbq.DbqFormEntity.diagnoses</role>    <key class="long">7553</key>    <dirty>false</dirty>    <storedSnapshot class="list"/>    <bag/>  </diagnoses>  <medications class="org.hibernate.collection.PersistentBag">    <initialized>true</initialized>    <owner class="gov.va.agentorange.fasttrack.model.dbq.ihd.IschemicHeartDisease" reference="../.."/>    <cachedSize>-1</cachedSize>    <role>gov.va.agentorange.fasttrack.model.dbq.DbqFormEntity.medications</role>    <key class="long">7553</key>    <dirty>false</dirty>    <storedSnapshot class="list"/>    <bag/>  </medications>  <diagnosticTests class="org.hibernate.collection.PersistentBag">    <initialized>true</initialized>    <owner class="gov.va.agentorange.fasttrack.model.dbq.ihd.IschemicHeartDisease" reference="../.."/>    <cachedSize>-1</cachedSize>    <role>gov.va.agentorange.fasttrack.model.dbq.DbqFormEntity.diagnosticTests</role>    <key class="long">7553</key>    <dirty>false</dirty>    <storedSnapshot class="list"/>    <bag/>  </diagnosticTests>  <hasIschemicHeartDisease>true</hasIschemicHeartDisease>  <takesContinuousMedication>false</takesContinuousMedication>  <hasPercutaneousCoronaryIntervention>false</hasPercutaneousCoronaryIntervention>  <hasMyocardialInfarction>false</hasMyocardialInfarction>  <hasCoronaryBypassSurgery>false</hasCoronaryBypassSurgery>  <hasHeartTransplant>false</hasHeartTransplant>  <hasImplantedCardiacPacemaker>false</hasImplantedCardiacPacemaker>  <hasImplantedAicd>false</hasImplantedAicd>  <doesVeteranHaveCHF>false</doesVeteranHaveCHF>  <hasExerciseTestBeenConducted>false</hasExerciseTestBeenConducted>  <metsLevel>metsLevel13</metsLevel>  <hasDyspnea>false</hasDyspnea>  <hasFatigue>false</hasFatigue>  <hasAngina>false</hasAngina>  <hasDizziness>false</hasDizziness>  <hasSyncope>true</hasSyncope>  <isEvidenceOfHypertrophyOrDil>false</isEvidenceOfHypertrophyOrDil>  <hasEkg>false</hasEkg>  <hasChestXRay>false</hasChestXRay>  <hasEchocardiogram>false</hasEchocardiogram>  <hasOtherTest>false</hasOtherTest>  <hasLVEF>false</hasLVEF></gov.va.agentorange.fasttrack.model.dbq.ihd.IschemicHeartDisease></detailXML>
			</questionnaireResult>
		</questionnaireResults>
	</patient>
</clinicaldata:ClinicalData>
]]></con:request><con:assertion type="XPath Match" name="Matches Request ID"><con:configuration><path>//requestId</path><content>${REQUEST_ID}</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>true</ignoreNamspaceDifferences><ignoreComments>false</ignoreComments></con:configuration></con:assertion><con:assertion type="XPath Match" name="Matches Docuent ID"><con:configuration><path>//identifier/documentIdentifier/identity</path><content>${DOCUMENTIDENTIFIER_IDENTITY}</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>true</ignoreNamspaceDifferences><ignoreComments>false</ignoreComments></con:configuration></con:assertion><con:assertion type="XPath Match" name="Response Includes Record Identifier"><con:configuration><path>count(//identifiers/identifier)</path><content>1</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>true</ignoreNamspaceDifferences><ignoreComments>false</ignoreComments></con:configuration></con:assertion><con:credentials><con:username xsi:nil="true"/><con:password xsi:nil="true"/><con:domain xsi:nil="true"/><con:authType>Global HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT" messageSelector="" TimeToLive=""/><con:jmsPropertyConfig><con:jmsProperties name="TEMPLATE_ID" value="DBQCreate2"/><con:jmsProperties name="REQUEST_ID" value="${REQUEST_ID}"/></con:jmsPropertyConfig><con:wsaConfig mustUnderstand="NONE" version="200508"/><con:wsrmConfig version="1.2"/></con:request></con:config></con:testStep><con:testStep type="request" name="DBQ Create Data - Valid2"><con:settings/><con:config xsi:type="con:RequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>ClinicalDataServiceSynchronousInterfaceHttpBinding</con:interface><con:operation>appendClinicalData</con:operation><con:request name="DBQ Create Data - Valid2" outgoingWss="" incomingWss=""><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://${CDS_DBQ_JMS_ENDPOINT}</con:endpoint><con:request><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
<clinicaldata:ClinicalData xmlns:clinicaldata="Clinicaldata">
	<templateId>DBQCreate2</templateId>
	<clientName>SOAP UI</clientName>
	<clientRequestInitiationTime>${CLIENT_REQUEST_INIT_TIME2}</clientRequestInitiationTime>
	<patient>
		<questionnaireResults>
			<questionnaireResult>
				<patient>
					<identifier>
						<identity>${PATIENT_ID}</identity>
						<assigningFacility>200HD</assigningFacility>
						<assigningAuthority>USVHA</assigningAuthority>
					</identifier>
					<name>
						<prefix>${PATIENT_NAME_PREFIX}</prefix>
						<given>Given</given>
						<middle>MiddleName</middle>
						<family>FamilyName</family>
						<suffix>Suffix</suffix>
						<title>Title</title>
					</name>
				</patient>
				<dateCreated>
					<literal>20111231170000-0700</literal>
				</dateCreated>
				<claimNumber>
					<root>${=java.util.UUID.randomUUID().toString()}</root>
				</claimNumber>
				<documentType>${DOCUMENT_TYPE}</documentType>
				<initiatingSystem>SOAP UI</initiatingSystem>
				<documentIdentifier>
					<identity>${DOCUMENTIDENTIFIER_IDENTITY2}</identity>
					<namespaceId>402</namespaceId>
					<universalId>UID_13359111174322</universalId>
					<universalIdType>universalIdType</universalIdType>
				</documentIdentifier>
				<facilityIdentifier>
					<identity>${FACILITY_IDENTITY}</identity>
					<name>${FACILITY_NAME}</name>
					<assigningAuthority>${FACILITY_ASSIGNING_AUTHORITY}</assigningAuthority>
				</facilityIdentifier>
				<approvedFlag>${APPROVED_FLAG}</approvedFlag>
				<approvedBy>
					<comment>Approved By Comment</comment>
					<time>
						<literal>20120501162517-0600</literal>
					</time>
					<practitioner>
						<identifier>
							<identity>${APRV_BY_PERSON_IDENTITY}</identity>
							<assigningFacility>${APRV_BY_PERSON_ASGNING_FCLT}</assigningFacility>
							<assigningAuthority>${APRV_BY_PERSON_ASGNING_AUTH}</assigningAuthority>
						</identifier>
						<idSourceTable>${APRV_BY_PRACTITIONER_ID_S}</idSourceTable>
						<name>
							<prefix>${APRV_BY_NAME_PREFIX}</prefix>
							<given>${APRV_BY_NAME_GIVEN}</given>
							<middle>${APRV_BY_NAME_MIDDLE}</middle>
							<family>${APRV_BY_NAME_FAMILY}</family>
							<suffix>${APRV_BY_NAME_SUFFIX}</suffix>
							<title>${APRV_BY_NAME_TITLE}</title>
						</name>
					</practitioner>
				</approvedBy>
				<author>
					<comment>Author Comment</comment>
					<time>
						<literal>20120501162517-0600</literal>
					</time>
					<practitioner>
						<identifier>
							<identity>${AUTH_PERSON_IDENTITY}</identity>
							<assigningFacility>${AUTH_PERSON_ASGNING_FACILITY}</assigningFacility>
							<assigningAuthority>${AUTH_PERSON_ASGNING_AUTHORITY}</assigningAuthority>
						</identifier>
						<idSourceTable>${AUTH_PRACTITIONER_ID_SRC_TBL}</idSourceTable>
						<name>
							<prefix>${AUTH_NAME_PREFIX}</prefix>
							<given>${AUTH_NAME_GIVEN}</given>
							<middle>${AUTH_NAME_MIDDLE}</middle>
							<family>${AUTH_NAME_FAMILY}</family>
							<suffix>${AUTH_NAME_SUFFIX}</suffix>
							<title>${AUTH_NAME_TITLE}</title>
						</name>
					</practitioner>
				</author>
				<detailXML><gov.va.agentorange.fasttrack.model.dbq.ihd.IschemicHeartDisease>  <id>7553</id>  <version>0</version>  <dateCreated class="sql-timestamp">2012-01-10 09:45:51.397</dateCreated>  <dateModified class="sql-timestamp">2012-01-10 09:45:51.397</dateModified>  <formType>FORM_TYPE_DBQ_IHD</formType>  <vetSsn>941288701</vetSsn>  <documentStatusType>COMPLETE</documentStatusType>  <documentChannelType>ONLINE</documentChannelType>  <formFileNetStatus>    <id>5760</id>    <version>1</version>    <dateCreated class="sql-timestamp">2012-01-10 09:45:51.437</dateCreated>    <dateModified>2012-01-10 09:45:51.507 EST</dateModified>    <formFnStatusType>PROCESSOR_PROCESSING</formFnStatusType>    <formEntity class="gov.va.agentorange.fasttrack.model.dbq.ihd.IschemicHeartDisease" reference="../.."/>  </formFileNetStatus>  <webFormType>IHD_DBQ</webFormType>  <veteranFirstName>Test</veteranFirstName>  <veteranLastName>Test</veteranLastName>  <physicianFirstName>Dr</physicianFirstName>  <physicianLastName>Test</physicianLastName>  <medicalLicenseNumber>12</medicalLicenseNumber>  <country>US</country>  <addressLine1>Test</addressLine1>  <addressLine2></addressLine2>  <addressLine3></addressLine3>  <city>Test</city>  <state>DELAWARE</state>  <zip>12345</zip>  <physicianPhoneNumber>1231221312</physicianPhoneNumber>  <privacyActAck>true</privacyActAck>  <physicianSignature>true</physicianSignature>  <impactsAbilityToWork>false</impactsAbilityToWork>  <remarks></remarks>  <dateSigned class="sql-timestamp">2012-01-10 09:45:51.397</dateSigned>  <diagnoses class="org.hibernate.collection.PersistentBag">    <initialized>true</initialized>    <owner class="gov.va.agentorange.fasttrack.model.dbq.ihd.IschemicHeartDisease" reference="../.."/>    <cachedSize>-1</cachedSize>    <role>gov.va.agentorange.fasttrack.model.dbq.DbqFormEntity.diagnoses</role>    <key class="long">7553</key>    <dirty>false</dirty>    <storedSnapshot class="list"/>    <bag/>  </diagnoses>  <medications class="org.hibernate.collection.PersistentBag">    <initialized>true</initialized>    <owner class="gov.va.agentorange.fasttrack.model.dbq.ihd.IschemicHeartDisease" reference="../.."/>    <cachedSize>-1</cachedSize>    <role>gov.va.agentorange.fasttrack.model.dbq.DbqFormEntity.medications</role>    <key class="long">7553</key>    <dirty>false</dirty>    <storedSnapshot class="list"/>    <bag/>  </medications>  <diagnosticTests class="org.hibernate.collection.PersistentBag">    <initialized>true</initialized>    <owner class="gov.va.agentorange.fasttrack.model.dbq.ihd.IschemicHeartDisease" reference="../.."/>    <cachedSize>-1</cachedSize>    <role>gov.va.agentorange.fasttrack.model.dbq.DbqFormEntity.diagnosticTests</role>    <key class="long">7553</key>    <dirty>false</dirty>    <storedSnapshot class="list"/>    <bag/>  </diagnosticTests>  <hasIschemicHeartDisease>true</hasIschemicHeartDisease>  <takesContinuousMedication>false</takesContinuousMedication>  <hasPercutaneousCoronaryIntervention>false</hasPercutaneousCoronaryIntervention>  <hasMyocardialInfarction>false</hasMyocardialInfarction>  <hasCoronaryBypassSurgery>false</hasCoronaryBypassSurgery>  <hasHeartTransplant>false</hasHeartTransplant>  <hasImplantedCardiacPacemaker>false</hasImplantedCardiacPacemaker>  <hasImplantedAicd>false</hasImplantedAicd>  <doesVeteranHaveCHF>false</doesVeteranHaveCHF>  <hasExerciseTestBeenConducted>false</hasExerciseTestBeenConducted>  <metsLevel>metsLevel13</metsLevel>  <hasDyspnea>false</hasDyspnea>  <hasFatigue>false</hasFatigue>  <hasAngina>false</hasAngina>  <hasDizziness>false</hasDizziness>  <hasSyncope>true</hasSyncope>  <isEvidenceOfHypertrophyOrDil>false</isEvidenceOfHypertrophyOrDil>  <hasEkg>false</hasEkg>  <hasChestXRay>false</hasChestXRay>  <hasEchocardiogram>false</hasEchocardiogram>  <hasOtherTest>false</hasOtherTest>  <hasLVEF>false</hasLVEF></gov.va.agentorange.fasttrack.model.dbq.ihd.IschemicHeartDisease></detailXML>
			</questionnaireResult>
		</questionnaireResults>
	</patient>
</clinicaldata:ClinicalData>
]]></con:request><con:assertion type="XPath Match" name="Matches Request ID"><con:configuration><path>//requestId</path><content>${REQUEST_ID2}</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>true</ignoreNamspaceDifferences><ignoreComments>false</ignoreComments></con:configuration></con:assertion><con:assertion type="XPath Match" name="Matches Docuent ID"><con:configuration><path>//identifier/documentIdentifier/identity</path><content>${DOCUMENTIDENTIFIER_IDENTITY2}</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>true</ignoreNamspaceDifferences><ignoreComments>false</ignoreComments></con:configuration></con:assertion><con:assertion type="XPath Match" name="Response Includes Record Identifier"><con:configuration><path>count(//identifiers/identifier)</path><content>1</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>true</ignoreNamspaceDifferences><ignoreComments>false</ignoreComments></con:configuration></con:assertion><con:credentials><con:username xsi:nil="true"/><con:password xsi:nil="true"/><con:domain xsi:nil="true"/><con:authType>Global HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT" messageSelector="" TimeToLive=""/><con:jmsPropertyConfig><con:jmsProperties name="TEMPLATE_ID" value="DBQCreate2"/><con:jmsProperties name="REQUEST_ID" value="${REQUEST_ID2}"/></con:jmsPropertyConfig><con:wsaConfig mustUnderstand="NONE" version="200508"/><con:wsrmConfig version="1.2"/></con:request></con:config></con:testStep><con:testStep type="request" name="DBQ List By: author Practitioner FAMILY NAME &amp; Date &amp; Doc Type"><con:settings/><con:config xsi:type="con:RequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>ClinicalDataServiceSynchronousInterfaceHttpBinding</con:interface><con:operation>readClinicalData1</con:operation><con:request name="DBQ List By: author Practitioner FAMILY NAME &amp; Date &amp; Doc Type"><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://${CDS_SERVICE_SOAP_ENDPOINT}</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:cli="http://client.cds.URL       ">
   <soapenv:Header/>
   <soapenv:Body>
      <cli:readClinicalData1>
         <in0>DBQListRead1</in0>
         <in1><![CDATA[
<?xml version="1.0" encoding="UTF-8"?>
<filter:filter vhimVersion="Vhim_4_00" xsi:schemaLocation="Filter DBQ_List_Data_Filter.xsd" xmlns:filter="Filter" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
	<filterId>DBQ_LIST_DATA_FILTER</filterId>
	<clientName>SOAP UI</clientName>
	<clientRequestInitiationTime>${CLIENT_REQUEST_INIT_TIME}</clientRequestInitiationTime>
	<entryPointFilter queryName="ByPractitioner" isPatientCentric="false">
		<domainEntryPoint>QuestionnaireResult</domainEntryPoint>
		<startDate>2011-06-01-05:00</startDate>
		<endDate>2012-06-01-05:00</endDate>
		<otherQueryParameters>
			<documentType>${DOCUMENT_TYPE}</documentType>
			<authPractitionerNames>
				<family>${AUTH_NAME_FAMILY}</family>
			</authPractitionerNames>
		</otherQueryParameters>
	</entryPointFilter>
</filter:filter>
         ]]]]>><![CDATA[</in1>
         <in2>DBQ_LIST_DATA_FILTER</in2>
         <in3>${FILTER_REQUEST_ID}</in3>
      </cli:readClinicalData1>
   </soapenv:Body>
</soapenv:Envelope>]]></con:request><con:assertion type="SOAP Response"/><con:assertion type="Simple NotContains" name="Not Contains &lt;errorSection>"><con:configuration><token>&lt;errorSection></token><ignoreCase>false</ignoreCase><useRegEx>false</useRegEx></con:configuration></con:assertion><con:credentials><con:authType>Global HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:wsaConfig mustUnderstand="NONE" version="200508"/><con:wsrmConfig version="1.2"/></con:request></con:config></con:testStep><con:testStep type="transfer" name="Extract CDATA Section - author FAMILY NAME &amp; Date &amp; Doc Type"><con:settings/><con:config xsi:type="con:PropertyTransfersStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:transfers setNullOnMissingSource="true" transferTextContent="true" failOnError="true" ignoreEmpty="false" transferToAll="false" useXQuery="false" entitize="false" transferChildNodes="false"><con:name>ExtractCDATASection</con:name><con:sourceType>Response</con:sourceType><con:sourceStep>DBQ List By: author Practitioner FAMILY NAME &amp; Date &amp; Doc Type</con:sourceStep><con:sourcePath>//out</con:sourcePath><con:targetType>CDataSection</con:targetType><con:targetStep>#TestCase#</con:targetStep></con:transfers></con:config></con:testStep><con:testStep type="groovy" name="Check ONE - author - Returned - FAMILY NAME &amp; Date &amp; Doc Type"><con:settings/><con:config><script>import com.eviware.soapui.support.XmlHolder 

def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context );
def content = testRunner.testCase.getPropertyValue( "CDataSection" ); 
content = content.replaceAll( "&lt;!\\[CDATA\\[", "" ) 
content = content.replaceAll( "]]&gt;", "" ) 

def holder = groovyUtils.getXmlHolder( content ) ;
def recordCount = holder["count(//recordIdentifier)"]
assert recordCount == "1"</script></con:config></con:testStep><con:testStep type="request" name="DBQ List By: author Practitioner FAMILY, GIVEN NAME &amp; Date &amp; Doc Type"><con:settings/><con:config xsi:type="con:RequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>ClinicalDataServiceSynchronousInterfaceHttpBinding</con:interface><con:operation>readClinicalData1</con:operation><con:request name="DBQ List By: author Practitioner FAMILY, GIVEN NAME &amp; Date &amp; Doc Type"><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://${CDS_SERVICE_SOAP_ENDPOINT}</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:cli="http://client.cds.URL       ">
   <soapenv:Header/>
   <soapenv:Body>
      <cli:readClinicalData1>
         <in0>DBQListRead1</in0>
         <in1><![CDATA[
<?xml version="1.0" encoding="UTF-8"?>
<filter:filter vhimVersion="Vhim_4_00" xsi:schemaLocation="Filter DBQ_List_Data_Filter.xsd" xmlns:filter="Filter" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
	<filterId>DBQ_LIST_DATA_FILTER</filterId>
	<clientName>SOAP UI</clientName>
	<clientRequestInitiationTime>${CLIENT_REQUEST_INIT_TIME}</clientRequestInitiationTime>
	<entryPointFilter queryName="ByPractitioner" isPatientCentric="false">
		<domainEntryPoint>QuestionnaireResult</domainEntryPoint>
		<startDate>2011-06-01-05:00</startDate>
		<endDate>2012-06-01-05:00</endDate>
		<otherQueryParameters>
			<documentType>${DOCUMENT_TYPE}</documentType>
			<authPractitionerNames>
				<family>${AUTH_NAME_FAMILY}</family>
				<given>${AUTH_NAME_GIVEN}</given>
			</authPractitionerNames>
		</otherQueryParameters>
	</entryPointFilter>
</filter:filter>
         ]]]]>><![CDATA[</in1>
         <in2>DBQ_LIST_DATA_FILTER</in2>
         <in3>${FILTER_REQUEST_ID}</in3>
      </cli:readClinicalData1>
   </soapenv:Body>
</soapenv:Envelope>]]></con:request><con:assertion type="SOAP Response"/><con:assertion type="Simple NotContains" name="Not Contains &lt;errorSection>"><con:configuration><token>&lt;errorSection></token><ignoreCase>false</ignoreCase><useRegEx>false</useRegEx></con:configuration></con:assertion><con:credentials><con:authType>Global HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:wsaConfig mustUnderstand="NONE" version="200508"/><con:wsrmConfig version="1.2"/></con:request></con:config></con:testStep><con:testStep type="transfer" name="Extract CDATA Section - author FAMILY, GIVEN NAME &amp; Date &amp; Doc Type"><con:settings/><con:config xsi:type="con:PropertyTransfersStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:transfers setNullOnMissingSource="true" transferTextContent="true" failOnError="true" ignoreEmpty="false" transferToAll="false" useXQuery="false" entitize="false" transferChildNodes="false"><con:name>ExtractCDATASection</con:name><con:sourceType>Response</con:sourceType><con:sourceStep>DBQ List By: author Practitioner FAMILY, GIVEN NAME &amp; Date &amp; Doc Type</con:sourceStep><con:sourcePath>//out</con:sourcePath><con:targetType>CDataSection</con:targetType><con:targetStep>#TestCase#</con:targetStep></con:transfers></con:config></con:testStep><con:testStep type="groovy" name="Check ONE - author - Returned - FAMILY, GIVEN NAME &amp; Date &amp; Doc Type"><con:settings/><con:config><script>import com.eviware.soapui.support.XmlHolder 

def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context );
def content = testRunner.testCase.getPropertyValue( "CDataSection" ); 
content = content.replaceAll( "&lt;!\\[CDATA\\[", "" ) 
content = content.replaceAll( "]]&gt;", "" ) 

def holder = groovyUtils.getXmlHolder( content ) ;
def recordCount = holder["count(//recordIdentifier)"]
assert recordCount == "1"</script></con:config></con:testStep><con:testStep type="request" name="DBQ List By: author Practitioner FAMILY, GIVEN NAME, MIDDLE &amp; Date &amp; Doc Type"><con:settings/><con:config xsi:type="con:RequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>ClinicalDataServiceSynchronousInterfaceHttpBinding</con:interface><con:operation>readClinicalData1</con:operation><con:request name="DBQ List By: author Practitioner FAMILY, GIVEN NAME, MIDDLE &amp; Date &amp; Doc Type"><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://${CDS_SERVICE_SOAP_ENDPOINT}</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:cli="http://client.cds.URL       ">
   <soapenv:Header/>
   <soapenv:Body>
      <cli:readClinicalData1>
         <in0>DBQListRead1</in0>
         <in1><![CDATA[
<?xml version="1.0" encoding="UTF-8"?>
<filter:filter vhimVersion="Vhim_4_00" xsi:schemaLocation="Filter DBQ_List_Data_Filter.xsd" xmlns:filter="Filter" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
	<filterId>DBQ_LIST_DATA_FILTER</filterId>
	<clientName>SOAP UI</clientName>
	<clientRequestInitiationTime>${CLIENT_REQUEST_INIT_TIME}</clientRequestInitiationTime>
	<entryPointFilter queryName="ByPractitioner" isPatientCentric="false">
		<domainEntryPoint>QuestionnaireResult</domainEntryPoint>
		<startDate>2011-06-01-05:00</startDate>
		<endDate>2012-06-01-05:00</endDate>
		<otherQueryParameters>
			<documentType>${DOCUMENT_TYPE}</documentType>
			<authPractitionerNames>
				<family>${AUTH_NAME_FAMILY}</family>
				<given>${AUTH_NAME_GIVEN}</given>
				<middle>${AUTH_NAME_MIDDLE}</middle>
			</authPractitionerNames>
		</otherQueryParameters>
	</entryPointFilter>
</filter:filter>
         ]]]]>><![CDATA[</in1>
         <in2>DBQ_LIST_DATA_FILTER</in2>
         <in3>${FILTER_REQUEST_ID}</in3>
      </cli:readClinicalData1>
   </soapenv:Body>
</soapenv:Envelope>]]></con:request><con:assertion type="SOAP Response"/><con:assertion type="Simple NotContains" name="Not Contains &lt;errorSection>"><con:configuration><token>&lt;errorSection></token><ignoreCase>false</ignoreCase><useRegEx>false</useRegEx></con:configuration></con:assertion><con:credentials><con:authType>Global HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:wsaConfig mustUnderstand="NONE" version="200508"/><con:wsrmConfig version="1.2"/></con:request></con:config></con:testStep><con:testStep type="transfer" name="Extract CDATA Section - author FAMILY, GIVEN NAME, MIDDLE &amp; Date &amp; Doc Type"><con:settings/><con:config xsi:type="con:PropertyTransfersStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:transfers setNullOnMissingSource="true" transferTextContent="true" failOnError="true" ignoreEmpty="false" transferToAll="false" useXQuery="false" entitize="false" transferChildNodes="false"><con:name>ExtractCDATASection</con:name><con:sourceType>Response</con:sourceType><con:sourceStep>DBQ List By: author Practitioner FAMILY, GIVEN NAME, MIDDLE &amp; Date &amp; Doc Type</con:sourceStep><con:sourcePath>//out</con:sourcePath><con:targetType>CDataSection</con:targetType><con:targetStep>#TestCase#</con:targetStep></con:transfers></con:config></con:testStep><con:testStep type="groovy" name="Check ONE - author - Returned - FAMILY, GIVEN NAME, MIDDLE &amp; Date &amp; Doc Type"><con:settings/><con:config><script>import com.eviware.soapui.support.XmlHolder 

def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context );
def content = testRunner.testCase.getPropertyValue( "CDataSection" ); 
content = content.replaceAll( "&lt;!\\[CDATA\\[", "" ) 
content = content.replaceAll( "]]&gt;", "" ) 

def holder = groovyUtils.getXmlHolder( content ) ;
def recordCount = holder["count(//recordIdentifier)"]
assert recordCount == "1"</script></con:config></con:testStep><con:testStep type="request" name="DBQ List By: author Practitioner UNK FAMILY NAME &amp; Date &amp; Doc Type"><con:settings/><con:config xsi:type="con:RequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>ClinicalDataServiceSynchronousInterfaceHttpBinding</con:interface><con:operation>readClinicalData1</con:operation><con:request name="DBQ List By: author Practitioner UNK FAMILY NAME &amp; Date &amp; Doc Type"><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://${CDS_SERVICE_SOAP_ENDPOINT}</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:cli="http://client.cds.URL       ">
   <soapenv:Header/>
   <soapenv:Body>
      <cli:readClinicalData1>
         <in0>DBQListRead1</in0>
         <in1><![CDATA[
<?xml version="1.0" encoding="UTF-8"?>
<filter:filter vhimVersion="Vhim_4_00" xsi:schemaLocation="Filter DBQ_List_Data_Filter.xsd" xmlns:filter="Filter" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
	<filterId>DBQ_LIST_DATA_FILTER</filterId>
	<clientName>SOAP UI</clientName>
	<clientRequestInitiationTime>${CLIENT_REQUEST_INIT_TIME}</clientRequestInitiationTime>
	<entryPointFilter queryName="ByPractitioner" isPatientCentric="false">
		<domainEntryPoint>QuestionnaireResult</domainEntryPoint>
		<startDate>2011-06-01-05:00</startDate>
		<endDate>2012-06-01-05:00</endDate>
		<otherQueryParameters>
			<documentType>${DOCUMENT_TYPE}</documentType>
			<authPractitionerNames>
				<family>${AUTH_NAME_FAMILY}-UNK</family>
			</authPractitionerNames>
		</otherQueryParameters>
	</entryPointFilter>
</filter:filter>
         ]]]]>><![CDATA[</in1>
         <in2>DBQ_LIST_DATA_FILTER</in2>
         <in3>${FILTER_REQUEST_ID}</in3>
      </cli:readClinicalData1>
   </soapenv:Body>
</soapenv:Envelope>]]></con:request><con:assertion type="SOAP Response"/><con:assertion type="Simple NotContains" name="Not Contains &lt;errorSection>"><con:configuration><token>&lt;errorSection></token><ignoreCase>false</ignoreCase><useRegEx>false</useRegEx></con:configuration></con:assertion><con:credentials><con:authType>Global HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:wsaConfig mustUnderstand="NONE" version="200508"/><con:wsrmConfig version="1.2"/></con:request></con:config></con:testStep><con:testStep type="transfer" name="Extract CDATA Section - author UNK FAMILY &amp; Date &amp; Doc Type"><con:settings/><con:config xsi:type="con:PropertyTransfersStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:transfers setNullOnMissingSource="true" transferTextContent="true" failOnError="true" ignoreEmpty="false" transferToAll="false" useXQuery="false" entitize="false" transferChildNodes="false"><con:name>ExtractCDATASection</con:name><con:sourceType>Response</con:sourceType><con:sourceStep>DBQ List By: author Practitioner UNK FAMILY NAME &amp; Date &amp; Doc Type</con:sourceStep><con:sourcePath>//out</con:sourcePath><con:targetType>CDataSection</con:targetType><con:targetStep>#TestCase#</con:targetStep></con:transfers></con:config></con:testStep><con:testStep type="groovy" name="Check NONE - author - Returned - UNK FAMILY &amp; Date &amp; Doc Type"><con:settings/><con:config><script>import com.eviware.soapui.support.XmlHolder 

def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context );
def content = testRunner.testCase.getPropertyValue( "CDataSection" ); 
content = content.replaceAll( "&lt;!\\[CDATA\\[", "" ) 
content = content.replaceAll( "]]&gt;", "" ) 

def holder = groovyUtils.getXmlHolder( content ) ;
def recordCount = holder["count(//recordIdentifier)"]
assert recordCount == "0"
assert holder["count(//fatalError)"] == "0"
assert holder["count(//error)"] == "0"
assert holder["count(//warning)"] == "0"</script></con:config></con:testStep><con:properties><con:property><con:name>CDataSection</con:name><con:value xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
<clinicaldata:ClinicalData xmlns:clinicaldata="Clinicaldata"><templateId>DBQListRead1</templateId><requestId>a8ebb4b2-7ca1-46b8-b9a6-4c047a80b0ac</requestId><patients><patient><questionnaireResults/></patient></patients></clinicaldata:ClinicalData>]]></con:value></con:property></con:properties></con:testCase><con:testCase failOnError="true" failTestCaseOnErrors="true" keepSession="false" maxResults="0" name="HDR 3.4 DBQ Read by Facility &amp; Date Range (18577)" searchProperties="true" id="33fac648-72c6-4757-9875-1a35c420a25b"><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_REQUEST_INIT_TIME = DateFormatUtils.ISO_DATETIME_TIME_ZONE_FORMAT.format( new Date() );
context.FILTER_REQUEST_ID = UUID.randomUUID().toString();
context.REQUEST_ID  = UUID.randomUUID().toString(); 
context.DOCUMENTIDENTIFIER_IDENTITY = UUID.randomUUID().toString(); 
context.PATIENT_ID = UUID.randomUUID().toString();

context.CLIENT_REQUEST_INIT_TIME2 = DateFormatUtils.ISO_DATETIME_TIME_ZONE_FORMAT.format( new Date() );
context.FILTER_REQUEST_ID2 = UUID.randomUUID().toString();
context.REQUEST_ID2  = UUID.randomUUID().toString(); 
context.DOCUMENTIDENTIFIER_IDENTITY2 = UUID.randomUUID().toString(); 

context.CLIENT_REQUEST_INIT_TIME3 = DateFormatUtils.ISO_DATETIME_TIME_ZONE_FORMAT.format( new Date() );
context.REQUEST_ID3  = UUID.randomUUID().toString(); 
context.DOCUMENTIDENTIFIER_IDENTITY3 = UUID.randomUUID().toString(); 

context.FACILITY_IDENTITY = UUID.randomUUID().toString();
context.FACILITY_ASSIGNING_AUTHORITY = 'AssigningAuthNamespaceId';
context.FACILITY_NAME = 'OrganizationName';

context.DOCUMENT_TYPE = UUID.randomUUID().toString();
context.DOCUMENT_TYPE_2 = context.DOCUMENT_TYPE + "_2";
//log.info(context.DOCUMENT_TYPE_2);
context.APPROVED_FLAG = "CHECK_ME";
context.APPROVED_FLAG_2 = "CHECK_ME" + "_2";

</script></con:config></con:testStep><con:testStep type="request" name="DBQ Create Data - Valid"><con:settings/><con:config xsi:type="con:RequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>ClinicalDataServiceSynchronousInterfaceHttpBinding</con:interface><con:operation>appendClinicalData</con:operation><con:request name="DBQ Create Data - Valid" outgoingWss="" incomingWss=""><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://${CDS_DBQ_JMS_ENDPOINT}</con:endpoint><con:request><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
<clinicaldata:ClinicalData xmlns:clinicaldata="Clinicaldata">
	<templateId>DBQCreate2</templateId>
	<clientName>SOAP UI</clientName>
	<clientRequestInitiationTime>${CLIENT_REQUEST_INIT_TIME}</clientRequestInitiationTime>
	<patient>
		<questionnaireResults>
			<questionnaireResult>
				<patient>
					<identifier>
						<identity>${PATIENT_ID}</identity>
						<assigningFacility>200HD</assigningFacility>
						<assigningAuthority>USVHA</assigningAuthority>
					</identifier>
					<name>
						<prefix>${PATIENT_NAME_PREFIX}</prefix>
						<given>Given</given>
						<middle>MiddleName</middle>
						<family>FamilyName</family>
						<suffix>Suffix</suffix>
						<title>Title</title>
					</name>
				</patient>
				<dateCreated>
					<literal>19691231170000-0700</literal>
				</dateCreated>
				<claimNumber>
					<root>${=java.util.UUID.randomUUID().toString()}</root>
				</claimNumber>
				<documentType>${DOCUMENT_TYPE}</documentType>
				<initiatingSystem>SOAP UI</initiatingSystem>
				<documentIdentifier>
					<identity>${DOCUMENTIDENTIFIER_IDENTITY}</identity>
					<namespaceId>402</namespaceId>
					<universalId>UID_13359111174322</universalId>
					<universalIdType>universalIdType</universalIdType>
				</documentIdentifier>
				<facilityIdentifier>
					<identity>${FACILITY_IDENTITY}</identity>
					<name>${FACILITY_NAME}</name>
					<assigningAuthority>${FACILITY_ASSIGNING_AUTHORITY}</assigningAuthority>
				</facilityIdentifier>
				<approvedFlag>APPROVED</approvedFlag>
				<approvedBy>
					<comment>Approved By Comment</comment>
					<time>
						<literal>20120501162517-0600</literal>
					</time>
					<practitioner>
						<identifier>
							<identity>test_AUTHORID_1003</identity>
							<assigningFacility>402</assigningFacility>
							<assigningAuthority>USVHA</assigningAuthority>
						</identifier>
						<idSourceTable>IdSourceTable</idSourceTable>
						<name>
							<prefix>Prefix</prefix>
							<given>Given</given>
							<middle>MiddleName</middle>
							<family>FamilyName</family>
							<suffix>Suffix</suffix>
							<title>Title</title>
						</name>
					</practitioner>
				</approvedBy>
				<author>
					<comment>Author Comment</comment>
					<time>
						<literal>20120501162517-0600</literal>
					</time>
					<practitioner>
						<identifier>
							<identity>test_AUTHORID_1003</identity>
							<assigningFacility>402</assigningFacility>
							<assigningAuthority>USVHA</assigningAuthority>
						</identifier>
						<idSourceTable>IdSourceTable</idSourceTable>
						<name>
							<prefix>Prefix</prefix>
							<given>Given</given>
							<middle>MiddleName</middle>
							<family>FamilyName</family>
							<suffix>Suffix</suffix>
							<title>Title</title>
						</name>
					</practitioner>
				</author>
				<detailXML><gov.va.agentorange.fasttrack.model.dbq.ihd.IschemicHeartDisease>  <id>7553</id>  <version>0</version>  <dateCreated class="sql-timestamp">2012-01-10 09:45:51.397</dateCreated>  <dateModified class="sql-timestamp">2012-01-10 09:45:51.397</dateModified>  <formType>FORM_TYPE_DBQ_IHD</formType>  <vetSsn>941288701</vetSsn>  <documentStatusType>COMPLETE</documentStatusType>  <documentChannelType>ONLINE</documentChannelType>  <formFileNetStatus>    <id>5760</id>    <version>1</version>    <dateCreated class="sql-timestamp">2012-01-10 09:45:51.437</dateCreated>    <dateModified>2012-01-10 09:45:51.507 EST</dateModified>    <formFnStatusType>PROCESSOR_PROCESSING</formFnStatusType>    <formEntity class="gov.va.agentorange.fasttrack.model.dbq.ihd.IschemicHeartDisease" reference="../.."/>  </formFileNetStatus>  <webFormType>IHD_DBQ</webFormType>  <veteranFirstName>Test</veteranFirstName>  <veteranLastName>Test</veteranLastName>  <physicianFirstName>Dr</physicianFirstName>  <physicianLastName>Test</physicianLastName>  <medicalLicenseNumber>12</medicalLicenseNumber>  <country>US</country>  <addressLine1>Test</addressLine1>  <addressLine2></addressLine2>  <addressLine3></addressLine3>  <city>Test</city>  <state>DELAWARE</state>  <zip>12345</zip>  <physicianPhoneNumber>1231221312</physicianPhoneNumber>  <privacyActAck>true</privacyActAck>  <physicianSignature>true</physicianSignature>  <impactsAbilityToWork>false</impactsAbilityToWork>  <remarks></remarks>  <dateSigned class="sql-timestamp">2012-01-10 09:45:51.397</dateSigned>  <diagnoses class="org.hibernate.collection.PersistentBag">    <initialized>true</initialized>    <owner class="gov.va.agentorange.fasttrack.model.dbq.ihd.IschemicHeartDisease" reference="../.."/>    <cachedSize>-1</cachedSize>    <role>gov.va.agentorange.fasttrack.model.dbq.DbqFormEntity.diagnoses</role>    <key class="long">7553</key>    <dirty>false</dirty>    <storedSnapshot class="list"/>    <bag/>  </diagnoses>  <medications class="org.hibernate.collection.PersistentBag">    <initialized>true</initialized>    <owner class="gov.va.agentorange.fasttrack.model.dbq.ihd.IschemicHeartDisease" reference="../.."/>    <cachedSize>-1</cachedSize>    <role>gov.va.agentorange.fasttrack.model.dbq.DbqFormEntity.medications</role>    <key class="long">7553</key>    <dirty>false</dirty>    <storedSnapshot class="list"/>    <bag/>  </medications>  <diagnosticTests class="org.hibernate.collection.PersistentBag">    <initialized>true</initialized>    <owner class="gov.va.agentorange.fasttrack.model.dbq.ihd.IschemicHeartDisease" reference="../.."/>    <cachedSize>-1</cachedSize>    <role>gov.va.agentorange.fasttrack.model.dbq.DbqFormEntity.diagnosticTests</role>    <key class="long">7553</key>    <dirty>false</dirty>    <storedSnapshot class="list"/>    <bag/>  </diagnosticTests>  <hasIschemicHeartDisease>true</hasIschemicHeartDisease>  <takesContinuousMedication>false</takesContinuousMedication>  <hasPercutaneousCoronaryIntervention>false</hasPercutaneousCoronaryIntervention>  <hasMyocardialInfarction>false</hasMyocardialInfarction>  <hasCoronaryBypassSurgery>false</hasCoronaryBypassSurgery>  <hasHeartTransplant>false</hasHeartTransplant>  <hasImplantedCardiacPacemaker>false</hasImplantedCardiacPacemaker>  <hasImplantedAicd>false</hasImplantedAicd>  <doesVeteranHaveCHF>false</doesVeteranHaveCHF>  <hasExerciseTestBeenConducted>false</hasExerciseTestBeenConducted>  <metsLevel>metsLevel13</metsLevel>  <hasDyspnea>false</hasDyspnea>  <hasFatigue>false</hasFatigue>  <hasAngina>false</hasAngina>  <hasDizziness>false</hasDizziness>  <hasSyncope>true</hasSyncope>  <isEvidenceOfHypertrophyOrDil>false</isEvidenceOfHypertrophyOrDil>  <hasEkg>false</hasEkg>  <hasChestXRay>false</hasChestXRay>  <hasEchocardiogram>false</hasEchocardiogram>  <hasOtherTest>false</hasOtherTest>  <hasLVEF>false</hasLVEF></gov.va.agentorange.fasttrack.model.dbq.ihd.IschemicHeartDisease></detailXML>
			</questionnaireResult>
		</questionnaireResults>
	</patient>
</clinicaldata:ClinicalData>
]]></con:request><con:assertion type="XPath Match" name="Matches Request ID"><con:configuration><path>//requestId</path><content>${REQUEST_ID}</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>true</ignoreNamspaceDifferences><ignoreComments>false</ignoreComments></con:configuration></con:assertion><con:assertion type="XPath Match" name="Matches Docuent ID"><con:configuration><path>//identifier/documentIdentifier/identity</path><content>${DOCUMENTIDENTIFIER_IDENTITY}</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>true</ignoreNamspaceDifferences><ignoreComments>false</ignoreComments></con:configuration></con:assertion><con:assertion type="XPath Match" name="Response Includes Record Identifier"><con:configuration><path>count(//identifiers/identifier)</path><content>1</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>true</ignoreNamspaceDifferences><ignoreComments>false</ignoreComments></con:configuration></con:assertion><con:credentials><con:username xsi:nil="true"/><con:password xsi:nil="true"/><con:domain xsi:nil="true"/><con:authType>Global HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT" messageSelector="" TimeToLive=""/><con:jmsPropertyConfig><con:jmsProperties name="TEMPLATE_ID" value="DBQCreate2"/><con:jmsProperties name="REQUEST_ID" value="${REQUEST_ID}"/></con:jmsPropertyConfig><con:wsaConfig mustUnderstand="NONE" version="200508"/><con:wsrmConfig version="1.2"/></con:request></con:config></con:testStep><con:testStep type="request" name="DBQ Create Data - Valid2"><con:settings/><con:config xsi:type="con:RequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>ClinicalDataServiceSynchronousInterfaceHttpBinding</con:interface><con:operation>appendClinicalData</con:operation><con:request name="DBQ Create Data - Valid2" outgoingWss="" incomingWss=""><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://${CDS_DBQ_JMS_ENDPOINT}</con:endpoint><con:request><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
<clinicaldata:ClinicalData xmlns:clinicaldata="Clinicaldata">
	<templateId>DBQCreate2</templateId>
	<clientName>SOAP UI</clientName>
	<clientRequestInitiationTime>${CLIENT_REQUEST_INIT_TIME2}</clientRequestInitiationTime>
	<patient>
		<questionnaireResults>
			<questionnaireResult>
				<patient>
					<identifier>
						<identity>${PATIENT_ID}</identity>
						<assigningFacility>200HD</assigningFacility>
						<assigningAuthority>USVHA</assigningAuthority>
					</identifier>
					<name>
						<prefix>${PATIENT_NAME_PREFIX}</prefix>
						<given>Given</given>
						<middle>MiddleName</middle>
						<family>FamilyName</family>
						<suffix>Suffix</suffix>
						<title>Title</title>
					</name>
				</patient>
				<dateCreated>
					<literal>20111231170000-0700</literal>
				</dateCreated>
				<claimNumber>
					<root>${=java.util.UUID.randomUUID().toString()}</root>
				</claimNumber>
				<documentType>${DOCUMENT_TYPE_2}</documentType>
				<initiatingSystem>SOAP UI</initiatingSystem>
				<documentIdentifier>
					<identity>${DOCUMENTIDENTIFIER_IDENTITY2}</identity>
					<namespaceId>402</namespaceId>
					<universalId>UID_13359111174322</universalId>
					<universalIdType>universalIdType</universalIdType>
				</documentIdentifier>
				<facilityIdentifier>
					<identity>${FACILITY_IDENTITY}</identity>
					<name>${FACILITY_NAME}</name>
					<assigningAuthority>${FACILITY_ASSIGNING_AUTHORITY}</assigningAuthority>
				</facilityIdentifier>
				<approvedFlag>${APPROVED_FLAG_2}</approvedFlag>
				<approvedBy>
					<comment>Approved By Comment</comment>
					<time>
						<literal>20120501162517-0600</literal>
					</time>
					<practitioner>
						<identifier>
							<identity>test_AUTHORID_1003</identity>
							<assigningFacility>402</assigningFacility>
							<assigningAuthority>USVHA</assigningAuthority>
						</identifier>
						<idSourceTable>IdSourceTable</idSourceTable>
						<name>
							<prefix>Prefix</prefix>
							<given>Given</given>
							<middle>MiddleName</middle>
							<family>FamilyName</family>
							<suffix>Suffix</suffix>
							<title>Title</title>
						</name>
					</practitioner>
				</approvedBy>
				<author>
					<comment>Author Comment</comment>
					<time>
						<literal>20120501162517-0600</literal>
					</time>
					<practitioner>
						<identifier>
							<identity>test_AUTHORID_1003</identity>
							<assigningFacility>402</assigningFacility>
							<assigningAuthority>USVHA</assigningAuthority>
						</identifier>
						<idSourceTable>IdSourceTable</idSourceTable>
						<name>
							<prefix>Prefix</prefix>
							<given>Given</given>
							<middle>MiddleName</middle>
							<family>FamilyName</family>
							<suffix>Suffix</suffix>
							<title>Title</title>
						</name>
					</practitioner>
				</author>
				<detailXML><gov.va.agentorange.fasttrack.model.dbq.ihd.IschemicHeartDisease>  <id>7553</id>  <version>0</version>  <dateCreated class="sql-timestamp">2012-01-10 09:45:51.397</dateCreated>  <dateModified class="sql-timestamp">2012-01-10 09:45:51.397</dateModified>  <formType>FORM_TYPE_DBQ_IHD</formType>  <vetSsn>941288701</vetSsn>  <documentStatusType>COMPLETE</documentStatusType>  <documentChannelType>ONLINE</documentChannelType>  <formFileNetStatus>    <id>5760</id>    <version>1</version>    <dateCreated class="sql-timestamp">2012-01-10 09:45:51.437</dateCreated>    <dateModified>2012-01-10 09:45:51.507 EST</dateModified>    <formFnStatusType>PROCESSOR_PROCESSING</formFnStatusType>    <formEntity class="gov.va.agentorange.fasttrack.model.dbq.ihd.IschemicHeartDisease" reference="../.."/>  </formFileNetStatus>  <webFormType>IHD_DBQ</webFormType>  <veteranFirstName>Test</veteranFirstName>  <veteranLastName>Test</veteranLastName>  <physicianFirstName>Dr</physicianFirstName>  <physicianLastName>Test</physicianLastName>  <medicalLicenseNumber>12</medicalLicenseNumber>  <country>US</country>  <addressLine1>Test</addressLine1>  <addressLine2></addressLine2>  <addressLine3></addressLine3>  <city>Test</city>  <state>DELAWARE</state>  <zip>12345</zip>  <physicianPhoneNumber>1231221312</physicianPhoneNumber>  <privacyActAck>true</privacyActAck>  <physicianSignature>true</physicianSignature>  <impactsAbilityToWork>false</impactsAbilityToWork>  <remarks></remarks>  <dateSigned class="sql-timestamp">2012-01-10 09:45:51.397</dateSigned>  <diagnoses class="org.hibernate.collection.PersistentBag">    <initialized>true</initialized>    <owner class="gov.va.agentorange.fasttrack.model.dbq.ihd.IschemicHeartDisease" reference="../.."/>    <cachedSize>-1</cachedSize>    <role>gov.va.agentorange.fasttrack.model.dbq.DbqFormEntity.diagnoses</role>    <key class="long">7553</key>    <dirty>false</dirty>    <storedSnapshot class="list"/>    <bag/>  </diagnoses>  <medications class="org.hibernate.collection.PersistentBag">    <initialized>true</initialized>    <owner class="gov.va.agentorange.fasttrack.model.dbq.ihd.IschemicHeartDisease" reference="../.."/>    <cachedSize>-1</cachedSize>    <role>gov.va.agentorange.fasttrack.model.dbq.DbqFormEntity.medications</role>    <key class="long">7553</key>    <dirty>false</dirty>    <storedSnapshot class="list"/>    <bag/>  </medications>  <diagnosticTests class="org.hibernate.collection.PersistentBag">    <initialized>true</initialized>    <owner class="gov.va.agentorange.fasttrack.model.dbq.ihd.IschemicHeartDisease" reference="../.."/>    <cachedSize>-1</cachedSize>    <role>gov.va.agentorange.fasttrack.model.dbq.DbqFormEntity.diagnosticTests</role>    <key class="long">7553</key>    <dirty>false</dirty>    <storedSnapshot class="list"/>    <bag/>  </diagnosticTests>  <hasIschemicHeartDisease>true</hasIschemicHeartDisease>  <takesContinuousMedication>false</takesContinuousMedication>  <hasPercutaneousCoronaryIntervention>false</hasPercutaneousCoronaryIntervention>  <hasMyocardialInfarction>false</hasMyocardialInfarction>  <hasCoronaryBypassSurgery>false</hasCoronaryBypassSurgery>  <hasHeartTransplant>false</hasHeartTransplant>  <hasImplantedCardiacPacemaker>false</hasImplantedCardiacPacemaker>  <hasImplantedAicd>false</hasImplantedAicd>  <doesVeteranHaveCHF>false</doesVeteranHaveCHF>  <hasExerciseTestBeenConducted>false</hasExerciseTestBeenConducted>  <metsLevel>metsLevel13</metsLevel>  <hasDyspnea>false</hasDyspnea>  <hasFatigue>false</hasFatigue>  <hasAngina>false</hasAngina>  <hasDizziness>false</hasDizziness>  <hasSyncope>true</hasSyncope>  <isEvidenceOfHypertrophyOrDil>false</isEvidenceOfHypertrophyOrDil>  <hasEkg>false</hasEkg>  <hasChestXRay>false</hasChestXRay>  <hasEchocardiogram>false</hasEchocardiogram>  <hasOtherTest>false</hasOtherTest>  <hasLVEF>false</hasLVEF></gov.va.agentorange.fasttrack.model.dbq.ihd.IschemicHeartDisease></detailXML>
			</questionnaireResult>
		</questionnaireResults>
	</patient>
</clinicaldata:ClinicalData>
]]></con:request><con:assertion type="XPath Match" name="Matches Request ID"><con:configuration><path>//requestId</path><content>${REQUEST_ID2}</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>true</ignoreNamspaceDifferences><ignoreComments>false</ignoreComments></con:configuration></con:assertion><con:assertion type="XPath Match" name="Matches Docuent ID"><con:configuration><path>//identifier/documentIdentifier/identity</path><content>${DOCUMENTIDENTIFIER_IDENTITY2}</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>true</ignoreNamspaceDifferences><ignoreComments>false</ignoreComments></con:configuration></con:assertion><con:assertion type="XPath Match" name="Response Includes Record Identifier"><con:configuration><path>count(//identifiers/identifier)</path><content>1</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>true</ignoreNamspaceDifferences><ignoreComments>false</ignoreComments></con:configuration></con:assertion><con:credentials><con:username xsi:nil="true"/><con:password xsi:nil="true"/><con:domain xsi:nil="true"/><con:authType>Global HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT" messageSelector="" TimeToLive=""/><con:jmsPropertyConfig><con:jmsProperties name="TEMPLATE_ID" value="DBQCreate2"/><con:jmsProperties name="REQUEST_ID" value="${REQUEST_ID2}"/></con:jmsPropertyConfig><con:wsaConfig mustUnderstand="NONE" version="200508"/><con:wsrmConfig version="1.2"/></con:request></con:config></con:testStep><con:testStep type="request" name="DBQ Create Data - Valid3"><con:settings/><con:config xsi:type="con:RequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>ClinicalDataServiceSynchronousInterfaceHttpBinding</con:interface><con:operation>appendClinicalData</con:operation><con:request name="DBQ Create Data - Valid3" outgoingWss="" incomingWss=""><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://${CDS_DBQ_JMS_ENDPOINT}</con:endpoint><con:request><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
<clinicaldata:ClinicalData xmlns:clinicaldata="Clinicaldata">
	<templateId>DBQCreate2</templateId>
	<clientName>SOAP UI</clientName>
	<clientRequestInitiationTime>${CLIENT_REQUEST_INIT_TIME3}</clientRequestInitiationTime>
	<patient>
		<questionnaireResults>
			<questionnaireResult>
				<patient>
					<identifier>
						<identity>${PATIENT_ID}</identity>
						<assigningFacility>200HD</assigningFacility>
						<assigningAuthority>USVHA</assigningAuthority>
					</identifier>
					<name>
						<prefix>${PATIENT_NAME_PREFIX}</prefix>
						<given>Given</given>
						<middle>MiddleName</middle>
						<family>FamilyName</family>
						<suffix>Suffix</suffix>
						<title>Title</title>
					</name>
				</patient>
				<dateCreated>
					<literal>20111231170000-0700</literal>
				</dateCreated>
				<claimNumber>
					<root>${=java.util.UUID.randomUUID().toString()}</root>
				</claimNumber>
				<documentType>${DOCUMENT_TYPE}</documentType>
				<initiatingSystem>SOAP UI</initiatingSystem>
				<documentIdentifier>
					<identity>${DOCUMENTIDENTIFIER_IDENTITY3}</identity>
					<namespaceId>402</namespaceId>
					<universalId>UID_13359111174322</universalId>
					<universalIdType>universalIdType</universalIdType>
				</documentIdentifier>
				<facilityIdentifier>
					<identity>${FACILITY_IDENTITY}</identity>
					<name>${FACILITY_NAME}</name>
					<assigningAuthority>${FACILITY_ASSIGNING_AUTHORITY}</assigningAuthority>
				</facilityIdentifier>
				<approvedFlag>${APPROVED_FLAG}</approvedFlag>
				<approvedBy>
					<comment>Approved By Comment</comment>
					<time>
						<literal>20120501162517-0600</literal>
					</time>
					<practitioner>
						<identifier>
							<identity>test_AUTHORID_1003</identity>
							<assigningFacility>402</assigningFacility>
							<assigningAuthority>USVHA</assigningAuthority>
						</identifier>
						<idSourceTable>IdSourceTable</idSourceTable>
						<name>
							<prefix>Prefix</prefix>
							<given>Given</given>
							<middle>MiddleName</middle>
							<family>FamilyName</family>
							<suffix>Suffix</suffix>
							<title>Title</title>
						</name>
					</practitioner>
				</approvedBy>
				<author>
					<comment>Author Comment</comment>
					<time>
						<literal>20120501162517-0600</literal>
					</time>
					<practitioner>
						<identifier>
							<identity>test_AUTHORID_1003</identity>
							<assigningFacility>402</assigningFacility>
							<assigningAuthority>USVHA</assigningAuthority>
						</identifier>
						<idSourceTable>IdSourceTable</idSourceTable>
						<name>
							<prefix>Prefix</prefix>
							<given>Given</given>
							<middle>MiddleName</middle>
							<family>FamilyName</family>
							<suffix>Suffix</suffix>
							<title>Title</title>
						</name>
					</practitioner>
				</author>
				<detailXML><gov.va.agentorange.fasttrack.model.dbq.ihd.IschemicHeartDisease>  <id>7553</id>  <version>0</version>  <dateCreated class="sql-timestamp">2012-01-10 09:45:51.397</dateCreated>  <dateModified class="sql-timestamp">2012-01-10 09:45:51.397</dateModified>  <formType>FORM_TYPE_DBQ_IHD</formType>  <vetSsn>941288701</vetSsn>  <documentStatusType>COMPLETE</documentStatusType>  <documentChannelType>ONLINE</documentChannelType>  <formFileNetStatus>    <id>5760</id>    <version>1</version>    <dateCreated class="sql-timestamp">2012-01-10 09:45:51.437</dateCreated>    <dateModified>2012-01-10 09:45:51.507 EST</dateModified>    <formFnStatusType>PROCESSOR_PROCESSING</formFnStatusType>    <formEntity class="gov.va.agentorange.fasttrack.model.dbq.ihd.IschemicHeartDisease" reference="../.."/>  </formFileNetStatus>  <webFormType>IHD_DBQ</webFormType>  <veteranFirstName>Test</veteranFirstName>  <veteranLastName>Test</veteranLastName>  <physicianFirstName>Dr</physicianFirstName>  <physicianLastName>Test</physicianLastName>  <medicalLicenseNumber>12</medicalLicenseNumber>  <country>US</country>  <addressLine1>Test</addressLine1>  <addressLine2></addressLine2>  <addressLine3></addressLine3>  <city>Test</city>  <state>DELAWARE</state>  <zip>12345</zip>  <physicianPhoneNumber>1231221312</physicianPhoneNumber>  <privacyActAck>true</privacyActAck>  <physicianSignature>true</physicianSignature>  <impactsAbilityToWork>false</impactsAbilityToWork>  <remarks></remarks>  <dateSigned class="sql-timestamp">2012-01-10 09:45:51.397</dateSigned>  <diagnoses class="org.hibernate.collection.PersistentBag">    <initialized>true</initialized>    <owner class="gov.va.agentorange.fasttrack.model.dbq.ihd.IschemicHeartDisease" reference="../.."/>    <cachedSize>-1</cachedSize>    <role>gov.va.agentorange.fasttrack.model.dbq.DbqFormEntity.diagnoses</role>    <key class="long">7553</key>    <dirty>false</dirty>    <storedSnapshot class="list"/>    <bag/>  </diagnoses>  <medications class="org.hibernate.collection.PersistentBag">    <initialized>true</initialized>    <owner class="gov.va.agentorange.fasttrack.model.dbq.ihd.IschemicHeartDisease" reference="../.."/>    <cachedSize>-1</cachedSize>    <role>gov.va.agentorange.fasttrack.model.dbq.DbqFormEntity.medications</role>    <key class="long">7553</key>    <dirty>false</dirty>    <storedSnapshot class="list"/>    <bag/>  </medications>  <diagnosticTests class="org.hibernate.collection.PersistentBag">    <initialized>true</initialized>    <owner class="gov.va.agentorange.fasttrack.model.dbq.ihd.IschemicHeartDisease" reference="../.."/>    <cachedSize>-1</cachedSize>    <role>gov.va.agentorange.fasttrack.model.dbq.DbqFormEntity.diagnosticTests</role>    <key class="long">7553</key>    <dirty>false</dirty>    <storedSnapshot class="list"/>    <bag/>  </diagnosticTests>  <hasIschemicHeartDisease>true</hasIschemicHeartDisease>  <takesContinuousMedication>false</takesContinuousMedication>  <hasPercutaneousCoronaryIntervention>false</hasPercutaneousCoronaryIntervention>  <hasMyocardialInfarction>false</hasMyocardialInfarction>  <hasCoronaryBypassSurgery>false</hasCoronaryBypassSurgery>  <hasHeartTransplant>false</hasHeartTransplant>  <hasImplantedCardiacPacemaker>false</hasImplantedCardiacPacemaker>  <hasImplantedAicd>false</hasImplantedAicd>  <doesVeteranHaveCHF>false</doesVeteranHaveCHF>  <hasExerciseTestBeenConducted>false</hasExerciseTestBeenConducted>  <metsLevel>metsLevel13</metsLevel>  <hasDyspnea>false</hasDyspnea>  <hasFatigue>false</hasFatigue>  <hasAngina>false</hasAngina>  <hasDizziness>false</hasDizziness>  <hasSyncope>true</hasSyncope>  <isEvidenceOfHypertrophyOrDil>false</isEvidenceOfHypertrophyOrDil>  <hasEkg>false</hasEkg>  <hasChestXRay>false</hasChestXRay>  <hasEchocardiogram>false</hasEchocardiogram>  <hasOtherTest>false</hasOtherTest>  <hasLVEF>false</hasLVEF></gov.va.agentorange.fasttrack.model.dbq.ihd.IschemicHeartDisease></detailXML>
			</questionnaireResult>
		</questionnaireResults>
	</patient>
</clinicaldata:ClinicalData>
]]></con:request><con:assertion type="XPath Match" name="Matches Request ID"><con:configuration><path>//requestId</path><content>${REQUEST_ID3}</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>true</ignoreNamspaceDifferences><ignoreComments>false</ignoreComments></con:configuration></con:assertion><con:assertion type="XPath Match" name="Matches Docuent ID"><con:configuration><path>//identifier/documentIdentifier/identity</path><content>${DOCUMENTIDENTIFIER_IDENTITY3}</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>true</ignoreNamspaceDifferences><ignoreComments>false</ignoreComments></con:configuration></con:assertion><con:assertion type="XPath Match" name="Response Includes Record Identifier"><con:configuration><path>count(//identifiers/identifier)</path><content>1</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>true</ignoreNamspaceDifferences><ignoreComments>false</ignoreComments></con:configuration></con:assertion><con:credentials><con:username xsi:nil="true"/><con:password xsi:nil="true"/><con:domain xsi:nil="true"/><con:authType>Global HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT" messageSelector="" TimeToLive=""/><con:jmsPropertyConfig><con:jmsProperties name="TEMPLATE_ID" value="DBQCreate2"/><con:jmsProperties name="REQUEST_ID" value="${REQUEST_ID3}"/></con:jmsPropertyConfig><con:wsaConfig mustUnderstand="NONE" version="200508"/><con:wsrmConfig version="1.2"/></con:request></con:config></con:testStep><con:testStep type="request" name="DBQ List Read By Facility"><con:settings/><con:config xsi:type="con:RequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>ClinicalDataServiceSynchronousInterfaceHttpBinding</con:interface><con:operation>readClinicalData1</con:operation><con:request name="DBQ List Read By Facility"><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://${CDS_SERVICE_SOAP_ENDPOINT}</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:cli="http://client.cds.URL       ">
   <soapenv:Header/>
   <soapenv:Body>
      <cli:readClinicalData1>
         <in0>DBQListRead1</in0>
         <in1><![CDATA[
<?xml version="1.0" encoding="UTF-8"?>
<filter:filter vhimVersion="Vhim_4_00" xsi:schemaLocation="Filter DBQ_LIST_DATA_FILTER.xsd" xmlns:filter="Filter" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
	<filterId>DBQ_LIST_DATA_FILTER</filterId>
	<clientName>SOAP UI</clientName>
	<clientRequestInitiationTime>${CLIENT_REQUEST_INIT_TIME}</clientRequestInitiationTime>
	<entryPointFilter queryName="ByFacility" isPatientCentric="false">
		<domainEntryPoint>QuestionnaireResult</domainEntryPoint>
		<otherQueryParameters>
			<facilityIdentifiers>
				<identity>${FACILITY_IDENTITY}</identity>
				<name>${FACILITY_NAME}</name>
				<assigningAuthority>${FACILITY_ASSIGNING_AUTHORITY}</assigningAuthority>
			</facilityIdentifiers>
		</otherQueryParameters>
	</entryPointFilter>
</filter:filter>
         ]]]]>><![CDATA[</in1>
         <in2>DBQ_LIST_DATA_FILTER</in2>
         <in3>${FILTER_REQUEST_ID}</in3>
      </cli:readClinicalData1>
   </soapenv:Body>
</soapenv:Envelope>]]></con:request><con:assertion type="SOAP Response"/><con:assertion type="Simple NotContains" name="Not Contains &lt;errorSection>"><con:configuration><token>&lt;errorSection></token><ignoreCase>false</ignoreCase><useRegEx>false</useRegEx></con:configuration></con:assertion><con:credentials><con:authType>Global HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:wsaConfig mustUnderstand="NONE" version="200508"/><con:wsrmConfig version="1.2"/></con:request></con:config></con:testStep><con:testStep type="transfer" name="Extract CDATA Section"><con:settings/><con:config xsi:type="con:PropertyTransfersStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:transfers setNullOnMissingSource="true" transferTextContent="true" failOnError="true" ignoreEmpty="false" transferToAll="false" useXQuery="false" entitize="false" transferChildNodes="false"><con:name>ExtractCDATASection</con:name><con:sourceType>Response</con:sourceType><con:sourceStep>DBQ List Read By Facility</con:sourceStep><con:sourcePath>//out</con:sourcePath><con:targetType>CDataSection</con:targetType><con:targetStep>#TestCase#</con:targetStep></con:transfers></con:config></con:testStep><con:testStep type="groovy" name="Check THREE Records Returned"><con:settings/><con:config><script>import com.eviware.soapui.support.XmlHolder 

def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context );
def content = testRunner.testCase.getPropertyValue( "CDataSection" ); 
content = content.replaceAll( "&lt;!\\[CDATA\\[", "" ) 
content = content.replaceAll( "]]&gt;", "" ) 

def holder = groovyUtils.getXmlHolder( content ) ;
def recordCount = holder["count(//recordIdentifier)"]
assert recordCount == "3"</script></con:config></con:testStep><con:testStep type="request" name="DBQ List Read By Facility And XPath"><con:settings/><con:config xsi:type="con:RequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>ClinicalDataServiceSynchronousInterfaceHttpBinding</con:interface><con:operation>readClinicalData1</con:operation><con:request name="DBQ List Read By Facility And XPath"><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://${CDS_SERVICE_SOAP_ENDPOINT}</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:cli="http://client.cds.URL       ">
   <soapenv:Header/>
   <soapenv:Body>
      <cli:readClinicalData1>
         <in0>DBQListRead1</in0>
         <in1><![CDATA[
<?xml version="1.0" encoding="UTF-8"?>
<filter:filter vhimVersion="Vhim_4_00" xsi:schemaLocation="Filter DBQ_LIST_DATA_FILTER.xsd" xmlns:filter="Filter" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
	<filterId>DBQ_LIST_DATA_FILTER</filterId>
	<clientName>SOAP UI</clientName>
	<clientRequestInitiationTime>${CLIENT_REQUEST_INIT_TIME}</clientRequestInitiationTime>
	<entryPointFilter queryName="ByFacility" isPatientCentric="false">
		<domainEntryPoint>QuestionnaireResult</domainEntryPoint>
		<xpathFilter>
			<expression>//diagnoses[key='7553']</expression>
		</xpathFilter>
		<otherQueryParameters>
			<facilityIdentifiers>
				<identity>${FACILITY_IDENTITY}</identity>
				<name>${FACILITY_NAME}</name>
				<assigningAuthority>${FACILITY_ASSIGNING_AUTHORITY}</assigningAuthority>
			</facilityIdentifiers>
		</otherQueryParameters>
	</entryPointFilter>
</filter:filter>
         ]]]]>><![CDATA[</in1>
         <in2>DBQ_LIST_DATA_FILTER</in2>
         <in3>${FILTER_REQUEST_ID}</in3>
      </cli:readClinicalData1>
   </soapenv:Body>
</soapenv:Envelope>]]></con:request><con:assertion type="SOAP Response"/><con:assertion type="Simple NotContains" name="Not Contains &lt;errorSection>"><con:configuration><token>&lt;errorSection></token><ignoreCase>false</ignoreCase><useRegEx>false</useRegEx></con:configuration></con:assertion><con:credentials><con:authType>Global HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:wsaConfig mustUnderstand="NONE" version="200508"/><con:wsrmConfig version="1.2"/></con:request></con:config></con:testStep><con:testStep type="groovy" name="Check List Read By Facility And XPath"><con:settings/><con:config><script>import com.eviware.soapui.support.XmlHolder 

def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context );

def soapResponseHolder = groovyUtils.getXmlHolder( "DBQ List Read By Facility And XPath#Response" ) ;
def content = soapResponseHolder["//out"] ;
content = content.replaceAll( "&lt;!\\[CDATA\\[", "" ) 
content = content.replaceAll( "]]&gt;", "" ) 

def holder = groovyUtils.getXmlHolder( content ) ;
def recordCount = holder["count(//recordIdentifier)"]
assert recordCount == "3"</script></con:config></con:testStep><con:testStep type="request" name="DBQ List Read By Facility And Date Range"><con:settings/><con:config xsi:type="con:RequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>ClinicalDataServiceSynchronousInterfaceHttpBinding</con:interface><con:operation>readClinicalData1</con:operation><con:request name="DBQ List Read By Facility And Date Range"><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://${CDS_SERVICE_SOAP_ENDPOINT}</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:cli="http://client.cds.URL       ">
   <soapenv:Header/>
   <soapenv:Body>
      <cli:readClinicalData1>
         <in0>DBQListRead1</in0>
         <in1><![CDATA[
<?xml version="1.0" encoding="UTF-8"?>
<filter:filter vhimVersion="Vhim_4_00" xsi:schemaLocation="Filter DBQ_LIST_DATA_FILTER.xsd" xmlns:filter="Filter" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
	<filterId>DBQ_LIST_DATA_FILTER</filterId>
	<clientName>SOAP UI</clientName>
	<clientRequestInitiationTime>${CLIENT_REQUEST_INIT_TIME}</clientRequestInitiationTime>
	<entryPointFilter queryName="ByFacility" isPatientCentric="false">
		<domainEntryPoint>QuestionnaireResult</domainEntryPoint>
		<startDate>2011-06-01-05:00</startDate>
		<endDate>2012-06-01-05:00</endDate>
		<otherQueryParameters>
			<facilityIdentifiers>
				<identity>${FACILITY_IDENTITY}</identity>
				<name>${FACILITY_NAME}</name>
				<assigningAuthority>${FACILITY_ASSIGNING_AUTHORITY}</assigningAuthority>
			</facilityIdentifiers>
		</otherQueryParameters>
	</entryPointFilter>
</filter:filter>
         ]]]]>><![CDATA[</in1>
         <in2>DBQ_LIST_DATA_FILTER</in2>
         <in3>${FILTER_REQUEST_ID}</in3>
      </cli:readClinicalData1>
   </soapenv:Body>
</soapenv:Envelope>]]></con:request><con:assertion type="SOAP Response"/><con:assertion type="Simple NotContains" name="Not Contains &lt;errorSection>"><con:configuration><token>&lt;errorSection></token><ignoreCase>false</ignoreCase><useRegEx>false</useRegEx></con:configuration></con:assertion><con:credentials><con:authType>Global HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:wsaConfig mustUnderstand="NONE" version="200508"/><con:wsrmConfig version="1.2"/></con:request></con:config></con:testStep><con:testStep type="groovy" name="Check List Read By Facility And Date Range"><con:settings/><con:config><script>import com.eviware.soapui.support.XmlHolder 

def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context );
def content = testRunner.testCase.getPropertyValue( "CDataSection" ); 
content = content.replaceAll( "&lt;!\\[CDATA\\[", "" ) 
content = content.replaceAll( "]]&gt;", "" ) 

def holder = groovyUtils.getXmlHolder( content ) ;
def recordCount = holder["count(//recordIdentifier)"]
assert recordCount == "3"</script></con:config></con:testStep><con:testStep type="transfer" name="Re-Extract CDATA Section"><con:settings/><con:config xsi:type="con:PropertyTransfersStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:transfers setNullOnMissingSource="true" transferTextContent="true" failOnError="true" ignoreEmpty="false" transferToAll="false" useXQuery="false" entitize="false" transferChildNodes="false"><con:name>ExtractCDATASection</con:name><con:sourceType>Response</con:sourceType><con:sourceStep>DBQ List Read By Facility And Date Range</con:sourceStep><con:sourcePath>//out</con:sourcePath><con:targetType>CDataSection</con:targetType><con:targetStep>#TestCase#</con:targetStep></con:transfers></con:config></con:testStep><con:testStep type="groovy" name="Check TWO Record Returned"><con:settings/><con:config><script>import com.eviware.soapui.support.XmlHolder 

def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context );
def content = testRunner.testCase.getPropertyValue( "CDataSection" ); 
content = content.replaceAll( "&lt;!\\[CDATA\\[", "" ) 
content = content.replaceAll( "]]&gt;", "" ) 

def holder = groovyUtils.getXmlHolder( content ) ;
def recordCount = holder["count(//recordIdentifier)"]
assert recordCount == "2"</script></con:config></con:testStep><con:testStep type="request" name="DBQ List Read By Facility &amp; Date &amp; Doc Type"><con:settings/><con:config xsi:type="con:RequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>ClinicalDataServiceSynchronousInterfaceHttpBinding</con:interface><con:operation>readClinicalData1</con:operation><con:request name="DBQ List Read By Facility &amp; Date &amp; Doc Type"><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://${CDS_SERVICE_SOAP_ENDPOINT}</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:cli="http://client.cds.URL       ">
   <soapenv:Header/>
   <soapenv:Body>
      <cli:readClinicalData1>
         <in0>DBQListRead1</in0>
         <in1><![CDATA[
<?xml version="1.0" encoding="UTF-8"?>
<filter:filter vhimVersion="Vhim_4_00" xsi:schemaLocation="Filter DBQ_LIST_DATA_FILTER.xsd" xmlns:filter="Filter" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
	<filterId>DBQ_LIST_DATA_FILTER</filterId>
	<clientName>SOAP UI</clientName>
	<clientRequestInitiationTime>${CLIENT_REQUEST_INIT_TIME}</clientRequestInitiationTime>
	<entryPointFilter queryName="ByFacility" isPatientCentric="false">
		<domainEntryPoint>QuestionnaireResult</domainEntryPoint>
		<startDate>2011-06-01-05:00</startDate>
		<endDate>2012-06-01-05:00</endDate>
		<otherQueryParameters>
			<documentType>${DOCUMENT_TYPE}</documentType>
			<facilityIdentifiers>
				<identity>${FACILITY_IDENTITY}</identity>
				<name>${FACILITY_NAME}</name>
				<assigningAuthority>${FACILITY_ASSIGNING_AUTHORITY}</assigningAuthority>
			</facilityIdentifiers>
		</otherQueryParameters>
	</entryPointFilter>
</filter:filter>
         ]]]]>><![CDATA[</in1>
         <in2>DBQ_LIST_DATA_FILTER</in2>
         <in3>${FILTER_REQUEST_ID}</in3>
      </cli:readClinicalData1>
   </soapenv:Body>
</soapenv:Envelope>]]></con:request><con:assertion type="SOAP Response"/><con:assertion type="Simple NotContains" name="Not Contains &lt;errorSection>"><con:configuration><token>&lt;errorSection></token><ignoreCase>false</ignoreCase><useRegEx>false</useRegEx></con:configuration></con:assertion><con:credentials><con:authType>Global HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:wsaConfig mustUnderstand="NONE" version="200508"/><con:wsrmConfig version="1.2"/></con:request></con:config></con:testStep><con:testStep type="transfer" name="Extract CDATA Section - Facility &amp; Date &amp; Doc Type"><con:settings/><con:config xsi:type="con:PropertyTransfersStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:transfers setNullOnMissingSource="true" transferTextContent="true" failOnError="true" ignoreEmpty="false" transferToAll="false" useXQuery="false" entitize="false" transferChildNodes="false"><con:name>ExtractCDATASection</con:name><con:sourceType>Response</con:sourceType><con:sourceStep>DBQ List Read By Facility &amp; Date &amp; Doc Type</con:sourceStep><con:sourcePath>//out</con:sourcePath><con:targetType>CDataSection</con:targetType><con:targetStep>#TestCase#</con:targetStep></con:transfers></con:config></con:testStep><con:testStep type="groovy" name="Check ONE Records Returned"><con:settings/><con:config><script>import com.eviware.soapui.support.XmlHolder 

def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context );
def content = testRunner.testCase.getPropertyValue( "CDataSection" ); 
content = content.replaceAll( "&lt;!\\[CDATA\\[", "" ) 
content = content.replaceAll( "]]&gt;", "" ) 

def holder = groovyUtils.getXmlHolder( content ) ;
def recordCount = holder["count(//recordIdentifier)"]
assert recordCount == "1"</script></con:config></con:testStep><con:testStep type="request" name="DBQ List Read By Facility &amp; Doc Types (multiple)"><con:settings/><con:config xsi:type="con:RequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>ClinicalDataServiceSynchronousInterfaceHttpBinding</con:interface><con:operation>readClinicalData1</con:operation><con:request name="DBQ List Read By Facility &amp; Doc Types (multiple)"><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://${CDS_SERVICE_SOAP_ENDPOINT}</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:cli="http://client.cds.URL       ">
   <soapenv:Header/>
   <soapenv:Body>
      <cli:readClinicalData1>
         <in0>DBQListRead1</in0>
         <in1><![CDATA[
<?xml version="1.0" encoding="UTF-8"?>
<filter:filter vhimVersion="Vhim_4_00" xsi:schemaLocation="Filter DBQ_LIST_DATA_FILTER.xsd" xmlns:filter="Filter" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
	<filterId>DBQ_LIST_DATA_FILTER</filterId>
	<clientName>SOAP UI</clientName>
	<clientRequestInitiationTime>${CLIENT_REQUEST_INIT_TIME}</clientRequestInitiationTime>
	<entryPointFilter queryName="ByFacility" isPatientCentric="false">
		<domainEntryPoint>QuestionnaireResult</domainEntryPoint>
		<otherQueryParameters>
			<documentType>${DOCUMENT_TYPE}</documentType>
			<documentType>${DOCUMENT_TYPE_2}</documentType>
			<facilityIdentifiers>
				<identity>${FACILITY_IDENTITY}</identity>
				<name>${FACILITY_NAME}</name>
				<assigningAuthority>${FACILITY_ASSIGNING_AUTHORITY}</assigningAuthority>
			</facilityIdentifiers>
		</otherQueryParameters>
	</entryPointFilter>
</filter:filter>
         ]]]]>><![CDATA[</in1>
         <in2>DBQ_LIST_DATA_FILTER</in2>
         <in3>${FILTER_REQUEST_ID}</in3>
      </cli:readClinicalData1>
   </soapenv:Body>
</soapenv:Envelope>]]></con:request><con:assertion type="SOAP Response"/><con:assertion type="Simple NotContains" name="Not Contains &lt;errorSection>"><con:configuration><token>&lt;errorSection></token><ignoreCase>false</ignoreCase><useRegEx>false</useRegEx></con:configuration></con:assertion><con:credentials><con:authType>Global HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:wsaConfig mustUnderstand="NONE" version="200508"/><con:wsrmConfig version="1.2"/></con:request></con:config></con:testStep><con:testStep type="transfer" name="Extract CDATA Section - Facility &amp; Doc Type"><con:settings/><con:config xsi:type="con:PropertyTransfersStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:transfers setNullOnMissingSource="true" transferTextContent="true" failOnError="true" ignoreEmpty="false" transferToAll="false" useXQuery="false" entitize="false" transferChildNodes="false"><con:name>ExtractCDATASection</con:name><con:sourceType>Response</con:sourceType><con:sourceStep>DBQ List Read By Facility &amp; Doc Types (multiple)</con:sourceStep><con:sourcePath>//out</con:sourcePath><con:targetType>CDataSection</con:targetType><con:targetStep>#TestCase#</con:targetStep></con:transfers></con:config></con:testStep><con:testStep type="groovy" name="Check THREE Records Returned (multiple doc types)"><con:settings/><con:config><script>import com.eviware.soapui.support.XmlHolder 

def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context );
def content = testRunner.testCase.getPropertyValue( "CDataSection" ); 
content = content.replaceAll( "&lt;!\\[CDATA\\[", "" ) 
content = content.replaceAll( "]]&gt;", "" ) 

def holder = groovyUtils.getXmlHolder( content ) ;
def recordCount = holder["count(//recordIdentifier)"]
assert recordCount == "3"</script></con:config></con:testStep><con:testStep type="request" name="DBQ List Read By Facility &amp; approvedFlag"><con:settings/><con:config xsi:type="con:RequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>ClinicalDataServiceSynchronousInterfaceHttpBinding</con:interface><con:operation>readClinicalData1</con:operation><con:request name="DBQ List Read By Facility &amp; approvedFlag"><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://${CDS_SERVICE_SOAP_ENDPOINT}</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:cli="http://client.cds.URL       ">
   <soapenv:Header/>
   <soapenv:Body>
      <cli:readClinicalData1>
         <in0>DBQListRead1</in0>
         <in1><![CDATA[
<?xml version="1.0" encoding="UTF-8"?>
<filter:filter vhimVersion="Vhim_4_00" xsi:schemaLocation="Filter DBQ_LIST_DATA_FILTER.xsd" xmlns:filter="Filter" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
	<filterId>DBQ_LIST_DATA_FILTER</filterId>
	<clientName>SOAP UI</clientName>
	<clientRequestInitiationTime>${CLIENT_REQUEST_INIT_TIME}</clientRequestInitiationTime>
	<entryPointFilter queryName="ByFacility" isPatientCentric="false">
		<domainEntryPoint>QuestionnaireResult</domainEntryPoint>
		<otherQueryParameters>
			<approvedFlag>${APPROVED_FLAG}</approvedFlag>
			<facilityIdentifiers>
				<identity>${FACILITY_IDENTITY}</identity>
				<name>${FACILITY_NAME}</name>
				<assigningAuthority>${FACILITY_ASSIGNING_AUTHORITY}</assigningAuthority>
			</facilityIdentifiers>
		</otherQueryParameters>
	</entryPointFilter>
</filter:filter>
         ]]]]>><![CDATA[</in1>
         <in2>DBQ_LIST_DATA_FILTER</in2>
         <in3>${FILTER_REQUEST_ID}</in3>
      </cli:readClinicalData1>
   </soapenv:Body>
</soapenv:Envelope>]]></con:request><con:assertion type="SOAP Response"/><con:assertion type="Simple NotContains" name="Not Contains &lt;errorSection>"><con:configuration><token>&lt;errorSection></token><ignoreCase>false</ignoreCase><useRegEx>false</useRegEx></con:configuration></con:assertion><con:credentials><con:authType>Global HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:wsaConfig mustUnderstand="NONE" version="200508"/><con:wsrmConfig version="1.2"/></con:request></con:config></con:testStep><con:testStep type="groovy" name="Check List Read By Facility &amp; approvedFlag"><con:settings/><con:config><script>import com.eviware.soapui.support.XmlHolder 

def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context );

def soapResponseHolder = groovyUtils.getXmlHolder( "DBQ List Read By Facility &amp; approvedFlag#Response" ) ;
def content = soapResponseHolder["//out"] ;
content = content.replaceAll( "&lt;!\\[CDATA\\[", "" ) 
content = content.replaceAll( "]]&gt;", "" ) 

def holder = groovyUtils.getXmlHolder( content ) ;
def recordCount = Integer.parseInt(holder["count(//recordIdentifier)"])
assert recordCount == 1
</script></con:config></con:testStep><con:testStep type="request" name="DBQ List Read By Facility &amp; Date &amp; approvedFlag"><con:settings/><con:config xsi:type="con:RequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>ClinicalDataServiceSynchronousInterfaceHttpBinding</con:interface><con:operation>readClinicalData1</con:operation><con:request name="DBQ List Read By Facility &amp; Date &amp; approvedFlag"><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://${CDS_SERVICE_SOAP_ENDPOINT}</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:cli="http://client.cds.URL       ">
   <soapenv:Header/>
   <soapenv:Body>
      <cli:readClinicalData1>
         <in0>DBQListRead1</in0>
         <in1><![CDATA[
<?xml version="1.0" encoding="UTF-8"?>
<filter:filter vhimVersion="Vhim_4_00" xsi:schemaLocation="Filter DBQ_LIST_DATA_FILTER.xsd" xmlns:filter="Filter" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
	<filterId>DBQ_LIST_DATA_FILTER</filterId>
	<clientName>SOAP UI</clientName>
	<clientRequestInitiationTime>${CLIENT_REQUEST_INIT_TIME}</clientRequestInitiationTime>
	<entryPointFilter queryName="ByFacility" isPatientCentric="false">
		<domainEntryPoint>QuestionnaireResult</domainEntryPoint>
		<startDate>2011-06-01-05:00</startDate>
		<endDate>2012-06-01-05:00</endDate>
		<otherQueryParameters>
			<approvedFlag>${APPROVED_FLAG}</approvedFlag>
			<facilityIdentifiers>
				<identity>${FACILITY_IDENTITY}</identity>
				<name>${FACILITY_NAME}</name>
				<assigningAuthority>${FACILITY_ASSIGNING_AUTHORITY}</assigningAuthority>
			</facilityIdentifiers>
		</otherQueryParameters>
	</entryPointFilter>
</filter:filter>
         ]]]]>><![CDATA[</in1>
         <in2>DBQ_LIST_DATA_FILTER</in2>
         <in3>${FILTER_REQUEST_ID}</in3>
      </cli:readClinicalData1>
   </soapenv:Body>
</soapenv:Envelope>]]></con:request><con:assertion type="SOAP Response"/><con:assertion type="Simple NotContains" name="Not Contains &lt;errorSection>"><con:configuration><token>&lt;errorSection></token><ignoreCase>false</ignoreCase><useRegEx>false</useRegEx></con:configuration></con:assertion><con:credentials><con:authType>Global HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:wsaConfig mustUnderstand="NONE" version="200508"/><con:wsrmConfig version="1.2"/></con:request></con:config></con:testStep><con:testStep type="groovy" name="Check List Read By Facility &amp; Date &amp; approvedFlag"><con:settings/><con:config><script>import com.eviware.soapui.support.XmlHolder 

def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context );

def soapResponseHolder = groovyUtils.getXmlHolder( "DBQ List Read By Facility &amp; Date &amp; approvedFlag#Response" ) ;
def content = soapResponseHolder["//out"] ;
content = content.replaceAll( "&lt;!\\[CDATA\\[", "" ) 
content = content.replaceAll( "]]&gt;", "" ) 

def holder = groovyUtils.getXmlHolder( content ) ;
def recordCount = Integer.parseInt(holder["count(//recordIdentifier)"])
assert recordCount == 1
</script></con:config></con:testStep><con:testStep type="request" name="DBQ List Read By Facility &amp; Date &amp; approvedFlag (multiple)"><con:settings/><con:config xsi:type="con:RequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>ClinicalDataServiceSynchronousInterfaceHttpBinding</con:interface><con:operation>readClinicalData1</con:operation><con:request name="DBQ List Read By Facility &amp; Date &amp; approvedFlag (multiple)"><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://${CDS_SERVICE_SOAP_ENDPOINT}</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:cli="http://client.cds.URL       ">
   <soapenv:Header/>
   <soapenv:Body>
      <cli:readClinicalData1>
         <in0>DBQListRead1</in0>
         <in1><![CDATA[
<?xml version="1.0" encoding="UTF-8"?>
<filter:filter vhimVersion="Vhim_4_00" xsi:schemaLocation="Filter DBQ_LIST_DATA_FILTER.xsd" xmlns:filter="Filter" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
	<filterId>DBQ_LIST_DATA_FILTER</filterId>
	<clientName>SOAP UI</clientName>
	<clientRequestInitiationTime>${CLIENT_REQUEST_INIT_TIME}</clientRequestInitiationTime>
	<entryPointFilter queryName="ByFacility" isPatientCentric="false">
		<domainEntryPoint>QuestionnaireResult</domainEntryPoint>
		<startDate>2011-06-01-05:00</startDate>
		<endDate>2012-06-01-05:00</endDate>
		<otherQueryParameters>
			<approvedFlag>${APPROVED_FLAG}</approvedFlag>
			<approvedFlag>${APPROVED_FLAG_2}</approvedFlag>
			<facilityIdentifiers>
				<identity>${FACILITY_IDENTITY}</identity>
				<name>${FACILITY_NAME}</name>
				<assigningAuthority>${FACILITY_ASSIGNING_AUTHORITY}</assigningAuthority>
			</facilityIdentifiers>
		</otherQueryParameters>
	</entryPointFilter>
</filter:filter>
         ]]]]>><![CDATA[</in1>
         <in2>DBQ_LIST_DATA_FILTER</in2>
         <in3>${FILTER_REQUEST_ID}</in3>
      </cli:readClinicalData1>
   </soapenv:Body>
</soapenv:Envelope>]]></con:request><con:assertion type="SOAP Response"/><con:assertion type="Simple NotContains" name="Not Contains &lt;errorSection>"><con:configuration><token>&lt;errorSection></token><ignoreCase>false</ignoreCase><useRegEx>false</useRegEx></con:configuration></con:assertion><con:credentials><con:authType>Global HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:wsaConfig mustUnderstand="NONE" version="200508"/><con:wsrmConfig version="1.2"/></con:request></con:config></con:testStep><con:testStep type="groovy" name="Check List Read By Facility &amp; Date &amp; approvedFlag (multiple)"><con:settings/><con:config><script>import com.eviware.soapui.support.XmlHolder 

def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context );

def soapResponseHolder = groovyUtils.getXmlHolder( "DBQ List Read By Facility &amp; Date &amp; approvedFlag (multiple)#Response" ) ;
def content = soapResponseHolder["//out"] ;
content = content.replaceAll( "&lt;!\\[CDATA\\[", "" ) 
content = content.replaceAll( "]]&gt;", "" ) 

def holder = groovyUtils.getXmlHolder( content ) ;
def recordCount = Integer.parseInt(holder["count(//recordIdentifier)"])
assert recordCount == 2
</script></con:config></con:testStep><con:properties><con:property><con:name>CDataSection</con:name><con:value><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
<clinicaldata:ClinicalData xmlns:clinicaldata="Clinicaldata"><templateId>DBQListRead1</templateId><requestId>688dee97-238c-463f-871f-2df4416738fa</requestId><patients><patient><questionnaireResults><questionnaireResult><patient><identifier><identity>d4302dfa-894d-4d0a-b658-b924515fd158</identity><assigningFacility>200HD</assigningFacility><assigningAuthority>USVHA</assigningAuthority></identifier><name><given>Given</given><middle>MiddleName</middle><family>FamilyName</family><suffix>Suffix</suffix><title>Title</title></name></patient><documentType>da898395-1dfe-4d79-9774-9b58dedfcdd0_2</documentType><recordIdentifier><identity>816</identity></recordIdentifier><documentIdentifier><identity>619638da-0e5f-4d7a-9e87-f4a67cd1bc27</identity><namespaceId>402</namespaceId><universalId>UID_13359111174322</universalId><universalIdType>universalIdType</universalIdType></documentIdentifier><initiatingSystem>SOAP UI</initiatingSystem><facilityIdentifier><identity>b95df42b-08fa-4d60-a78b-2824aa51fc8d</identity><name>OrganizationName</name><assigningAuthority>AssigningAuthNamespaceId</assigningAuthority></facilityIdentifier><approvedFlag>CHECK_ME_2</approvedFlag><author><comment>Author Comment</comment><time><literal>20120501162517-0600</literal></time><practitioner><identifier><identity>test_AUTHORID_1003</identity><assigningFacility>402</assigningFacility><assigningAuthority>USVHA</assigningAuthority></identifier><name><prefix>Prefix</prefix><given>Given</given><middle>MiddleName</middle><family>FamilyName</family><suffix>Suffix</suffix><title>Title</title></name></practitioner></author><approvedBy><comment>Approved By Comment</comment><time><literal>20120501162517-0600</literal></time><practitioner><identifier><identity>test_AUTHORID_1003</identity><assigningFacility>402</assigningFacility><assigningAuthority>USVHA</assigningAuthority></identifier><name><prefix>Prefix</prefix><given>Given</given><middle>MiddleName</middle><family>FamilyName</family><suffix>Suffix</suffix><title>Title</title></name></practitioner></approvedBy><dateCreated><literal>20111231170000-0700</literal></dateCreated><claimNumber><root>de31d126-4890-43ec-8367-a0c6b7ad9d42</root></claimNumber><recordVersion>3</recordVersion></questionnaireResult><questionnaireResult><patient><identifier><identity>d4302dfa-894d-4d0a-b658-b924515fd158</identity><assigningFacility>200HD</assigningFacility><assigningAuthority>USVHA</assigningAuthority></identifier><name><given>Given</given><middle>MiddleName</middle><family>FamilyName</family><suffix>Suffix</suffix><title>Title</title></name></patient><documentType>da898395-1dfe-4d79-9774-9b58dedfcdd0</documentType><recordIdentifier><identity>817</identity></recordIdentifier><documentIdentifier><identity>5acddb2e-cf5b-4fe2-b7b5-551d514a6e75</identity><namespaceId>402</namespaceId><universalId>UID_13359111174322</universalId><universalIdType>universalIdType</universalIdType></documentIdentifier><initiatingSystem>SOAP UI</initiatingSystem><facilityIdentifier><identity>b95df42b-08fa-4d60-a78b-2824aa51fc8d</identity><name>OrganizationName</name><assigningAuthority>AssigningAuthNamespaceId</assigningAuthority></facilityIdentifier><approvedFlag>CHECK_ME</approvedFlag><author><comment>Author Comment</comment><time><literal>20120501162517-0600</literal></time><practitioner><identifier><identity>test_AUTHORID_1003</identity><assigningFacility>402</assigningFacility><assigningAuthority>USVHA</assigningAuthority></identifier><name><prefix>Prefix</prefix><given>Given</given><middle>MiddleName</middle><family>FamilyName</family><suffix>Suffix</suffix><title>Title</title></name></practitioner></author><approvedBy><comment>Approved By Comment</comment><time><literal>20120501162517-0600</literal></time><practitioner><identifier><identity>test_AUTHORID_1003</identity><assigningFacility>402</assigningFacility><assigningAuthority>USVHA</assigningAuthority></identifier><name><prefix>Prefix</prefix><given>Given</given><middle>MiddleName</middle><family>FamilyName</family><suffix>Suffix</suffix><title>Title</title></name></practitioner></approvedBy><dateCreated><literal>20111231170000-0700</literal></dateCreated><claimNumber><root>ee3bd40a-6b45-4233-b36c-fd1c2ca44abd</root></claimNumber><recordVersion>3</recordVersion></questionnaireResult><questionnaireResult><patient><identifier><identity>d4302dfa-894d-4d0a-b658-b924515fd158</identity><assigningFacility>200HD</assigningFacility><assigningAuthority>USVHA</assigningAuthority></identifier><name><given>Given</given><middle>MiddleName</middle><family>FamilyName</family><suffix>Suffix</suffix><title>Title</title></name></patient><documentType>da898395-1dfe-4d79-9774-9b58dedfcdd0</documentType><recordIdentifier><identity>815</identity></recordIdentifier><documentIdentifier><identity>b9e25d4b-05f7-4164-a2aa-4cef367d4643</identity><namespaceId>402</namespaceId><universalId>UID_13359111174322</universalId><universalIdType>universalIdType</universalIdType></documentIdentifier><initiatingSystem>SOAP UI</initiatingSystem><facilityIdentifier><identity>b95df42b-08fa-4d60-a78b-2824aa51fc8d</identity><name>OrganizationName</name><assigningAuthority>AssigningAuthNamespaceId</assigningAuthority></facilityIdentifier><approvedFlag>APPROVED</approvedFlag><author><comment>Author Comment</comment><time><literal>20120501162517-0600</literal></time><practitioner><identifier><identity>test_AUTHORID_1003</identity><assigningFacility>402</assigningFacility><assigningAuthority>USVHA</assigningAuthority></identifier><name><prefix>Prefix</prefix><given>Given</given><middle>MiddleName</middle><family>FamilyName</family><suffix>Suffix</suffix><title>Title</title></name></practitioner></author><approvedBy><comment>Approved By Comment</comment><time><literal>20120501162517-0600</literal></time><practitioner><identifier><identity>test_AUTHORID_1003</identity><assigningFacility>402</assigningFacility><assigningAuthority>USVHA</assigningAuthority></identifier><name><prefix>Prefix</prefix><given>Given</given><middle>MiddleName</middle><family>FamilyName</family><suffix>Suffix</suffix><title>Title</title></name></practitioner></approvedBy><dateCreated><literal>19691231170000-0700</literal></dateCreated><claimNumber><root>72aefc5c-78c1-4ae0-a693-c13d60ef8cca</root></claimNumber><recordVersion>3</recordVersion></questionnaireResult><pageInformation><pageFirstRecord>1</pageFirstRecord><pageLastRecord>3</pageLastRecord></pageInformation><totalResultCount>3</totalResultCount></questionnaireResults></patient></patients></clinicaldata:ClinicalData>]]></con:value></con:property></con:properties></con:testCase><con:testCase failOnError="true" failTestCaseOnErrors="true" keepSession="false" maxResults="0" name="HDR 3.4 DBQ Read Max Results (17669, 17670)" searchProperties="true" id="cc6fcf5a-67a9-48e0-ad62-37176525acc1"><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.PATIENT_ID = UUID.randomUUID().toString();

context.CLIENT_REQUEST_INIT_TIME = DateFormatUtils.ISO_DATETIME_TIME_ZONE_FORMAT.format( new Date() );
context.FILTER_REQUEST_ID = UUID.randomUUID().toString();
context.REQUEST_ID  = UUID.randomUUID().toString(); 
context.DOCUMENTIDENTIFIER_IDENTITY = UUID.randomUUID().toString(); 
context.CREATED_DATE = '19991231170000-0700';
context.DOCUMENT_TYPE = 'Ischemic_Heart_Disease';


context.CLIENT_REQUEST_INIT_TIME2 = DateFormatUtils.ISO_DATETIME_TIME_ZONE_FORMAT.format( new Date() );
context.FILTER_REQUEST_ID2 = UUID.randomUUID().toString();
context.REQUEST_ID2  = UUID.randomUUID().toString(); 
context.DOCUMENTIDENTIFIER_IDENTITY2 = UUID.randomUUID().toString(); 
context.CREATED_DATE2 = '20011231170000-0700';
context.DOCUMENT_TYPE2 = 'Ischemic_Heart_Disease';

context.CLIENT_REQUEST_INIT_TIME3 = DateFormatUtils.ISO_DATETIME_TIME_ZONE_FORMAT.format( new Date() );
context.REQUEST_ID3  = UUID.randomUUID().toString(); 
context.DOCUMENTIDENTIFIER_IDENTITY3 = UUID.randomUUID().toString(); 
context.CREATED_DATE3 = '20051231170000-0700';
context.DOCUMENT_TYPE3 = 'Hematologic_and_Lymphatic_Conditions';

context.CLIENT_REQUEST_INIT_TIME4 = DateFormatUtils.ISO_DATETIME_TIME_ZONE_FORMAT.format( new Date() );
context.REQUEST_ID4  = UUID.randomUUID().toString(); 
context.DOCUMENTIDENTIFIER_IDENTITY4 = UUID.randomUUID().toString(); 
context.CREATED_DATE4 = '20101231170000-0700';
context.DOCUMENT_TYPE4 = 'Parkinson\'s_Disease';
context.PATIENT_ID4 = UUID.randomUUID().toString();


context.FILTER_REQUEST_ID1 = UUID.randomUUID().toString();
context.FILTER_REQUEST_ID2 = UUID.randomUUID().toString();
context.FILTER_REQUEST_ID3 = UUID.randomUUID().toString();
context.FILTER_REQUEST_ID4 = UUID.randomUUID().toString();
context.FILTER_REQUEST_ID5 = UUID.randomUUID().toString();
context.FILTER_REQUEST_ID6 = UUID.randomUUID().toString();
context.FILTER_REQUEST_ID7 = UUID.randomUUID().toString();
context.FILTER_REQUEST_ID8 = UUID.randomUUID().toString();
context.FILTER_REQUEST_ID9 = UUID.randomUUID().toString();
context.FILTER_REQUEST_ID10 = UUID.randomUUID().toString();
context.FILTER_REQUEST_ID11 = UUID.randomUUID().toString();</script></con:config></con:testStep><con:testStep type="request" name="DBQ Create Data - Valid1"><con:settings/><con:config xsi:type="con:RequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>ClinicalDataServiceSynchronousInterfaceHttpBinding</con:interface><con:operation>appendClinicalData</con:operation><con:request name="DBQ Create Data - Valid1" outgoingWss="" incomingWss=""><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://${CDS_DBQ_JMS_ENDPOINT}</con:endpoint><con:request><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
<clinicaldata:ClinicalData xmlns:clinicaldata="Clinicaldata">
	<templateId>DBQCreate2</templateId>
	<clientName>SOAP UI</clientName>
	<clientRequestInitiationTime>${CLIENT_REQUEST_INIT_TIME}</clientRequestInitiationTime>
	<patient>
		<questionnaireResults>
			<questionnaireResult>
				<patient>
					<identifier>
						<identity>${PATIENT_ID}</identity>
						<assigningFacility>200HD</assigningFacility>
						<assigningAuthority>USVHA</assigningAuthority>
					</identifier>
					<name>
						<prefix>${PATIENT_NAME_PREFIX}</prefix>
						<given>Given</given>
						<middle>MiddleName</middle>
						<family>FamilyName</family>
						<suffix>Suffix</suffix>
						<title>Title</title>
					</name>
				</patient>
				<dateCreated>
					<literal>${CREATED_DATE}</literal>
				</dateCreated>
				<claimNumber>
					<root>${=java.util.UUID.randomUUID().toString()}</root>
				</claimNumber>
				<documentType>${DOCUMENT_TYPE}</documentType>
				<initiatingSystem>SOAP UI</initiatingSystem>
				<documentIdentifier>
					<identity>${DOCUMENTIDENTIFIER_IDENTITY}</identity>
					<namespaceId>402</namespaceId>
					<universalId>UID_13359111174322</universalId>
					<universalIdType>universalIdType</universalIdType>
				</documentIdentifier>
				<facilityIdentifier>
					<identity>OrganizationId</identity>
					<name>OrganizationName</name>
					<assigningAuthority>AssigningAuthNamespaceId</assigningAuthority>
				</facilityIdentifier>
				<approvedFlag>APPROVED</approvedFlag>
				<approvedBy>
					<comment>Approved By Comment</comment>
					<time>
						<literal>20120501162517-0600</literal>
					</time>
					<practitioner>
						<identifier>
							<identity>test_AUTHORID_1003</identity>
							<assigningFacility>402</assigningFacility>
							<assigningAuthority>USVHA</assigningAuthority>
						</identifier>
						<idSourceTable>IdSourceTable</idSourceTable>
						<name>
							<prefix>Prefix</prefix>
							<given>Given</given>
							<middle>MiddleName</middle>
							<family>FamilyName</family>
							<suffix>Suffix</suffix>
							<title>Title</title>
						</name>
					</practitioner>
				</approvedBy>
				<author>
					<comment>Author Comment</comment>
					<time>
						<literal>20120501162517-0600</literal>
					</time>
					<practitioner>
						<identifier>
							<identity>test_AUTHORID_1003</identity>
							<assigningFacility>402</assigningFacility>
							<assigningAuthority>USVHA</assigningAuthority>
						</identifier>
						<idSourceTable>IdSourceTable</idSourceTable>
						<name>
							<prefix>Prefix</prefix>
							<given>Given</given>
							<middle>MiddleName</middle>
							<family>FamilyName</family>
							<suffix>Suffix</suffix>
							<title>Title</title>
						</name>
					</practitioner>
				</author>
				<detailXML><gov.va.agentorange.fasttrack.model.dbq.ihd.IschemicHeartDisease>  <id>7553</id>  <version>0</version>  <dateCreated class="sql-timestamp">2012-01-10 09:45:51.397</dateCreated>  <dateModified class="sql-timestamp">2012-01-10 09:45:51.397</dateModified>  <formType>FORM_TYPE_DBQ_IHD</formType>  <vetSsn>941288701</vetSsn>  <documentStatusType>COMPLETE</documentStatusType>  <documentChannelType>ONLINE</documentChannelType>  <formFileNetStatus>    <id>5760</id>    <version>1</version>    <dateCreated class="sql-timestamp">2012-01-10 09:45:51.437</dateCreated>    <dateModified>2012-01-10 09:45:51.507 EST</dateModified>    <formFnStatusType>PROCESSOR_PROCESSING</formFnStatusType>    <formEntity class="gov.va.agentorange.fasttrack.model.dbq.ihd.IschemicHeartDisease" reference="../.."/>  </formFileNetStatus>  <webFormType>IHD_DBQ</webFormType>  <veteranFirstName>Test</veteranFirstName>  <veteranLastName>Test</veteranLastName>  <physicianFirstName>Dr</physicianFirstName>  <physicianLastName>Test</physicianLastName>  <medicalLicenseNumber>12</medicalLicenseNumber>  <country>US</country>  <addressLine1>Test</addressLine1>  <addressLine2></addressLine2>  <addressLine3></addressLine3>  <city>Test</city>  <state>DELAWARE</state>  <zip>12345</zip>  <physicianPhoneNumber>1231221312</physicianPhoneNumber>  <privacyActAck>true</privacyActAck>  <physicianSignature>true</physicianSignature>  <impactsAbilityToWork>false</impactsAbilityToWork>  <remarks></remarks>  <dateSigned class="sql-timestamp">2012-01-10 09:45:51.397</dateSigned>  <diagnoses class="org.hibernate.collection.PersistentBag">    <initialized>true</initialized>    <owner class="gov.va.agentorange.fasttrack.model.dbq.ihd.IschemicHeartDisease" reference="../.."/>    <cachedSize>-1</cachedSize>    <role>gov.va.agentorange.fasttrack.model.dbq.DbqFormEntity.diagnoses</role>    <key class="long">7553</key>    <dirty>false</dirty>    <storedSnapshot class="list"/>    <bag/>  </diagnoses>  <medications class="org.hibernate.collection.PersistentBag">    <initialized>true</initialized>    <owner class="gov.va.agentorange.fasttrack.model.dbq.ihd.IschemicHeartDisease" reference="../.."/>    <cachedSize>-1</cachedSize>    <role>gov.va.agentorange.fasttrack.model.dbq.DbqFormEntity.medications</role>    <key class="long">7553</key>    <dirty>false</dirty>    <storedSnapshot class="list"/>    <bag/>  </medications>  <diagnosticTests class="org.hibernate.collection.PersistentBag">    <initialized>true</initialized>    <owner class="gov.va.agentorange.fasttrack.model.dbq.ihd.IschemicHeartDisease" reference="../.."/>    <cachedSize>-1</cachedSize>    <role>gov.va.agentorange.fasttrack.model.dbq.DbqFormEntity.diagnosticTests</role>    <key class="long">7553</key>    <dirty>false</dirty>    <storedSnapshot class="list"/>    <bag/>  </diagnosticTests>  <hasIschemicHeartDisease>true</hasIschemicHeartDisease>  <takesContinuousMedication>false</takesContinuousMedication>  <hasPercutaneousCoronaryIntervention>false</hasPercutaneousCoronaryIntervention>  <hasMyocardialInfarction>false</hasMyocardialInfarction>  <hasCoronaryBypassSurgery>false</hasCoronaryBypassSurgery>  <hasHeartTransplant>false</hasHeartTransplant>  <hasImplantedCardiacPacemaker>false</hasImplantedCardiacPacemaker>  <hasImplantedAicd>false</hasImplantedAicd>  <doesVeteranHaveCHF>false</doesVeteranHaveCHF>  <hasExerciseTestBeenConducted>false</hasExerciseTestBeenConducted>  <metsLevel>metsLevel13</metsLevel>  <hasDyspnea>false</hasDyspnea>  <hasFatigue>false</hasFatigue>  <hasAngina>false</hasAngina>  <hasDizziness>false</hasDizziness>  <hasSyncope>true</hasSyncope>  <isEvidenceOfHypertrophyOrDil>false</isEvidenceOfHypertrophyOrDil>  <hasEkg>false</hasEkg>  <hasChestXRay>false</hasChestXRay>  <hasEchocardiogram>false</hasEchocardiogram>  <hasOtherTest>false</hasOtherTest>  <hasLVEF>false</hasLVEF></gov.va.agentorange.fasttrack.model.dbq.ihd.IschemicHeartDisease></detailXML>
			</questionnaireResult>
		</questionnaireResults>
	</patient>
</clinicaldata:ClinicalData>
]]></con:request><con:assertion type="XPath Match" name="Matches Request ID"><con:configuration><path>//requestId</path><content>${REQUEST_ID}</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>true</ignoreNamspaceDifferences><ignoreComments>false</ignoreComments></con:configuration></con:assertion><con:assertion type="XPath Match" name="Matches Docuent ID"><con:configuration><path>//identifier/documentIdentifier/identity</path><content>${DOCUMENTIDENTIFIER_IDENTITY}</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>true</ignoreNamspaceDifferences><ignoreComments>false</ignoreComments></con:configuration></con:assertion><con:assertion type="XPath Match" name="Response Includes Record Identifier"><con:configuration><path>count(//identifiers/identifier)</path><content>1</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>true</ignoreNamspaceDifferences><ignoreComments>false</ignoreComments></con:configuration></con:assertion><con:credentials><con:username xsi:nil="true"/><con:password xsi:nil="true"/><con:domain xsi:nil="true"/><con:authType>Global HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT" messageSelector="" TimeToLive=""/><con:jmsPropertyConfig><con:jmsProperties name="TEMPLATE_ID" value="DBQCreate2"/><con:jmsProperties name="REQUEST_ID" value="${REQUEST_ID}"/></con:jmsPropertyConfig><con:wsaConfig mustUnderstand="NONE" version="200508"/><con:wsrmConfig version="1.2"/></con:request></con:config></con:testStep><con:testStep type="request" name="DBQ Create Data - Valid2"><con:settings/><con:config xsi:type="con:RequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>ClinicalDataServiceSynchronousInterfaceHttpBinding</con:interface><con:operation>appendClinicalData</con:operation><con:request name="DBQ Create Data - Valid2" outgoingWss="" incomingWss=""><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://${CDS_DBQ_JMS_ENDPOINT}</con:endpoint><con:request><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
<clinicaldata:ClinicalData xmlns:clinicaldata="Clinicaldata">
	<templateId>DBQCreate2</templateId>
	<clientName>SOAP UI</clientName>
	<clientRequestInitiationTime>${CLIENT_REQUEST_INIT_TIME2}</clientRequestInitiationTime>
	<patient>
		<questionnaireResults>
			<questionnaireResult>
				<patient>
					<identifier>
						<identity>${PATIENT_ID}</identity>
						<assigningFacility>200HD</assigningFacility>
						<assigningAuthority>USVHA</assigningAuthority>
					</identifier>
					<name>
						<prefix>${PATIENT_NAME_PREFIX}</prefix>
						<given>Given</given>
						<middle>MiddleName</middle>
						<family>FamilyName</family>
						<suffix>Suffix</suffix>
						<title>Title</title>
					</name>
				</patient>
				<dateCreated>
					<literal>${CREATED_DATE2}</literal>
				</dateCreated>
				<claimNumber>
					<root>${=java.util.UUID.randomUUID().toString()}</root>
				</claimNumber>
				<documentType>${DOCUMENT_TYPE2}</documentType>
				<initiatingSystem>SOAP UI</initiatingSystem>
				<documentIdentifier>
					<identity>${DOCUMENTIDENTIFIER_IDENTITY2}</identity>
					<namespaceId>402</namespaceId>
					<universalId>UID_13359111174322</universalId>
					<universalIdType>universalIdType</universalIdType>
				</documentIdentifier>
				<facilityIdentifier>
					<identity>OrganizationId</identity>
					<name>OrganizationName</name>
					<assigningAuthority>AssigningAuthNamespaceId</assigningAuthority>
				</facilityIdentifier>
				<approvedFlag>APPROVED</approvedFlag>
				<approvedBy>
					<comment>Approved By Comment</comment>
					<time>
						<literal>20120501162517-0600</literal>
					</time>
					<practitioner>
						<identifier>
							<identity>test_AUTHORID_1003</identity>
							<assigningFacility>402</assigningFacility>
							<assigningAuthority>USVHA</assigningAuthority>
						</identifier>
						<idSourceTable>IdSourceTable</idSourceTable>
						<name>
							<prefix>Prefix</prefix>
							<given>Given</given>
							<middle>MiddleName</middle>
							<family>FamilyName</family>
							<suffix>Suffix</suffix>
							<title>Title</title>
						</name>
					</practitioner>
				</approvedBy>
				<author>
					<comment>Author Comment</comment>
					<time>
						<literal>20120501162517-0600</literal>
					</time>
					<practitioner>
						<identifier>
							<identity>test_AUTHORID_1003</identity>
							<assigningFacility>402</assigningFacility>
							<assigningAuthority>USVHA</assigningAuthority>
						</identifier>
						<idSourceTable>IdSourceTable</idSourceTable>
						<name>
							<prefix>Prefix</prefix>
							<given>Given</given>
							<middle>MiddleName</middle>
							<family>FamilyName</family>
							<suffix>Suffix</suffix>
							<title>Title</title>
						</name>
					</practitioner>
				</author>
				<detailXML><gov.va.agentorange.fasttrack.model.dbq.ihd.IschemicHeartDisease>  <id>7553</id>  <version>0</version>  <dateCreated class="sql-timestamp">2012-01-10 09:45:51.397</dateCreated>  <dateModified class="sql-timestamp">2012-01-10 09:45:51.397</dateModified>  <formType>FORM_TYPE_DBQ_IHD</formType>  <vetSsn>941288701</vetSsn>  <documentStatusType>COMPLETE</documentStatusType>  <documentChannelType>ONLINE</documentChannelType>  <formFileNetStatus>    <id>5760</id>    <version>1</version>    <dateCreated class="sql-timestamp">2012-01-10 09:45:51.437</dateCreated>    <dateModified>2012-01-10 09:45:51.507 EST</dateModified>    <formFnStatusType>PROCESSOR_PROCESSING</formFnStatusType>    <formEntity class="gov.va.agentorange.fasttrack.model.dbq.ihd.IschemicHeartDisease" reference="../.."/>  </formFileNetStatus>  <webFormType>IHD_DBQ</webFormType>  <veteranFirstName>Test</veteranFirstName>  <veteranLastName>Test</veteranLastName>  <physicianFirstName>Dr</physicianFirstName>  <physicianLastName>Test</physicianLastName>  <medicalLicenseNumber>12</medicalLicenseNumber>  <country>US</country>  <addressLine1>Test</addressLine1>  <addressLine2></addressLine2>  <addressLine3></addressLine3>  <city>Test</city>  <state>DELAWARE</state>  <zip>12345</zip>  <physicianPhoneNumber>1231221312</physicianPhoneNumber>  <privacyActAck>true</privacyActAck>  <physicianSignature>true</physicianSignature>  <impactsAbilityToWork>false</impactsAbilityToWork>  <remarks></remarks>  <dateSigned class="sql-timestamp">2012-01-10 09:45:51.397</dateSigned>  <diagnoses class="org.hibernate.collection.PersistentBag">    <initialized>true</initialized>    <owner class="gov.va.agentorange.fasttrack.model.dbq.ihd.IschemicHeartDisease" reference="../.."/>    <cachedSize>-1</cachedSize>    <role>gov.va.agentorange.fasttrack.model.dbq.DbqFormEntity.diagnoses</role>    <key class="long">7553</key>    <dirty>false</dirty>    <storedSnapshot class="list"/>    <bag/>  </diagnoses>  <medications class="org.hibernate.collection.PersistentBag">    <initialized>true</initialized>    <owner class="gov.va.agentorange.fasttrack.model.dbq.ihd.IschemicHeartDisease" reference="../.."/>    <cachedSize>-1</cachedSize>    <role>gov.va.agentorange.fasttrack.model.dbq.DbqFormEntity.medications</role>    <key class="long">7553</key>    <dirty>false</dirty>    <storedSnapshot class="list"/>    <bag/>  </medications>  <diagnosticTests class="org.hibernate.collection.PersistentBag">    <initialized>true</initialized>    <owner class="gov.va.agentorange.fasttrack.model.dbq.ihd.IschemicHeartDisease" reference="../.."/>    <cachedSize>-1</cachedSize>    <role>gov.va.agentorange.fasttrack.model.dbq.DbqFormEntity.diagnosticTests</role>    <key class="long">7553</key>    <dirty>false</dirty>    <storedSnapshot class="list"/>    <bag/>  </diagnosticTests>  <hasIschemicHeartDisease>true</hasIschemicHeartDisease>  <takesContinuousMedication>false</takesContinuousMedication>  <hasPercutaneousCoronaryIntervention>false</hasPercutaneousCoronaryIntervention>  <hasMyocardialInfarction>false</hasMyocardialInfarction>  <hasCoronaryBypassSurgery>false</hasCoronaryBypassSurgery>  <hasHeartTransplant>false</hasHeartTransplant>  <hasImplantedCardiacPacemaker>false</hasImplantedCardiacPacemaker>  <hasImplantedAicd>false</hasImplantedAicd>  <doesVeteranHaveCHF>false</doesVeteranHaveCHF>  <hasExerciseTestBeenConducted>false</hasExerciseTestBeenConducted>  <metsLevel>metsLevel13</metsLevel>  <hasDyspnea>false</hasDyspnea>  <hasFatigue>false</hasFatigue>  <hasAngina>false</hasAngina>  <hasDizziness>false</hasDizziness>  <hasSyncope>true</hasSyncope>  <isEvidenceOfHypertrophyOrDil>false</isEvidenceOfHypertrophyOrDil>  <hasEkg>false</hasEkg>  <hasChestXRay>false</hasChestXRay>  <hasEchocardiogram>false</hasEchocardiogram>  <hasOtherTest>false</hasOtherTest>  <hasLVEF>false</hasLVEF></gov.va.agentorange.fasttrack.model.dbq.ihd.IschemicHeartDisease></detailXML>
			</questionnaireResult>
		</questionnaireResults>
	</patient>
</clinicaldata:ClinicalData>
]]></con:request><con:assertion type="XPath Match" name="Matches Request ID"><con:configuration><path>//requestId</path><content>${REQUEST_ID2}</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>true</ignoreNamspaceDifferences><ignoreComments>false</ignoreComments></con:configuration></con:assertion><con:assertion type="XPath Match" name="Matches Docuent ID"><con:configuration><path>//identifier/documentIdentifier/identity</path><content>${DOCUMENTIDENTIFIER_IDENTITY2}</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>true</ignoreNamspaceDifferences><ignoreComments>false</ignoreComments></con:configuration></con:assertion><con:assertion type="XPath Match" name="Response Includes Record Identifier"><con:configuration><path>count(//identifiers/identifier)</path><content>1</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>true</ignoreNamspaceDifferences><ignoreComments>false</ignoreComments></con:configuration></con:assertion><con:credentials><con:username xsi:nil="true"/><con:password xsi:nil="true"/><con:domain xsi:nil="true"/><con:authType>Global HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT" messageSelector="" TimeToLive=""/><con:jmsPropertyConfig><con:jmsProperties name="TEMPLATE_ID" value="DBQCreate2"/><con:jmsProperties name="REQUEST_ID" value="${REQUEST_ID2}"/></con:jmsPropertyConfig><con:wsaConfig mustUnderstand="NONE" version="200508"/><con:wsrmConfig version="1.2"/></con:request></con:config></con:testStep><con:testStep type="request" name="DBQ Create Data - Valid3"><con:settings/><con:config xsi:type="con:RequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>ClinicalDataServiceSynchronousInterfaceHttpBinding</con:interface><con:operation>appendClinicalData</con:operation><con:request name="DBQ Create Data - Valid3" outgoingWss="" incomingWss=""><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://${CDS_DBQ_JMS_ENDPOINT}</con:endpoint><con:request><![CDATA[<clinicaldata:ClinicalData xmlns:clinicaldata="Clinicaldata">
   <templateId>DBQCreate2</templateId>
   <clientName>SOAP UI</clientName>
   <clientRequestInitiationTime>${CLIENT_REQUEST_INIT_TIME}</clientRequestInitiationTime>
   <patient>
      <questionnaireResults>
         <questionnaireResult>
            <patient>
               <identifier>
                  <identity>${PATIENT_ID}</identity>
                  <assigningFacility>200HD</assigningFacility>
                  <assigningAuthority>USVHA</assigningAuthority>
               </identifier>
               <name>
                  <prefix>${PATIENT_NAME_PREFIX}</prefix>
                  <given>Given</given>
                  <middle>MiddleName</middle>
                  <family>FamilyName</family>
                  <suffix>Suffix</suffix>
                  <title>Title</title>
               </name>
            </patient>
            <dateCreated>
               <literal>${CREATED_DATE3}</literal>
            </dateCreated>
            <claimNumber>
			<root>${=java.util.UUID.randomUUID().toString()}</root>
		  </claimNumber>
		  <documentType>${DOCUMENT_TYPE3}</documentType>
            <initiatingSystem>SOAP UI</initiatingSystem>
            <documentIdentifier>
               <identity>${DOCUMENTIDENTIFIER_IDENTITY3}</identity>
               <namespaceId>402</namespaceId>
               <universalId>UID_13359111174322</universalId>
               <universalIdType>universalIdType</universalIdType>
            </documentIdentifier>
            <facilityIdentifier>
               <identity>OrganizationId</identity>
               <name>OrganizationName</name>
               <assigningAuthority>AssigningAuthNamespaceId</assigningAuthority>
            </facilityIdentifier>
            <approvedFlag>APPROVED</approvedFlag>
            <approvedBy>
               <comment>Approved By Comment</comment>
               <time>
                  <literal>20120501162517-0600</literal>
               </time>
               <practitioner>
                  <identifier>
                     <identity>test_AUTHORID_1003</identity>
                     <assigningFacility>402</assigningFacility>
                     <assigningAuthority>USVHA</assigningAuthority>
                  </identifier>
                  <idSourceTable>IdSourceTable</idSourceTable>
                  <name>
                     <prefix>Prefix</prefix>
                     <given>Given</given>
                     <middle>MiddleName</middle>
                     <family>FamilyName</family>
                     <suffix>Suffix</suffix>
                     <title>Title</title>
                  </name>
               </practitioner>
            </approvedBy>
            <author>
               <comment>Author Comment</comment>
               <time>
                  <literal>20120501162517-0600</literal>
               </time>
               <practitioner>
                  <identifier>
                     <identity>test_AUTHORID_1003</identity>
                     <assigningFacility>402</assigningFacility>
                     <assigningAuthority>USVHA</assigningAuthority>
                  </identifier>
                  <idSourceTable>IdSourceTable</idSourceTable>
                  <name>
                     <prefix>Prefix</prefix>
                     <given>Given</given>
                     <middle>MiddleName</middle>
                     <family>FamilyName</family>
                     <suffix>Suffix</suffix>
                     <title>Title</title>
                  </name>
               </practitioner>
            </author>
            <detailXML>
<gov.va.agentorange.fasttrack.model.dbq.hem.HematologicLymphatic>
	<id>6949</id>
	<version>0</version>
	<dateCreated class="sql-timestamp">2012-01-03 11:57:05.25</dateCreated>
	<dateModified class="sql-timestamp">2012-01-03 11:57:05.25</dateModified>
	<formType>FORM_TYPE_DBQ_HEM</formType>
	<vetSsn>190842394</vetSsn>
	<documentStatusType>COMPLETE</documentStatusType>
	<documentChannelType>ONLINE</documentChannelType>
	<formFileNetStatus>
		<id>5180</id>
		<version>1</version>
		<dateCreated class="sql-timestamp">2012-01-03 11:57:05.3</dateCreated>
		<dateModified>2012-01-03 11:57:40.556 EST</dateModified>
		<formFnStatusType>PROCESSOR_PROCESSING</formFnStatusType>
		<formEntity class="gov.va.agentorange.fasttrack.model.dbq.hem.HematologicLymphatic" reference="../.."/>
	</formFileNetStatus>
	<webFormType>HEM_DBQ</webFormType>
	<veteranFirstName>Delete</veteranFirstName>
	<veteranLastName>Delete</veteranLastName>
	<physicianFirstName>Doctor</physicianFirstName>
	<physicianLastName>HEM</physicianLastName>
	<medicalLicenseNumber>123</medicalLicenseNumber>
	<country>US</country>
	<addressLine1>1 Address</addressLine1>
	<addressLine2/>
	<addressLine3/>
	<city>Town</city>
	<state>KANSAS</state>
	<zip>23455</zip>
	<physicianPhoneNumber>3256246436</physicianPhoneNumber>
	<privacyActAck>true</privacyActAck>
	<physicianSignature>true</physicianSignature>
	<impactsAbilityToWork>true</impactsAbilityToWork>
	<impactDescription/>
	<remarks/>
	<dateSigned class="sql-timestamp">2012-01-03 11:57:05.25</dateSigned>
	<diagnoses class="org.hibernate.collection.PersistentBag">
		<initialized>true</initialized>
		<owner class="gov.va.agentorange.fasttrack.model.dbq.hem.HematologicLymphatic" reference="../.."/>
		<cachedSize>-1</cachedSize>
		<role>gov.va.agentorange.fasttrack.model.dbq.DbqFormEntity.diagnoses</role>
		<key class="long">6949</key>
		<dirty>false</dirty>
		<storedSnapshot class="list"/>
		<bag/>
	</diagnoses>
	<diagnoses class="org.hibernate.collection.PersistentBag">
		<initialized>true</initialized>
		<owner class="gov.va.agentorange.fasttrack.model.dbq.hem.HematologicLymphatic" reference="../.."/>
		<cachedSize>-1</cachedSize>
		<role>gov.va.agentorange.fasttrack.model.dbq.DbqFormEntity.diagnoses</role>
		<key class="long">7777</key>
		<dirty>false</dirty>
		<storedSnapshot class="list"/>
		<bag/>
	</diagnoses>
	<medications class="org.hibernate.collection.PersistentBag">
		<initialized>true</initialized>
		<owner class="gov.va.agentorange.fasttrack.model.dbq.hem.HematologicLymphatic" reference="../.."/>
		<cachedSize>-1</cachedSize>
		<role>gov.va.agentorange.fasttrack.model.dbq.DbqFormEntity.medications</role>
		<key class="long">6949</key>
		<dirty>false</dirty>
		<storedSnapshot class="list"/>
		<bag/>
	</medications>
	<diagnosticTests class="org.hibernate.collection.PersistentBag">
		<initialized>true</initialized>
		<owner class="gov.va.agentorange.fasttrack.model.dbq.hem.HematologicLymphatic" reference="../.."/>
		<cachedSize>-1</cachedSize>
		<role>gov.va.agentorange.fasttrack.model.dbq.DbqFormEntity.diagnosticTests</role>
		<key class="long">6949</key>
		<dirty>false</dirty>
		<storedSnapshot class="list"/>
		<bag/>
	</diagnosticTests>
	<hasHemicLymphatic>true</hasHemicLymphatic>
	<hasALL>false</hasALL>
	<hasAML>false</hasAML>
	<hasCML>false</hasCML>
	<hasCLL>false</hasCLL>
	<hasHodgkins>false</hasHodgkins>
	<hasNonHodgkins>false</hasNonHodgkins>
	<hasMyeloma>true</hasMyeloma>
	<myelomaICD/>
	<hasMyeloSyndrome>false</hasMyeloSyndrome>
	<hasPlasmacytoma>false</hasPlasmacytoma>
	<hasAnemia>false</hasAnemia>
	<hasThrombo>false</hasThrombo>
	<hasPolycythemia>false</hasPolycythemia>
	<hasSickleCell>false</hasSickleCell>
	<hasSplenectomy>false</hasSplenectomy>
	<hasBCellLeukemia>false</hasBCellLeukemia>
	<hasOtherDiagnosis>false</hasOtherDiagnosis>
	<briefHistory/>
	<diseaseStatus>ACTIVE</diseaseStatus>
	<continuousMedication>false</continuousMedication>
	<treatmentStatus>NO_TREATMENT_WATCHFUL_WAITING</treatmentStatus>
	<transfusion>false</transfusion>
	<findings>false</findings>
	<recurringInfections>false</recurringInfections>
	<diagRelatedScar>false</diagRelatedScar>
	<otherPertinentFinding>false</otherPertinentFinding>
	<labTesting>false</labTesting>
	<otherSignificantResults>false</otherSignificantResults>
</gov.va.agentorange.fasttrack.model.dbq.hem.HematologicLymphatic>
</detailXML>
         </questionnaireResult>
      </questionnaireResults>
   </patient>
</clinicaldata:ClinicalData>]]></con:request><con:assertion type="XPath Match" name="Matches Request ID"><con:configuration><path>//requestId</path><content>${REQUEST_ID3}</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>true</ignoreNamspaceDifferences><ignoreComments>false</ignoreComments></con:configuration></con:assertion><con:assertion type="XPath Match" name="Matches Docuent ID"><con:configuration><path>//identifier/documentIdentifier/identity</path><content>${DOCUMENTIDENTIFIER_IDENTITY3}</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>true</ignoreNamspaceDifferences><ignoreComments>false</ignoreComments></con:configuration></con:assertion><con:assertion type="XPath Match" name="Response Includes Record Identifier"><con:configuration><path>count(//identifiers/identifier)</path><content>1</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>true</ignoreNamspaceDifferences><ignoreComments>false</ignoreComments></con:configuration></con:assertion><con:credentials><con:username xsi:nil="true"/><con:password xsi:nil="true"/><con:domain xsi:nil="true"/><con:authType>Global HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT" messageSelector="" TimeToLive=""/><con:jmsPropertyConfig><con:jmsProperties name="TEMPLATE_ID" value="DBQCreate2"/><con:jmsProperties name="REQUEST_ID" value="${REQUEST_ID3}"/></con:jmsPropertyConfig><con:wsaConfig mustUnderstand="NONE" version="200508"/><con:wsrmConfig version="1.2"/></con:request></con:config></con:testStep><con:testStep type="request" name="DBQ List Read All By Patient - Max Results Unset"><con:settings/><con:config xsi:type="con:RequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>ClinicalDataServiceSynchronousInterfaceHttpBinding</con:interface><con:operation>readClinicalData1</con:operation><con:request name="DBQ List Read All By Patient - Max Results Unset"><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://${CDS_SERVICE_SOAP_ENDPOINT}</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:cli="http://client.cds.URL       ">
   <soapenv:Header/>
   <soapenv:Body>
      <cli:readClinicalData1>
         <in0>DBQListRead1</in0>
         <in1><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
<filter:filter vhimVersion="Vhim_4_00" xsi:schemaLocation="Filter DBQ_Single_Patient_All_Data_Filter.xsd" xmlns:filter="Filter" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
	<filterId>DBQ_SINGLE_PATIENT_LIST_DATA_FILTER</filterId>
	<clientName>SOAP UI</clientName>
	<clientRequestInitiationTime>${CLIENT_REQUEST_INIT_TIME}</clientRequestInitiationTime>
	<patients>
		<resolvedIdentifiers>
			<assigningAuthority>USVHA</assigningAuthority>
			<assigningFacility>200HD</assigningFacility>
			<identity>${PATIENT_ID}</identity>
		</resolvedIdentifiers>
	</patients>
	<entryPointFilter queryName="ID_1">
		<domainEntryPoint>QuestionnaireResult</domainEntryPoint>
	</entryPointFilter>
</filter:filter>
         ]]]]>><![CDATA[</in1>
         <in2>DBQ_SINGLE_PATIENT_LIST_DATA_FILTER</in2>
         <in3>${FILTER_REQUEST_ID1}</in3>
      </cli:readClinicalData1>
   </soapenv:Body>
</soapenv:Envelope>]]></con:request><con:assertion type="SOAP Response"/><con:assertion type="Simple Contains" name="Contains"><con:configuration><token/><ignoreCase>false</ignoreCase><useRegEx>false</useRegEx></con:configuration></con:assertion><con:credentials><con:authType>Global HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:wsaConfig mustUnderstand="NONE" version="200508"/><con:wsrmConfig version="1.2"/></con:request></con:config></con:testStep><con:testStep type="groovy" name="Check List Read All By Patient - Result Count 3 (null/empty)"><con:settings/><con:config><script>import com.eviware.soapui.support.XmlHolder 

def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context );

def soapResponseHolder = groovyUtils.getXmlHolder( "DBQ List Read All By Patient - Max Results Unset#Response" ) ;
def content = soapResponseHolder["//out"] ;
content = content.replaceAll( "&lt;!\\[CDATA\\[", "" ) 
content = content.replaceAll( "]]&gt;", "" ) 

def holder = groovyUtils.getXmlHolder( content ) ;
def records = holder["count(//questionnaireResult)"];
assert records == "3";
</script></con:config></con:testStep><con:testStep type="request" name="DBQ List Read All By Patient - Max Results -1"><con:settings/><con:config xsi:type="con:RequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>ClinicalDataServiceSynchronousInterfaceHttpBinding</con:interface><con:operation>readClinicalData1</con:operation><con:request name="DBQ List Read All By Patient - Max Results -1"><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://${CDS_SERVICE_SOAP_ENDPOINT}</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:cli="http://client.cds.URL       ">
   <soapenv:Header/>
   <soapenv:Body>
      <cli:readClinicalData1>
         <in0>DBQListRead1</in0>
         <in1><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
<filter:filter vhimVersion="Vhim_4_00" xsi:schemaLocation="Filter DBQ_Single_Patient_All_Data_Filter.xsd" xmlns:filter="Filter" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
	<filterId>DBQ_SINGLE_PATIENT_LIST_DATA_FILTER</filterId>
	<clientName>SOAP UI</clientName>
	<clientRequestInitiationTime>${CLIENT_REQUEST_INIT_TIME}</clientRequestInitiationTime>
	<patients>
		<resolvedIdentifiers>
			<assigningAuthority>USVHA</assigningAuthority>
			<assigningFacility>200HD</assigningFacility>
			<identity>${PATIENT_ID}</identity>
		</resolvedIdentifiers>
	</patients>
	<entryPointFilter queryName="ID_1" pageNumber="0" pageSize="-1">
		<domainEntryPoint>QuestionnaireResult</domainEntryPoint>
	</entryPointFilter>
</filter:filter>
         ]]]]>><![CDATA[</in1>
         <in2>DBQ_SINGLE_PATIENT_LIST_DATA_FILTER</in2>
         <in3>${FILTER_REQUEST_ID1}</in3>
      </cli:readClinicalData1>
   </soapenv:Body>
</soapenv:Envelope>]]></con:request><con:assertion type="SOAP Response"/><con:assertion type="Simple Contains" name="Contains"><con:configuration><token/><ignoreCase>false</ignoreCase><useRegEx>false</useRegEx></con:configuration></con:assertion><con:credentials><con:authType>Global HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:wsaConfig mustUnderstand="NONE" version="200508"/><con:wsrmConfig version="1.2"/></con:request></con:config></con:testStep><con:testStep type="groovy" name="Check List Read All By Patient - Result Count 3(-1)"><con:settings/><con:config><script>import com.eviware.soapui.support.XmlHolder 

def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context );

def soapResponseHolder = groovyUtils.getXmlHolder( "DBQ List Read All By Patient - Max Results -1#Response" ) ;
def content = soapResponseHolder["//out"] ;
content = content.replaceAll( "&lt;!\\[CDATA\\[", "" ) 
content = content.replaceAll( "]]&gt;", "" ) 

def holder = groovyUtils.getXmlHolder( content ) ;
def records = holder["count(//questionnaireResult)"];
assert records == "3";
</script></con:config></con:testStep><con:testStep type="request" name="DBQ List Read All By Patient - Max Results 0"><con:settings/><con:config xsi:type="con:RequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>ClinicalDataServiceSynchronousInterfaceHttpBinding</con:interface><con:operation>readClinicalData1</con:operation><con:request name="DBQ List Read All By Patient - Max Results 0"><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://${CDS_SERVICE_SOAP_ENDPOINT}</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:cli="http://client.cds.URL       ">
   <soapenv:Header/>
   <soapenv:Body>
      <cli:readClinicalData1>
         <in0>DBQListRead1</in0>
         <in1><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
<filter:filter vhimVersion="Vhim_4_00" xsi:schemaLocation="Filter DBQ_Single_Patient_All_Data_Filter.xsd" xmlns:filter="Filter" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
	<filterId>DBQ_SINGLE_PATIENT_LIST_DATA_FILTER</filterId>
	<clientName>SOAP UI</clientName>
	<clientRequestInitiationTime>${CLIENT_REQUEST_INIT_TIME}</clientRequestInitiationTime>
	<patients>
		<resolvedIdentifiers>
			<assigningAuthority>USVHA</assigningAuthority>
			<assigningFacility>200HD</assigningFacility>
			<identity>${PATIENT_ID}</identity>
		</resolvedIdentifiers>
	</patients>
	<entryPointFilter queryName="ID_1" pageNumber="0" pageSize="0">
		<domainEntryPoint>QuestionnaireResult</domainEntryPoint>
	</entryPointFilter>
</filter:filter>
         ]]]]>><![CDATA[</in1>
         <in2>DBQ_SINGLE_PATIENT_LIST_DATA_FILTER</in2>
         <in3>${FILTER_REQUEST_ID1}</in3>
      </cli:readClinicalData1>
   </soapenv:Body>
</soapenv:Envelope>]]></con:request><con:assertion type="SOAP Response"/><con:assertion type="Simple Contains" name="Contains"><con:configuration><token/><ignoreCase>false</ignoreCase><useRegEx>false</useRegEx></con:configuration></con:assertion><con:credentials><con:authType>Global HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:wsaConfig mustUnderstand="NONE" version="200508"/><con:wsrmConfig version="1.2"/></con:request></con:config></con:testStep><con:testStep type="groovy" name="Check List Read All By Patient - Result Count 3(0)"><con:settings/><con:config><script>import com.eviware.soapui.support.XmlHolder 

def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context );

def soapResponseHolder = groovyUtils.getXmlHolder( "DBQ List Read All By Patient - Max Results 0#Response" ) ;
def content = soapResponseHolder["//out"] ;
content = content.replaceAll( "&lt;!\\[CDATA\\[", "" ) 
content = content.replaceAll( "]]&gt;", "" ) 

def holder = groovyUtils.getXmlHolder( content ) ;
def records = holder["count(//questionnaireResult)"];
assert records == "3";
</script></con:config></con:testStep><con:testStep type="request" name="DBQ List Read All By Patient - Max Results 1"><con:settings/><con:config xsi:type="con:RequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>ClinicalDataServiceSynchronousInterfaceHttpBinding</con:interface><con:operation>readClinicalData1</con:operation><con:request name="DBQ List Read All By Patient - Max Results 1"><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://${CDS_SERVICE_SOAP_ENDPOINT}</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:cli="http://client.cds.URL       ">
   <soapenv:Header/>
   <soapenv:Body>
      <cli:readClinicalData1>
         <in0>DBQListRead1</in0>
         <in1><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
<filter:filter vhimVersion="Vhim_4_00" xsi:schemaLocation="Filter DBQ_Single_Patient_All_Data_Filter.xsd" xmlns:filter="Filter" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
	<filterId>DBQ_SINGLE_PATIENT_LIST_DATA_FILTER</filterId>
	<clientName>SOAP UI</clientName>
	<clientRequestInitiationTime>${CLIENT_REQUEST_INIT_TIME}</clientRequestInitiationTime>
	<patients>
		<resolvedIdentifiers>
			<assigningAuthority>USVHA</assigningAuthority>
			<assigningFacility>200HD</assigningFacility>
			<identity>${PATIENT_ID}</identity>
		</resolvedIdentifiers>
	</patients>
	<entryPointFilter queryName="ID_1" pageNumber="1" pageSize="1">
		<domainEntryPoint>QuestionnaireResult</domainEntryPoint>
	</entryPointFilter>
</filter:filter>
         ]]]]>><![CDATA[</in1>
         <in2>DBQ_SINGLE_PATIENT_LIST_DATA_FILTER</in2>
         <in3>${FILTER_REQUEST_ID1}</in3>
      </cli:readClinicalData1>
   </soapenv:Body>
</soapenv:Envelope>]]></con:request><con:assertion type="SOAP Response"/><con:assertion type="Simple Contains" name="Contains"><con:configuration><token/><ignoreCase>false</ignoreCase><useRegEx>false</useRegEx></con:configuration></con:assertion><con:credentials><con:authType>Global HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:wsaConfig mustUnderstand="NONE" version="200508"/><con:wsrmConfig version="1.2"/></con:request></con:config></con:testStep><con:testStep type="groovy" name="Check List Read All By Patient - Result Count 1"><con:settings/><con:config><script>import com.eviware.soapui.support.XmlHolder 

def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context );

def soapResponseHolder = groovyUtils.getXmlHolder( "DBQ List Read All By Patient - Max Results 1#Response" ) ;
def content = soapResponseHolder["//out"] ;
content = content.replaceAll( "&lt;!\\[CDATA\\[", "" ) 
content = content.replaceAll( "]]&gt;", "" ) 

def holder = groovyUtils.getXmlHolder( content ) ;
def records = holder["count(//questionnaireResult)"];
assert records == "1";
</script></con:config></con:testStep><con:testStep type="request" name="DBQ List Read All By Patient - Max Results 2"><con:settings/><con:config xsi:type="con:RequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>ClinicalDataServiceSynchronousInterfaceHttpBinding</con:interface><con:operation>readClinicalData1</con:operation><con:request name="DBQ List Read All By Patient - Max Results 2"><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://${CDS_SERVICE_SOAP_ENDPOINT}</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:cli="http://client.cds.URL       ">
   <soapenv:Header/>
   <soapenv:Body>
      <cli:readClinicalData1>
         <in0>DBQListRead1</in0>
         <in1><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
<filter:filter vhimVersion="Vhim_4_00" xsi:schemaLocation="Filter DBQ_Single_Patient_All_Data_Filter.xsd" xmlns:filter="Filter" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
	<filterId>DBQ_SINGLE_PATIENT_LIST_DATA_FILTER</filterId>
	<clientName>SOAP UI</clientName>
	<clientRequestInitiationTime>${CLIENT_REQUEST_INIT_TIME}</clientRequestInitiationTime>
	<patients>
		<resolvedIdentifiers>
			<assigningAuthority>USVHA</assigningAuthority>
			<assigningFacility>200HD</assigningFacility>
			<identity>${PATIENT_ID}</identity>
		</resolvedIdentifiers>
	</patients>
	<entryPointFilter queryName="ID_1" pageNumber="1" pageSize="2">
		<domainEntryPoint>QuestionnaireResult</domainEntryPoint>
	</entryPointFilter>
</filter:filter>
         ]]]]>><![CDATA[</in1>
         <in2>DBQ_SINGLE_PATIENT_LIST_DATA_FILTER</in2>
         <in3>${FILTER_REQUEST_ID1}</in3>
      </cli:readClinicalData1>
   </soapenv:Body>
</soapenv:Envelope>]]></con:request><con:assertion type="SOAP Response"/><con:assertion type="Simple Contains" name="Contains"><con:configuration><token/><ignoreCase>false</ignoreCase><useRegEx>false</useRegEx></con:configuration></con:assertion><con:credentials><con:authType>Global HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:wsaConfig mustUnderstand="NONE" version="200508"/><con:wsrmConfig version="1.2"/></con:request></con:config></con:testStep><con:testStep type="groovy" name="Check List Read All By Patient - Result Count 2"><con:settings/><con:config><script>import com.eviware.soapui.support.XmlHolder 

def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context );

def soapResponseHolder = groovyUtils.getXmlHolder( "DBQ List Read All By Patient - Max Results 2#Response" ) ;
def content = soapResponseHolder["//out"] ;
content = content.replaceAll( "&lt;!\\[CDATA\\[", "" ) 
content = content.replaceAll( "]]&gt;", "" ) 

def holder = groovyUtils.getXmlHolder( content ) ;
def records = holder["count(//questionnaireResult)"];
assert records == "2";
</script></con:config></con:testStep><con:testStep type="request" name="DBQ List Read All By Patient - Max Results 4"><con:settings/><con:config xsi:type="con:RequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>ClinicalDataServiceSynchronousInterfaceHttpBinding</con:interface><con:operation>readClinicalData1</con:operation><con:request name="DBQ List Read All By Patient - Max Results 4"><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://${CDS_SERVICE_SOAP_ENDPOINT}</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:cli="http://client.cds.URL       ">
   <soapenv:Header/>
   <soapenv:Body>
      <cli:readClinicalData1>
         <in0>DBQListRead1</in0>
         <in1><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
<filter:filter vhimVersion="Vhim_4_00" xsi:schemaLocation="Filter DBQ_Single_Patient_All_Data_Filter.xsd" xmlns:filter="Filter" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
	<filterId>DBQ_SINGLE_PATIENT_LIST_DATA_FILTER</filterId>
	<clientName>SOAP UI</clientName>
	<clientRequestInitiationTime>${CLIENT_REQUEST_INIT_TIME}</clientRequestInitiationTime>
	<patients>
		<resolvedIdentifiers>
			<assigningAuthority>USVHA</assigningAuthority>
			<assigningFacility>200HD</assigningFacility>
			<identity>${PATIENT_ID}</identity>
		</resolvedIdentifiers>
	</patients>
	<entryPointFilter queryName="ID_1" pageNumber="1" pageSize="4">
		<domainEntryPoint>QuestionnaireResult</domainEntryPoint>
	</entryPointFilter>
</filter:filter>
         ]]]]>><![CDATA[</in1>
         <in2>DBQ_SINGLE_PATIENT_LIST_DATA_FILTER</in2>
         <in3>${FILTER_REQUEST_ID1}</in3>
      </cli:readClinicalData1>
   </soapenv:Body>
</soapenv:Envelope>]]></con:request><con:assertion type="SOAP Response"/><con:assertion type="Simple Contains" name="Contains"><con:configuration><token/><ignoreCase>false</ignoreCase><useRegEx>false</useRegEx></con:configuration></con:assertion><con:credentials><con:authType>Global HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:wsaConfig mustUnderstand="NONE" version="200508"/><con:wsrmConfig version="1.2"/></con:request></con:config></con:testStep><con:testStep type="groovy" name="Check List Read All By Patient - Result Count 3/4"><con:settings/><con:config><script>import com.eviware.soapui.support.XmlHolder 

def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context );

def soapResponseHolder = groovyUtils.getXmlHolder( "DBQ List Read All By Patient - Max Results 4#Response" ) ;
def content = soapResponseHolder["//out"] ;
content = content.replaceAll( "&lt;!\\[CDATA\\[", "" ) 
content = content.replaceAll( "]]&gt;", "" ) 

def holder = groovyUtils.getXmlHolder( content ) ;
def records = holder["count(//questionnaireResult)"];
assert records == "3";
</script></con:config></con:testStep><con:testStep type="request" name="DBQ List Read All By Unknown Patient - Max Results 4"><con:settings/><con:config xsi:type="con:RequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>ClinicalDataServiceSynchronousInterfaceHttpBinding</con:interface><con:operation>readClinicalData1</con:operation><con:request name="DBQ List Read All By Unknown Patient - Max Results 4"><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://${CDS_SERVICE_SOAP_ENDPOINT}</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:cli="http://client.cds.URL       ">
   <soapenv:Header/>
   <soapenv:Body>
      <cli:readClinicalData1>
         <in0>DBQListRead1</in0>
         <in1><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
<filter:filter vhimVersion="Vhim_4_00" xsi:schemaLocation="Filter DBQ_Single_Patient_All_Data_Filter.xsd" xmlns:filter="Filter" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
	<filterId>DBQ_SINGLE_PATIENT_LIST_DATA_FILTER</filterId>
	<clientName>SOAP UI</clientName>
	<clientRequestInitiationTime>${CLIENT_REQUEST_INIT_TIME}</clientRequestInitiationTime>
	<patients>
		<resolvedIdentifiers>
			<assigningAuthority>USVHA</assigningAuthority>
			<assigningFacility>200HD</assigningFacility>
			<identity>FOO</identity>
		</resolvedIdentifiers>
	</patients>
	<entryPointFilter queryName="ID_1" pageNumber="1" pageSize="4">
		<domainEntryPoint>QuestionnaireResult</domainEntryPoint>
	</entryPointFilter>
</filter:filter>
         ]]]]>><![CDATA[</in1>
         <in2>DBQ_SINGLE_PATIENT_LIST_DATA_FILTER</in2>
         <in3>${FILTER_REQUEST_ID1}</in3>
      </cli:readClinicalData1>
   </soapenv:Body>
</soapenv:Envelope>]]></con:request><con:assertion type="SOAP Response"/><con:assertion type="Simple Contains" name="Contains"><con:configuration><token/><ignoreCase>false</ignoreCase><useRegEx>false</useRegEx></con:configuration></con:assertion><con:credentials><con:authType>Global HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:wsaConfig mustUnderstand="NONE" version="200508"/><con:wsrmConfig version="1.2"/></con:request></con:config></con:testStep><con:properties><con:property><con:name>CDataSection</con:name><con:value><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
<clinicaldata:ClinicalData xmlns:clinicaldata="Clinicaldata"><templateId>DBQListRead1</templateId><requestId>09724cae-6eea-449e-a476-3ac71a2404e6</requestId><patients><patient><requestedResolvedIdentifiers><requestedResolvedIdentifier><identity>65943d54-51b6-4fe9-a7d2-3ad6a8618e8d</identity><assigningFacility>200HD</assigningFacility><assigningAuthority>USVHA</assigningAuthority></requestedResolvedIdentifier></requestedResolvedIdentifiers><resultantIdentifiers><resultantIdentifier><identity>65943d54-51b6-4fe9-a7d2-3ad6a8618e8d</identity><assigningFacility>200HD</assigningFacility><assigningAuthority>USVHA</assigningAuthority></resultantIdentifier></resultantIdentifiers><questionnaireResults><questionnaireResult><patient><identifier><identity>65943d54-51b6-4fe9-a7d2-3ad6a8618e8d</identity><assigningFacility>200HD</assigningFacility><assigningAuthority>USVHA</assigningAuthority></identifier><name><given>Given</given><middle>MiddleName</middle><family>FamilyName</family><suffix>Suffix</suffix><title>Title</title></name></patient><documentType>Ischemic_Heart_Disease</documentType><recordIdentifier><identity>152</identity></recordIdentifier><documentIdentifier><identity>682e7f6e-0446-465d-a685-379e46b5d813</identity><namespaceId>402</namespaceId><universalId>UID_13359111174322</universalId><universalIdType>universalIdType</universalIdType></documentIdentifier><initiatingSystem>SOAP UI</initiatingSystem><facilityIdentifier><identity>OrganizationId</identity><name>OrganizationName</name><assigningAuthority>AssigningAuthNamespaceId</assigningAuthority></facilityIdentifier><approvedFlag>APPROVED</approvedFlag><author><comment>Author Comment</comment><time><literal>20120501162517-0600</literal></time><practitioner><identifier><identity>test_AUTHORID_1003</identity><assigningFacility>402</assigningFacility><assigningAuthority>USVHA</assigningAuthority></identifier><name><prefix>Prefix</prefix><given>Given</given><middle>MiddleName</middle><family>FamilyName</family><suffix>Suffix</suffix><title>Title</title></name></practitioner></author><approvedBy><comment>Approved By Comment</comment><time><literal>20120501162517-0600</literal></time><practitioner><identifier><identity>test_AUTHORID_1003</identity><assigningFacility>402</assigningFacility><assigningAuthority>USVHA</assigningAuthority></identifier><name><prefix>Prefix</prefix><given>Given</given><middle>MiddleName</middle><family>FamilyName</family><suffix>Suffix</suffix><title>Title</title></name></practitioner></approvedBy><dateCreated><literal>19991231170000-0700</literal></dateCreated><recordVersion>3</recordVersion></questionnaireResult><questionnaireResult><patient><identifier><identity>65943d54-51b6-4fe9-a7d2-3ad6a8618e8d</identity><assigningFacility>200HD</assigningFacility><assigningAuthority>USVHA</assigningAuthority></identifier><name><given>Given</given><middle>MiddleName</middle><family>FamilyName</family><suffix>Suffix</suffix><title>Title</title></name></patient><documentType>Ischemic_Heart_Disease</documentType><recordIdentifier><identity>153</identity></recordIdentifier><documentIdentifier><identity>debc0a25-77a3-4b40-818d-c4aeb9242eae</identity><namespaceId>402</namespaceId><universalId>UID_13359111174322</universalId><universalIdType>universalIdType</universalIdType></documentIdentifier><initiatingSystem>SOAP UI</initiatingSystem><facilityIdentifier><identity>OrganizationId</identity><name>OrganizationName</name><assigningAuthority>AssigningAuthNamespaceId</assigningAuthority></facilityIdentifier><approvedFlag>APPROVED</approvedFlag><author><comment>Author Comment</comment><time><literal>20120501162517-0600</literal></time><practitioner><identifier><identity>test_AUTHORID_1003</identity><assigningFacility>402</assigningFacility><assigningAuthority>USVHA</assigningAuthority></identifier><name><prefix>Prefix</prefix><given>Given</given><middle>MiddleName</middle><family>FamilyName</family><suffix>Suffix</suffix><title>Title</title></name></practitioner></author><approvedBy><comment>Approved By Comment</comment><time><literal>20120501162517-0600</literal></time><practitioner><identifier><identity>test_AUTHORID_1003</identity><assigningFacility>402</assigningFacility><assigningAuthority>USVHA</assigningAuthority></identifier><name><prefix>Prefix</prefix><given>Given</given><middle>MiddleName</middle><family>FamilyName</family><suffix>Suffix</suffix><title>Title</title></name></practitioner></approvedBy><dateCreated><literal>20011231170000-0700</literal></dateCreated><recordVersion>3</recordVersion></questionnaireResult><questionnaireResult><patient><identifier><identity>65943d54-51b6-4fe9-a7d2-3ad6a8618e8d</identity><assigningFacility>200HD</assigningFacility><assigningAuthority>USVHA</assigningAuthority></identifier><name><given>Given</given><middle>MiddleName</middle><family>FamilyName</family><suffix>Suffix</suffix><title>Title</title></name></patient><documentType>Hematologic_and_Lymphatic_Conditions</documentType><recordIdentifier><identity>154</identity></recordIdentifier><documentIdentifier><identity>7ec074ee-cb30-4805-b155-f605f1beb040</identity><namespaceId>402</namespaceId><universalId>UID_13359111174322</universalId><universalIdType>universalIdType</universalIdType></documentIdentifier><initiatingSystem>SOAP UI</initiatingSystem><facilityIdentifier><identity>OrganizationId</identity><name>OrganizationName</name><assigningAuthority>AssigningAuthNamespaceId</assigningAuthority></facilityIdentifier><approvedFlag>APPROVED</approvedFlag><author><comment>Author Comment</comment><time><literal>20120501162517-0600</literal></time><practitioner><identifier><identity>test_AUTHORID_1003</identity><assigningFacility>402</assigningFacility><assigningAuthority>USVHA</assigningAuthority></identifier><name><prefix>Prefix</prefix><given>Given</given><middle>MiddleName</middle><family>FamilyName</family><suffix>Suffix</suffix><title>Title</title></name></practitioner></author><approvedBy><comment>Approved By Comment</comment><time><literal>20120501162517-0600</literal></time><practitioner><identifier><identity>test_AUTHORID_1003</identity><assigningFacility>402</assigningFacility><assigningAuthority>USVHA</assigningAuthority></identifier><name><prefix>Prefix</prefix><given>Given</given><middle>MiddleName</middle><family>FamilyName</family><suffix>Suffix</suffix><title>Title</title></name></practitioner></approvedBy><dateCreated><literal>20051231170000-0700</literal></dateCreated><recordVersion>3</recordVersion></questionnaireResult></questionnaireResults></patient></patients></clinicaldata:ClinicalData>]]></con:value></con:property><con:property><con:name>RecordId1</con:name><con:value>152</con:value></con:property><con:property><con:name>RecordId2</con:name><con:value>153</con:value></con:property><con:property><con:name>RecordId3</con:name><con:value>154</con:value></con:property><con:property><con:name>RecordId4</con:name><con:value>177</con:value></con:property></con:properties></con:testCase><con:testCase failOnError="true" failTestCaseOnErrors="true" keepSession="false" maxResults="0" name="HDR 3.4 DBQ Read by Claim / SS Number (17672)" searchProperties="true" id="d27835db-f0c0-491a-9857-7a42f9854564"><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_REQUEST_INIT_TIME = DateFormatUtils.ISO_DATETIME_TIME_ZONE_FORMAT.format( new Date() );
context.FILTER_REQUEST_ID = UUID.randomUUID().toString();
context.REQUEST_ID  = UUID.randomUUID().toString(); 
context.DOCUMENTIDENTIFIER_IDENTITY = UUID.randomUUID().toString(); 
context.PATIENT_ID = UUID.randomUUID().toString();
context.CLAIM_NUMBER = UUID.randomUUID().toString();

context.CLIENT_REQUEST_INIT_TIME2 = DateFormatUtils.ISO_DATETIME_TIME_ZONE_FORMAT.format( new Date() );
context.FILTER_REQUEST_ID2 = UUID.randomUUID().toString();
context.REQUEST_ID2  = UUID.randomUUID().toString(); 
context.DOCUMENTIDENTIFIER_IDENTITY2 = UUID.randomUUID().toString(); 

context.CLIENT_REQUEST_INIT_TIME3 = DateFormatUtils.ISO_DATETIME_TIME_ZONE_FORMAT.format( new Date() );
context.REQUEST_ID3  = UUID.randomUUID().toString(); 
context.DOCUMENTIDENTIFIER_IDENTITY3 = UUID.randomUUID().toString(); 

context.FACILITY_IDENTITY = UUID.randomUUID().toString();
context.FACILITY_ASSIGNING_AUTHORITY = 'AssigningAuthNamespaceId';
context.FACILITY_NAME = 'OrganizationName';

context.DOCUMENT_TYPE = UUID.randomUUID().toString();
context.DOCUMENT_TYPE_2 = context.DOCUMENT_TYPE + "_2";

context.STATUS = UUID.randomUUID().toString();

context.VET_SSN1 = '111-222-3456';
context.VET_SSN2 = '555-666-7890';

</script></con:config></con:testStep><con:testStep type="request" name="DBQ Create Data - Valid"><con:settings/><con:config xsi:type="con:RequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>ClinicalDataServiceSynchronousInterfaceHttpBinding</con:interface><con:operation>appendClinicalData</con:operation><con:request name="DBQ Create Data - Valid" outgoingWss="" incomingWss=""><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://${CDS_DBQ_JMS_ENDPOINT}</con:endpoint><con:request><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
<clinicaldata:ClinicalData xmlns:clinicaldata="Clinicaldata">
	<templateId>DBQCreate2</templateId>
	<clientName>SOAP UI</clientName>
	<clientRequestInitiationTime>${CLIENT_REQUEST_INIT_TIME}</clientRequestInitiationTime>
	<patient>
		<questionnaireResults>
			<questionnaireResult>
				<patient>
					<identifier>
						<identity>${PATIENT_ID}</identity>
						<assigningFacility>200HD</assigningFacility>
						<assigningAuthority>USVHA</assigningAuthority>
					</identifier>
					<name>
						<prefix>${PATIENT_NAME_PREFIX}</prefix>
						<given>Given</given>
						<middle>MiddleName</middle>
						<family>FamilyName</family>
						<suffix>Suffix</suffix>
						<title>Title</title>
					</name>
				</patient>
				<dateCreated>
					<literal>19691231170000-0700</literal>
				</dateCreated>
				<claimNumber>
					<root>${CLAIM_NUMBER}</root>
				</claimNumber>
				<documentType>${DOCUMENT_TYPE}</documentType>
				<initiatingSystem>SOAP UI</initiatingSystem>
				<documentIdentifier>
					<identity>${DOCUMENTIDENTIFIER_IDENTITY}</identity>
					<namespaceId>402</namespaceId>
					<universalId>UID_13359111174322</universalId>
					<universalIdType>universalIdType</universalIdType>
				</documentIdentifier>
				<facilityIdentifier>
					<identity>${FACILITY_IDENTITY}</identity>
					<name>${FACILITY_NAME}</name>
					<assigningAuthority>${FACILITY_ASSIGNING_AUTHORITY}</assigningAuthority>
				</facilityIdentifier>
				<approvedFlag>${STATUS}</approvedFlag>
				<approvedBy>
					<comment>Approved By Comment</comment>
					<time>
						<literal>20120501162517-0600</literal>
					</time>
					<practitioner>
						<identifier>
							<identity>test_AUTHORID_1003</identity>
							<assigningFacility>402</assigningFacility>
							<assigningAuthority>USVHA</assigningAuthority>
						</identifier>
						<idSourceTable>IdSourceTable</idSourceTable>
						<name>
							<prefix>Prefix</prefix>
							<given>Given</given>
							<middle>MiddleName</middle>
							<family>FamilyName</family>
							<suffix>Suffix</suffix>
							<title>Title</title>
						</name>
					</practitioner>
				</approvedBy>
				<author>
					<comment>Author Comment</comment>
					<time>
						<literal>20120501162517-0600</literal>
					</time>
					<practitioner>
						<identifier>
							<identity>test_AUTHORID_1003</identity>
							<assigningFacility>402</assigningFacility>
							<assigningAuthority>USVHA</assigningAuthority>
						</identifier>
						<idSourceTable>IdSourceTable</idSourceTable>
						<name>
							<prefix>Prefix</prefix>
							<given>Given</given>
							<middle>MiddleName</middle>
							<family>FamilyName</family>
							<suffix>Suffix</suffix>
							<title>Title</title>
						</name>
					</practitioner>
				</author>
				<detailXML><gov.va.agentorange.fasttrack.model.dbq.ihd.IschemicHeartDisease>  <id>7553</id>  <version>0</version>  <dateCreated class="sql-timestamp">2012-01-10 09:45:51.397</dateCreated>  <dateModified class="sql-timestamp">2012-01-10 09:45:51.397</dateModified>  <formType>FORM_TYPE_DBQ_IHD</formType>  <vetSsn>${VET_SSN1}</vetSsn>  <documentStatusType>COMPLETE</documentStatusType>  <documentChannelType>ONLINE</documentChannelType>  <formFileNetStatus>    <id>5760</id>    <version>1</version>    <dateCreated class="sql-timestamp">2012-01-10 09:45:51.437</dateCreated>    <dateModified>2012-01-10 09:45:51.507 EST</dateModified>    <formFnStatusType>PROCESSOR_PROCESSING</formFnStatusType>    <formEntity class="gov.va.agentorange.fasttrack.model.dbq.ihd.IschemicHeartDisease" reference="../.."/>  </formFileNetStatus>  <webFormType>IHD_DBQ</webFormType>  <veteranFirstName>Test</veteranFirstName>  <veteranLastName>Test</veteranLastName>  <physicianFirstName>Dr</physicianFirstName>  <physicianLastName>Test</physicianLastName>  <medicalLicenseNumber>12</medicalLicenseNumber>  <country>US</country>  <addressLine1>Test</addressLine1>  <addressLine2></addressLine2>  <addressLine3></addressLine3>  <city>Test</city>  <state>DELAWARE</state>  <zip>12345</zip>  <physicianPhoneNumber>1231221312</physicianPhoneNumber>  <privacyActAck>true</privacyActAck>  <physicianSignature>true</physicianSignature>  <impactsAbilityToWork>false</impactsAbilityToWork>  <remarks></remarks>  <dateSigned class="sql-timestamp">2012-01-10 09:45:51.397</dateSigned>  <diagnoses class="org.hibernate.collection.PersistentBag">    <initialized>true</initialized>    <owner class="gov.va.agentorange.fasttrack.model.dbq.ihd.IschemicHeartDisease" reference="../.."/>    <cachedSize>-1</cachedSize>    <role>gov.va.agentorange.fasttrack.model.dbq.DbqFormEntity.diagnoses</role>    <key class="long">7553</key>    <dirty>false</dirty>    <storedSnapshot class="list"/>    <bag/>  </diagnoses>  <medications class="org.hibernate.collection.PersistentBag">    <initialized>true</initialized>    <owner class="gov.va.agentorange.fasttrack.model.dbq.ihd.IschemicHeartDisease" reference="../.."/>    <cachedSize>-1</cachedSize>    <role>gov.va.agentorange.fasttrack.model.dbq.DbqFormEntity.medications</role>    <key class="long">7553</key>    <dirty>false</dirty>    <storedSnapshot class="list"/>    <bag/>  </medications>  <diagnosticTests class="org.hibernate.collection.PersistentBag">    <initialized>true</initialized>    <owner class="gov.va.agentorange.fasttrack.model.dbq.ihd.IschemicHeartDisease" reference="../.."/>    <cachedSize>-1</cachedSize>    <role>gov.va.agentorange.fasttrack.model.dbq.DbqFormEntity.diagnosticTests</role>    <key class="long">7553</key>    <dirty>false</dirty>    <storedSnapshot class="list"/>    <bag/>  </diagnosticTests>  <hasIschemicHeartDisease>true</hasIschemicHeartDisease>  <takesContinuousMedication>false</takesContinuousMedication>  <hasPercutaneousCoronaryIntervention>false</hasPercutaneousCoronaryIntervention>  <hasMyocardialInfarction>false</hasMyocardialInfarction>  <hasCoronaryBypassSurgery>false</hasCoronaryBypassSurgery>  <hasHeartTransplant>false</hasHeartTransplant>  <hasImplantedCardiacPacemaker>false</hasImplantedCardiacPacemaker>  <hasImplantedAicd>false</hasImplantedAicd>  <doesVeteranHaveCHF>false</doesVeteranHaveCHF>  <hasExerciseTestBeenConducted>false</hasExerciseTestBeenConducted>  <metsLevel>metsLevel13</metsLevel>  <hasDyspnea>false</hasDyspnea>  <hasFatigue>false</hasFatigue>  <hasAngina>false</hasAngina>  <hasDizziness>false</hasDizziness>  <hasSyncope>true</hasSyncope>  <isEvidenceOfHypertrophyOrDil>false</isEvidenceOfHypertrophyOrDil>  <hasEkg>false</hasEkg>  <hasChestXRay>false</hasChestXRay>  <hasEchocardiogram>false</hasEchocardiogram>  <hasOtherTest>false</hasOtherTest>  <hasLVEF>false</hasLVEF></gov.va.agentorange.fasttrack.model.dbq.ihd.IschemicHeartDisease></detailXML>
			</questionnaireResult>
		</questionnaireResults>
	</patient>
</clinicaldata:ClinicalData>
]]></con:request><con:assertion type="XPath Match" name="Matches Request ID"><con:configuration><path>//requestId</path><content>${REQUEST_ID}</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>true</ignoreNamspaceDifferences><ignoreComments>false</ignoreComments></con:configuration></con:assertion><con:assertion type="XPath Match" name="Matches Docuent ID"><con:configuration><path>//identifier/documentIdentifier/identity</path><content>${DOCUMENTIDENTIFIER_IDENTITY}</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>true</ignoreNamspaceDifferences><ignoreComments>false</ignoreComments></con:configuration></con:assertion><con:assertion type="XPath Match" name="Response Includes Record Identifier"><con:configuration><path>count(//identifiers/identifier)</path><content>1</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>true</ignoreNamspaceDifferences><ignoreComments>false</ignoreComments></con:configuration></con:assertion><con:credentials><con:username xsi:nil="true"/><con:password xsi:nil="true"/><con:domain xsi:nil="true"/><con:authType>Global HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT" messageSelector="" TimeToLive=""/><con:jmsPropertyConfig><con:jmsProperties name="TEMPLATE_ID" value="DBQCreate2"/><con:jmsProperties name="REQUEST_ID" value="${REQUEST_ID}"/></con:jmsPropertyConfig><con:wsaConfig mustUnderstand="NONE" version="200508"/><con:wsrmConfig version="1.2"/></con:request></con:config></con:testStep><con:testStep type="request" name="DBQ Create Data - Valid2"><con:settings/><con:config xsi:type="con:RequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>ClinicalDataServiceSynchronousInterfaceHttpBinding</con:interface><con:operation>appendClinicalData</con:operation><con:request name="DBQ Create Data - Valid2" outgoingWss="" incomingWss=""><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://${CDS_DBQ_JMS_ENDPOINT}</con:endpoint><con:request><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
<clinicaldata:ClinicalData xmlns:clinicaldata="Clinicaldata">
	<templateId>DBQCreate2</templateId>
	<clientName>SOAP UI</clientName>
	<clientRequestInitiationTime>${CLIENT_REQUEST_INIT_TIME2}</clientRequestInitiationTime>
	<patient>
		<questionnaireResults>
			<questionnaireResult>
				<patient>
					<identifier>
						<identity>${PATIENT_ID}</identity>
						<assigningFacility>200HD</assigningFacility>
						<assigningAuthority>USVHA</assigningAuthority>
					</identifier>
					<name>
						<prefix>${PATIENT_NAME_PREFIX}</prefix>
						<given>Given</given>
						<middle>MiddleName</middle>
						<family>FamilyName</family>
						<suffix>Suffix</suffix>
						<title>Title</title>
					</name>
				</patient>
				<dateCreated>
					<literal>20111231170000-0700</literal>
				</dateCreated>
				<claimNumber>
					<root>${CLAIM_NUMBER}</root>
				</claimNumber>
				<documentType>${DOCUMENT_TYPE_2}</documentType>
				<initiatingSystem>SOAP UI</initiatingSystem>
				<documentIdentifier>
					<identity>${DOCUMENTIDENTIFIER_IDENTITY2}</identity>
					<namespaceId>402</namespaceId>
					<universalId>UID_13359111174322</universalId>
					<universalIdType>universalIdType</universalIdType>
				</documentIdentifier>
				<facilityIdentifier>
					<identity>${FACILITY_IDENTITY}</identity>
					<name>${FACILITY_NAME}</name>
					<assigningAuthority>${FACILITY_ASSIGNING_AUTHORITY}</assigningAuthority>
				</facilityIdentifier>
				<approvedFlag>${STATUS}</approvedFlag>
				<approvedBy>
					<comment>Approved By Comment</comment>
					<time>
						<literal>20120501162517-0600</literal>
					</time>
					<practitioner>
						<identifier>
							<identity>test_AUTHORID_1003</identity>
							<assigningFacility>402</assigningFacility>
							<assigningAuthority>USVHA</assigningAuthority>
						</identifier>
						<idSourceTable>IdSourceTable</idSourceTable>
						<name>
							<prefix>Prefix</prefix>
							<given>Given</given>
							<middle>MiddleName</middle>
							<family>FamilyName</family>
							<suffix>Suffix</suffix>
							<title>Title</title>
						</name>
					</practitioner>
				</approvedBy>
				<author>
					<comment>Author Comment</comment>
					<time>
						<literal>20120501162517-0600</literal>
					</time>
					<practitioner>
						<identifier>
							<identity>test_AUTHORID_1003</identity>
							<assigningFacility>402</assigningFacility>
							<assigningAuthority>USVHA</assigningAuthority>
						</identifier>
						<idSourceTable>IdSourceTable</idSourceTable>
						<name>
							<prefix>Prefix</prefix>
							<given>Given</given>
							<middle>MiddleName</middle>
							<family>FamilyName</family>
							<suffix>Suffix</suffix>
							<title>Title</title>
						</name>
					</practitioner>
				</author>
				<detailXML><gov.va.agentorange.fasttrack.model.dbq.ihd.IschemicHeartDisease>  <id>7553</id>  <version>0</version>  <dateCreated class="sql-timestamp">2012-01-10 09:45:51.397</dateCreated>  <dateModified class="sql-timestamp">2012-01-10 09:45:51.397</dateModified>  <formType>FORM_TYPE_DBQ_IHD</formType>  <vetSsn>${VET_SSN1}</vetSsn>  <documentStatusType>COMPLETE</documentStatusType>  <documentChannelType>ONLINE</documentChannelType>  <formFileNetStatus>    <id>5760</id>    <version>1</version>    <dateCreated class="sql-timestamp">2012-01-10 09:45:51.437</dateCreated>    <dateModified>2012-01-10 09:45:51.507 EST</dateModified>    <formFnStatusType>PROCESSOR_PROCESSING</formFnStatusType>    <formEntity class="gov.va.agentorange.fasttrack.model.dbq.ihd.IschemicHeartDisease" reference="../.."/>  </formFileNetStatus>  <webFormType>IHD_DBQ</webFormType>  <veteranFirstName>Test</veteranFirstName>  <veteranLastName>Test</veteranLastName>  <physicianFirstName>Dr</physicianFirstName>  <physicianLastName>Test</physicianLastName>  <medicalLicenseNumber>12</medicalLicenseNumber>  <country>US</country>  <addressLine1>Test</addressLine1>  <addressLine2></addressLine2>  <addressLine3></addressLine3>  <city>Test</city>  <state>DELAWARE</state>  <zip>12345</zip>  <physicianPhoneNumber>1231221312</physicianPhoneNumber>  <privacyActAck>true</privacyActAck>  <physicianSignature>true</physicianSignature>  <impactsAbilityToWork>false</impactsAbilityToWork>  <remarks></remarks>  <dateSigned class="sql-timestamp">2012-01-10 09:45:51.397</dateSigned>  <diagnoses class="org.hibernate.collection.PersistentBag">    <initialized>true</initialized>    <owner class="gov.va.agentorange.fasttrack.model.dbq.ihd.IschemicHeartDisease" reference="../.."/>    <cachedSize>-1</cachedSize>    <role>gov.va.agentorange.fasttrack.model.dbq.DbqFormEntity.diagnoses</role>    <key class="long">7553</key>    <dirty>false</dirty>    <storedSnapshot class="list"/>    <bag/>  </diagnoses>  <medications class="org.hibernate.collection.PersistentBag">    <initialized>true</initialized>    <owner class="gov.va.agentorange.fasttrack.model.dbq.ihd.IschemicHeartDisease" reference="../.."/>    <cachedSize>-1</cachedSize>    <role>gov.va.agentorange.fasttrack.model.dbq.DbqFormEntity.medications</role>    <key class="long">7553</key>    <dirty>false</dirty>    <storedSnapshot class="list"/>    <bag/>  </medications>  <diagnosticTests class="org.hibernate.collection.PersistentBag">    <initialized>true</initialized>    <owner class="gov.va.agentorange.fasttrack.model.dbq.ihd.IschemicHeartDisease" reference="../.."/>    <cachedSize>-1</cachedSize>    <role>gov.va.agentorange.fasttrack.model.dbq.DbqFormEntity.diagnosticTests</role>    <key class="long">7553</key>    <dirty>false</dirty>    <storedSnapshot class="list"/>    <bag/>  </diagnosticTests>  <hasIschemicHeartDisease>true</hasIschemicHeartDisease>  <takesContinuousMedication>false</takesContinuousMedication>  <hasPercutaneousCoronaryIntervention>false</hasPercutaneousCoronaryIntervention>  <hasMyocardialInfarction>false</hasMyocardialInfarction>  <hasCoronaryBypassSurgery>false</hasCoronaryBypassSurgery>  <hasHeartTransplant>false</hasHeartTransplant>  <hasImplantedCardiacPacemaker>false</hasImplantedCardiacPacemaker>  <hasImplantedAicd>false</hasImplantedAicd>  <doesVeteranHaveCHF>false</doesVeteranHaveCHF>  <hasExerciseTestBeenConducted>false</hasExerciseTestBeenConducted>  <metsLevel>metsLevel13</metsLevel>  <hasDyspnea>false</hasDyspnea>  <hasFatigue>false</hasFatigue>  <hasAngina>false</hasAngina>  <hasDizziness>false</hasDizziness>  <hasSyncope>true</hasSyncope>  <isEvidenceOfHypertrophyOrDil>false</isEvidenceOfHypertrophyOrDil>  <hasEkg>false</hasEkg>  <hasChestXRay>false</hasChestXRay>  <hasEchocardiogram>false</hasEchocardiogram>  <hasOtherTest>false</hasOtherTest>  <hasLVEF>false</hasLVEF></gov.va.agentorange.fasttrack.model.dbq.ihd.IschemicHeartDisease></detailXML>
			</questionnaireResult>
		</questionnaireResults>
	</patient>
</clinicaldata:ClinicalData>
]]></con:request><con:assertion type="XPath Match" name="Matches Request ID"><con:configuration><path>//requestId</path><content>${REQUEST_ID2}</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>true</ignoreNamspaceDifferences><ignoreComments>false</ignoreComments></con:configuration></con:assertion><con:assertion type="XPath Match" name="Matches Docuent ID"><con:configuration><path>//identifier/documentIdentifier/identity</path><content>${DOCUMENTIDENTIFIER_IDENTITY2}</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>true</ignoreNamspaceDifferences><ignoreComments>false</ignoreComments></con:configuration></con:assertion><con:assertion type="XPath Match" name="Response Includes Record Identifier"><con:configuration><path>count(//identifiers/identifier)</path><content>1</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>true</ignoreNamspaceDifferences><ignoreComments>false</ignoreComments></con:configuration></con:assertion><con:credentials><con:username xsi:nil="true"/><con:password xsi:nil="true"/><con:domain xsi:nil="true"/><con:authType>Global HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT" messageSelector="" TimeToLive=""/><con:jmsPropertyConfig><con:jmsProperties name="TEMPLATE_ID" value="DBQCreate2"/><con:jmsProperties name="REQUEST_ID" value="${REQUEST_ID2}"/></con:jmsPropertyConfig><con:wsaConfig mustUnderstand="NONE" version="200508"/><con:wsrmConfig version="1.2"/></con:request></con:config></con:testStep><con:testStep type="request" name="DBQ Create Data - Valid3"><con:settings/><con:config xsi:type="con:RequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>ClinicalDataServiceSynchronousInterfaceHttpBinding</con:interface><con:operation>appendClinicalData</con:operation><con:request name="DBQ Create Data - Valid3" outgoingWss="" incomingWss=""><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://${CDS_DBQ_JMS_ENDPOINT}</con:endpoint><con:request><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
<clinicaldata:ClinicalData xmlns:clinicaldata="Clinicaldata">
	<templateId>DBQCreate2</templateId>
	<clientName>SOAP UI</clientName>
	<clientRequestInitiationTime>${CLIENT_REQUEST_INIT_TIME3}</clientRequestInitiationTime>
	<patient>
		<questionnaireResults>
			<questionnaireResult>
				<patient>
					<identifier>
						<identity>${PATIENT_ID}</identity>
						<assigningFacility>200HD</assigningFacility>
						<assigningAuthority>USVHA</assigningAuthority>
					</identifier>
					<name>
						<prefix>${PATIENT_NAME_PREFIX}</prefix>
						<given>Given</given>
						<middle>MiddleName</middle>
						<family>FamilyName</family>
						<suffix>Suffix</suffix>
						<title>Title</title>
					</name>
				</patient>
				<dateCreated>
					<literal>20111231170000-0700</literal>
				</dateCreated>
				<claimNumber>
					<root>${CLAIM_NUMBER}</root>
				</claimNumber>
				<documentType>${DOCUMENT_TYPE}</documentType>
				<initiatingSystem>SOAP UI</initiatingSystem>
				<documentIdentifier>
					<identity>${DOCUMENTIDENTIFIER_IDENTITY3}</identity>
					<namespaceId>402</namespaceId>
					<universalId>UID_13359111174322</universalId>
					<universalIdType>universalIdType</universalIdType>
				</documentIdentifier>
				<facilityIdentifier>
					<identity>${FACILITY_IDENTITY}</identity>
					<name>${FACILITY_NAME}</name>
					<assigningAuthority>${FACILITY_ASSIGNING_AUTHORITY}</assigningAuthority>
				</facilityIdentifier>
				<approvedFlag>${STATUS}-T</approvedFlag>
				<approvedBy>
					<comment>Approved By Comment</comment>
					<time>
						<literal>20120501162517-0600</literal>
					</time>
					<practitioner>
						<identifier>
							<identity>test_AUTHORID_1003</identity>
							<assigningFacility>402</assigningFacility>
							<assigningAuthority>USVHA</assigningAuthority>
						</identifier>
						<idSourceTable>IdSourceTable</idSourceTable>
						<name>
							<prefix>Prefix</prefix>
							<given>Given</given>
							<middle>MiddleName</middle>
							<family>FamilyName</family>
							<suffix>Suffix</suffix>
							<title>Title</title>
						</name>
					</practitioner>
				</approvedBy>
				<author>
					<comment>Author Comment</comment>
					<time>
						<literal>20120501162517-0600</literal>
					</time>
					<practitioner>
						<identifier>
							<identity>test_AUTHORID_1003</identity>
							<assigningFacility>402</assigningFacility>
							<assigningAuthority>USVHA</assigningAuthority>
						</identifier>
						<idSourceTable>IdSourceTable</idSourceTable>
						<name>
							<prefix>Prefix</prefix>
							<given>Given</given>
							<middle>MiddleName</middle>
							<family>FamilyName</family>
							<suffix>Suffix</suffix>
							<title>Title</title>
						</name>
					</practitioner>
				</author>
				<detailXML><gov.va.agentorange.fasttrack.model.dbq.ihd.IschemicHeartDisease>  <id>7553</id>  <version>0</version>  <dateCreated class="sql-timestamp">2012-01-10 09:45:51.397</dateCreated>  <dateModified class="sql-timestamp">2012-01-10 09:45:51.397</dateModified>  <formType>FORM_TYPE_DBQ_IHD</formType>  <vetSsn>${VET_SSN2}</vetSsn>  <documentStatusType>COMPLETE</documentStatusType>  <documentChannelType>ONLINE</documentChannelType>  <formFileNetStatus>    <id>5760</id>    <version>1</version>    <dateCreated class="sql-timestamp">2012-01-10 09:45:51.437</dateCreated>    <dateModified>2012-01-10 09:45:51.507 EST</dateModified>    <formFnStatusType>PROCESSOR_PROCESSING</formFnStatusType>    <formEntity class="gov.va.agentorange.fasttrack.model.dbq.ihd.IschemicHeartDisease" reference="../.."/>  </formFileNetStatus>  <webFormType>IHD_DBQ</webFormType>  <veteranFirstName>Test</veteranFirstName>  <veteranLastName>Test</veteranLastName>  <physicianFirstName>Dr</physicianFirstName>  <physicianLastName>Test</physicianLastName>  <medicalLicenseNumber>12</medicalLicenseNumber>  <country>US</country>  <addressLine1>Test</addressLine1>  <addressLine2></addressLine2>  <addressLine3></addressLine3>  <city>Test</city>  <state>DELAWARE</state>  <zip>12345</zip>  <physicianPhoneNumber>1231221312</physicianPhoneNumber>  <privacyActAck>true</privacyActAck>  <physicianSignature>true</physicianSignature>  <impactsAbilityToWork>false</impactsAbilityToWork>  <remarks></remarks>  <dateSigned class="sql-timestamp">2012-01-10 09:45:51.397</dateSigned>  <diagnoses class="org.hibernate.collection.PersistentBag">    <initialized>true</initialized>    <owner class="gov.va.agentorange.fasttrack.model.dbq.ihd.IschemicHeartDisease" reference="../.."/>    <cachedSize>-1</cachedSize>    <role>gov.va.agentorange.fasttrack.model.dbq.DbqFormEntity.diagnoses</role>    <key class="long">7553</key>    <dirty>false</dirty>    <storedSnapshot class="list"/>    <bag/>  </diagnoses>  <medications class="org.hibernate.collection.PersistentBag">    <initialized>true</initialized>    <owner class="gov.va.agentorange.fasttrack.model.dbq.ihd.IschemicHeartDisease" reference="../.."/>    <cachedSize>-1</cachedSize>    <role>gov.va.agentorange.fasttrack.model.dbq.DbqFormEntity.medications</role>    <key class="long">7553</key>    <dirty>false</dirty>    <storedSnapshot class="list"/>    <bag/>  </medications>  <diagnosticTests class="org.hibernate.collection.PersistentBag">    <initialized>true</initialized>    <owner class="gov.va.agentorange.fasttrack.model.dbq.ihd.IschemicHeartDisease" reference="../.."/>    <cachedSize>-1</cachedSize>    <role>gov.va.agentorange.fasttrack.model.dbq.DbqFormEntity.diagnosticTests</role>    <key class="long">7553</key>    <dirty>false</dirty>    <storedSnapshot class="list"/>    <bag/>  </diagnosticTests>  <hasIschemicHeartDisease>true</hasIschemicHeartDisease>  <takesContinuousMedication>false</takesContinuousMedication>  <hasPercutaneousCoronaryIntervention>false</hasPercutaneousCoronaryIntervention>  <hasMyocardialInfarction>false</hasMyocardialInfarction>  <hasCoronaryBypassSurgery>false</hasCoronaryBypassSurgery>  <hasHeartTransplant>false</hasHeartTransplant>  <hasImplantedCardiacPacemaker>false</hasImplantedCardiacPacemaker>  <hasImplantedAicd>false</hasImplantedAicd>  <doesVeteranHaveCHF>false</doesVeteranHaveCHF>  <hasExerciseTestBeenConducted>false</hasExerciseTestBeenConducted>  <metsLevel>metsLevel13</metsLevel>  <hasDyspnea>false</hasDyspnea>  <hasFatigue>false</hasFatigue>  <hasAngina>false</hasAngina>  <hasDizziness>false</hasDizziness>  <hasSyncope>true</hasSyncope>  <isEvidenceOfHypertrophyOrDil>false</isEvidenceOfHypertrophyOrDil>  <hasEkg>false</hasEkg>  <hasChestXRay>false</hasChestXRay>  <hasEchocardiogram>false</hasEchocardiogram>  <hasOtherTest>false</hasOtherTest>  <hasLVEF>false</hasLVEF></gov.va.agentorange.fasttrack.model.dbq.ihd.IschemicHeartDisease></detailXML>
			</questionnaireResult>
		</questionnaireResults>
	</patient>
</clinicaldata:ClinicalData>
]]></con:request><con:assertion type="XPath Match" name="Matches Request ID"><con:configuration><path>//requestId</path><content>${REQUEST_ID3}</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>true</ignoreNamspaceDifferences><ignoreComments>false</ignoreComments></con:configuration></con:assertion><con:assertion type="XPath Match" name="Matches Docuent ID"><con:configuration><path>//identifier/documentIdentifier/identity</path><content>${DOCUMENTIDENTIFIER_IDENTITY3}</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>true</ignoreNamspaceDifferences><ignoreComments>false</ignoreComments></con:configuration></con:assertion><con:assertion type="XPath Match" name="Response Includes Record Identifier"><con:configuration><path>count(//identifiers/identifier)</path><content>1</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>true</ignoreNamspaceDifferences><ignoreComments>false</ignoreComments></con:configuration></con:assertion><con:credentials><con:username xsi:nil="true"/><con:password xsi:nil="true"/><con:domain xsi:nil="true"/><con:authType>Global HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT" messageSelector="" TimeToLive=""/><con:jmsPropertyConfig><con:jmsProperties name="TEMPLATE_ID" value="DBQCreate2"/><con:jmsProperties name="REQUEST_ID" value="${REQUEST_ID3}"/></con:jmsPropertyConfig><con:wsaConfig mustUnderstand="NONE" version="200508"/><con:wsrmConfig version="1.2"/></con:request></con:config></con:testStep><con:testStep type="request" name="DBQ List Read By Claim Number and Status"><con:settings/><con:config xsi:type="con:RequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>ClinicalDataServiceSynchronousInterfaceHttpBinding</con:interface><con:operation>readClinicalData1</con:operation><con:request name="DBQ List Read By Claim Number and Status"><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://${CDS_SERVICE_SOAP_ENDPOINT}</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:cli="http://client.cds.URL       ">
   <soapenv:Header/>
   <soapenv:Body>
      <cli:readClinicalData1>
         <in0>DBQListRead1</in0>
         <in1><![CDATA[
<?xml version="1.0" encoding="UTF-8"?>
<filter:filter vhimVersion="Vhim_4_00" xsi:schemaLocation="Filter DBQ_LIST_DATA_FILTER.xsd" xmlns:filter="Filter" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
	<filterId>DBQ_LIST_DATA_FILTER</filterId>
	<clientName>SOAP UI</clientName>
	<clientRequestInitiationTime>${CLIENT_REQUEST_INIT_TIME}</clientRequestInitiationTime>
	<entryPointFilter queryName="ByPractitioner" isPatientCentric="false">
		<domainEntryPoint>QuestionnaireResult</domainEntryPoint>
		<otherQueryParameters>
			<approvedFlag>${STATUS}</approvedFlag>
			<claimNumber>${CLAIM_NUMBER}</claimNumber>
		</otherQueryParameters>
	</entryPointFilter>
</filter:filter>
         ]]]]>><![CDATA[</in1>
         <in2>DBQ_LIST_DATA_FILTER</in2>
         <in3>${FILTER_REQUEST_ID}</in3>
      </cli:readClinicalData1>
   </soapenv:Body>
</soapenv:Envelope>]]></con:request><con:assertion type="SOAP Response"/><con:assertion type="Simple NotContains" name="Not Contains &lt;errorSection>"><con:configuration><token>&lt;errorSection></token><ignoreCase>false</ignoreCase><useRegEx>false</useRegEx></con:configuration></con:assertion><con:credentials><con:authType>Global HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:wsaConfig mustUnderstand="NONE" version="200508"/><con:wsrmConfig version="1.2"/></con:request></con:config></con:testStep><con:testStep type="transfer" name="Extract CDATA Section"><con:settings/><con:config xsi:type="con:PropertyTransfersStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:transfers setNullOnMissingSource="true" transferTextContent="true" failOnError="true" ignoreEmpty="false" transferToAll="false" useXQuery="false" entitize="false" transferChildNodes="false"><con:name>ExtractCDATASection</con:name><con:sourceType>Response</con:sourceType><con:sourceStep>DBQ List Read By Claim Number and Status</con:sourceStep><con:sourcePath>//out</con:sourcePath><con:targetType>CDataSection</con:targetType><con:targetStep>#TestCase#</con:targetStep></con:transfers></con:config></con:testStep><con:testStep type="groovy" name="Validate Records Returned by Claim Number"><con:settings/><con:config><script>import com.eviware.soapui.support.XmlHolder 

def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context );
def content = testRunner.testCase.getPropertyValue( "CDataSection" ); 
content = content.replaceAll( "&lt;!\\[CDATA\\[", "" ) 
content = content.replaceAll( "]]&gt;", "" ) 

def holder = groovyUtils.getXmlHolder( content ) ;
def recordCount = holder["count(//recordIdentifier)"]
assert recordCount == "2"</script></con:config></con:testStep><con:testStep type="request" name="DBQ List Read By Claim Number and Date Range"><con:settings/><con:config xsi:type="con:RequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>ClinicalDataServiceSynchronousInterfaceHttpBinding</con:interface><con:operation>readClinicalData1</con:operation><con:request name="DBQ List Read By Claim Number and Date Range"><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://${CDS_SERVICE_SOAP_ENDPOINT}</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:cli="http://client.cds.URL       ">
   <soapenv:Header/>
   <soapenv:Body>
      <cli:readClinicalData1>
         <in0>DBQListRead1</in0>
         <in1><![CDATA[
<?xml version="1.0" encoding="UTF-8"?>
<filter:filter vhimVersion="Vhim_4_00" xsi:schemaLocation="Filter DBQ_LIST_DATA_FILTER.xsd" xmlns:filter="Filter" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
	<filterId>DBQ_LIST_DATA_FILTER</filterId>
	<clientName>SOAP UI</clientName>
	<clientRequestInitiationTime>${CLIENT_REQUEST_INIT_TIME}</clientRequestInitiationTime>
	<entryPointFilter queryName="ByPractitioner" isPatientCentric="false">
		<domainEntryPoint>QuestionnaireResult</domainEntryPoint>
		<startDate>2011-06-01-05:00</startDate>
		<endDate>2012-06-01-05:00</endDate>
		<otherQueryParameters>
			<approvedFlag>${STATUS}</approvedFlag>
			<claimNumber>${CLAIM_NUMBER}</claimNumber>
		</otherQueryParameters>
	</entryPointFilter>
</filter:filter>
         ]]]]>><![CDATA[</in1>
         <in2>DBQ_LIST_DATA_FILTER</in2>
         <in3>${FILTER_REQUEST_ID}</in3>
      </cli:readClinicalData1>
   </soapenv:Body>
</soapenv:Envelope>]]></con:request><con:assertion type="SOAP Response"/><con:assertion type="Simple NotContains" name="Not Contains &lt;errorSection>"><con:configuration><token>&lt;errorSection></token><ignoreCase>false</ignoreCase><useRegEx>false</useRegEx></con:configuration></con:assertion><con:credentials><con:authType>Global HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:wsaConfig mustUnderstand="NONE" version="200508"/><con:wsrmConfig version="1.2"/></con:request></con:config></con:testStep><con:testStep type="transfer" name="Extract CDATA Section 2"><con:settings/><con:config xsi:type="con:PropertyTransfersStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:transfers setNullOnMissingSource="true" transferTextContent="true" failOnError="true" ignoreEmpty="false" transferToAll="false" useXQuery="false" entitize="false" transferChildNodes="false"><con:name>ExtractCDATASection</con:name><con:sourceType>Response</con:sourceType><con:sourceStep>DBQ List Read By Claim Number and Date Range</con:sourceStep><con:sourcePath>//out</con:sourcePath><con:targetType>CDataSection</con:targetType><con:targetStep>#TestCase#</con:targetStep></con:transfers></con:config></con:testStep><con:testStep type="groovy" name="Check Claim Number in Date Range Records Returned"><con:settings/><con:config><script>import com.eviware.soapui.support.XmlHolder 

def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context );
def content = testRunner.testCase.getPropertyValue( "CDataSection" ); 
content = content.replaceAll( "&lt;!\\[CDATA\\[", "" ) 
content = content.replaceAll( "]]&gt;", "" ) 

def holder = groovyUtils.getXmlHolder( content ) ;
def recordCount = holder["count(//recordIdentifier)"]
assert recordCount == "1"</script></con:config></con:testStep><con:testStep type="request" name="DBQ List Read By Claim Number"><con:settings/><con:config xsi:type="con:RequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>ClinicalDataServiceSynchronousInterfaceHttpBinding</con:interface><con:operation>readClinicalData1</con:operation><con:request name="DBQ List Read By Claim Number"><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://${CDS_SERVICE_SOAP_ENDPOINT}</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:cli="http://client.cds.URL       ">
   <soapenv:Header/>
   <soapenv:Body>
      <cli:readClinicalData1>
         <in0>DBQListRead1</in0>
         <in1><![CDATA[
<?xml version="1.0" encoding="UTF-8"?>
<filter:filter vhimVersion="Vhim_4_00" xsi:schemaLocation="Filter DBQ_LIST_DATA_FILTER.xsd" xmlns:filter="Filter" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
	<filterId>DBQ_LIST_DATA_FILTER</filterId>
	<clientName>SOAP UI</clientName>
	<clientRequestInitiationTime>${CLIENT_REQUEST_INIT_TIME}</clientRequestInitiationTime>
	<entryPointFilter queryName="ByPractitioner" isPatientCentric="false">
		<domainEntryPoint>QuestionnaireResult</domainEntryPoint>
		<otherQueryParameters>
			<claimNumber>${CLAIM_NUMBER}</claimNumber>
		</otherQueryParameters>
	</entryPointFilter>
</filter:filter>
         ]]]]>><![CDATA[</in1>
         <in2>DBQ_LIST_DATA_FILTER</in2>
         <in3>${FILTER_REQUEST_ID}</in3>
      </cli:readClinicalData1>
   </soapenv:Body>
</soapenv:Envelope>]]></con:request><con:assertion type="SOAP Response"/><con:assertion type="Simple NotContains" name="Not Contains &lt;errorSection>"><con:configuration><token>&lt;errorSection></token><ignoreCase>false</ignoreCase><useRegEx>false</useRegEx></con:configuration></con:assertion><con:credentials><con:authType>Global HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:wsaConfig mustUnderstand="NONE" version="200508"/><con:wsrmConfig version="1.2"/></con:request></con:config></con:testStep><con:testStep type="transfer" name="Extract CDATA Section 3"><con:settings/><con:config xsi:type="con:PropertyTransfersStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:transfers setNullOnMissingSource="true" transferTextContent="true" failOnError="true" ignoreEmpty="false" transferToAll="false" useXQuery="false" entitize="false" transferChildNodes="false"><con:name>ExtractCDATASection</con:name><con:sourceType>Response</con:sourceType><con:sourceStep>DBQ List Read By Claim Number</con:sourceStep><con:sourcePath>//out</con:sourcePath><con:targetType>CDataSection</con:targetType><con:targetStep>#TestCase#</con:targetStep></con:transfers></con:config></con:testStep><con:testStep type="groovy" name="Check Claim Number Returned"><con:settings/><con:config><script>import com.eviware.soapui.support.XmlHolder 

def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context );
def content = testRunner.testCase.getPropertyValue( "CDataSection" ); 
content = content.replaceAll( "&lt;!\\[CDATA\\[", "" ) 
content = content.replaceAll( "]]&gt;", "" ) 

def holder = groovyUtils.getXmlHolder( content ) ;
def recordCount = holder["count(//recordIdentifier)"]
assert recordCount == "3"</script></con:config></con:testStep><con:properties><con:property><con:name>CDataSection</con:name><con:value><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
<clinicaldata:ClinicalData xmlns:clinicaldata="Clinicaldata"><templateId>DBQListRead1</templateId><requestId>9e18db38-0ee9-4b20-b700-f88f5bf6e161</requestId><patients><patient><questionnaireResults><questionnaireResult><patient><identifier><identity>01775fab-7270-4ca9-9f63-6b481b0691df</identity><assigningFacility>200HD</assigningFacility><assigningAuthority>USVHA</assigningAuthority></identifier><name><given>Given</given><middle>MiddleName</middle><family>FamilyName</family><suffix>Suffix</suffix><title>Title</title></name></patient><documentType>29d91f20-cb4a-4b57-9ae8-2bd563482346_2</documentType><recordIdentifier><identity>822</identity></recordIdentifier><documentIdentifier><identity>0908bab8-6ba5-4d93-b780-7a0885cfadfb</identity><namespaceId>402</namespaceId><universalId>UID_13359111174322</universalId><universalIdType>universalIdType</universalIdType></documentIdentifier><initiatingSystem>SOAP UI</initiatingSystem><facilityIdentifier><identity>b0989576-cdc4-4b02-982f-93e40af35d13</identity><name>OrganizationName</name><assigningAuthority>AssigningAuthNamespaceId</assigningAuthority></facilityIdentifier><approvedFlag>d94b7767-4379-4b26-bee4-4c96b2c9ca5f</approvedFlag><author><comment>Author Comment</comment><time><literal>20120501162517-0600</literal></time><practitioner><identifier><identity>test_AUTHORID_1003</identity><assigningFacility>402</assigningFacility><assigningAuthority>USVHA</assigningAuthority></identifier><name><prefix>Prefix</prefix><given>Given</given><middle>MiddleName</middle><family>FamilyName</family><suffix>Suffix</suffix><title>Title</title></name></practitioner></author><approvedBy><comment>Approved By Comment</comment><time><literal>20120501162517-0600</literal></time><practitioner><identifier><identity>test_AUTHORID_1003</identity><assigningFacility>402</assigningFacility><assigningAuthority>USVHA</assigningAuthority></identifier><name><prefix>Prefix</prefix><given>Given</given><middle>MiddleName</middle><family>FamilyName</family><suffix>Suffix</suffix><title>Title</title></name></practitioner></approvedBy><dateCreated><literal>20111231170000-0700</literal></dateCreated><claimNumber><root>40948fa1-a6c5-4b42-9d31-f508456f2f29</root></claimNumber><recordVersion>3</recordVersion></questionnaireResult><questionnaireResult><patient><identifier><identity>01775fab-7270-4ca9-9f63-6b481b0691df</identity><assigningFacility>200HD</assigningFacility><assigningAuthority>USVHA</assigningAuthority></identifier><name><given>Given</given><middle>MiddleName</middle><family>FamilyName</family><suffix>Suffix</suffix><title>Title</title></name></patient><documentType>29d91f20-cb4a-4b57-9ae8-2bd563482346</documentType><recordIdentifier><identity>823</identity></recordIdentifier><documentIdentifier><identity>73e79a19-23ce-4276-b441-c82fea0737ed</identity><namespaceId>402</namespaceId><universalId>UID_13359111174322</universalId><universalIdType>universalIdType</universalIdType></documentIdentifier><initiatingSystem>SOAP UI</initiatingSystem><facilityIdentifier><identity>b0989576-cdc4-4b02-982f-93e40af35d13</identity><name>OrganizationName</name><assigningAuthority>AssigningAuthNamespaceId</assigningAuthority></facilityIdentifier><approvedFlag>d94b7767-4379-4b26-bee4-4c96b2c9ca5f-T</approvedFlag><author><comment>Author Comment</comment><time><literal>20120501162517-0600</literal></time><practitioner><identifier><identity>test_AUTHORID_1003</identity><assigningFacility>402</assigningFacility><assigningAuthority>USVHA</assigningAuthority></identifier><name><prefix>Prefix</prefix><given>Given</given><middle>MiddleName</middle><family>FamilyName</family><suffix>Suffix</suffix><title>Title</title></name></practitioner></author><approvedBy><comment>Approved By Comment</comment><time><literal>20120501162517-0600</literal></time><practitioner><identifier><identity>test_AUTHORID_1003</identity><assigningFacility>402</assigningFacility><assigningAuthority>USVHA</assigningAuthority></identifier><name><prefix>Prefix</prefix><given>Given</given><middle>MiddleName</middle><family>FamilyName</family><suffix>Suffix</suffix><title>Title</title></name></practitioner></approvedBy><dateCreated><literal>20111231170000-0700</literal></dateCreated><claimNumber><root>40948fa1-a6c5-4b42-9d31-f508456f2f29</root></claimNumber><recordVersion>3</recordVersion></questionnaireResult><questionnaireResult><patient><identifier><identity>01775fab-7270-4ca9-9f63-6b481b0691df</identity><assigningFacility>200HD</assigningFacility><assigningAuthority>USVHA</assigningAuthority></identifier><name><given>Given</given><middle>MiddleName</middle><family>FamilyName</family><suffix>Suffix</suffix><title>Title</title></name></patient><documentType>29d91f20-cb4a-4b57-9ae8-2bd563482346</documentType><recordIdentifier><identity>821</identity></recordIdentifier><documentIdentifier><identity>6e275abf-dc37-43fe-9be9-7fb45e3d5b7a</identity><namespaceId>402</namespaceId><universalId>UID_13359111174322</universalId><universalIdType>universalIdType</universalIdType></documentIdentifier><initiatingSystem>SOAP UI</initiatingSystem><facilityIdentifier><identity>b0989576-cdc4-4b02-982f-93e40af35d13</identity><name>OrganizationName</name><assigningAuthority>AssigningAuthNamespaceId</assigningAuthority></facilityIdentifier><approvedFlag>d94b7767-4379-4b26-bee4-4c96b2c9ca5f</approvedFlag><author><comment>Author Comment</comment><time><literal>20120501162517-0600</literal></time><practitioner><identifier><identity>test_AUTHORID_1003</identity><assigningFacility>402</assigningFacility><assigningAuthority>USVHA</assigningAuthority></identifier><name><prefix>Prefix</prefix><given>Given</given><middle>MiddleName</middle><family>FamilyName</family><suffix>Suffix</suffix><title>Title</title></name></practitioner></author><approvedBy><comment>Approved By Comment</comment><time><literal>20120501162517-0600</literal></time><practitioner><identifier><identity>test_AUTHORID_1003</identity><assigningFacility>402</assigningFacility><assigningAuthority>USVHA</assigningAuthority></identifier><name><prefix>Prefix</prefix><given>Given</given><middle>MiddleName</middle><family>FamilyName</family><suffix>Suffix</suffix><title>Title</title></name></practitioner></approvedBy><dateCreated><literal>19691231170000-0700</literal></dateCreated><claimNumber><root>40948fa1-a6c5-4b42-9d31-f508456f2f29</root></claimNumber><recordVersion>3</recordVersion></questionnaireResult><pageInformation><pageFirstRecord>1</pageFirstRecord><pageLastRecord>3</pageLastRecord></pageInformation><totalResultCount>3</totalResultCount></questionnaireResults></patient></patients></clinicaldata:ClinicalData>]]></con:value></con:property></con:properties></con:testCase><con:properties/></con:testSuite><con:testSuite name="HDR 3.4 Deprecated ICN Test Suite" disabled="true"><con:settings/><con:runType>SEQUENTIAL</con:runType><con:testCase failOnError="true" failTestCaseOnErrors="true" keepSession="false" maxResults="0" name="HDR 3.4 DBQ Read Deprecated ICN Test Case" searchProperties="true" id="b4592ec0-cf44-41e1-b621-bcb7a26ce95a"><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.PATIENT_ID = UUID.randomUUID().toString();

context.CLIENT_REQUEST_INIT_TIME = DateFormatUtils.ISO_DATETIME_TIME_ZONE_FORMAT.format( new Date() );
context.FILTER_REQUEST_ID = UUID.randomUUID().toString();
context.REQUEST_ID  = UUID.randomUUID().toString(); 
context.DOCUMENTIDENTIFIER_IDENTITY = UUID.randomUUID().toString(); 
context.CREATED_DATE1 = '19991231170000-0700';
context.DOCUMENT_TYPE = 'Ischemic_Heart_Disease';


context.CLIENT_REQUEST_INIT_TIME2 = DateFormatUtils.ISO_DATETIME_TIME_ZONE_FORMAT.format( new Date() );
context.FILTER_REQUEST_ID2 = UUID.randomUUID().toString();
context.REQUEST_ID2  = UUID.randomUUID().toString(); 
context.DOCUMENTIDENTIFIER_IDENTITY2 = UUID.randomUUID().toString(); 
context.CREATED_DATE2 = '20011231170000-0700';
context.DOCUMENT_TYPE2 = 'Ischemic_Heart_Disease';

context.CLIENT_REQUEST_INIT_TIME3 = DateFormatUtils.ISO_DATETIME_TIME_ZONE_FORMAT.format( new Date() );
context.REQUEST_ID3  = UUID.randomUUID().toString(); 
context.DOCUMENTIDENTIFIER_IDENTITY3 = UUID.randomUUID().toString(); 
context.CREATED_DATE3 = '20051231170000-0700';
context.DOCUMENT_TYPE3 = 'Hematologic_and_Lymphatic_Conditions';

context.CLIENT_REQUEST_INIT_TIME4 = DateFormatUtils.ISO_DATETIME_TIME_ZONE_FORMAT.format( new Date() );
context.REQUEST_ID4  = UUID.randomUUID().toString(); 
context.DOCUMENTIDENTIFIER_IDENTITY4 = UUID.randomUUID().toString(); 
context.CREATED_DATE4 = '20101231170000-0700';
context.DOCUMENT_TYPE4 = 'Parkinson\'s_Disease';
context.PATIENT_ID4 = UUID.randomUUID().toString();


context.FILTER_REQUEST_ID1 = UUID.randomUUID().toString();
context.FILTER_REQUEST_ID2 = UUID.randomUUID().toString();
context.FILTER_REQUEST_ID3 = UUID.randomUUID().toString();
context.FILTER_REQUEST_ID4 = UUID.randomUUID().toString();
context.FILTER_REQUEST_ID5 = UUID.randomUUID().toString();
context.FILTER_REQUEST_ID6 = UUID.randomUUID().toString();
context.FILTER_REQUEST_ID7 = UUID.randomUUID().toString();
context.FILTER_REQUEST_ID8 = UUID.randomUUID().toString();
context.FILTER_REQUEST_ID9 = UUID.randomUUID().toString();
context.FILTER_REQUEST_ID10 = UUID.randomUUID().toString();
context.FILTER_REQUEST_ID11 = UUID.randomUUID().toString();

context.APPROVED_FLAG = "CHECK_ME";
context.APPROVED_FLAG_2 = "CHECK_ME" + "_2";
</script></con:config></con:testStep><con:testStep type="request" name="DBQ Create with Deprecated ICN"><con:settings/><con:config xsi:type="con:RequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>ClinicalDataServiceSynchronousInterfaceHttpBinding</con:interface><con:operation>appendClinicalData</con:operation><con:request name="DBQ Create with Deprecated ICN" outgoingWss="" incomingWss=""><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://${DP2_DBQ_JMS_ENDPOINT}</con:endpoint><con:request><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
<clinicaldata:ClinicalData xmlns:clinicaldata="Clinicaldata">
	<templateId>DBQCreate2</templateId>
	<clientName>SOAP UI</clientName>
	<clientRequestInitiationTime>${CLIENT_REQUEST_INIT_TIME}</clientRequestInitiationTime>
	<patient>
		<questionnaireResults>
			<questionnaireResult>
				<patient>
					<identifier>
						<identity>1012588657V996707</identity>
						<assigningFacility>200M</assigningFacility>
						<assigningAuthority>USVHA</assigningAuthority>
					</identifier>
					<name>
						<prefix>${PATIENT_NAME_PREFIX}</prefix>
						<given>Given</given>
						<middle>MiddleName</middle>
						<family>FamilyName</family>
						<suffix>Suffix</suffix>
						<title>Title</title>
					</name>
				</patient>
				<dateCreated>
					<literal>${CREATED_DATE1}</literal>
				</dateCreated>
				<documentType>${DOCUMENT_TYPE}</documentType>
				<initiatingSystem>SOAP UI</initiatingSystem>
				<documentIdentifier>
					<identity>${DOCUMENTIDENTIFIER_IDENTITY}</identity>
					<namespaceId>402</namespaceId>
					<universalId>UID_13359111174322</universalId>
					<universalIdType>universalIdType</universalIdType>
				</documentIdentifier>
				<facilityIdentifier>
					<identity>OrganizationId</identity>
					<name>OrganizationName</name>
					<assigningAuthority>AssigningAuthNamespaceId</assigningAuthority>
				</facilityIdentifier>
		          <approvedFlag>${APPROVED_FLAG}</approvedFlag>
				<approvedBy>
					<comment>Approved By Comment</comment>
					<time>
						<literal>20120501162517-0600</literal>
					</time>
					<practitioner>
						<identifier>
							<identity>test_AUTHORID_1003</identity>
							<assigningFacility>402</assigningFacility>
							<assigningAuthority>USVHA</assigningAuthority>
						</identifier>
						<idSourceTable>IdSourceTable</idSourceTable>
						<name>
							<prefix>Prefix</prefix>
							<given>Given</given>
							<middle>MiddleName</middle>
							<family>FamilyName</family>
							<suffix>Suffix</suffix>
							<title>Title</title>
						</name>
					</practitioner>
				</approvedBy>
				<author>
					<comment>Author Comment</comment>
					<time>
						<literal>20120501162517-0600</literal>
					</time>
					<practitioner>
						<identifier>
							<identity>test_AUTHORID_1003</identity>
							<assigningFacility>402</assigningFacility>
							<assigningAuthority>USVHA</assigningAuthority>
						</identifier>
						<idSourceTable>IdSourceTable</idSourceTable>
						<name>
							<prefix>Prefix</prefix>
							<given>Given</given>
							<middle>MiddleName</middle>
							<family>FamilyName</family>
							<suffix>Suffix</suffix>
							<title>Title</title>
						</name>
					</practitioner>
				</author>
				<detailXML><gov.va.agentorange.fasttrack.model.dbq.ihd.IschemicHeartDisease>  <id>7553</id>  <version>0</version>  <dateCreated class="sql-timestamp">2012-01-10 09:45:51.397</dateCreated>  <dateModified class="sql-timestamp">2012-01-10 09:45:51.397</dateModified>  <formType>FORM_TYPE_DBQ_IHD</formType>  <vetSsn>941288701</vetSsn>  <documentStatusType>COMPLETE</documentStatusType>  <documentChannelType>ONLINE</documentChannelType>  <formFileNetStatus>    <id>5760</id>    <version>1</version>    <dateCreated class="sql-timestamp">2012-01-10 09:45:51.437</dateCreated>    <dateModified>2012-01-10 09:45:51.507 EST</dateModified>    <formFnStatusType>PROCESSOR_PROCESSING</formFnStatusType>    <formEntity class="gov.va.agentorange.fasttrack.model.dbq.ihd.IschemicHeartDisease" reference="../.."/>  </formFileNetStatus>  <webFormType>IHD_DBQ</webFormType>  <veteranFirstName>Test</veteranFirstName>  <veteranLastName>Test</veteranLastName>  <physicianFirstName>Dr</physicianFirstName>  <physicianLastName>Test</physicianLastName>  <medicalLicenseNumber>12</medicalLicenseNumber>  <country>US</country>  <addressLine1>Test</addressLine1>  <addressLine2></addressLine2>  <addressLine3></addressLine3>  <city>Test</city>  <state>DELAWARE</state>  <zip>12345</zip>  <physicianPhoneNumber>1231221312</physicianPhoneNumber>  <privacyActAck>true</privacyActAck>  <physicianSignature>true</physicianSignature>  <impactsAbilityToWork>false</impactsAbilityToWork>  <remarks></remarks>  <dateSigned class="sql-timestamp">2012-01-10 09:45:51.397</dateSigned>  <diagnoses class="org.hibernate.collection.PersistentBag">    <initialized>true</initialized>    <owner class="gov.va.agentorange.fasttrack.model.dbq.ihd.IschemicHeartDisease" reference="../.."/>    <cachedSize>-1</cachedSize>    <role>gov.va.agentorange.fasttrack.model.dbq.DbqFormEntity.diagnoses</role>    <key class="long">7553</key>    <dirty>false</dirty>    <storedSnapshot class="list"/>    <bag/>  </diagnoses>  <medications class="org.hibernate.collection.PersistentBag">    <initialized>true</initialized>    <owner class="gov.va.agentorange.fasttrack.model.dbq.ihd.IschemicHeartDisease" reference="../.."/>    <cachedSize>-1</cachedSize>    <role>gov.va.agentorange.fasttrack.model.dbq.DbqFormEntity.medications</role>    <key class="long">7553</key>    <dirty>false</dirty>    <storedSnapshot class="list"/>    <bag/>  </medications>  <diagnosticTests class="org.hibernate.collection.PersistentBag">    <initialized>true</initialized>    <owner class="gov.va.agentorange.fasttrack.model.dbq.ihd.IschemicHeartDisease" reference="../.."/>    <cachedSize>-1</cachedSize>    <role>gov.va.agentorange.fasttrack.model.dbq.DbqFormEntity.diagnosticTests</role>    <key class="long">7553</key>    <dirty>false</dirty>    <storedSnapshot class="list"/>    <bag/>  </diagnosticTests>  <hasIschemicHeartDisease>true</hasIschemicHeartDisease>  <takesContinuousMedication>false</takesContinuousMedication>  <hasPercutaneousCoronaryIntervention>false</hasPercutaneousCoronaryIntervention>  <hasMyocardialInfarction>false</hasMyocardialInfarction>  <hasCoronaryBypassSurgery>false</hasCoronaryBypassSurgery>  <hasHeartTransplant>false</hasHeartTransplant>  <hasImplantedCardiacPacemaker>false</hasImplantedCardiacPacemaker>  <hasImplantedAicd>false</hasImplantedAicd>  <doesVeteranHaveCHF>false</doesVeteranHaveCHF>  <hasExerciseTestBeenConducted>false</hasExerciseTestBeenConducted>  <metsLevel>metsLevel13</metsLevel>  <hasDyspnea>false</hasDyspnea>  <hasFatigue>false</hasFatigue>  <hasAngina>false</hasAngina>  <hasDizziness>false</hasDizziness>  <hasSyncope>true</hasSyncope>  <isEvidenceOfHypertrophyOrDil>false</isEvidenceOfHypertrophyOrDil>  <hasEkg>false</hasEkg>  <hasChestXRay>false</hasChestXRay>  <hasEchocardiogram>false</hasEchocardiogram>  <hasOtherTest>false</hasOtherTest>  <hasLVEF>false</hasLVEF></gov.va.agentorange.fasttrack.model.dbq.ihd.IschemicHeartDisease></detailXML>
			</questionnaireResult>
		</questionnaireResults>
	</patient>
</clinicaldata:ClinicalData>
]]></con:request><con:assertion type="XPath Match" name="Matches Request ID"><con:configuration><path>//requestId</path><content>${REQUEST_ID}</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>true</ignoreNamspaceDifferences><ignoreComments>false</ignoreComments></con:configuration></con:assertion><con:assertion type="XPath Match" name="Matches Docuent ID"><con:configuration><path>//identifier/documentIdentifier/identity</path><content>${DOCUMENTIDENTIFIER_IDENTITY}</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>true</ignoreNamspaceDifferences><ignoreComments>false</ignoreComments></con:configuration></con:assertion><con:assertion type="XPath Match" name="Response Includes Record Identifier"><con:configuration><path>count(//identifiers/identifier)</path><content>1</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>true</ignoreNamspaceDifferences><ignoreComments>false</ignoreComments></con:configuration></con:assertion><con:credentials><con:username xsi:nil="true"/><con:password xsi:nil="true"/><con:domain xsi:nil="true"/><con:authType>Global HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT" messageSelector="" TimeToLive=""/><con:jmsPropertyConfig><con:jmsProperties name="TEMPLATE_ID" value="DBQCreate2"/><con:jmsProperties name="REQUEST_ID" value="${REQUEST_ID}"/></con:jmsPropertyConfig><con:wsaConfig mustUnderstand="NONE" version="200508"/><con:wsrmConfig version="1.2"/></con:request></con:config></con:testStep><con:testStep type="request" name="DBQ List Read by Non-Deprecated ICN"><con:settings/><con:config xsi:type="con:RequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>ClinicalDataServiceSynchronousInterfaceHttpBinding</con:interface><con:operation>readClinicalData1</con:operation><con:request name="DBQ List Read by Non-Deprecated ICN"><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://${CDS_SERVICE_SOAP_ENDPOINT}</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:cli="http://client.cds.URL       ">
   <soapenv:Header/>
   <soapenv:Body>
      <cli:readClinicalData1>
         <in0>DBQListRead1</in0>
         <in1><![CDATA[
<?xml version="1.0" encoding="UTF-8"?>
<filter:filter vhimVersion="Vhim_4_00" xsi:schemaLocation="Filter DBQ_Single_Patient_All_Data_Filter.xsd" xmlns:filter="Filter" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
	<filterId>DBQ_SINGLE_PATIENT_LIST_DATA_FILTER</filterId>
	<clientName>SOAP UI</clientName>
	<clientRequestInitiationTime>${CLIENT_REQUEST_INIT_TIME}</clientRequestInitiationTime>
	<patients>
		<NationalId>1012588648V824622</NationalId>
	</patients>
	<entryPointFilter queryName="ID_1">
		<domainEntryPoint>QuestionnaireResult</domainEntryPoint>
	</entryPointFilter>
</filter:filter>
         ]]]]>><![CDATA[</in1>
         <in2>DBQ_SINGLE_PATIENT_LIST_DATA_FILTER</in2>
         <in3>${FILTER_REQUEST_ID1}</in3>
      </cli:readClinicalData1>
   </soapenv:Body>
</soapenv:Envelope>]]></con:request><con:assertion type="SOAP Response"/><con:assertion type="Simple Contains" name="Contains"><con:configuration><token/><ignoreCase>false</ignoreCase><useRegEx>false</useRegEx></con:configuration></con:assertion><con:credentials><con:authType>Global HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:wsaConfig mustUnderstand="NONE" version="200508"/><con:wsrmConfig version="1.2"/></con:request></con:config></con:testStep><con:testStep type="groovy" name="Validate List Read Reverse Chronological Order by Creation Date"><con:settings/><con:config><script>import com.eviware.soapui.support.XmlHolder 

def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context );

def soapResponseHolder = groovyUtils.getXmlHolder( "DBQ List Read All By Patient#Response" ) ;
def content = soapResponseHolder["//out"] ;
content = content.replaceAll( "&lt;!\\[CDATA\\[", "" ) 
content = content.replaceAll( "]]&gt;", "" ) 

def holder = groovyUtils.getXmlHolder( content ) ;
def recordCount = holder["count(//recordIdentifier)"]
assert recordCount == "3"

assert holder["//dateCreated/literal"][0] == "20051231170000-0700"
assert holder["//dateCreated/literal"][1]== "20011231170000-0700"
assert holder["//dateCreated/literal"][2] == "19991231170000-0700"</script></con:config></con:testStep><con:properties><con:property><con:name>CDataSection</con:name><con:value><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
<clinicaldata:ClinicalData xmlns:clinicaldata="Clinicaldata"><templateId>DBQListRead1</templateId><requestId>06f40693-7806-4195-ac24-53eac5807b37</requestId><patients><patient><requestedResolvedIdentifiers><requestedResolvedIdentifier><identity>8009327c-73d9-41ec-9152-f2063adfaed3</identity><assigningFacility>200HD</assigningFacility><assigningAuthority>USVHA</assigningAuthority></requestedResolvedIdentifier></requestedResolvedIdentifiers><resultantIdentifiers><resultantIdentifier><identity>8009327c-73d9-41ec-9152-f2063adfaed3</identity><assigningFacility>200HD</assigningFacility><assigningAuthority>USVHA</assigningAuthority></resultantIdentifier></resultantIdentifiers><questionnaireResults><questionnaireResult><patient><identifier><identity>8009327c-73d9-41ec-9152-f2063adfaed3</identity><assigningFacility>200HD</assigningFacility><assigningAuthority>USVHA</assigningAuthority></identifier><name><given>Given</given><middle>MiddleName</middle><family>FamilyName</family><suffix>Suffix</suffix><title>Title</title></name></patient><documentType>Hematologic_and_Lymphatic_Conditions</documentType><recordIdentifier><identity>139</identity></recordIdentifier><documentIdentifier><identity>ec283ed4-452b-4ff0-8863-888a5cd6a004</identity><namespaceId>402</namespaceId><universalId>UID_13359111174322</universalId><universalIdType>universalIdType</universalIdType></documentIdentifier><initiatingSystem>SOAP UI</initiatingSystem><facilityIdentifier><identity>OrganizationId</identity><name>OrganizationName</name><assigningAuthority>AssigningAuthNamespaceId</assigningAuthority></facilityIdentifier><approvedFlag>CHECK_ME</approvedFlag><author><comment>Author Comment</comment><time><literal>20120501162517-0600</literal></time><practitioner><identifier><identity>test_AUTHORID_1003</identity><assigningFacility>402</assigningFacility><assigningAuthority>USVHA</assigningAuthority></identifier><name><prefix>Prefix</prefix><given>Given</given><middle>MiddleName</middle><family>FamilyName</family><suffix>Suffix</suffix><title>Title</title></name></practitioner></author><approvedBy><comment>Approved By Comment</comment><time><literal>20120501162517-0600</literal></time><practitioner><identifier><identity>test_AUTHORID_1003</identity><assigningFacility>402</assigningFacility><assigningAuthority>USVHA</assigningAuthority></identifier><name><prefix>Prefix</prefix><given>Given</given><middle>MiddleName</middle><family>FamilyName</family><suffix>Suffix</suffix><title>Title</title></name></practitioner></approvedBy><dateCreated><literal>20051231170000-0700</literal></dateCreated><recordVersion>3</recordVersion></questionnaireResult><questionnaireResult><patient><identifier><identity>8009327c-73d9-41ec-9152-f2063adfaed3</identity><assigningFacility>200HD</assigningFacility><assigningAuthority>USVHA</assigningAuthority></identifier><name><given>Given</given><middle>MiddleName</middle><family>FamilyName</family><suffix>Suffix</suffix><title>Title</title></name></patient><documentType>Ischemic_Heart_Disease</documentType><recordIdentifier><identity>138</identity></recordIdentifier><documentIdentifier><identity>9856c201-2acf-4735-944e-b18b6c4be7e8</identity><namespaceId>402</namespaceId><universalId>UID_13359111174322</universalId><universalIdType>universalIdType</universalIdType></documentIdentifier><initiatingSystem>SOAP UI</initiatingSystem><facilityIdentifier><identity>OrganizationId</identity><name>OrganizationName</name><assigningAuthority>AssigningAuthNamespaceId</assigningAuthority></facilityIdentifier><approvedFlag>CHECK_ME_2</approvedFlag><author><comment>Author Comment</comment><time><literal>20120501162517-0600</literal></time><practitioner><identifier><identity>test_AUTHORID_1003</identity><assigningFacility>402</assigningFacility><assigningAuthority>USVHA</assigningAuthority></identifier><name><prefix>Prefix</prefix><given>Given</given><middle>MiddleName</middle><family>FamilyName</family><suffix>Suffix</suffix><title>Title</title></name></practitioner></author><approvedBy><comment>Approved By Comment</comment><time><literal>20120501162517-0600</literal></time><practitioner><identifier><identity>test_AUTHORID_1003</identity><assigningFacility>402</assigningFacility><assigningAuthority>USVHA</assigningAuthority></identifier><name><prefix>Prefix</prefix><given>Given</given><middle>MiddleName</middle><family>FamilyName</family><suffix>Suffix</suffix><title>Title</title></name></practitioner></approvedBy><dateCreated><literal>20011231170000-0700</literal></dateCreated><recordVersion>3</recordVersion></questionnaireResult><questionnaireResult><patient><identifier><identity>8009327c-73d9-41ec-9152-f2063adfaed3</identity><assigningFacility>200HD</assigningFacility><assigningAuthority>USVHA</assigningAuthority></identifier><name><given>Given</given><middle>MiddleName</middle><family>FamilyName</family><suffix>Suffix</suffix><title>Title</title></name></patient><documentType>Ischemic_Heart_Disease</documentType><recordIdentifier><identity>137</identity></recordIdentifier><documentIdentifier><identity>13e1402e-147b-4846-8c2c-fabe2872d02e</identity><namespaceId>402</namespaceId><universalId>UID_13359111174322</universalId><universalIdType>universalIdType</universalIdType></documentIdentifier><initiatingSystem>SOAP UI</initiatingSystem><facilityIdentifier><identity>OrganizationId</identity><name>OrganizationName</name><assigningAuthority>AssigningAuthNamespaceId</assigningAuthority></facilityIdentifier><approvedFlag>CHECK_ME</approvedFlag><author><comment>Author Comment</comment><time><literal>20120501162517-0600</literal></time><practitioner><identifier><identity>test_AUTHORID_1003</identity><assigningFacility>402</assigningFacility><assigningAuthority>USVHA</assigningAuthority></identifier><name><prefix>Prefix</prefix><given>Given</given><middle>MiddleName</middle><family>FamilyName</family><suffix>Suffix</suffix><title>Title</title></name></practitioner></author><approvedBy><comment>Approved By Comment</comment><time><literal>20120501162517-0600</literal></time><practitioner><identifier><identity>test_AUTHORID_1003</identity><assigningFacility>402</assigningFacility><assigningAuthority>USVHA</assigningAuthority></identifier><name><prefix>Prefix</prefix><given>Given</given><middle>MiddleName</middle><family>FamilyName</family><suffix>Suffix</suffix><title>Title</title></name></practitioner></approvedBy><dateCreated><literal>19991231170000-0700</literal></dateCreated><recordVersion>3</recordVersion></questionnaireResult><totalResultCount>3</totalResultCount></questionnaireResults></patient></patients></clinicaldata:ClinicalData>]]></con:value></con:property><con:property><con:name>RecordId1</con:name><con:value>139</con:value></con:property><con:property><con:name>RecordId2</con:name><con:value>138</con:value></con:property><con:property><con:name>RecordId3</con:name><con:value>137</con:value></con:property><con:property><con:name>RecordId4</con:name><con:value>140</con:value></con:property></con:properties></con:testCase><con:properties/></con:testSuite><con:properties/><con:wssContainer/><con:sensitiveInformation/></con:soapui-project>