<?xml version="1.0" encoding="UTF-8"?>
<con:soapui-project activeEnvironment="Default" name="HA SOAPUI ProtoType" resourceRoot="" soapui-version="4.5.1" abortOnError="false" runType="SEQUENTIAL" xmlns:con="http://eviware.com/soapui/config"><con:settings/><con:interface xsi:type="con:WsdlInterface" wsaVersion="NONE" name="ClinicalDataServiceSynchronousInterfaceHttpBinding" type="wsdl" bindingName="{http://client.cds.med.DNS   }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.med.DNS   " xmlns:soapenc12="http://www.w3.org/2003/05/soap-encoding" xmlns:tns="http://client.cds.med.DNS   " 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.med.DNS   "/>
      </wsdl:input>
      <wsdl:output name="deleteClinicalDataResponse">
        <wsdlsoap:body use="literal" namespace="http://client.cds.med.DNS   "/>
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="createClinicalData">
      <wsdlsoap:operation soapAction=""/>
      <wsdl:input name="createClinicalDataRequest">
        <wsdlsoap:body use="literal" namespace="http://client.cds.med.DNS   "/>
      </wsdl:input>
      <wsdl:output name="createClinicalDataResponse">
        <wsdlsoap:body use="literal" namespace="http://client.cds.med.DNS   "/>
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="readClinicalData1">
      <wsdlsoap:operation soapAction=""/>
      <wsdl:input name="readClinicalData1Request">
        <wsdlsoap:body use="literal" namespace="http://client.cds.med.DNS   "/>
      </wsdl:input>
      <wsdl:output name="readClinicalData1Response">
        <wsdlsoap:body use="literal" namespace="http://client.cds.med.DNS   "/>
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="appendClinicalData">
      <wsdlsoap:operation soapAction=""/>
      <wsdl:input name="appendClinicalDataRequest">
        <wsdlsoap:body use="literal" namespace="http://client.cds.med.DNS   "/>
      </wsdl:input>
      <wsdl:output name="appendClinicalDataResponse">
        <wsdlsoap:body use="literal" namespace="http://client.cds.med.DNS   "/>
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="readClinicalData">
      <wsdlsoap:operation soapAction=""/>
      <wsdl:input name="readClinicalDataRequest">
        <wsdlsoap:body use="literal" namespace="http://client.cds.med.DNS   "/>
      </wsdl:input>
      <wsdl:output name="readClinicalDataResponse">
        <wsdlsoap:body use="literal" namespace="http://client.cds.med.DNS   "/>
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="isAlive">
      <wsdlsoap:operation soapAction=""/>
      <wsdl:input name="isAliveRequest">
        <wsdlsoap:body use="literal" namespace="http://client.cds.med.DNS   "/>
      </wsdl:input>
      <wsdl:output name="isAliveResponse">
        <wsdlsoap:body use="literal" namespace="http://client.cds.med.DNS   "/>
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="updateClinicalData">
      <wsdlsoap:operation soapAction=""/>
      <wsdl:input name="updateClinicalDataRequest">
        <wsdlsoap:body use="literal" namespace="http://client.cds.med.DNS   "/>
      </wsdl:input>
      <wsdl:output name="updateClinicalDataResponse">
        <wsdlsoap:body use="literal" namespace="http://client.cds.med.DNS   "/>
      </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://${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" anonymous="optional"><con:settings/><con:call name="Request 1"><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.med.DNS   ">
   <soapenv:Header/>
   <soapenv:Body>
      <cli:appendClinicalData>
         <in0>?</in0>
         <in1>?</in1>
         <in2>?</in2>
      </cli:appendClinicalData>
   </soapenv:Body>
</soapenv:Envelope>]]></con:request><con:wsaConfig mustUnderstand="NONE" version="200508" action="http://client.cds.med.DNS   /ClinicalDataServiceSynchronousInterfacePortType/appendClinicalDataRequest"/></con:call></con:operation><con:operation isOneWay="false" action="" name="createClinicalData" bindingOperationName="createClinicalData" type="Request-Response" outputName="createClinicalDataResponse" inputName="createClinicalDataRequest" receivesAttachments="false" sendsAttachments="false" anonymous="optional"><con:settings/><con:call name="Request 1"><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.med.DNS   ">
   <soapenv:Header/>
   <soapenv:Body>
      <cli:createClinicalData>
         <in0>?</in0>
         <in1>?</in1>
         <in2>?</in2>
      </cli:createClinicalData>
   </soapenv:Body>
</soapenv:Envelope>]]></con:request><con:wsaConfig mustUnderstand="NONE" version="200508" action="http://client.cds.med.DNS   /ClinicalDataServiceSynchronousInterfacePortType/createClinicalDataRequest"/></con:call></con:operation><con:operation isOneWay="false" action="" name="deleteClinicalData" bindingOperationName="deleteClinicalData" type="Request-Response" outputName="deleteClinicalDataResponse" inputName="deleteClinicalDataRequest" receivesAttachments="false" sendsAttachments="false" anonymous="optional"><con:settings/><con:call name="Request 1"><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.med.DNS   ">
   <soapenv:Header/>
   <soapenv:Body>
      <cli:deleteClinicalData>
         <in0>?</in0>
         <in1>?</in1>
         <in2>?</in2>
      </cli:deleteClinicalData>
   </soapenv:Body>
</soapenv:Envelope>]]></con:request><con:wsaConfig mustUnderstand="NONE" version="200508" action="http://client.cds.med.DNS   /ClinicalDataServiceSynchronousInterfacePortType/deleteClinicalDataRequest"/></con:call></con:operation><con:operation isOneWay="false" action="" name="isAlive" bindingOperationName="isAlive" type="Request-Response" outputName="isAliveResponse" inputName="isAliveRequest" receivesAttachments="false" sendsAttachments="false" anonymous="optional"><con:settings/><con:call name="Request 1"><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.med.DNS   ">
   <soapenv:Header/>
   <soapenv:Body>
      <cli:isAlive/>
   </soapenv:Body>
</soapenv:Envelope>]]></con:request><con:wsaConfig mustUnderstand="NONE" version="200508" action="http://client.cds.med.DNS   /ClinicalDataServiceSynchronousInterfacePortType/isAliveRequest"/></con:call></con:operation><con:operation isOneWay="false" action="" name="readClinicalData" bindingOperationName="readClinicalData" type="Request-Response" outputName="readClinicalDataResponse" inputName="readClinicalDataRequest" receivesAttachments="false" sendsAttachments="false" anonymous="optional"><con:settings/><con:call name="Request 1"><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.med.DNS   ">
   <soapenv:Header/>
   <soapenv:Body>
      <cli:readClinicalData>
         <in0>?</in0>
         <in1>?</in1>
         <in2>?</in2>
      </cli:readClinicalData>
   </soapenv:Body>
</soapenv:Envelope>]]></con:request><con:credentials><con:authType>Global HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:wsaConfig mustUnderstand="NONE" version="200508" action="http://client.cds.med.DNS   /ClinicalDataServiceSynchronousInterfacePortType/readClinicalDataRequest"/><con:wsrmConfig version="1.2"/></con:call></con:operation><con:operation isOneWay="false" action="" name="readClinicalData1" bindingOperationName="readClinicalData1" type="Request-Response" outputName="readClinicalData1Response" inputName="readClinicalData1Request" receivesAttachments="false" sendsAttachments="false" anonymous="optional"><con:settings/><con:call name="Request 1"><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.med.DNS   ">
   <soapenv:Header/>
   <soapenv:Body>
      <cli:readClinicalData1>
         <in0>?</in0>
         <in1>?</in1>
         <in2>?</in2>
         <in3>?</in3>
      </cli:readClinicalData1>
   </soapenv:Body>
</soapenv:Envelope>]]></con:request><con:credentials><con:authType>Global HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:wsaConfig mustUnderstand="NONE" version="200508" action="http://client.cds.med.DNS   /ClinicalDataServiceSynchronousInterfacePortType/readClinicalData1Request"/><con:wsrmConfig version="1.2"/></con:call></con:operation><con:operation isOneWay="false" action="" name="updateClinicalData" bindingOperationName="updateClinicalData" type="Request-Response" outputName="updateClinicalDataResponse" inputName="updateClinicalDataRequest" receivesAttachments="false" sendsAttachments="false" anonymous="optional"><con:settings/><con:call name="Request 1"><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.med.DNS   ">
   <soapenv:Header/>
   <soapenv:Body>
      <cli:updateClinicalData>
         <in0>?</in0>
         <in1>?</in1>
         <in2>?</in2>
      </cli:updateClinicalData>
   </soapenv:Body>
</soapenv:Envelope>]]></con:request><con:wsaConfig mustUnderstand="NONE" version="200508" action="http://client.cds.med.DNS   /ClinicalDataServiceSynchronousInterfacePortType/updateClinicalDataRequest"/></con:call></con:operation></con:interface><con:testSuite name="HATestSuite" disabled="true"><con:settings/><con:runType>SEQUENTIAL</con:runType><con:testCase failOnError="true" failTestCaseOnErrors="true" keepSession="false" maxResults="0" name="HACreateUpdateDeleteDailyEventJournal" searchProperties="true" id="ff3c5e93-ea05-4ed5-b052-f8d35b966590"><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.REQUEST_ID = UUID.randomUUID().toString(); 
context.SECOND_REQUEST_ID = UUID.randomUUID().toString(); 
context.DELETE_SECOND_REQUEST_ID = UUID.randomUUID().toString(); 
context.DELETE_ORIGINAL_REQUEST_ID = UUID.randomUUID().toString(); 
context.CLIENT_NAME = 'HealthAdapterClient'; 
context.CREATE_TEMPLATE_ID = 'HealthAdapterCreate1'; 
context.READ_TEMPLATE_ID = 'HealthAdapterRead1'; 
context.DETAIL_READ_TEMPLATE_ID = 'HealthAdapterJournalDetailRead1'; 
context.UPDATE_TEMPLATE_ID = 'HealthAdapterUpdate1'; 
context.DELETE_TEMPLATE_ID = 'HealthAdapterDelete1'; 
context.READ_FILTER_ID = 'HEALTH_ADAPTER_SINGLE_PATIENT_ALL_DATA_FILTER'; 
context.DETAIL_READ_FILTER_ID = 'HEALTH_ADAPTER_JOURNAL_DETAIL_FILTER'; 
context.EVENT_TITLE = 'My Dog Skip'; 
context.SECOND_EVENT_TITLE = 'This is a second HA record to use in testing logical deletes.'; 
//context.PATIENT_IDENTITY = 'test_sourceid_100001'; 
context.PATIENT_ASSIGNING_AUTHORITY = 'USDOD'; 
context.PATIENT_ASSIGNING_FACILITY = '200DOD'; 
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.JOURNAL_ENTRY_TYPE = 'PatientEnteredDailyEventJournalEntry'; 
context.ALLOWS_ACCESS_BY_CLINICAL_STAFF = 'true'; 
context.COMMENTS = 'Today I bought a new puppy. I named him Skip. He likes to play catch with me.'; 
context.UPDATE_COMMENTS = 'Today I bought a new puppy. I named him Skip. He likes to play catch with me. He is the best little pal to play with.'; 
context.OBSERVATION_DATE = '20120203172217-0600'; 
context.DATA_ENTERER = 'HDRPROVIDER,ONE'; 
context.UPDATE_DATA_ENTERER = 'UPDATE_HDRPROVIDER,ONE'; 
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; 
context.TABLE_NAME='DAILY_EVENT_JOURNAL'; 
context.MIME_TYPE='image/jpg';
context.CREATE_ATTACHMENT_NAME='inProgress.gif'; 
context.UPDATE_ATTACHMENT_NAME='inProgress2.giv'; 
context.HEX_BINARY_ATTACHMENT='47494638396110001000f40000ffffff000000f8f8f8383838848484060606262626d6d6d6a8a8a8161616767676666666e4e4e4989898c6c6c648484856565600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000021fe1a43726561746564207769746820616a61786c6f61642e696e666f0021f904000a00000021ff0b4e45545343415045322e3003010000002c000000001000100000055020208e64699ea530146c212a8460aaad9814c6911a3580f006d988805b8d043c02698550911085018985a28eac292c80495af8a22462f0ba4892903884a835261d7889356b203c1314f2791dc5ef8f420021f904000a0001002c000000001000100000056820208a47d28c682a1ac5e0a8a84024457dc0c0c1d6c502088c9480656814120cc1c02040110a4cc080f0635147830242b4e5b6503598203caa35556451b62be822bea3679430a816aea2a18f416b10cf2341000b3c503730073c090480300e5906382a0d098723210021f904000a0002002c000000001000100000056020208e23f39028da14482a0ac45014092da48731ef33810a3a43cb314bb4488482e106482e9824d9b179000810bed1cc05d86a0b2e81574440dc0e5900a230480916852c308e42d40a8e6b104ae6ed0c553f357703047c246b0d5c290f0c8b210021f904000a0003002c000000001000100000055220208e64699e802094023114c540a883431e06ac17c66b8b829c012142e4603f0081b702be90234582387a4251588063bb6da2760b1222a120e9c2a3608160860d5546a61972dc190ea570eb29f366ff80210021f904000a0004002c000000001000100000056020208e64699ea8400c453110c2c9186d5d18c7b918488cd086d82807108a04340220e7282c18a6462161480058539808816d35a4b501624448b40600aab961622c0a8e258070331663c423b027f80dec220734363750262a582f80288c8d24210021f904000a0005002c000000001000100000055f20208e64699ea84814c54008a6403400c2b2c64122499108b09aa160083e6e850549302488188d1e4b37b20d482c07c1892d74832a8283451a1410a4c32dd160a88860c002f91031890818b097408f0e433768082f310466055c298b8c2621003b000000000000000000'; 
//log.info("REQUEST_ID: " + context.REQUEST_ID);; //log.info("RECORDIDENTIFIER_IDENTITY: " + context.REQUEST_ID);  </script></con:config></con:testStep><con:testStep type="jdbc" name="doDelete"><con:settings/><con:config xsi:type="con:JdbcRequestTestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:driver>oracle.jdbc.OracleDriver</con:driver><con:connectionString>${CDS_JDBC_CONNECTION_STRING}</con:connectionString><con:query>DELETE FROM ${TABLE_NAME} WHERE PATIENT_IDENTITY = '${CDS_UNIQUE_PATIENT}'

</con:query><con:properties/></con:config></con:testStep><con:testStep type="request" name="createDailyEventJournal"><con:settings/><con:config xsi:type="con:RequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>ClinicalDataServiceSynchronousInterfaceHttpBinding</con:interface><con:operation>createClinicalData</con:operation><con:request name="createDailyEventJournal"><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.med.DNS   ">
   <soapenv:Header/>
   <soapenv:Body>
      <cli:createClinicalData>
         <in0><![CDATA[
         <?xml version="1.0" encoding="UTF-8"?>
<clinicaldata:ClinicalData xsi:schemaLocation="Clinicaldata HealthAdapterCreate1.xsd" xmlns:clinicaldata="Clinicaldata" xmlns:patientjournaling="PatientJournaling" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
	<templateId>${CREATE_TEMPLATE_ID}</templateId>
	<clientName>HealthAdapter</clientName>
	<clientRequestInitiationTime>${CLIENT_REQUEST_INIT_TIME}</clientRequestInitiationTime>
	<patient>
		<patientJournalEntries>
			<patientjournaling:patientEnteredDailyEventJournalEntry>
				<eventTitle>${EVENT_TITLE}</eventTitle>
				<genericJournalEntryDetails>
					<patient>
						<identifier>
							<identity>${#Global#CDS_UNIQUE_PATIENT}</identity>
							<assigningFacility>${PATIENT_ASSIGNING_FACILITY}</assigningFacility>
							<assigningAuthority>${PATIENT_ASSIGNING_AUTHORITY}</assigningAuthority>
						</identifier>
						<name>
							<family>${PATIENT_NAME_FAMILY}</family>
							<given>${PATIENT_NAME_GIVEN}</given>
							<middle>${PATIENT_NAME_MIDDLE}</middle>
							<prefix>${PATIENT_NAME_PREFIX}</prefix>
							<suffix>${PATIENT_NAME_SUFFIX}</suffix>
							<title>${PATIENT_NAME_TITLE}</title>
						</name>
					</patient>
					<journalEntryType>${JOURNALT_ENTRY_TYPE}PatientEnteredDailyEventJournalEntry</journalEntryType>
					<allowAccessByClinicalStaff>${ALLOWS_ACCESS_BY_CLINICAL_STAFF}</allowAccessByClinicalStaff>
					<comments>${COMMENTS}</comments>
					<observationDate>
						<literal>${OBSERVATION_DATE}</literal>
					</observationDate>
					<binaryAttachments>
						<binaryAttachment>
							<mimeType>${MIME_TYPE}</mimeType>
							<name>${CREATE_ATTACHMENT_NAME}</name>
							<hexBinaryAttachment>${HEX_BINARY_ATTACHMENT}</hexBinaryAttachment>
						</binaryAttachment>
					</binaryAttachments>
					<dataEnterer>${DATA_ENTERER}</dataEnterer>
				</genericJournalEntryDetails>
			</patientjournaling:patientEnteredDailyEventJournalEntry>
		</patientJournalEntries>
	</patient>
</clinicaldata:ClinicalData>]]]]>><![CDATA[
	</in0>
     <in1>${CREATE_TEMPLATE_ID}</in1>
     <in2>${REQUEST_ID}</in2>
    </cli:createClinicalData>
   </soapenv:Body>
</soapenv:Envelope>
]]></con:request><con:assertion type="SOAP Response" disabled="true"/><con:assertion type="GroovyScriptAssertion" name="checkForErrors"><con:configuration><scriptText>import com.eviware.soapui.support.XmlHolder
import org.w3c.dom.*

def holder = new XmlHolder( messageExchange.responseContentAsXml )
holder.namespaces["clinicaldata"] = "Clinicaldata"
def node = holder["//out"]
def descHolder = new XmlHolder( node )

def errors = descHolder.getDomNodes( "//clinicaldata:ClinicalData/errorSection/errors" )
assert errors.length == 0

def fatalErrors = descHolder.getDomNodes( "//clinicaldata:ClinicalData/errorSection/fatalErrors" )
assert fatalErrors.length == 0
</scriptText></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="getRecordIdentifierIdentity"><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>getCreateResponseXml</con:name><con:sourceType>Response</con:sourceType><con:sourceStep>createDailyEventJournal</con:sourceStep><con:sourcePath>//out</con:sourcePath><con:targetType>createResponseXml</con:targetType><con:targetStep>#TestCase#</con:targetStep></con:transfers><con:transfers setNullOnMissingSource="true" transferTextContent="true" failOnError="true" ignoreEmpty="false" transferToAll="false" useXQuery="false" entitize="false" transferChildNodes="false"><con:name>getRecordIdentifierIdentity</con:name><con:sourceType>createResponseXml</con:sourceType><con:sourceStep>#TestCase#</con:sourceStep><con:sourcePath>//recordIdentifiers/recordIdentifier/identity</con:sourcePath><con:targetType>recordIdentifierIdentity</con:targetType><con:targetStep>#TestCase#</con:targetStep></con:transfers></con:config></con:testStep><con:testStep type="request" name="readCreatedDailyEventJournal"><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="readCreatedDailyEventJournal"><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.med.DNS   ">    <soapenv:Header/>    <soapenv:Body>       <cli:readClinicalData1>          <in0>${READ_TEMPLATE_ID}</in0>           		<in1><![CDATA[<?xml version="1.0" encoding="UTF-8"?>             			<filter:filter xmlns:filter="Filter" vhimVersion="Vhim_4_00"> 				<filterId>${READ_FILTER_ID}</filterId> 					<clientName>${CLIENT_NAME}</clientName> 					<clientRequestInitiationTime>${CLIENT_REQUEST_INIT_TIME}</clientRequestInitiationTime> 					<patients> 						<EdiPi> 							<assigningAuthority>${PATIENT_ASSIGNING_AUTHORITY}</assigningAuthority> 							<assigningFacility>${PATIENT_ASSIGNING_FACILITY}</assigningFacility> 							<identity>${#Global#CDS_UNIQUE_PATIENT}</identity> 						</EdiPi> 					</patients> 					<entryPointFilter queryName="ID_1"> 						<filter:defaultDomainEntryPointFilter> 							<domainEntryPoint>PatientEnteredDailyEventJournalEntry</domainEntryPoint> 						</filter:defaultDomainEntryPointFilter> 				</entryPointFilter> 			</filter:filter>]]]]>><![CDATA[</in1>           		<in2>${READ_FILTER_ID}</in2>           		<in3>${REQUEST_ID}</in3>       </cli:readClinicalData1>    </soapenv:Body> </soapenv:Envelope>]]></con:request><con:assertion type="SOAP Response"/><con:assertion type="Simple Contains" name="Contains-DataEnterer"><con:configuration><token>${DATA_ENTERER}</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="validateCreatedReadResponse"><con:settings/><con:config><script>import com.eviware.soapui.support.XmlHolder 

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

def soapResponseHolder = groovyUtils.getXmlHolder( "readCreatedDailyEventJournal#Response" ) ;
def content = soapResponseHolder["//out"] ;
content = content.replaceAll( "&lt;!\\[CDATA\\[", "" ) 
content = content.replaceAll( "]]&gt;", "" ) 

def holder = groovyUtils.getXmlHolder( content ) ;

//example count - can also be done in assertion script
def recordCount = holder["count(//recordIdentifier)"];
assert recordCount == "1";

//example error check inside script - vs a response script (see createDailyEventJournal checkForErrors assertion)
def errors = holder.getDomNodes("/clinicaldata:ClinicalData/errorSection/errors");
assert errors.length == 0;
def fatalErrors = holder.getDomNodes("/clinicaldata:ClinicalData/errorSection/fatalErrors");
assert fatalErrors.length == 0;

//validate data content
def templateId = holder.getNodeValue("//templateId");
assert templateId == context.READ_TEMPLATE_ID;

def ediPiIdentity = holder.getNodeValue("/clinicaldata:ClinicalData/patients/patient/requestedEdiPi/identity");
def ediPiFacility = holder.getNodeValue("/clinicaldata:ClinicalData/patients/patient/requestedEdiPi/assigningFacility");
def ediPiAuthority = holder.getNodeValue("/clinicaldata:ClinicalData/patients/patient/requestedEdiPi/assigningAuthority");

assert ediPiIdentity == com.eviware.soapui.SoapUI.globalProperties.getPropertyValue("CDS_UNIQUE_PATIENT")
assert ediPiFacility == context.PATIENT_ASSIGNING_FACILITY
assert ediPiAuthority == context.PATIENT_ASSIGNING_AUTHORITY

def resultantIdentity = holder.getNodeValue("/clinicaldata:ClinicalData/patients/patient/resultantIdentifiers/resultantIdentifier/identity");
def resultantFacility = holder.getNodeValue("/clinicaldata:ClinicalData/patients/patient/resultantIdentifiers/resultantIdentifier/assigningFacility");
def resultantAuthority = holder.getNodeValue("/clinicaldata:ClinicalData/patients/patient/resultantIdentifiers/resultantIdentifier/assigningAuthority");
assert resultantIdentity == com.eviware.soapui.SoapUI.globalProperties.getPropertyValue("CDS_UNIQUE_PATIENT")
assert resultantFacility == context.PATIENT_ASSIGNING_FACILITY
assert resultantAuthority == context.PATIENT_ASSIGNING_AUTHORITY

def eventTitle = holder.getNodeValue("/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/eventTitle");
assert eventTitle == context.EVENT_TITLE

def patientIdentity = holder.getNodeValue("/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/patient/identifier/identity");
def patientFacility = holder.getNodeValue("/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/patient/identifier/assigningFacility");
def patientAuthority = holder.getNodeValue("/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/patient/identifier/assigningAuthority");
assert patientIdentity == com.eviware.soapui.SoapUI.globalProperties.getPropertyValue("CDS_UNIQUE_PATIENT")
assert patientFacility == context.PATIENT_ASSIGNING_FACILITY
assert patientAuthority == context.PATIENT_ASSIGNING_AUTHORITY

def prefix = holder.getNodeValue("/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/patient/name/prefix");
def given = holder.getNodeValue("/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/patient/name/given");
def middle = holder.getNodeValue("/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/patient/name/middle");
def family = holder.getNodeValue("/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/patient/name/family");
def suffix = holder.getNodeValue("/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/patient/name/suffix");
def title = holder.getNodeValue("/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/patient/name/title");
assert prefix == context.PATIENT_NAME_PREFIX
assert given == context.PATIENT_NAME_GIVEN
assert middle == context.PATIENT_NAME_MIDDLE
assert family == context.PATIENT_NAME_FAMILY
assert suffix == context.PATIENT_NAME_SUFFIX
assert title == context.PATIENT_NAME_TITLE


def recordIdentifier = holder.getNodeValue("/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/recordIdentifier/identity");
assert recordIdentifier == testRunner.testCase.getPropertyValue("recordIdentifierIdentity")

def journalType = holder.getNodeValue("/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/journalEntryType");
assert journalType == context.JOURNAL_ENTRY_TYPE

def comments = holder.getNodeValue("/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/comments");
def accessByStaff = holder.getNodeValue("/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/allowAccessByClinicalStaff");
assert comments == context.COMMENTS
assert accessByStaff == context.ALLOWS_ACCESS_BY_CLINICAL_STAFF

def observationDate = holder.getNodeValue("/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/observationDate/literal");
assert observationDate == context.OBSERVATION_DATE

def dataEnterer = holder.getNodeValue("/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/dataEnterer");
assert dataEnterer == context.DATA_ENTERER

def mimeType = holder.getNodeValue("/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/binaryAttachments/binaryAttachment/mimeType");
def attachmentName = holder.getNodeValue("/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/binaryAttachments/binaryAttachment/name");
assert mimeType == context.MIME_TYPE
assert attachmentName == context.CREATE_ATTACHMENT_NAME</script></con:config></con:testStep><con:testStep type="request" name="readCreatedDailyEventJournalDetailsWithName"><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="readCreatedDailyEventJournalDetailsWithName"><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.med.DNS   ">
   <soapenv:Header/>
   <soapenv:Body>
      <cli:readClinicalData1>
         <in0>${DETAIL_READ_TEMPLATE_ID}</in0>          
		<in1><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
			<filter:filter xmlns:filter="Filter" vhimVersion="Vhim_4_00">
				<filterId>${DETAIL_READ_FILTER_ID}</filterId>
					<clientName>${CLIENT_NAME}</clientName>
					<clientRequestInitiationTime>${CLIENT_REQUEST_INIT_TIME}</clientRequestInitiationTime>
					<entryPointFilter queryName="ID_1" isPatientCentric="false">
						<domainEntryPoint>PatientEnteredDailyEventJournalEntry</domainEntryPoint>
						<recordIdentifiers>
							<identity>${#TestCase#recordIdentifierIdentity}</identity>
						</recordIdentifiers>
						<otherQueryParameters>
							<attachmentName>${CREATE_ATTACHMENT_NAME}</attachmentName>
						</otherQueryParameters>
					</entryPointFilter>
			</filter:filter>]]]]>><![CDATA[</in1>          
		<in2>${DETAIL_READ_FILTER_ID}</in2>          
		<in3>${REQUEST_ID}</in3>
      </cli:readClinicalData1>
   </soapenv:Body>
</soapenv:Envelope>]]></con:request><con:assertion type="SOAP Response"/><con:assertion type="Simple Contains" name="Contains-DataEnterer"><con:configuration><token>${DATA_ENTERER}</token><ignoreCase>false</ignoreCase><useRegEx>false</useRegEx></con:configuration></con:assertion><con:assertion type="GroovyScriptAssertion" name="Script-countBinaryAttachments"><con:configuration><scriptText>import com.eviware.soapui.support.XmlHolder
import org.w3c.dom.*

def holder = new XmlHolder( messageExchange.responseContentAsXml )
holder.namespaces["clinicaldata"] = "Clinicaldata"
def node = holder["//out"]
def descHolder = new XmlHolder( node )

//def binaryAttachments = descHolder.getDomNodes( "/clinicaldata:ClinicalData/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/binaryAttachments" ).length
def binaryAttachments = descHolder.getDomNodes( "//binaryAttachments/binaryAttachment" ).length
assert binaryAttachments == 1</scriptText></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="validateCreatedReadWithName"><con:settings/><con:config><script>import com.eviware.soapui.support.XmlHolder 

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

def soapResponseHolder = groovyUtils.getXmlHolder( "readCreatedDailyEventJournalDetailsWithName#Response" ) ;
def content = soapResponseHolder["//out"] ;
content = content.replaceAll( "&lt;!\\[CDATA\\[", "" ) 
content = content.replaceAll( "]]&gt;", "" ) 
def holder = groovyUtils.getXmlHolder( content ) ;

//example error check inside script - vs a response script (see createDailyEventJournal checkForErrors assertion)
def errors = holder.getDomNodes("/clinicaldata:ClinicalData/errorSection/errors");
assert errors.length == 0;
def fatalErrors = holder.getDomNodes("/clinicaldata:ClinicalData/errorSection/fatalErrors");
assert fatalErrors.length == 0;

//validate data content
def templateId = holder.getNodeValue("//templateId");
assert templateId == context.DETAIL_READ_TEMPLATE_ID;

def eventTitle = holder.getNodeValue("/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/eventTitle");
assert eventTitle == context.EVENT_TITLE

def patientIdentity = holder.getNodeValue("/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/patient/identifier/identity");
def patientFacility = holder.getNodeValue("/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/patient/identifier/assigningFacility");
def patientAuthority = holder.getNodeValue("/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/patient/identifier/assigningAuthority");
assert patientIdentity == com.eviware.soapui.SoapUI.globalProperties.getPropertyValue("CDS_UNIQUE_PATIENT")
assert patientFacility == context.PATIENT_ASSIGNING_FACILITY
assert patientAuthority == context.PATIENT_ASSIGNING_AUTHORITY

def prefix = holder.getNodeValue("/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/patient/name/prefix");
def given = holder.getNodeValue("/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/patient/name/given");
def middle = holder.getNodeValue("/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/patient/name/middle");
def family = holder.getNodeValue("/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/patient/name/family");
def suffix = holder.getNodeValue("/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/patient/name/suffix");
def title = holder.getNodeValue("/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/patient/name/title");
assert prefix == context.PATIENT_NAME_PREFIX
assert given == context.PATIENT_NAME_GIVEN
assert middle == context.PATIENT_NAME_MIDDLE
assert family == context.PATIENT_NAME_FAMILY
assert suffix == context.PATIENT_NAME_SUFFIX
assert title == context.PATIENT_NAME_TITLE

def recordIdentifier = holder.getNodeValue("/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/recordIdentifier/identity");
assert recordIdentifier == testRunner.testCase.getPropertyValue("recordIdentifierIdentity")

def journalType = holder.getNodeValue("/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/journalEntryType");
assert journalType == context.JOURNAL_ENTRY_TYPE

def comments = holder.getNodeValue("/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/comments");
def accessByStaff = holder.getNodeValue("/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/allowAccessByClinicalStaff");
assert comments == context.COMMENTS
assert accessByStaff == context.ALLOWS_ACCESS_BY_CLINICAL_STAFF

def observationDate = holder.getNodeValue("/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/observationDate/literal");
assert observationDate == context.OBSERVATION_DATE

def dataEnterer = holder.getNodeValue("/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/dataEnterer");
assert dataEnterer == context.DATA_ENTERER

def mimeType = holder.getNodeValue("/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/binaryAttachments/binaryAttachment/mimeType");
def attachmentName = holder.getNodeValue("/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/binaryAttachments/binaryAttachment/name");
def hexBinaryAttachment = holder.getNodeValue("/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/binaryAttachments/binaryAttachment/hexBinaryAttachment");
assert mimeType == context.MIME_TYPE
assert attachmentName == context.CREATE_ATTACHMENT_NAME
assert hexBinaryAttachment == context.HEX_BINARY_ATTACHMENT</script></con:config></con:testStep><con:testStep type="request" name="readCreatedDailyEventJournalDetailsWithoutName"><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="readCreatedDailyEventJournalDetailsWithoutName"><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.med.DNS   ">
   <soapenv:Header/>
   <soapenv:Body>
      <cli:readClinicalData1>
         <in0>${DETAIL_READ_TEMPLATE_ID}</in0>          
		<in1><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
			<filter:filter xmlns:filter="Filter" vhimVersion="Vhim_4_00">
				<filterId>${DETAIL_READ_FILTER_ID}</filterId>
					<clientName>${CLIENT_NAME}</clientName>
					<clientRequestInitiationTime>${CLIENT_REQUEST_INIT_TIME}</clientRequestInitiationTime>
					<entryPointFilter queryName="ID_1" isPatientCentric="false">
						<domainEntryPoint>PatientEnteredDailyEventJournalEntry</domainEntryPoint>
						<recordIdentifiers>
							<identity>${#TestCase#recordIdentifierIdentity}</identity>
						</recordIdentifiers>
					</entryPointFilter>
			</filter:filter>]]]]>><![CDATA[</in1>          
		<in2>${DETAIL_READ_FILTER_ID}</in2>          
		<in3>${REQUEST_ID}</in3>
      </cli:readClinicalData1>
   </soapenv:Body>
</soapenv:Envelope>]]></con:request><con:assertion type="SOAP Response"/><con:assertion type="GroovyScriptAssertion" name="Script-countBinaryAttachments"><con:configuration><scriptText>import com.eviware.soapui.support.XmlHolder
import org.w3c.dom.*

def holder = new XmlHolder( messageExchange.responseContentAsXml )
holder.namespaces["clinicaldata"] = "Clinicaldata"
def node = holder["//out"]
def descHolder = new XmlHolder( node )

//def binaryAttachments = descHolder.getDomNodes( "/clinicaldata:ClinicalData/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry//genericJournalEntryDetails/binaryAttachments" ).length
def binaryAttachments = descHolder.getDomNodes( "//binaryAttachments/binaryAttachment" ).length
assert binaryAttachments == 1</scriptText></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="validateCreatedReadWihtoutName"><con:settings/><con:config><script>import com.eviware.soapui.support.XmlHolder 

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

def soapResponseHolder = groovyUtils.getXmlHolder( "readCreatedDailyEventJournalDetailsWithoutName#Response" ) ;
def content = soapResponseHolder["//out"] ;
content = content.replaceAll( "&lt;!\\[CDATA\\[", "" ) 
content = content.replaceAll( "]]&gt;", "" ) 
def holder = groovyUtils.getXmlHolder( content ) ;

//example error check inside script - vs a response script (see createDailyEventJournal checkForErrors assertion)
def errors = holder.getDomNodes("/clinicaldata:ClinicalData/errorSection/errors");
assert errors.length == 0;
def fatalErrors = holder.getDomNodes("/clinicaldata:ClinicalData/errorSection/fatalErrors");
assert fatalErrors.length == 0;

//validate data content
def templateId = holder.getNodeValue("//templateId");
assert templateId == context.DETAIL_READ_TEMPLATE_ID;

def eventTitle = holder.getNodeValue("/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/eventTitle");
assert eventTitle == context.EVENT_TITLE

def patientIdentity = holder.getNodeValue("/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/patient/identifier/identity");
def patientFacility = holder.getNodeValue("/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/patient/identifier/assigningFacility");
def patientAuthority = holder.getNodeValue("/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/patient/identifier/assigningAuthority");
assert patientIdentity == com.eviware.soapui.SoapUI.globalProperties.getPropertyValue("CDS_UNIQUE_PATIENT")
assert patientFacility == context.PATIENT_ASSIGNING_FACILITY
assert patientAuthority == context.PATIENT_ASSIGNING_AUTHORITY

def prefix = holder.getNodeValue("/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/patient/name/prefix");
def given = holder.getNodeValue("/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/patient/name/given");
def middle = holder.getNodeValue("/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/patient/name/middle");
def family = holder.getNodeValue("/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/patient/name/family");
def suffix = holder.getNodeValue("/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/patient/name/suffix");
def title = holder.getNodeValue("/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/patient/name/title");
assert prefix == context.PATIENT_NAME_PREFIX
assert given == context.PATIENT_NAME_GIVEN
assert middle == context.PATIENT_NAME_MIDDLE
assert family == context.PATIENT_NAME_FAMILY
assert suffix == context.PATIENT_NAME_SUFFIX
assert title == context.PATIENT_NAME_TITLE

def recordIdentifier = holder.getNodeValue("/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/recordIdentifier/identity");
assert recordIdentifier == testRunner.testCase.getPropertyValue("recordIdentifierIdentity")

def journalType = holder.getNodeValue("/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/journalEntryType");
assert journalType == context.JOURNAL_ENTRY_TYPE

def comments = holder.getNodeValue("/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/comments");
def accessByStaff = holder.getNodeValue("/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/allowAccessByClinicalStaff");
assert comments == context.COMMENTS
assert accessByStaff == context.ALLOWS_ACCESS_BY_CLINICAL_STAFF

def observationDate = holder.getNodeValue("/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/observationDate/literal");
assert observationDate == context.OBSERVATION_DATE

def dataEnterer = holder.getNodeValue("/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/dataEnterer");
assert dataEnterer == context.DATA_ENTERER

def mimeType = holder.getNodeValue("/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/binaryAttachments/binaryAttachment/mimeType");
def attachmentName = holder.getNodeValue("/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/binaryAttachments/binaryAttachment/name");
def hexBinaryAttachment = holder.getNodeValue("/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/binaryAttachments/binaryAttachment/hexBinaryAttachment");
assert mimeType == context.MIME_TYPE
assert attachmentName == context.CREATE_ATTACHMENT_NAME
assert hexBinaryAttachment == context.HEX_BINARY_ATTACHMENT</script></con:config></con:testStep><con:testStep type="request" name="updateDailyEventJournal"><con:settings/><con:config xsi:type="con:RequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>ClinicalDataServiceSynchronousInterfaceHttpBinding</con:interface><con:operation>updateClinicalData</con:operation><con:request name="updateDailyEventJournal"><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.med.DNS   ">
   <soapenv:Header/>
   <soapenv:Body>
      <cli:updateClinicalData>
      <in0><![CDATA[
         <?xml version="1.0" encoding="UTF-8"?>
<clinicaldata:ClinicalData xsi:schemaLocation="Clinicaldata HealthAdapterCreate1.xsd" xmlns:clinicaldata="Clinicaldata" xmlns:patientjournaling="PatientJournaling" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
	<templateId>${UPDATE_TEMPLATE_ID}</templateId>
	<clientName>HealthAdapter</clientName>
	<clientRequestInitiationTime>${CLIENT_REQUEST_INIT_TIME}</clientRequestInitiationTime>
	<patient>
		<patientJournalEntries>
			<patientjournaling:patientEnteredDailyEventJournalEntry>
				<eventTitle>${EVENT_TITLE}</eventTitle>
				<genericJournalEntryDetails>
					<patient>
						<identifier>
							<identity>${#Global#CDS_UNIQUE_PATIENT}</identity>
							<assigningFacility>${PATIENT_ASSIGNING_FACILITY}</assigningFacility>
							<assigningAuthority>${PATIENT_ASSIGNING_AUTHORITY}</assigningAuthority>
						</identifier>
						<name>
							<family>${PATIENT_NAME_FAMILY}</family>
							<given>${PATIENT_NAME_GIVEN}</given>
							<middle>${PATIENT_NAME_MIDDLE}</middle>
							<prefix>${PATIENT_NAME_PREFIX}</prefix>
							<suffix>${PATIENT_NAME_SUFFIX}</suffix>
							<title>${PATIENT_NAME_TITLE}</title>
						</name>
					</patient>
					<recordIdentifier>
						<identity>${#TestCase#recordIdentifierIdentity}</identity>
					</recordIdentifier>
					<journalEntryType>${JOURNALT_ENTRY_TYPE}PatientEnteredDailyEventJournalEntry</journalEntryType>
					<allowAccessByClinicalStaff>${ALLOWS_ACCESS_BY_CLINICAL_STAFF}</allowAccessByClinicalStaff>
					<comments>${UPDATE_COMMENTS}</comments>
					<observationDate>
						<literal>${OBSERVATION_DATE}</literal>
					</observationDate>
					<binaryAttachments>
						<binaryAttachment>
							<mimeType>image/jpg</mimeType>
							<name>${UPDATE_ATTACHMENT_NAME}</name>
							<hexBinaryAttachment>${HEX_BINARY_ATTACHMENT}</hexBinaryAttachment>
						</binaryAttachment>
					</binaryAttachments>
					<dataEnterer>${UPDATE_DATA_ENTERER}</dataEnterer>
				</genericJournalEntryDetails>
			</patientjournaling:patientEnteredDailyEventJournalEntry>
		</patientJournalEntries>
	</patient>
</clinicaldata:ClinicalData>]]]]>><![CDATA[
	</in0>
     <in1>${UPDATE_TEMPLATE_ID}</in1>
     <in2>${REQUEST_ID}</in2>
    </cli:updateClinicalData>
   </soapenv:Body>
</soapenv:Envelope>]]></con:request><con:assertion type="SOAP Response"/><con:assertion type="GroovyScriptAssertion" name="Script-checkForErrors"><con:configuration><scriptText>import com.eviware.soapui.support.XmlHolder
import org.w3c.dom.*

def holder = new XmlHolder( messageExchange.responseContentAsXml )
holder.namespaces["clinicaldata"] = "Clinicaldata"
def node = holder["//out"]
def descHolder = new XmlHolder( node )

def errors = descHolder.getDomNodes( "//clinicaldata:ClinicalData/errorSection/errors" )
assert errors.length == 0

def fatalErrors = descHolder.getDomNodes( "//clinicaldata:ClinicalData/errorSection/fatalErrors" )
assert fatalErrors.length == 0
</scriptText></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="request" name="readUpdatedDailyEventJournal"><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="readUpdatedDailyEventJournal"><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.med.DNS   ">
   <soapenv:Header/>
   <soapenv:Body>
      <cli:readClinicalData1>
         <in0>${READ_TEMPLATE_ID}</in0>          
		<in1><![CDATA[<?xml version="1.0" encoding="UTF-8"?>            
			<filter:filter xmlns:filter="Filter" vhimVersion="Vhim_4_00">
				<filterId>${READ_FILTER_ID}</filterId>
					<clientName>${CLIENT_NAME}</clientName>
					<clientRequestInitiationTime>${CLIENT_REQUEST_INIT_TIME}</clientRequestInitiationTime>
					<patients>
						<EdiPi>
							<assigningAuthority>${PATIENT_ASSIGNING_AUTHORITY}</assigningAuthority>
							<assigningFacility>${PATIENT_ASSIGNING_FACILITY}</assigningFacility>
							<identity>${#Global#CDS_UNIQUE_PATIENT}</identity>
						</EdiPi>
					</patients>
					<entryPointFilter queryName="ID_1">
						<filter:defaultDomainEntryPointFilter>
							<domainEntryPoint>PatientEnteredDailyEventJournalEntry</domainEntryPoint>
						</filter:defaultDomainEntryPointFilter>
				</entryPointFilter>
			</filter:filter>]]]]>><![CDATA[</in1>          
		<in2>${READ_FILTER_ID}</in2>          
		<in3>${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="validateUpdatedReadResponse"><con:settings/><con:config><script>import com.eviware.soapui.support.XmlHolder 

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

def soapResponseHolder = groovyUtils.getXmlHolder( "readUpdatedDailyEventJournal#Response" ) ;
def content = soapResponseHolder["//out"] ;
content = content.replaceAll( "&lt;!\\[CDATA\\[", "" ) 
content = content.replaceAll( "]]&gt;", "" ) 

def holder = groovyUtils.getXmlHolder( content ) ;

//example error check inside script - vs a response script (see createDailyEventJournal checkForErrors assertion)
def errors = holder.getDomNodes("/clinicaldata:ClinicalData/errorSection/errors");
assert errors.length == 0;
def fatalErrors = holder.getDomNodes("/clinicaldata:ClinicalData/errorSection/fatalErrors");
assert fatalErrors.length == 0;

//validate data content
def templateId = holder.getNodeValue("//templateId");
assert templateId == context.READ_TEMPLATE_ID;

def ediPiIdentity = holder.getNodeValue("/clinicaldata:ClinicalData/patients/patient/requestedEdiPi/identity");
def ediPiFacility = holder.getNodeValue("/clinicaldata:ClinicalData/patients/patient/requestedEdiPi/assigningFacility");
def ediPiAuthority = holder.getNodeValue("/clinicaldata:ClinicalData/patients/patient/requestedEdiPi/assigningAuthority");

assert ediPiIdentity == com.eviware.soapui.SoapUI.globalProperties.getPropertyValue("CDS_UNIQUE_PATIENT")
assert ediPiFacility == context.PATIENT_ASSIGNING_FACILITY
assert ediPiAuthority == context.PATIENT_ASSIGNING_AUTHORITY

def resultantIdentity = holder.getNodeValue("/clinicaldata:ClinicalData/patients/patient/resultantIdentifiers/resultantIdentifier/identity");
def resultantFacility = holder.getNodeValue("/clinicaldata:ClinicalData/patients/patient/resultantIdentifiers/resultantIdentifier/assigningFacility");
def resultantAuthority = holder.getNodeValue("/clinicaldata:ClinicalData/patients/patient/resultantIdentifiers/resultantIdentifier/assigningAuthority");
assert resultantIdentity == com.eviware.soapui.SoapUI.globalProperties.getPropertyValue("CDS_UNIQUE_PATIENT")
assert resultantFacility == context.PATIENT_ASSIGNING_FACILITY
assert resultantAuthority == context.PATIENT_ASSIGNING_AUTHORITY

def eventTitle = holder.getNodeValue("/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/eventTitle");
assert eventTitle == context.EVENT_TITLE

def patientIdentity = holder.getNodeValue("/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/patient/identifier/identity");
def patientFacility = holder.getNodeValue("/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/patient/identifier/assigningFacility");
def patientAuthority = holder.getNodeValue("/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/patient/identifier/assigningAuthority");
assert patientIdentity == com.eviware.soapui.SoapUI.globalProperties.getPropertyValue("CDS_UNIQUE_PATIENT")
assert patientFacility == context.PATIENT_ASSIGNING_FACILITY
assert patientAuthority == context.PATIENT_ASSIGNING_AUTHORITY

def prefix = holder.getNodeValue("/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/patient/name/prefix");
def given = holder.getNodeValue("/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/patient/name/given");
def middle = holder.getNodeValue("/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/patient/name/middle");
def family = holder.getNodeValue("/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/patient/name/family");
def suffix = holder.getNodeValue("/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/patient/name/suffix");
def title = holder.getNodeValue("/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/patient/name/title");
assert prefix == context.PATIENT_NAME_PREFIX
assert given == context.PATIENT_NAME_GIVEN
assert middle == context.PATIENT_NAME_MIDDLE
assert family == context.PATIENT_NAME_FAMILY
assert suffix == context.PATIENT_NAME_SUFFIX
assert title == context.PATIENT_NAME_TITLE


def recordIdentifier = holder.getNodeValue("/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/recordIdentifier/identity");
assert recordIdentifier == testRunner.testCase.getPropertyValue("recordIdentifierIdentity")

def journalType = holder.getNodeValue("/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/journalEntryType");
assert journalType == context.JOURNAL_ENTRY_TYPE

def comments = holder.getNodeValue("/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/comments");
def accessByStaff = holder.getNodeValue("/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/allowAccessByClinicalStaff");
assert comments == context.UPDATE_COMMENTS
assert accessByStaff == context.ALLOWS_ACCESS_BY_CLINICAL_STAFF

def observationDate = holder.getNodeValue("/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/observationDate/literal");
assert observationDate == context.OBSERVATION_DATE

def dataEnterer = holder.getNodeValue("/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/dataEnterer");
assert dataEnterer == context.UPDATE_DATA_ENTERER

//def mimeType1 = holder.getNodeValue("/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/binaryAttachments/binaryAttachment[1]/mimeType");
//def attachmentName1 = holder.getNodeValue("/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/binaryAttachments/binaryAttachment[1]/name");
//def mimeType2 = holder.getNodeValue("/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/binaryAttachments/binaryAttachment[2]/mimeType");
//def attachmentName2 = holder.getNodeValue("/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/binaryAttachments/binaryAttachment[2]/name");

def mimeType1 = holder.getNodeValue("/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/binaryAttachments/binaryAttachment[1]/mimeType");
def attachmentName1 = holder.getDomNode("/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/binaryAttachments/binaryAttachment[name='context.UPDATE_ATTACHMENT_NAME']");
//def attachmentName1 = holder.getDomNode("/*[1]/binaryAttachment[name='inProgress2.giv']");
log.info("xpath query: " + attachmentName1)
def mimeType2 = holder.getNodeValue("/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/binaryAttachments/binaryAttachment[2]/mimeType");
def attachmentName2 = holder.getNodeValue("/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/binaryAttachments/binaryAttachment[2]/name");
log.info("attachemnt2: " + attachmentName2)
assert mimeType1 == context.MIME_TYPE
assert mimeType2 == context.MIME_TYPE
//assert attachmentName1 == context.UPDATE_ATTACHMENT_NAME
//assert attachmentName2 == context.CREATE_ATTACHMENT_NAME</script></con:config></con:testStep><con:testStep type="request" name="readUpdatedDailyEventJournalDetailsWithName"><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="readUpdatedDailyEventJournalDetailsWithName"><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.med.DNS   ">
   <soapenv:Header/>
   <soapenv:Body>
      <cli:readClinicalData1>
         <in0>${DETAIL_READ_TEMPLATE_ID}</in0>          
		<in1><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
			<filter:filter xmlns:filter="Filter" vhimVersion="Vhim_4_00">
				<filterId>${DETAIL_READ_FILTER_ID}</filterId>
					<clientName>${CLIENT_NAME}</clientName>
					<clientRequestInitiationTime>${CLIENT_REQUEST_INIT_TIME}</clientRequestInitiationTime>
					<entryPointFilter queryName="ID_1" isPatientCentric="false">
						<domainEntryPoint>PatientEnteredDailyEventJournalEntry</domainEntryPoint>
						<recordIdentifiers>
							<identity>${#TestCase#recordIdentifierIdentity}</identity>
						</recordIdentifiers>
						<otherQueryParameters>
							<attachmentName>${UPDATE_ATTACHMENT_NAME}</attachmentName>
						</otherQueryParameters>
					</entryPointFilter>
			</filter:filter>]]]]>><![CDATA[</in1>          
		<in2>${DETAIL_READ_FILTER_ID}</in2>          
		<in3>${REQUEST_ID}</in3>
      </cli:readClinicalData1>
   </soapenv:Body>
</soapenv:Envelope>]]></con:request><con:assertion type="SOAP Response"/><con:assertion type="GroovyScriptAssertion" name="Script-countBinaryAttachments"><con:configuration><scriptText>import com.eviware.soapui.support.XmlHolder
import org.w3c.dom.*

def holder = new XmlHolder( messageExchange.responseContentAsXml )
holder.namespaces["clinicaldata"] = "Clinicaldata"
def node = holder["//out"]
def descHolder = new XmlHolder( node )

//def binaryAttachments = descHolder.getDomNodes( "/clinicaldata:ClinicalData/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/binaryAttachments" ).length
def binaryAttachments = descHolder.getDomNodes( "//binaryAttachments/binaryAttachment" ).length
assert binaryAttachments == 1</scriptText></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="validateUpdatedReadWithName"><con:settings/><con:config><script>import com.eviware.soapui.support.XmlHolder 

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

def soapResponseHolder = groovyUtils.getXmlHolder( "readUpdatedDailyEventJournalDetailsWithName#Response" ) ;
def content = soapResponseHolder["//out"] ;
content = content.replaceAll( "&lt;!\\[CDATA\\[", "" ) 
content = content.replaceAll( "]]&gt;", "" ) 
def holder = groovyUtils.getXmlHolder( content ) ;

//example error check inside script - vs a response script (see createDailyEventJournal checkForErrors assertion)
def errors = holder.getDomNodes("/clinicaldata:ClinicalData/errorSection/errors");
assert errors.length == 0;
def fatalErrors = holder.getDomNodes("/clinicaldata:ClinicalData/errorSection/fatalErrors");
assert fatalErrors.length == 0;

//validate data content
def templateId = holder.getNodeValue("//templateId");
assert templateId == context.DETAIL_READ_TEMPLATE_ID;

def eventTitle = holder.getNodeValue("/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/eventTitle");
assert eventTitle == context.EVENT_TITLE

def patientIdentity = holder.getNodeValue("/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/patient/identifier/identity");
def patientFacility = holder.getNodeValue("/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/patient/identifier/assigningFacility");
def patientAuthority = holder.getNodeValue("/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/patient/identifier/assigningAuthority");
assert patientIdentity == com.eviware.soapui.SoapUI.globalProperties.getPropertyValue("CDS_UNIQUE_PATIENT")
assert patientFacility == context.PATIENT_ASSIGNING_FACILITY
assert patientAuthority == context.PATIENT_ASSIGNING_AUTHORITY

def prefix = holder.getNodeValue("/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/patient/name/prefix");
def given = holder.getNodeValue("/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/patient/name/given");
def middle = holder.getNodeValue("/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/patient/name/middle");
def family = holder.getNodeValue("/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/patient/name/family");
def suffix = holder.getNodeValue("/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/patient/name/suffix");
def title = holder.getNodeValue("/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/patient/name/title");
assert prefix == context.PATIENT_NAME_PREFIX
assert given == context.PATIENT_NAME_GIVEN
assert middle == context.PATIENT_NAME_MIDDLE
assert family == context.PATIENT_NAME_FAMILY
assert suffix == context.PATIENT_NAME_SUFFIX
assert title == context.PATIENT_NAME_TITLE

def recordIdentifier = holder.getNodeValue("/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/recordIdentifier/identity");
assert recordIdentifier == testRunner.testCase.getPropertyValue("recordIdentifierIdentity")

def journalType = holder.getNodeValue("/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/journalEntryType");
assert journalType == context.JOURNAL_ENTRY_TYPE

def comments = holder.getNodeValue("/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/comments");
def accessByStaff = holder.getNodeValue("/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/allowAccessByClinicalStaff");
assert comments == context.UPDATE_COMMENTS
assert accessByStaff == context.ALLOWS_ACCESS_BY_CLINICAL_STAFF

def observationDate = holder.getNodeValue("/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/observationDate/literal");
assert observationDate == context.OBSERVATION_DATE

def dataEnterer = holder.getNodeValue("/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/dataEnterer");
assert dataEnterer == context.UPDATE_DATA_ENTERER

def mimeType = holder.getNodeValue("/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/binaryAttachments/binaryAttachment/mimeType");
def attachmentName = holder.getNodeValue("/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/binaryAttachments/binaryAttachment/name");
def hexBinaryAttachment = holder.getNodeValue("/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/binaryAttachments/binaryAttachment/hexBinaryAttachment");
assert mimeType == context.MIME_TYPE
assert attachmentName == context.UPDATE_ATTACHMENT_NAME
assert hexBinaryAttachment == context.HEX_BINARY_ATTACHMENT</script></con:config></con:testStep><con:testStep type="request" name="readUpdatedDailyEventJournalDetailsWithoutName"><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="readUpdatedDailyEventJournalDetailsWithoutName"><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.med.DNS   ">
   <soapenv:Header/>
   <soapenv:Body>
      <cli:readClinicalData1>
         <in0>${DETAIL_READ_TEMPLATE_ID}</in0>          
		<in1><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
			<filter:filter xmlns:filter="Filter" vhimVersion="Vhim_4_00">
				<filterId>${DETAIL_READ_FILTER_ID}</filterId>
					<clientName>${CLIENT_NAME}</clientName>
					<clientRequestInitiationTime>${CLIENT_REQUEST_INIT_TIME}</clientRequestInitiationTime>
					<entryPointFilter queryName="ID_1" isPatientCentric="false">
						<domainEntryPoint>PatientEnteredDailyEventJournalEntry</domainEntryPoint>
						<recordIdentifiers>
							<identity>${#TestCase#recordIdentifierIdentity}</identity>
						</recordIdentifiers>
					</entryPointFilter>
			</filter:filter>]]]]>><![CDATA[</in1>          
		<in2>${DETAIL_READ_FILTER_ID}</in2>          
		<in3>${REQUEST_ID}</in3>
      </cli:readClinicalData1>
   </soapenv:Body>
</soapenv:Envelope>]]></con:request><con:assertion type="SOAP Response"/><con:assertion type="GroovyScriptAssertion" name="Script-countBinaryAttachments"><con:configuration><scriptText>import com.eviware.soapui.support.XmlHolder
import org.w3c.dom.*

def holder = new XmlHolder( messageExchange.responseContentAsXml )
holder.namespaces["clinicaldata"] = "Clinicaldata"
def node = holder["//out"]
def descHolder = new XmlHolder( node )

//def binaryAttachments = descHolder.getDomNodes( "/clinicaldata:ClinicalData/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry//genericJournalEntryDetails/binaryAttachments/binaryAttachment" ).length
def binaryAttachments = descHolder.getDomNodes( "//binaryAttachments/binaryAttachment" ).length
assert binaryAttachments == 2</scriptText></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="validateUpdatedReadWithoutName"><con:settings/><con:config><script>import com.eviware.soapui.support.XmlHolder 

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

def soapResponseHolder = groovyUtils.getXmlHolder( "readUpdatedDailyEventJournalDetailsWithoutName#Response" ) ;
def content = soapResponseHolder["//out"] ;
content = content.replaceAll( "&lt;!\\[CDATA\\[", "" ) 
content = content.replaceAll( "]]&gt;", "" ) 
def holder = groovyUtils.getXmlHolder( content ) ;

//example error check inside script - vs a response script (see createDailyEventJournal checkForErrors assertion)
def errors = holder.getDomNodes("/clinicaldata:ClinicalData/errorSection/errors");
assert errors.length == 0;
def fatalErrors = holder.getDomNodes("/clinicaldata:ClinicalData/errorSection/fatalErrors");
assert fatalErrors.length == 0;

//validate data content
def templateId = holder.getNodeValue("//templateId");
assert templateId == context.DETAIL_READ_TEMPLATE_ID;

def eventTitle = holder.getNodeValue("/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/eventTitle");
assert eventTitle == context.EVENT_TITLE

def patientIdentity = holder.getNodeValue("/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/patient/identifier/identity");
def patientFacility = holder.getNodeValue("/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/patient/identifier/assigningFacility");
def patientAuthority = holder.getNodeValue("/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/patient/identifier/assigningAuthority");
assert patientIdentity == com.eviware.soapui.SoapUI.globalProperties.getPropertyValue("CDS_UNIQUE_PATIENT")
assert patientFacility == context.PATIENT_ASSIGNING_FACILITY
assert patientAuthority == context.PATIENT_ASSIGNING_AUTHORITY

def prefix = holder.getNodeValue("/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/patient/name/prefix");
def given = holder.getNodeValue("/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/patient/name/given");
def middle = holder.getNodeValue("/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/patient/name/middle");
def family = holder.getNodeValue("/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/patient/name/family");
def suffix = holder.getNodeValue("/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/patient/name/suffix");
def title = holder.getNodeValue("/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/patient/name/title");
assert prefix == context.PATIENT_NAME_PREFIX
assert given == context.PATIENT_NAME_GIVEN
assert middle == context.PATIENT_NAME_MIDDLE
assert family == context.PATIENT_NAME_FAMILY
assert suffix == context.PATIENT_NAME_SUFFIX
assert title == context.PATIENT_NAME_TITLE

def recordIdentifier = holder.getNodeValue("/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/recordIdentifier/identity");
assert recordIdentifier == testRunner.testCase.getPropertyValue("recordIdentifierIdentity")

def journalType = holder.getNodeValue("/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/journalEntryType");
assert journalType == context.JOURNAL_ENTRY_TYPE

def comments = holder.getNodeValue("/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/comments");
def accessByStaff = holder.getNodeValue("/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/allowAccessByClinicalStaff");
assert comments == context.UPDATE_COMMENTS
assert accessByStaff == context.ALLOWS_ACCESS_BY_CLINICAL_STAFF

def observationDate = holder.getNodeValue("/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/observationDate/literal");
assert observationDate == context.OBSERVATION_DATE

def dataEnterer = holder.getNodeValue("/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/dataEnterer");
assert dataEnterer == context.UPDATE_DATA_ENTERER

def mimeType1 = holder.getNodeValue("/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/binaryAttachments/binaryAttachment[1]/mimeType");
def attachmentName1 = holder.getNodeValue("/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/binaryAttachments/binaryAttachment[1]/name");
def mimeType2 = holder.getNodeValue("/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/binaryAttachments/binaryAttachment[2]/mimeType");
def attachmentName2 = holder.getNodeValue("/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/binaryAttachments/binaryAttachment[2]/name");
def hexBinaryAttachment1 = holder.getNodeValue("/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/binaryAttachments/binaryAttachment[1]/hexBinaryAttachment");
def hexBinaryAttachment2 = holder.getNodeValue("/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/binaryAttachments/binaryAttachment[2]/hexBinaryAttachment");
assert mimeType1 == context.MIME_TYPE
assert mimeType2 == context.MIME_TYPE
//assert attachmentName1 == context.UPDATE_ATTACHMENT_NAME
//assert attachmentName2 == context.CREATE_ATTACHMENT_NAME
assert hexBinaryAttachment1 == context.HEX_BINARY_ATTACHMENT
assert hexBinaryAttachment2 == context.HEX_BINARY_ATTACHMENT</script></con:config></con:testStep><con:testStep type="request" name="createSecondDailyEventJournal"><con:settings/><con:config xsi:type="con:RequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>ClinicalDataServiceSynchronousInterfaceHttpBinding</con:interface><con:operation>createClinicalData</con:operation><con:request name="createSecondDailyEventJournal"><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.med.DNS   ">
   <soapenv:Header/>
   <soapenv:Body>
      <cli:createClinicalData>
         <in0><![CDATA[
         <?xml version="1.0" encoding="UTF-8"?>
<clinicaldata:ClinicalData xsi:schemaLocation="Clinicaldata HealthAdapterCreate1.xsd" xmlns:clinicaldata="Clinicaldata" xmlns:patientjournaling="PatientJournaling" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
	<templateId>${CREATE_TEMPLATE_ID}</templateId>
	<clientName>HealthAdapter</clientName>
	<clientRequestInitiationTime>${CLIENT_REQUEST_INIT_TIME}</clientRequestInitiationTime>
	<patient>
		<patientJournalEntries>
			<patientjournaling:patientEnteredDailyEventJournalEntry>
				<eventTitle>${SECOND_EVENT_TITLE}</eventTitle>
				<genericJournalEntryDetails>
					<patient>
						<identifier>
							<identity>${#Global#CDS_UNIQUE_PATIENT}</identity>
							<assigningFacility>${PATIENT_ASSIGNING_FACILITY}</assigningFacility>
							<assigningAuthority>${PATIENT_ASSIGNING_AUTHORITY}</assigningAuthority>
						</identifier>
						<name>
							<family>${PATIENT_NAME_FAMILY}</family>
							<given>${PATIENT_NAME_GIVEN}</given>
							<middle>${PATIENT_NAME_MIDDLE}</middle>
							<prefix>${PATIENT_NAME_PREFIX}</prefix>
							<suffix>${PATIENT_NAME_SUFFIX}</suffix>
							<title>${PATIENT_NAME_TITLE}</title>
						</name>
					</patient>
					<journalEntryType>${JOURNALT_ENTRY_TYPE}PatientEnteredDailyEventJournalEntry</journalEntryType>
					<allowAccessByClinicalStaff>${ALLOWS_ACCESS_BY_CLINICAL_STAFF}</allowAccessByClinicalStaff>
					<comments>${COMMENTS}</comments>
					<observationDate>
						<literal>${OBSERVATION_DATE}</literal>
					</observationDate>
					<dataEnterer>${DATA_ENTERER}</dataEnterer>
				</genericJournalEntryDetails>
			</patientjournaling:patientEnteredDailyEventJournalEntry>
		</patientJournalEntries>
	</patient>
</clinicaldata:ClinicalData>]]]]>><![CDATA[
	</in0>
     <in1>${CREATE_TEMPLATE_ID}</in1>
     <in2>${SECOND_REQUEST_ID}</in2>
    </cli:createClinicalData>
   </soapenv:Body>
</soapenv:Envelope>
]]></con:request><con:assertion type="SOAP Response" disabled="true"/><con:assertion type="GroovyScriptAssertion" name="checkForErrors"><con:configuration><scriptText>import com.eviware.soapui.support.XmlHolder
import org.w3c.dom.*

def holder = new XmlHolder( messageExchange.responseContentAsXml )
holder.namespaces["clinicaldata"] = "Clinicaldata"
def node = holder["//out"]
def descHolder = new XmlHolder( node )

def errors = descHolder.getDomNodes( "//clinicaldata:ClinicalData/errorSection/errors" )
assert errors.length == 0

def fatalErrors = descHolder.getDomNodes( "//clinicaldata:ClinicalData/errorSection/fatalErrors" )
assert fatalErrors.length == 0
</scriptText></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="getSecondRecordIdentifierIdentity"><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>getCreateResponseXml</con:name><con:sourceType>Response</con:sourceType><con:sourceStep>createSecondDailyEventJournal</con:sourceStep><con:sourcePath>//out</con:sourcePath><con:targetType>secondCreateResponseXml</con:targetType><con:targetStep>#TestCase#</con:targetStep></con:transfers><con:transfers setNullOnMissingSource="true" transferTextContent="true" failOnError="true" ignoreEmpty="false" transferToAll="false" useXQuery="false" entitize="false" transferChildNodes="false"><con:name>getRecordIdentifierIdentity</con:name><con:sourceType>secondCreateResponseXml</con:sourceType><con:sourceStep>#TestCase#</con:sourceStep><con:sourcePath>//recordIdentifiers/recordIdentifier/identity</con:sourcePath><con:targetType>secondRecordIdentifierIdentity</con:targetType><con:targetStep>#TestCase#</con:targetStep></con:transfers></con:config></con:testStep><con:testStep type="request" name="readAndConfirmTwoDailyEventJournals"><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="readAndConfirmTwoDailyEventJournals"><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.med.DNS   ">
   <soapenv:Header/>
   <soapenv:Body>
      <cli:readClinicalData1>
         <in0>${READ_TEMPLATE_ID}</in0>          
		<in1><![CDATA[<?xml version="1.0" encoding="UTF-8"?>            
			<filter:filter xmlns:filter="Filter" vhimVersion="Vhim_4_00">
				<filterId>${READ_FILTER_ID}</filterId>
					<clientName>${CLIENT_NAME}</clientName>
					<clientRequestInitiationTime>${CLIENT_REQUEST_INIT_TIME}</clientRequestInitiationTime>
					<patients>
						<EdiPi>
							<assigningAuthority>${PATIENT_ASSIGNING_AUTHORITY}</assigningAuthority>
							<assigningFacility>${PATIENT_ASSIGNING_FACILITY}</assigningFacility>
							<identity>${#Global#CDS_UNIQUE_PATIENT}</identity>
						</EdiPi>
					</patients>
					<entryPointFilter queryName="ID_1">
						<filter:defaultDomainEntryPointFilter>
							<domainEntryPoint>PatientEnteredDailyEventJournalEntry</domainEntryPoint>
						</filter:defaultDomainEntryPointFilter>
				</entryPointFilter>
			</filter:filter>]]]]>><![CDATA[</in1>          
		<in2>${READ_FILTER_ID}</in2>          
		<in3>${REQUEST_ID}</in3>
      </cli:readClinicalData1>
   </soapenv:Body>
</soapenv:Envelope>]]></con:request><con:assertion type="SOAP Response"/><con:assertion type="GroovyScriptAssertion" name="confirm_two_JournalRecords"><con:configuration><scriptText>import com.eviware.soapui.support.XmlHolder
import org.w3c.dom.*

def holder = new XmlHolder( messageExchange.responseContentAsXml )
holder.namespaces["clinicaldata"] = "Clinicaldata"
def node = holder["//out"]
def descHolder = new XmlHolder( node )

def genericJournalEntryDetails = descHolder.getDomNodes( "//clinicaldata:ClinicalData/patients/patient//patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails " ).length
assert genericJournalEntryDetails == 2
</scriptText></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="request" name="logicallyDeleteSecondDailyEventJournal"><con:settings/><con:config xsi:type="con:RequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>ClinicalDataServiceSynchronousInterfaceHttpBinding</con:interface><con:operation>deleteClinicalData</con:operation><con:request name="logicallyDeleteSecondDailyEventJournal"><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.med.DNS   ">
   <soapenv:Header/>
   <soapenv:Body>
      <cli:deleteClinicalData>
         <in0><![CDATA[
			<?xml version="1.0" encoding="UTF-8"?>
			<clinicaldata:ClinicalData xsi:schemaLocation="Clinicaldata HealthAdapterDelete1.xsd" xmlns:clinicaldata="Clinicaldata" xmlns:patientjournaling="PatientJournaling" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
				<templateId>${DELETE_TEMPLATE_ID}</templateId>
				<clientName>HealthAdapter</clientName>
				<clientRequestInitiationTime>${CLIENT_REQUEST_INIT_TIME}</clientRequestInitiationTime>
			<patient>
				<patientJournalEntries>
					<patientjournaling:patientEnteredDailyEventJournalEntry>
						<genericJournalEntryDetails>
							<recordIdentifier>
								<identity>${#TestCase#secondRecordIdentifierIdentity}</identity>
							</recordIdentifier>
							<recordStatus>1</recordStatus>
						</genericJournalEntryDetails>
					</patientjournaling:patientEnteredDailyEventJournalEntry>
				</patientJournalEntries>
			</patient>
			</clinicaldata:ClinicalData>
              ]]]]>><![CDATA[
         </in0>
         <in1>${DELETE_TEMPLATE_ID}</in1>
         <in2>${DELETE_SECOND_REQUEST_ID}</in2>
      </cli:deleteClinicalData>
   </soapenv:Body>
</soapenv:Envelope>]]></con:request><con:assertion type="SOAP Response"/><con:assertion type="GroovyScriptAssertion" name="checkForErrors"><con:configuration><scriptText>import com.eviware.soapui.support.XmlHolder
import org.w3c.dom.*

def holder = new XmlHolder( messageExchange.responseContentAsXml )
holder.namespaces["clinicaldata"] = "Clinicaldata"
def node = holder["//out"]
def descHolder = new XmlHolder( node )

def errors = descHolder.getDomNodes( "//clinicaldata:ClinicalData/errorSection/errors" )
assert errors.length == 0

def fatalErrors = descHolder.getDomNodes( "//clinicaldata:ClinicalData/errorSection/fatalErrors" )
assert fatalErrors.length == 0</scriptText></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="request" name="readAndConfirmLogicalDelete"><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="readAndConfirmLogicalDelete"><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.med.DNS   ">
   <soapenv:Header/>
   <soapenv:Body>
      <cli:readClinicalData1>
         <in0>${READ_TEMPLATE_ID}</in0>          
		<in1><![CDATA[<?xml version="1.0" encoding="UTF-8"?>            
			<filter:filter xmlns:filter="Filter" vhimVersion="Vhim_4_00">
				<filterId>${READ_FILTER_ID}</filterId>
					<clientName>${CLIENT_NAME}</clientName>
					<clientRequestInitiationTime>${CLIENT_REQUEST_INIT_TIME}</clientRequestInitiationTime>
					<patients>
						<EdiPi>
							<assigningAuthority>${PATIENT_ASSIGNING_AUTHORITY}</assigningAuthority>
							<assigningFacility>${PATIENT_ASSIGNING_FACILITY}</assigningFacility>
							<identity>${#Global#CDS_UNIQUE_PATIENT}</identity>
						</EdiPi>
					</patients>
					<entryPointFilter queryName="ID_1">
						<filter:defaultDomainEntryPointFilter>
							<domainEntryPoint>PatientEnteredDailyEventJournalEntry</domainEntryPoint>
						</filter:defaultDomainEntryPointFilter>
				</entryPointFilter>
			</filter:filter>]]]]>><![CDATA[</in1>          
		<in2>${READ_FILTER_ID}</in2>          
		<in3>${REQUEST_ID}</in3>
      </cli:readClinicalData1>
   </soapenv:Body>
</soapenv:Envelope>]]></con:request><con:assertion type="SOAP Response"/><con:assertion type="GroovyScriptAssertion" name="confirm-one-JournalRecord"><con:configuration><scriptText>import com.eviware.soapui.support.XmlHolder
import org.w3c.dom.*

def holder = new XmlHolder( messageExchange.responseContentAsXml )
holder.namespaces["clinicaldata"] = "Clinicaldata"
def node = holder["//out"]
def descHolder = new XmlHolder( node )

def genericJournalEntryDetails = descHolder.getDomNodes( "//clinicaldata:ClinicalData/patients/patient//patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails " ).length
assert genericJournalEntryDetails == 1
</scriptText></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="request" name="physicallyDeleteOriginalDailyEventJournal"><con:settings/><con:config xsi:type="con:RequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>ClinicalDataServiceSynchronousInterfaceHttpBinding</con:interface><con:operation>deleteClinicalData</con:operation><con:request name="physicallyDeleteOriginalDailyEventJournal"><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.med.DNS   ">
   <soapenv:Header/>
   <soapenv:Body>
      <cli:deleteClinicalData>
         <in0><![CDATA[
			<?xml version="1.0" encoding="UTF-8"?>
			<clinicaldata:ClinicalData xsi:schemaLocation="Clinicaldata HealthAdapterDelete1.xsd" xmlns:clinicaldata="Clinicaldata" xmlns:patientjournaling="PatientJournaling" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
				<templateId>${DELETE_TEMPLATE_ID}</templateId>
				<clientName>HealthAdapter</clientName>
				<clientRequestInitiationTime>${CLIENT_REQUEST_INIT_TIME}</clientRequestInitiationTime>
			<patient>
				<patientJournalEntries>
					<patientjournaling:patientEnteredDailyEventJournalEntry>
						<genericJournalEntryDetails>
							<recordIdentifier>
								<identity>${#TestCase#RecordIdentifierIdentity}</identity>
							</recordIdentifier>
							<recordStatus>0</recordStatus>
						</genericJournalEntryDetails>
					</patientjournaling:patientEnteredDailyEventJournalEntry>
				</patientJournalEntries>
			</patient>
			</clinicaldata:ClinicalData>
              ]]]]>><![CDATA[
         </in0>
         <in1>${DELETE_TEMPLATE_ID}</in1>
         <in2>${DELETE_ORIGINAL_REQUEST_ID}</in2>
      </cli:deleteClinicalData>
   </soapenv:Body>
</soapenv:Envelope>]]></con:request><con:assertion type="SOAP Response"/><con:assertion type="GroovyScriptAssertion" name="checkForErrors"><con:configuration><scriptText>import com.eviware.soapui.support.XmlHolder
import org.w3c.dom.*

def holder = new XmlHolder( messageExchange.responseContentAsXml )
holder.namespaces["clinicaldata"] = "Clinicaldata"
def node = holder["//out"]
def descHolder = new XmlHolder( node )

def errors = descHolder.getDomNodes( "//clinicaldata:ClinicalData/errorSection/errors" )
assert errors.length == 0

def fatalErrors = descHolder.getDomNodes( "//clinicaldata:ClinicalData/errorSection/fatalErrors" )
assert fatalErrors.length == 0</scriptText></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="request" name="readAndConfirmPhysicallDelete"><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="readAndConfirmPhysicallDelete"><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.med.DNS   ">
   <soapenv:Header/>
   <soapenv:Body>
      <cli:readClinicalData1>
         <in0>${READ_TEMPLATE_ID}</in0>          
		<in1><![CDATA[<?xml version="1.0" encoding="UTF-8"?>            
			<filter:filter xmlns:filter="Filter" vhimVersion="Vhim_4_00">
				<filterId>${READ_FILTER_ID}</filterId>
					<clientName>${CLIENT_NAME}</clientName>
					<clientRequestInitiationTime>${CLIENT_REQUEST_INIT_TIME}</clientRequestInitiationTime>
					<patients>
						<EdiPi>
							<assigningAuthority>${PATIENT_ASSIGNING_AUTHORITY}</assigningAuthority>
							<assigningFacility>${PATIENT_ASSIGNING_FACILITY}</assigningFacility>
							<identity>${#Global#CDS_UNIQUE_PATIENT}</identity>
						</EdiPi>
					</patients>
					<entryPointFilter queryName="ID_1">
						<filter:defaultDomainEntryPointFilter>
							<domainEntryPoint>PatientEnteredDailyEventJournalEntry</domainEntryPoint>
						</filter:defaultDomainEntryPointFilter>
				</entryPointFilter>
			</filter:filter>]]]]>><![CDATA[</in1>          
		<in2>${READ_FILTER_ID}</in2>          
		<in3>${REQUEST_ID}</in3>
      </cli:readClinicalData1>
   </soapenv:Body>
</soapenv:Envelope>]]></con:request><con:assertion type="SOAP Response"/><con:assertion type="Simple NotContains" name="Not Contains"><con:configuration><token>(?s).*genericJournalEntryDetails*.</token><ignoreCase>false</ignoreCase><useRegEx>true</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="jdbc" name="cleanup-doDelete"><con:settings/><con:config xsi:type="con:JdbcRequestTestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:driver>oracle.jdbc.OracleDriver</con:driver><con:connectionString>${CDS_JDBC_CONNECTION_STRING}</con:connectionString><con:query>DELETE FROM ${TABLE_NAME} WHERE PATIENT_IDENTITY = '${CDS_UNIQUE_PATIENT}'

</con:query><con:properties/></con:config></con:testStep><con:properties><con:property><con:name>createResponseXml</con:name><con:value><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
<clinicaldata:ClinicalData xmlns:clinicaldata="Clinicaldata"><templateId>HealthAdapterCreate1</templateId><requestId>e7f2150c-13e0-4bc4-9639-f6b9dc6e2d76</requestId><recordIdentifiers><recordIdentifier><identity>3015</identity></recordIdentifier></recordIdentifiers><errorSection/></clinicaldata:ClinicalData>]]></con:value></con:property><con:property><con:name>recordIdentifierIdentity</con:name><con:value>3015</con:value></con:property><con:property><con:name>secondCreateResponseXml</con:name><con:value><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
<clinicaldata:ClinicalData xmlns:clinicaldata="Clinicaldata"><templateId>HealthAdapterCreate1</templateId><requestId>d6f53fa1-6812-47ff-993a-aafc4a8fd00e</requestId><recordIdentifiers><recordIdentifier><identity>3016</identity></recordIdentifier></recordIdentifiers><errorSection/></clinicaldata:ClinicalData>]]></con:value></con:property><con:property><con:name>secondRecordIdentifierIdentity</con:name><con:value>3016</con:value></con:property><con:property><con:name>createRequestXml</con:name><con:value><![CDATA[
         <?xml version="1.0" encoding="UTF-8"?>
<clinicaldata:ClinicalData xsi:schemaLocation="Clinicaldata HealthAdapterCreate1.xsd" xmlns:clinicaldata="Clinicaldata" xmlns:patientjournaling="PatientJournaling" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
	<templateId>HealthAdapterCreate1</templateId>
	<clientName>HealthAdapter</clientName>
	<clientRequestInitiationTime>2012-09-19T07:03:43-06:00</clientRequestInitiationTime>
	<patient>
		<patientJournalEntries>
			<patientjournaling:patientEnteredDailyEventJournalEntry>
				<eventTitle>My Dog Skip</eventTitle>
				<genericJournalEntryDetails>
					<patient>
						<identifier>
							<identity>dev2_00000</identity>
							<assigningFacility>200DOD</assigningFacility>
							<assigningAuthority>USDOD</assigningAuthority>
						</identifier>
						<name>
							<family>FamilyName</family>
							<given>Given</given>
							<middle>MiddleName</middle>
							<prefix>Prefix</prefix>
							<suffix>Suffix</suffix>
							<title>Title</title>
						</name>
					</patient>
					<journalEntryType>PatientEnteredDailyEventJournalEntry</journalEntryType>
					<allowAccessByClinicalStaff>true</allowAccessByClinicalStaff>
					<comments>Today I bought a new puppy. I named him Skip. He likes to play catch with me.</comments>
					<observationDate>
						<literal>20120203172217-0600</literal>
					</observationDate>
					<binaryAttachments>
						<binaryAttachment>
							<mimeType>image/jpg</mimeType>
							<name>inProgress.gif</name>
							<hexBinaryAttachment>47494638396110001000f40000ffffff000000f8f8f8383838848484060606262626d6d6d6a8a8a8161616767676666666e4e4e4989898c6c6c648484856565600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000021fe1a43726561746564207769746820616a61786c6f61642e696e666f0021f904000a00000021ff0b4e45545343415045322e3003010000002c000000001000100000055020208e64699ea530146c212a8460aaad9814c6911a3580f006d988805b8d043c02698550911085018985a28eac292c80495af8a22462f0ba4892903884a835261d7889356b203c1314f2791dc5ef8f420021f904000a0001002c000000001000100000056820208a47d28c682a1ac5e0a8a84024457dc0c0c1d6c502088c9480656814120cc1c02040110a4cc080f0635147830242b4e5b6503598203caa35556451b62be822bea3679430a816aea2a18f416b10cf2341000b3c503730073c090480300e5906382a0d098723210021f904000a0002002c000000001000100000056020208e23f39028da14482a0ac45014092da48731ef33810a3a43cb314bb4488482e106482e9824d9b179000810bed1cc05d86a0b2e81574440dc0e5900a230480916852c308e42d40a8e6b104ae6ed0c553f357703047c246b0d5c290f0c8b210021f904000a0003002c000000001000100000055220208e64699e802094023114c540a883431e06ac17c66b8b829c012142e4603f0081b702be90234582387a4251588063bb6da2760b1222a120e9c2a3608160860d5546a61972dc190ea570eb29f366ff80210021f904000a0004002c000000001000100000056020208e64699ea8400c453110c2c9186d5d18c7b918488cd086d82807108a04340220e7282c18a6462161480058539808816d35a4b501624448b40600aab961622c0a8e258070331663c423b027f80dec220734363750262a582f80288c8d24210021f904000a0005002c000000001000100000055f20208e64699ea84814c54008a6403400c2b2c64122499108b09aa160083e6e850549302488188d1e4b37b20d482c07c1892d74832a8283451a1410a4c32dd160a88860c002f91031890818b097408f0e433768082f310466055c298b8c2621003b000000000000000000</hexBinaryAttachment>
						</binaryAttachment>
					</binaryAttachments>
					<dataEnterer>HDRPROVIDER,ONE</dataEnterer>
				</genericJournalEntryDetails>
			</patientjournaling:patientEnteredDailyEventJournalEntry>
		</patientJournalEntries>
	</patient>
</clinicaldata:ClinicalData>
	]]></con:value></con:property><con:property><con:name>updateRequestXml</con:name><con:value><![CDATA[
         <?xml version="1.0" encoding="UTF-8"?>
<clinicaldata:ClinicalData xsi:schemaLocation="Clinicaldata HealthAdapterCreate1.xsd" xmlns:clinicaldata="Clinicaldata" xmlns:patientjournaling="PatientJournaling" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
	<templateId>HealthAdapterUpdate1</templateId>
	<clientName>HealthAdapter</clientName>
	<clientRequestInitiationTime>2012-09-14T15:46:23-06:00</clientRequestInitiationTime>
	<patient>
		<patientJournalEntries>
			<patientjournaling:patientEnteredDailyEventJournalEntry>
				<eventTitle>My Dog Skip</eventTitle>
				<genericJournalEntryDetails>
					<patient>
						<identifier>
							<identity>dev2_00000</identity>
							<assigningFacility>200DOD</assigningFacility>
							<assigningAuthority>USDOD</assigningAuthority>
						</identifier>
						<name>
							<family>FamilyName</family>
							<given>Given</given>
							<middle>MiddleName</middle>
							<prefix>Prefix</prefix>
							<suffix>Suffix</suffix>
							<title>Title</title>
						</name>
					</patient>
					<recordIdentifier>
						<identity>9092</identity>
					</recordIdentifier>
					<journalEntryType>PatientEnteredDailyEventJournalEntry</journalEntryType>
					<allowAccessByClinicalStaff>true</allowAccessByClinicalStaff>
					<comments>Today I bought a new puppy. I named him Skip. He likes to play catch with me. He is the best little pal to play with.</comments>
					<observationDate>
						<literal>20120203172217-0600</literal>
					</observationDate>
					<binaryAttachments>
						<binaryAttachment>
							<mimeType>image/jpg</mimeType>
							<name>inProgress2.giv</name>
							<hexBinaryAttachment>47494638396110001000f40000ffffff000000f8f8f8383838848484060606262626d6d6d6a8a8a8161616767676666666e4e4e4989898c6c6c648484856565600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000021fe1a43726561746564207769746820616a61786c6f61642e696e666f0021f904000a00000021ff0b4e45545343415045322e3003010000002c000000001000100000055020208e64699ea530146c212a8460aaad9814c6911a3580f006d988805b8d043c02698550911085018985a28eac292c80495af8a22462f0ba4892903884a835261d7889356b203c1314f2791dc5ef8f420021f904000a0001002c000000001000100000056820208a47d28c682a1ac5e0a8a84024457dc0c0c1d6c502088c9480656814120cc1c02040110a4cc080f0635147830242b4e5b6503598203caa35556451b62be822bea3679430a816aea2a18f416b10cf2341000b3c503730073c090480300e5906382a0d098723210021f904000a0002002c000000001000100000056020208e23f39028da14482a0ac45014092da48731ef33810a3a43cb314bb4488482e106482e9824d9b179000810bed1cc05d86a0b2e81574440dc0e5900a230480916852c308e42d40a8e6b104ae6ed0c553f357703047c246b0d5c290f0c8b210021f904000a0003002c000000001000100000055220208e64699e802094023114c540a883431e06ac17c66b8b829c012142e4603f0081b702be90234582387a4251588063bb6da2760b1222a120e9c2a3608160860d5546a61972dc190ea570eb29f366ff80210021f904000a0004002c000000001000100000056020208e64699ea8400c453110c2c9186d5d18c7b918488cd086d82807108a04340220e7282c18a6462161480058539808816d35a4b501624448b40600aab961622c0a8e258070331663c423b027f80dec220734363750262a582f80288c8d24210021f904000a0005002c000000001000100000055f20208e64699ea84814c54008a6403400c2b2c64122499108b09aa160083e6e850549302488188d1e4b37b20d482c07c1892d74832a8283451a1410a4c32dd160a88860c002f91031890818b097408f0e433768082f310466055c298b8c2621003b000000000000000000</hexBinaryAttachment>
						</binaryAttachment>
					</binaryAttachments>
					<dataEnterer>UPDATE_HDRPROVIDER,ONE</dataEnterer>
				</genericJournalEntryDetails>
			</patientjournaling:patientEnteredDailyEventJournalEntry>
		</patientJournalEntries>
	</patient>
</clinicaldata:ClinicalData>
	]]></con:value></con:property><con:property><con:name>createReadResponseXml</con:name><con:value><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
<clinicaldata:ClinicalData xmlns:clinicaldata="Clinicaldata"><templateId>HealthAdapterRead1</templateId><requestId>02d21c86-21c5-4dea-9889-01072c5344fc</requestId><patients><patient><requestedEdiPi><identity>dev2_00000</identity><assigningFacility>200DOD</assigningFacility><assigningAuthority>USDOD</assigningAuthority></requestedEdiPi><resultantIdentifiers><resultantIdentifier><identity>dev2_00000</identity><assigningFacility>200DOD</assigningFacility><assigningAuthority>USDOD</assigningAuthority></resultantIdentifier></resultantIdentifiers><patientJournalEntries><patientjournaling:patientEnteredDailyEventJournalEntry xmlns:patientjournaling="PatientJournaling"><eventTitle>My Dog Skip</eventTitle><genericJournalEntryDetails><patient><identifier><identity>dev2_00000</identity><assigningFacility>200DOD</assigningFacility><assigningAuthority>USDOD</assigningAuthority></identifier><name><prefix>Prefix</prefix><given>Given</given><middle>MiddleName</middle><family>FamilyName</family><suffix>Suffix</suffix><title>Title</title></name></patient><recordIdentifier><identity>13023</identity></recordIdentifier><journalEntryType>PatientEnteredDailyEventJournalEntry</journalEntryType><allowAccessByClinicalStaff>true</allowAccessByClinicalStaff><comments>Today I bought a new puppy. I named him Skip. He likes to play catch with me.</comments><observationDate><literal>20120203172217-0600</literal></observationDate><dataEnterer>HDRPROVIDER,ONE</dataEnterer><recordVersion>1</recordVersion><binaryAttachments><binaryAttachment><mimeType>image/jpg</mimeType><name>inProgress.gif</name></binaryAttachment></binaryAttachments></genericJournalEntryDetails></patientjournaling:patientEnteredDailyEventJournalEntry></patientJournalEntries></patient></patients></clinicaldata:ClinicalData>]]></con:value></con:property><con:property><con:name>updateResponseXml</con:name><con:value/></con:property><con:property><con:name>CDATA-RESPONSE</con:name><con:value><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
<clinicaldata:ClinicalData xmlns:clinicaldata="Clinicaldata"><templateId>HealthAdapterRead1</templateId><requestId>02d21c86-21c5-4dea-9889-01072c5344fc</requestId><patients><patient><requestedEdiPi><identity>dev2_00000</identity><assigningFacility>200DOD</assigningFacility><assigningAuthority>USDOD</assigningAuthority></requestedEdiPi><resultantIdentifiers><resultantIdentifier><identity>dev2_00000</identity><assigningFacility>200DOD</assigningFacility><assigningAuthority>USDOD</assigningAuthority></resultantIdentifier></resultantIdentifiers><patientJournalEntries><patientjournaling:patientEnteredDailyEventJournalEntry xmlns:patientjournaling="PatientJournaling"><eventTitle>My Dog Skip</eventTitle><genericJournalEntryDetails><patient><identifier><identity>dev2_00000</identity><assigningFacility>200DOD</assigningFacility><assigningAuthority>USDOD</assigningAuthority></identifier><name><prefix>Prefix</prefix><given>Given</given><middle>MiddleName</middle><family>FamilyName</family><suffix>Suffix</suffix><title>Title</title></name></patient><recordIdentifier><identity>13023</identity></recordIdentifier><journalEntryType>PatientEnteredDailyEventJournalEntry</journalEntryType><allowAccessByClinicalStaff>true</allowAccessByClinicalStaff><comments>Today I bought a new puppy. I named him Skip. He likes to play catch with me.</comments><observationDate><literal>20120203172217-0600</literal></observationDate><dataEnterer>HDRPROVIDER,ONE</dataEnterer><recordVersion>1</recordVersion><binaryAttachments><binaryAttachment><mimeType>image/jpg</mimeType><name>inProgress.gif</name></binaryAttachment></binaryAttachments></genericJournalEntryDetails></patientjournaling:patientEnteredDailyEventJournalEntry></patientJournalEntries></patient></patients></clinicaldata:ClinicalData>]]></con:value></con:property><con:property><con:name>CDATA-CREATE</con:name><con:value>${CDS_UNIQUE_PATIENT}</con:value></con:property><con:property><con:name>testProp</con:name><con:value/></con:property></con:properties></con:testCase><con:properties/></con:testSuite><con:testSuite name="HAPatientEnteredDailyEventJournal"><con:description>Place holder for the set of RSD requirements this test suite will test.
XX1
XX2
XX3
XX4
XX5
XX6
XX7
XX8
XX9</con:description><con:settings/><con:runType>SEQUENTIAL</con:runType><con:testCase failOnError="true" failTestCaseOnErrors="true" keepSession="false" maxResults="0" name="DoDeleteCleanup" searchProperties="true" id="9c001b74-0b53-499c-9279-9b61c2297986"><con:settings/><con:testStep type="jdbc" name="doDelete"><con:settings/><con:config xsi:type="con:JdbcRequestTestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:driver>oracle.jdbc.OracleDriver</con:driver><con:connectionString>${#Global#CDS_JDBC_CONNECTION_STRING}</con:connectionString><con:query>DELETE FROM ${#TestSuite#TABLE_NAME} WHERE PATIENT_IDENTITY = '${#Global#CDS_UNIQUE_PATIENT}'

</con:query><con:properties/></con:config></con:testStep><con:properties/></con:testCase><con:testCase failOnError="true" failTestCaseOnErrors="true" keepSession="false" maxResults="0" name="CreateDailyEventJournal" searchProperties="true" id="9ad62978-85c4-4d0c-8cdc-316142165b2e"><con:description>This test case tests Creating a PatientEnteredDailyEventJournal and specfically fullfills the following requirements:
XX1
XX2
XX3</con:description><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.REQUEST_ID = UUID.randomUUID().toString();</script></con:config></con:testStep><con:testStep type="request" name="createDailyEventJournal"><con:settings/><con:config xsi:type="con:RequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>ClinicalDataServiceSynchronousInterfaceHttpBinding</con:interface><con:operation>createClinicalData</con:operation><con:request name="createDailyEventJournal"><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.med.DNS   ">
   <soapenv:Header/>
   <soapenv:Body>
      <cli:createClinicalData>
         <in0><![CDATA[
         <?xml version="1.0" encoding="UTF-8"?>
<clinicaldata:ClinicalData xsi:schemaLocation="Clinicaldata HealthAdapterCreate1.xsd" xmlns:clinicaldata="Clinicaldata" xmlns:patientjournaling="PatientJournaling" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
	<templateId>${#TestSuite#CREATE_TEMPLATE_ID}</templateId>
	<clientName>{#TestSuite#CLIENT_NAME}</clientName>
	<clientRequestInitiationTime>${CLIENT_REQUEST_INIT_TIME}</clientRequestInitiationTime>
	<patient>
		<patientJournalEntries>
			<patientjournaling:patientEnteredDailyEventJournalEntry>
				<eventTitle>${#TestSuite#EVENT_TITLE}</eventTitle>
				<genericJournalEntryDetails>
					<patient>
						<identifier>
							<identity>${#Global#CDS_UNIQUE_PATIENT}</identity>
							<assigningFacility>${#TestSuite#PATIENT_ASSIGNING_FACILITY}</assigningFacility>
							<assigningAuthority>${#TestSuite#PATIENT_ASSIGNING_AUTHORITY}</assigningAuthority>
						</identifier>
						<name>
							<family>${#TestSuite#PATIENT_NAME_FAMILY}</family>
							<given>${#TestSuite#PATIENT_NAME_GIVEN}</given>
							<middle>${#TestSuite#PATIENT_NAME_MIDDLE}</middle>
							<prefix>${#TestSuite#PATIENT_NAME_PREFIX}</prefix>
							<suffix>${#TestSuite#PATIENT_NAME_SUFFIX}</suffix>
							<title>${#TestSuite#PATIENT_NAME_TITLE}</title>
						</name>
					</patient>
					<journalEntryType>${#TestSuite#JOURNALT_ENTRY_TYPE}PatientEnteredDailyEventJournalEntry</journalEntryType>
					<allowAccessByClinicalStaff>${#TestSuite#ALLOWS_ACCESS_BY_CLINICAL_STAFF}</allowAccessByClinicalStaff>
					<comments>${#TestSuite#COMMENTS}</comments>
					<observationDate>
						<literal>${#TestSuite#OBSERVATION_DATE}</literal>
					</observationDate>
					<binaryAttachments>
						<binaryAttachment>
							<mimeType>${#TestSuite#MIME_TYPE}</mimeType>
							<name>${#TestSuite#CREATE_ATTACHMENT_NAME}</name>
							<hexBinaryAttachment>${#TestSuite#HEX_BINARY_ATTACHMENT}</hexBinaryAttachment>
						</binaryAttachment>
					</binaryAttachments>
					<dataEnterer>${#TestSuite#DATA_ENTERER}</dataEnterer>
				</genericJournalEntryDetails>
			</patientjournaling:patientEnteredDailyEventJournalEntry>
		</patientJournalEntries>
	</patient>
</clinicaldata:ClinicalData>]]]]>><![CDATA[
	</in0>
     <in1>${#TestSuite#CREATE_TEMPLATE_ID}</in1>
     <in2>${REQUEST_ID}</in2>
    </cli:createClinicalData>
   </soapenv:Body>
</soapenv:Envelope>
]]></con:request><con:assertion type="SOAP Response" disabled="true"/><con:assertion type="GroovyScriptAssertion" name="checkForErrors"><con:configuration><scriptText>import com.eviware.soapui.support.XmlHolder
import org.w3c.dom.*

def holder = new XmlHolder( messageExchange.responseContentAsXml )
holder.namespaces["clinicaldata"] = "Clinicaldata"
def node = holder["//out"]
def descHolder = new XmlHolder( node )

def errors = descHolder.getDomNodes( "//clinicaldata:ClinicalData/errorSection/errors" )
assert errors.length == 0

def fatalErrors = descHolder.getDomNodes( "//clinicaldata:ClinicalData/errorSection/fatalErrors" )
assert fatalErrors.length == 0
</scriptText></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="getRecordIdentifierIdentity"><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>getCreateResponseXml</con:name><con:sourceType>Response</con:sourceType><con:sourceStep>createDailyEventJournal</con:sourceStep><con:sourcePath>//out</con:sourcePath><con:targetType>createResponseXml</con:targetType><con:targetStep>#TestCase#</con:targetStep></con:transfers><con:transfers setNullOnMissingSource="true" transferTextContent="true" failOnError="true" ignoreEmpty="false" transferToAll="false" useXQuery="false" entitize="false" transferChildNodes="false"><con:name>getRecordIdentifierIdentity</con:name><con:sourceType>createResponseXml</con:sourceType><con:sourceStep>#TestCase#</con:sourceStep><con:sourcePath>//recordIdentifiers/recordIdentifier/identity</con:sourcePath><con:targetType>recordIdentifierIdentity</con:targetType><con:targetStep>#TestSuite#</con:targetStep></con:transfers></con:config></con:testStep><con:properties><con:property><con:name>createResponseXml</con:name><con:value><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
<clinicaldata:ClinicalData xmlns:clinicaldata="Clinicaldata"><templateId>HealthAdapterCreate1</templateId><requestId>309506fa-35ab-4475-9b97-48b029e86bb7</requestId><recordIdentifiers><recordIdentifier><identity>12015</identity></recordIdentifier></recordIdentifiers><errorSection/></clinicaldata:ClinicalData>]]></con:value></con:property><con:property><con:name>recordIdentifierIdentityold</con:name><con:value>3015</con:value></con:property></con:properties></con:testCase><con:testCase failOnError="true" failTestCaseOnErrors="true" keepSession="false" maxResults="0" name="ReadCreatedDailyEventJournalList" searchProperties="true" id="ba3f20d1-f1c7-474f-baa7-041bc205851a"><con:description/><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.REQUEST_ID = UUID.randomUUID().toString();</script></con:config></con:testStep><con:testStep type="request" name="readCreatedDailyEventJournal"><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="readCreatedDailyEventJournal"><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.med.DNS   ">
	<soapenv:Header/>
	<soapenv:Body>
		<cli:readClinicalData1>
			<in0>${#TestSuite#READ_TEMPLATE_ID}</in0>
			<in1><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
			<filter:filter xmlns:filter="Filter" vhimVersion="Vhim_4_00"> <filterId>${#TestSuite#READ_FILTER_ID}</filterId>
				<clientName>${#TestSuite#CLIENT_NAME}</clientName> 					
				<clientRequestInitiationTime>${CLIENT_REQUEST_INIT_TIME}</clientRequestInitiationTime> 					
				<patients> 						
					<EdiPi> 							
						<assigningAuthority>${#TestSuite#PATIENT_ASSIGNING_AUTHORITY}</assigningAuthority> 							
						<assigningFacility>${#TestSuite#PATIENT_ASSIGNING_FACILITY}</assigningFacility> 							
						<identity>${#Global#CDS_UNIQUE_PATIENT}</identity> 						
					</EdiPi> 					
				</patients> 				
				<entryPointFilter queryName="ID_1"> 						
					<filter:defaultDomainEntryPointFilter> 							
						<domainEntryPoint>PatientEnteredDailyEventJournalEntry</domainEntryPoint> 						
					</filter:defaultDomainEntryPointFilter> 				
				</entryPointFilter> 		
			</filter:filter>]]]]>><![CDATA[</in1>
			<in2>${#TestSuite#READ_FILTER_ID}</in2>
			<in3>${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="validateCreatedReadListResponse"><con:settings/><con:config><script>import com.eviware.soapui.support.XmlHolder 

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

def soapResponseHolder = groovyUtils.getXmlHolder( "readCreatedDailyEventJournal#Response" );
def content = soapResponseHolder["//out"] ;
content = content.replaceAll( "&lt;!\\[CDATA\\[", "" ) 
content = content.replaceAll( "]]&gt;", "" ) 

def holder = groovyUtils.getXmlHolder( content ) ;

//example count - can also be done in assertion script
def recordCount = holder["count(//recordIdentifier)"];
assert recordCount == "1";

//example error check inside script - vs a response script (see createDailyEventJournal checkForErrors assertion)
def errors = holder.getDomNodes("/clinicaldata:ClinicalData/errorSection/errors");
assert errors.length == 0;
def fatalErrors = holder.getDomNodes("/clinicaldata:ClinicalData/errorSection/fatalErrors");
assert fatalErrors.length == 0;

//validate data content
def templateId = holder.getNodeValue(testRunner.testCase.testSuite.getPropertyValue("xPath_templateId"));
assert templateId == testRunner.testCase.testSuite.getPropertyValue("READ_TEMPLATE_ID");

def ediPiIdentity = holder.getNodeValue(testRunner.testCase.testSuite.getPropertyValue("xPath_ediPiIdentity"));
def ediPiFacility = holder.getNodeValue(testRunner.testCase.testSuite.getPropertyValue("xPath_ediPiFacility"));
def ediPiAuthority = holder.getNodeValue(testRunner.testCase.testSuite.getPropertyValue("xPath_ediPiAuthority"));
assert ediPiIdentity == com.eviware.soapui.SoapUI.globalProperties.getPropertyValue("CDS_UNIQUE_PATIENT");
assert ediPiFacility == testRunner.testCase.testSuite.getPropertyValue("PATIENT_ASSIGNING_FACILITY");
assert ediPiAuthority == testRunner.testCase.testSuite.getPropertyValue("PATIENT_ASSIGNING_AUTHORITY");

def resultantIdentity = holder.getNodeValue(testRunner.testCase.testSuite.getPropertyValue("xPath_resultantIdentity"));
def resultantFacility = holder.getNodeValue(testRunner.testCase.testSuite.getPropertyValue("xPath_resultantFacility"));
def resultantAuthority = holder.getNodeValue(testRunner.testCase.testSuite.getPropertyValue("xPath_resultantAuthority"));
assert resultantIdentity == com.eviware.soapui.SoapUI.globalProperties.getPropertyValue("CDS_UNIQUE_PATIENT");
assert resultantFacility == testRunner.testCase.testSuite.getPropertyValue("PATIENT_ASSIGNING_FACILITY");
assert resultantAuthority == testRunner.testCase.testSuite.getPropertyValue("PATIENT_ASSIGNING_AUTHORITY");

def eventTitle = holder.getNodeValue(testRunner.testCase.testSuite.getPropertyValue("xPath_eventTitle"));
assert eventTitle == testRunner.testCase.testSuite.getPropertyValue("EVENT_TITLE");

def patientIdentity = holder.getNodeValue(testRunner.testCase.testSuite.getPropertyValue("xPath_patientIdentity"));
def patientFacility = holder.getNodeValue(testRunner.testCase.testSuite.getPropertyValue("xPath_patientFacility"));
def patientAuthority = holder.getNodeValue(testRunner.testCase.testSuite.getPropertyValue("xPath_patientAuthority"));
assert patientIdentity == com.eviware.soapui.SoapUI.globalProperties.getPropertyValue("CDS_UNIQUE_PATIENT");
assert patientFacility == testRunner.testCase.testSuite.getPropertyValue("PATIENT_ASSIGNING_FACILITY");
assert patientAuthority == testRunner.testCase.testSuite.getPropertyValue("PATIENT_ASSIGNING_AUTHORITY");

def prefix = holder.getNodeValue(testRunner.testCase.testSuite.getPropertyValue("xPath_prefix"));
def given = holder.getNodeValue(testRunner.testCase.testSuite.getPropertyValue("xPath_given"));
def middle = holder.getNodeValue(testRunner.testCase.testSuite.getPropertyValue("xPath_middle"));
def family = holder.getNodeValue(testRunner.testCase.testSuite.getPropertyValue("xPath_family"));
def suffix = holder.getNodeValue(testRunner.testCase.testSuite.getPropertyValue("xPath_suffix"));
def title = holder.getNodeValue(testRunner.testCase.testSuite.getPropertyValue("xPath_title"));
assert prefix == testRunner.testCase.testSuite.getPropertyValue("PATIENT_NAME_PREFIX");
assert given == testRunner.testCase.testSuite.getPropertyValue("PATIENT_NAME_GIVEN");
assert middle == testRunner.testCase.testSuite.getPropertyValue("PATIENT_NAME_MIDDLE");
assert family == testRunner.testCase.testSuite.getPropertyValue("PATIENT_NAME_FAMILY");
assert suffix == testRunner.testCase.testSuite.getPropertyValue("PATIENT_NAME_SUFFIX");
assert title == testRunner.testCase.testSuite.getPropertyValue("PATIENT_NAME_TITLE");


def recordIdentifier = holder.getNodeValue(testRunner.testCase.testSuite.getPropertyValue("xPath_recordIdentifier"));
assert recordIdentifier == testRunner.testCase.testSuite.getPropertyValue("recordIdentifierIdentity");

def journalType = holder.getNodeValue(testRunner.testCase.testSuite.getPropertyValue("xPath_journalType"));
assert journalType == testRunner.testCase.testSuite.getPropertyValue("JOURNAL_ENTRY_TYPE");

def comments = holder.getNodeValue(testRunner.testCase.testSuite.getPropertyValue("xPath_comments"));
def accessByStaff = holder.getNodeValue(testRunner.testCase.testSuite.getPropertyValue("xPath_accessByStaff"));
assert comments == testRunner.testCase.testSuite.getPropertyValue("COMMENTS");
assert accessByStaff == testRunner.testCase.testSuite.getPropertyValue("ALLOWS_ACCESS_BY_CLINICAL_STAFF");

def observationDate = holder.getNodeValue(testRunner.testCase.testSuite.getPropertyValue("xPath_observationDate"));
assert observationDate == testRunner.testCase.testSuite.getPropertyValue("OBSERVATION_DATE");

def dataEnterer = holder.getNodeValue(testRunner.testCase.testSuite.getPropertyValue("xPath_dataEnterer"));
assert dataEnterer == testRunner.testCase.testSuite.getPropertyValue("DATA_ENTERER");

def mimeType = holder.getNodeValue(testRunner.testCase.testSuite.getPropertyValue("xPath_mimeTypeCreate"));
def attachmentName = holder.getNodeValue(testRunner.testCase.testSuite.getPropertyValue("xPath_attachmentNameCreate"));
assert mimeType == testRunner.testCase.testSuite.getPropertyValue("MIME_TYPE");
assert attachmentName == testRunner.testCase.testSuite.getPropertyValue("CREATE_ATTACHMENT_NAME");
</script></con:config></con:testStep><con:properties/></con:testCase><con:testCase failOnError="true" failTestCaseOnErrors="true" keepSession="false" maxResults="0" name="UpdateDailyEventJournal" searchProperties="true" id="ea9d1045-9571-4ed1-9549-114ee830e260"><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.REQUEST_ID = UUID.randomUUID().toString();</script></con:config></con:testStep><con:testStep type="request" name="updateDailyEventJournal"><con:settings/><con:config xsi:type="con:RequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>ClinicalDataServiceSynchronousInterfaceHttpBinding</con:interface><con:operation>updateClinicalData</con:operation><con:request name="updateDailyEventJournal"><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.med.DNS   ">
   <soapenv:Header/>
   <soapenv:Body>
      <cli:updateClinicalData>
      <in0><![CDATA[
         <?xml version="1.0" encoding="UTF-8"?>
<clinicaldata:ClinicalData xsi:schemaLocation="Clinicaldata HealthAdapterCreate1.xsd" xmlns:clinicaldata="Clinicaldata" xmlns:patientjournaling="PatientJournaling" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
	<templateId>${#TestSuite#UPDATE_TEMPLATE_ID}</templateId>
	<clientName>${#TestSuite#CLIENT_NAME}</clientName>
	<clientRequestInitiationTime>${CLIENT_REQUEST_INIT_TIME}</clientRequestInitiationTime>
	<patient>
		<patientJournalEntries>
			<patientjournaling:patientEnteredDailyEventJournalEntry>
				<eventTitle>${#TestSuite#EVENT_TITLE}</eventTitle>
				<genericJournalEntryDetails>
					<patient>
						<identifier>
							<identity>${#Global#CDS_UNIQUE_PATIENT}</identity>
							<assigningFacility>${#TestSuite#PATIENT_ASSIGNING_FACILITY}</assigningFacility>
							<assigningAuthority>${#TestSuite#PATIENT_ASSIGNING_AUTHORITY}</assigningAuthority>
						</identifier>
						<name>
							<family>${#TestSuite#PATIENT_NAME_FAMILY}</family>
							<given>${#TestSuite#PATIENT_NAME_GIVEN}</given>
							<middle>${#TestSuite#PATIENT_NAME_MIDDLE}</middle>
							<prefix>${#TestSuite#PATIENT_NAME_PREFIX}</prefix>
							<suffix>${#TestSuite#PATIENT_NAME_SUFFIX}</suffix>
							<title>${#TestSuite#PATIENT_NAME_TITLE}</title>
						</name>
					</patient>
					<recordIdentifier>
						<identity>${#TestSuite#recordIdentifierIdentity}</identity>
					</recordIdentifier>
					<journalEntryType>${#TestSuite#JOURNALT_ENTRY_TYPE}PatientEnteredDailyEventJournalEntry</journalEntryType>
					<allowAccessByClinicalStaff>${#TestSuite#ALLOWS_ACCESS_BY_CLINICAL_STAFF}</allowAccessByClinicalStaff>
					<comments>${#TestSuite#UPDATE_COMMENTS}</comments>
					<observationDate>
						<literal>${#TestSuite#OBSERVATION_DATE}</literal>
					</observationDate>
					<binaryAttachments>
						<binaryAttachment>
							<mimeType>${#TestSuite#MIME_TYPE}</mimeType>
							<name>${#TestSuite#UPDATE_ATTACHMENT_NAME}</name>
							<hexBinaryAttachment>${#TestSuite#HEX_BINARY_ATTACHMENT}</hexBinaryAttachment>
						</binaryAttachment>
					</binaryAttachments>
					<dataEnterer>${#TestSuite#UPDATE_DATA_ENTERER}</dataEnterer>
				</genericJournalEntryDetails>
			</patientjournaling:patientEnteredDailyEventJournalEntry>
		</patientJournalEntries>
	</patient>
</clinicaldata:ClinicalData>]]]]>><![CDATA[
	</in0>
     <in1>${#TestSuite#UPDATE_TEMPLATE_ID}</in1>
     <in2>${REQUEST_ID}</in2>
    </cli:updateClinicalData>
   </soapenv:Body>
</soapenv:Envelope>]]></con:request><con:assertion type="SOAP Response"/><con:assertion type="GroovyScriptAssertion" name="Script-checkForErrors"><con:configuration><scriptText>import com.eviware.soapui.support.XmlHolder
import org.w3c.dom.*

def holder = new XmlHolder( messageExchange.responseContentAsXml )
holder.namespaces["clinicaldata"] = "Clinicaldata"
def node = holder["//out"]
def descHolder = new XmlHolder( node )

def errors = descHolder.getDomNodes( "//clinicaldata:ClinicalData/errorSection/errors" )
assert errors.length == 0

def fatalErrors = descHolder.getDomNodes( "//clinicaldata:ClinicalData/errorSection/fatalErrors" )
assert fatalErrors.length == 0
</scriptText></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:testCase><con:testCase failOnError="true" failTestCaseOnErrors="true" keepSession="false" maxResults="0" name="ReadDailyEventJournalList" searchProperties="true" id="a90b3239-9c0e-4a9f-94e5-213ce9417eb3"><con:description/><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.REQUEST_ID = UUID.randomUUID().toString();</script></con:config></con:testStep><con:testStep type="request" name="readDailyEventJournalList"><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="readDailyEventJournalList"><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.med.DNS   ">
	<soapenv:Header/>
	<soapenv:Body>
		<cli:readClinicalData1>
			<in0>${#TestSuite#READ_TEMPLATE_ID}</in0>
			<in1><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
			<filter:filter xmlns:filter="Filter" vhimVersion="Vhim_4_00"> <filterId>${#TestSuite#READ_FILTER_ID}</filterId>
				<clientName>${#TestSuite#CLIENT_NAME}</clientName> 					
				<clientRequestInitiationTime>${CLIENT_REQUEST_INIT_TIME}</clientRequestInitiationTime> 					
				<patients> 						
					<EdiPi> 							
						<assigningAuthority>${#TestSuite#PATIENT_ASSIGNING_AUTHORITY}</assigningAuthority> 							
						<assigningFacility>${#TestSuite#PATIENT_ASSIGNING_FACILITY}</assigningFacility> 							
						<identity>${#Global#CDS_UNIQUE_PATIENT}</identity> 						
					</EdiPi> 					
				</patients> 				
				<entryPointFilter queryName="ID_1"> 						
					<filter:defaultDomainEntryPointFilter> 							
						<domainEntryPoint>PatientEnteredDailyEventJournalEntry</domainEntryPoint> 						
					</filter:defaultDomainEntryPointFilter> 				
				</entryPointFilter> 		
			</filter:filter>]]]]>><![CDATA[</in1>
			<in2>${#TestSuite#READ_FILTER_ID}</in2>
			<in3>${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="validateReadListResponse"><con:settings/><con:config><script>import com.eviware.soapui.support.XmlHolder 

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

def soapResponseHolder = groovyUtils.getXmlHolder( "readDailyEventJournalList#Response" );
def content = soapResponseHolder["//out"] ;
content = content.replaceAll( "&lt;!\\[CDATA\\[", "" ) 
content = content.replaceAll( "]]&gt;", "" ) 

def holder = groovyUtils.getXmlHolder( content ) ;

//example count - can also be done in assertion script
def recordCount = holder["count(//recordIdentifier)"];
assert recordCount == "1";

//example error check inside script - vs a response script (see createDailyEventJournal checkForErrors assertion)
def errors = holder.getDomNodes("/clinicaldata:ClinicalData/errorSection/errors");
assert errors.length == 0;
def fatalErrors = holder.getDomNodes("/clinicaldata:ClinicalData/errorSection/fatalErrors");
assert fatalErrors.length == 0;

//validate data content
def templateId = holder.getNodeValue(testRunner.testCase.testSuite.getPropertyValue("xPath_templateId"));
assert templateId == testRunner.testCase.testSuite.getPropertyValue("READ_TEMPLATE_ID");

def ediPiIdentity = holder.getNodeValue(testRunner.testCase.testSuite.getPropertyValue("xPath_ediPiIdentity"));
def ediPiFacility = holder.getNodeValue(testRunner.testCase.testSuite.getPropertyValue("xPath_ediPiFacility"));
def ediPiAuthority = holder.getNodeValue(testRunner.testCase.testSuite.getPropertyValue("xPath_ediPiAuthority"));
assert ediPiIdentity == com.eviware.soapui.SoapUI.globalProperties.getPropertyValue("CDS_UNIQUE_PATIENT");
assert ediPiFacility == testRunner.testCase.testSuite.getPropertyValue("PATIENT_ASSIGNING_FACILITY");
assert ediPiAuthority == testRunner.testCase.testSuite.getPropertyValue("PATIENT_ASSIGNING_AUTHORITY");

def resultantIdentity = holder.getNodeValue(testRunner.testCase.testSuite.getPropertyValue("xPath_resultantIdentity"));
def resultantFacility = holder.getNodeValue(testRunner.testCase.testSuite.getPropertyValue("xPath_resultantFacility"));
def resultantAuthority = holder.getNodeValue(testRunner.testCase.testSuite.getPropertyValue("xPath_resultantAuthority"));
assert resultantIdentity == com.eviware.soapui.SoapUI.globalProperties.getPropertyValue("CDS_UNIQUE_PATIENT");
assert resultantFacility == testRunner.testCase.testSuite.getPropertyValue("PATIENT_ASSIGNING_FACILITY");
assert resultantAuthority == testRunner.testCase.testSuite.getPropertyValue("PATIENT_ASSIGNING_AUTHORITY");

def eventTitle = holder.getNodeValue(testRunner.testCase.testSuite.getPropertyValue("xPath_eventTitle"));
assert eventTitle == testRunner.testCase.testSuite.getPropertyValue("EVENT_TITLE");

def patientIdentity = holder.getNodeValue(testRunner.testCase.testSuite.getPropertyValue("xPath_patientIdentity"));
def patientFacility = holder.getNodeValue(testRunner.testCase.testSuite.getPropertyValue("xPath_patientFacility"));
def patientAuthority = holder.getNodeValue(testRunner.testCase.testSuite.getPropertyValue("xPath_patientAuthority"));
assert patientIdentity == com.eviware.soapui.SoapUI.globalProperties.getPropertyValue("CDS_UNIQUE_PATIENT");
assert patientFacility == testRunner.testCase.testSuite.getPropertyValue("PATIENT_ASSIGNING_FACILITY");
assert patientAuthority == testRunner.testCase.testSuite.getPropertyValue("PATIENT_ASSIGNING_AUTHORITY");

def prefix = holder.getNodeValue(testRunner.testCase.testSuite.getPropertyValue("xPath_prefix"));
def given = holder.getNodeValue(testRunner.testCase.testSuite.getPropertyValue("xPath_given"));
def middle = holder.getNodeValue(testRunner.testCase.testSuite.getPropertyValue("xPath_middle"));
def family = holder.getNodeValue(testRunner.testCase.testSuite.getPropertyValue("xPath_family"));
def suffix = holder.getNodeValue(testRunner.testCase.testSuite.getPropertyValue("xPath_suffix"));
def title = holder.getNodeValue(testRunner.testCase.testSuite.getPropertyValue("xPath_title"));
assert prefix == testRunner.testCase.testSuite.getPropertyValue("PATIENT_NAME_PREFIX");
assert given == testRunner.testCase.testSuite.getPropertyValue("PATIENT_NAME_GIVEN");
assert middle == testRunner.testCase.testSuite.getPropertyValue("PATIENT_NAME_MIDDLE");
assert family == testRunner.testCase.testSuite.getPropertyValue("PATIENT_NAME_FAMILY");
assert suffix == testRunner.testCase.testSuite.getPropertyValue("PATIENT_NAME_SUFFIX");
assert title == testRunner.testCase.testSuite.getPropertyValue("PATIENT_NAME_TITLE");


def recordIdentifier = holder.getNodeValue(testRunner.testCase.testSuite.getPropertyValue("xPath_recordIdentifier"));
assert recordIdentifier == testRunner.testCase.testSuite.getPropertyValue("recordIdentifierIdentity");

def journalType = holder.getNodeValue(testRunner.testCase.testSuite.getPropertyValue("xPath_journalType"));
assert journalType == testRunner.testCase.testSuite.getPropertyValue("JOURNAL_ENTRY_TYPE");

def comments = holder.getNodeValue(testRunner.testCase.testSuite.getPropertyValue("xPath_comments"));
def accessByStaff = holder.getNodeValue(testRunner.testCase.testSuite.getPropertyValue("xPath_accessByStaff"));
assert comments == testRunner.testCase.testSuite.getPropertyValue("UPDATE_COMMENTS");
assert accessByStaff == testRunner.testCase.testSuite.getPropertyValue("ALLOWS_ACCESS_BY_CLINICAL_STAFF");

def observationDate = holder.getNodeValue(testRunner.testCase.testSuite.getPropertyValue("xPath_observationDate"));
assert observationDate == testRunner.testCase.testSuite.getPropertyValue("OBSERVATION_DATE");

def dataEnterer = holder.getNodeValue(testRunner.testCase.testSuite.getPropertyValue("xPath_dataEnterer"));
assert dataEnterer == testRunner.testCase.testSuite.getPropertyValue("UPDATE_DATA_ENTERER");

def mimeTypeCreate = holder.getNodeValue(testRunner.testCase.testSuite.getPropertyValue("xPath_mimeTypeCreate"));
def mimeTypeUpdate = holder.getNodeValue(testRunner.testCase.testSuite.getPropertyValue("xPath_mimeTypeUpdate"));
def attachmentNameCreate = holder.getNodeValue(testRunner.testCase.testSuite.getPropertyValue("xPath_attachmentNameCreate"));
def attachmentNameUpdate = holder.getNodeValue(testRunner.testCase.testSuite.getPropertyValue("xPath_attachmentNameUpdate"));
assert mimeTypeCreate == testRunner.testCase.testSuite.getPropertyValue("MIME_TYPE");
assert mimeTypeUpdate == testRunner.testCase.testSuite.getPropertyValue("MIME_TYPE");
//assert attachmentNameCreate == testRunner.testCase.testSuite.getPropertyValue("CREATE_ATTACHMENT_NAME");
//assert attachmentNameUpdate == testRunner.testCase.testSuite.getPropertyValue("UPDATE_ATTACHMENT_NAME");</script></con:config></con:testStep><con:properties/></con:testCase><con:testCase failOnError="true" failTestCaseOnErrors="true" keepSession="false" maxResults="0" name="ReadDailyEventJournalDetails" searchProperties="true" id="47acf34e-0b5d-4301-8651-a61dee1e9414"><con:description/><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.REQUEST_ID = UUID.randomUUID().toString();</script></con:config></con:testStep><con:testStep type="request" name="readDailyEventJournalDetailsWithName"><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="readDailyEventJournalDetailsWithName"><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.med.DNS   ">
   <soapenv:Header/>
   <soapenv:Body>
      <cli:readClinicalData1>
         <in0>${#TestSuite#DETAIL_READ_TEMPLATE_ID}</in0>          
		<in1><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
			<filter:filter xmlns:filter="Filter" vhimVersion="Vhim_4_00">
				<filterId>${#TestSuite#DETAIL_READ_FILTER_ID}</filterId>
					<clientName>${#TestSuite#CLIENT_NAME}</clientName>
					<clientRequestInitiationTime>${CLIENT_REQUEST_INIT_TIME}</clientRequestInitiationTime>
					<entryPointFilter queryName="ID_1" isPatientCentric="false">
						<domainEntryPoint>PatientEnteredDailyEventJournalEntry</domainEntryPoint>
						<recordIdentifiers>
							<identity>${#TestSuite#recordIdentifierIdentity}</identity>
						</recordIdentifiers>
						<otherQueryParameters>
							<attachmentName>${#TestSuite#CREATE_ATTACHMENT_NAME}</attachmentName>
						</otherQueryParameters>
					</entryPointFilter>
			</filter:filter>]]]]>><![CDATA[</in1>          
		<in2>${#TestSuite#DETAIL_READ_FILTER_ID}</in2>          
		<in3>${REQUEST_ID}</in3>
      </cli:readClinicalData1>
   </soapenv:Body>
</soapenv:Envelope>]]></con:request><con:assertion type="SOAP Response"/><con:assertion type="GroovyScriptAssertion" name="Script-countBinaryAttachments"><con:configuration><scriptText>import com.eviware.soapui.support.XmlHolder
import org.w3c.dom.*

def holder = new XmlHolder( messageExchange.responseContentAsXml )
holder.namespaces["clinicaldata"] = "Clinicaldata"
def node = holder["//out"]
def descHolder = new XmlHolder( node )

//def binaryAttachments = descHolder.getDomNodes( "/clinicaldata:ClinicalData/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/binaryAttachments" ).length
def binaryAttachments = descHolder.getDomNodes( "//binaryAttachments/binaryAttachment" ).length
assert binaryAttachments == 1</scriptText></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="validateReadDetailsWithName"><con:settings/><con:config><script>import com.eviware.soapui.support.XmlHolder 

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

def soapResponseHolder = groovyUtils.getXmlHolder( "readDailyEventJournalDetailsWithName#Response" );
def content = soapResponseHolder["//out"] ;
content = content.replaceAll( "&lt;!\\[CDATA\\[", "" ) 
content = content.replaceAll( "]]&gt;", "" ) 

def holder = groovyUtils.getXmlHolder( content ) ;

//example count - can also be done in assertion script
def recordCount = holder["count(//recordIdentifier)"];
assert recordCount == "1";

//example error check inside script - vs a response script (see createDailyEventJournal checkForErrors assertion)
def errors = holder.getDomNodes("/clinicaldata:ClinicalData/errorSection/errors");
assert errors.length == 0;
def fatalErrors = holder.getDomNodes("/clinicaldata:ClinicalData/errorSection/fatalErrors");
assert fatalErrors.length == 0;

//validate data content
def templateId = holder.getNodeValue(testRunner.testCase.testSuite.getPropertyValue("xPath_templateId"));
assert templateId == testRunner.testCase.testSuite.getPropertyValue("DETAIL_READ_TEMPLATE_ID");

def eventTitle = holder.getNodeValue(testRunner.testCase.testSuite.getPropertyValue("xPath_eventTitle"));
assert eventTitle == testRunner.testCase.testSuite.getPropertyValue("EVENT_TITLE");

def patientIdentity = holder.getNodeValue(testRunner.testCase.testSuite.getPropertyValue("xPath_patientIdentity"));
def patientFacility = holder.getNodeValue(testRunner.testCase.testSuite.getPropertyValue("xPath_patientFacility"));
def patientAuthority = holder.getNodeValue(testRunner.testCase.testSuite.getPropertyValue("xPath_patientAuthority"));
assert patientIdentity == com.eviware.soapui.SoapUI.globalProperties.getPropertyValue("CDS_UNIQUE_PATIENT");
assert patientFacility == testRunner.testCase.testSuite.getPropertyValue("PATIENT_ASSIGNING_FACILITY");
assert patientAuthority == testRunner.testCase.testSuite.getPropertyValue("PATIENT_ASSIGNING_AUTHORITY");

def prefix = holder.getNodeValue(testRunner.testCase.testSuite.getPropertyValue("xPath_prefix"));
def given = holder.getNodeValue(testRunner.testCase.testSuite.getPropertyValue("xPath_given"));
def middle = holder.getNodeValue(testRunner.testCase.testSuite.getPropertyValue("xPath_middle"));
def family = holder.getNodeValue(testRunner.testCase.testSuite.getPropertyValue("xPath_family"));
def suffix = holder.getNodeValue(testRunner.testCase.testSuite.getPropertyValue("xPath_suffix"));
def title = holder.getNodeValue(testRunner.testCase.testSuite.getPropertyValue("xPath_title"));
assert prefix == testRunner.testCase.testSuite.getPropertyValue("PATIENT_NAME_PREFIX");
assert given == testRunner.testCase.testSuite.getPropertyValue("PATIENT_NAME_GIVEN");
assert middle == testRunner.testCase.testSuite.getPropertyValue("PATIENT_NAME_MIDDLE");
assert family == testRunner.testCase.testSuite.getPropertyValue("PATIENT_NAME_FAMILY");
assert suffix == testRunner.testCase.testSuite.getPropertyValue("PATIENT_NAME_SUFFIX");
assert title == testRunner.testCase.testSuite.getPropertyValue("PATIENT_NAME_TITLE");

def recordIdentifier = holder.getNodeValue(testRunner.testCase.testSuite.getPropertyValue("xPath_recordIdentifier"));
assert recordIdentifier == testRunner.testCase.testSuite.getPropertyValue("recordIdentifierIdentity");

def journalType = holder.getNodeValue(testRunner.testCase.testSuite.getPropertyValue("xPath_journalType"));
assert journalType == testRunner.testCase.testSuite.getPropertyValue("JOURNAL_ENTRY_TYPE");

def comments = holder.getNodeValue(testRunner.testCase.testSuite.getPropertyValue("xPath_comments"));
def accessByStaff = holder.getNodeValue(testRunner.testCase.testSuite.getPropertyValue("xPath_accessByStaff"));
assert comments == testRunner.testCase.testSuite.getPropertyValue("UPDATE_COMMENTS");
assert accessByStaff == testRunner.testCase.testSuite.getPropertyValue("ALLOWS_ACCESS_BY_CLINICAL_STAFF");

def observationDate = holder.getNodeValue(testRunner.testCase.testSuite.getPropertyValue("xPath_observationDate"));
assert observationDate == testRunner.testCase.testSuite.getPropertyValue("OBSERVATION_DATE");

def dataEnterer = holder.getNodeValue(testRunner.testCase.testSuite.getPropertyValue("xPath_dataEnterer"));
assert dataEnterer == testRunner.testCase.testSuite.getPropertyValue("UPDATE_DATA_ENTERER");

def mimeTypeCreate = holder.getNodeValue(testRunner.testCase.testSuite.getPropertyValue("xPath_mimeTypeCreate"));
def attachmentNameCreate = holder.getNodeValue(testRunner.testCase.testSuite.getPropertyValue("xPath_attachmentNameCreate"));
assert mimeTypeCreate == testRunner.testCase.testSuite.getPropertyValue("MIME_TYPE");
assert attachmentNameCreate == testRunner.testCase.testSuite.getPropertyValue("CREATE_ATTACHMENT_NAME");

def hexBinaryAttachmentCreate = holder.getNodeValue(testRunner.testCase.testSuite.getPropertyValue("xPath_hexBinaryAttachmentCreate"));
assert hexBinaryAttachmentCreate == testRunner.testCase.testSuite.getPropertyValue("HEX_BINARY_ATTACHMENT");</script></con:config></con:testStep><con:testStep type="request" name="readDailyEventJournalDetailsWithoutName"><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="readDailyEventJournalDetailsWithoutName"><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.med.DNS   ">
   <soapenv:Header/>
   <soapenv:Body>
      <cli:readClinicalData1>
         <in0>${#TestSuite#DETAIL_READ_TEMPLATE_ID}</in0>          
		<in1><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
			<filter:filter xmlns:filter="Filter" vhimVersion="Vhim_4_00">
				<filterId>${#TestSuite#DETAIL_READ_FILTER_ID}</filterId>
					<clientName>${#TestSuite#CLIENT_NAME}</clientName>
					<clientRequestInitiationTime>${CLIENT_REQUEST_INIT_TIME}</clientRequestInitiationTime>
					<entryPointFilter queryName="ID_1" isPatientCentric="false">
						<domainEntryPoint>PatientEnteredDailyEventJournalEntry</domainEntryPoint>
						<recordIdentifiers>
							<identity>${#TestSuite#recordIdentifierIdentity}</identity>
						</recordIdentifiers>
					</entryPointFilter>
			</filter:filter>]]]]>><![CDATA[</in1>          
		<in2>${#TestSuite#DETAIL_READ_FILTER_ID}</in2>          
		<in3>${REQUEST_ID}</in3>
      </cli:readClinicalData1>
   </soapenv:Body>
</soapenv:Envelope>]]></con:request><con:assertion type="SOAP Response"/><con:assertion type="GroovyScriptAssertion" name="Script-countBinaryAttachments"><con:configuration><scriptText>import com.eviware.soapui.support.XmlHolder
import org.w3c.dom.*

def holder = new XmlHolder( messageExchange.responseContentAsXml )
holder.namespaces["clinicaldata"] = "Clinicaldata"
def node = holder["//out"]
def descHolder = new XmlHolder( node )

//def binaryAttachments = descHolder.getDomNodes( "/clinicaldata:ClinicalData/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry//genericJournalEntryDetails/binaryAttachments" ).length
def binaryAttachments = descHolder.getDomNodes( "//binaryAttachments/binaryAttachment" ).length
assert binaryAttachments == 2</scriptText></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="validateReadDetailsWihtoutName"><con:settings/><con:config><script>import com.eviware.soapui.support.XmlHolder 

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

def soapResponseHolder = groovyUtils.getXmlHolder( "readDailyEventJournalDetailsWithoutName#Response" );
def content = soapResponseHolder["//out"] ;
content = content.replaceAll( "&lt;!\\[CDATA\\[", "" ) 
content = content.replaceAll( "]]&gt;", "" ) 

def holder = groovyUtils.getXmlHolder( content ) ;

//example count - can also be done in assertion script
def recordCount = holder["count(//recordIdentifier)"];
assert recordCount == "1";

//example error check inside script - vs a response script (see createDailyEventJournal checkForErrors assertion)
def errors = holder.getDomNodes("/clinicaldata:ClinicalData/errorSection/errors");
assert errors.length == 0;
def fatalErrors = holder.getDomNodes("/clinicaldata:ClinicalData/errorSection/fatalErrors");
assert fatalErrors.length == 0;

//validate data content
def templateId = holder.getNodeValue(testRunner.testCase.testSuite.getPropertyValue("xPath_templateId"));
assert templateId == testRunner.testCase.testSuite.getPropertyValue("DETAIL_READ_TEMPLATE_ID");

def eventTitle = holder.getNodeValue(testRunner.testCase.testSuite.getPropertyValue("xPath_eventTitle"));
assert eventTitle == testRunner.testCase.testSuite.getPropertyValue("EVENT_TITLE");

def patientIdentity = holder.getNodeValue(testRunner.testCase.testSuite.getPropertyValue("xPath_patientIdentity"));
def patientFacility = holder.getNodeValue(testRunner.testCase.testSuite.getPropertyValue("xPath_patientFacility"));
def patientAuthority = holder.getNodeValue(testRunner.testCase.testSuite.getPropertyValue("xPath_patientAuthority"));
assert patientIdentity == com.eviware.soapui.SoapUI.globalProperties.getPropertyValue("CDS_UNIQUE_PATIENT");
assert patientFacility == testRunner.testCase.testSuite.getPropertyValue("PATIENT_ASSIGNING_FACILITY");
assert patientAuthority == testRunner.testCase.testSuite.getPropertyValue("PATIENT_ASSIGNING_AUTHORITY");

def prefix = holder.getNodeValue(testRunner.testCase.testSuite.getPropertyValue("xPath_prefix"));
def given = holder.getNodeValue(testRunner.testCase.testSuite.getPropertyValue("xPath_given"));
def middle = holder.getNodeValue(testRunner.testCase.testSuite.getPropertyValue("xPath_middle"));
def family = holder.getNodeValue(testRunner.testCase.testSuite.getPropertyValue("xPath_family"));
def suffix = holder.getNodeValue(testRunner.testCase.testSuite.getPropertyValue("xPath_suffix"));
def title = holder.getNodeValue(testRunner.testCase.testSuite.getPropertyValue("xPath_title"));
assert prefix == testRunner.testCase.testSuite.getPropertyValue("PATIENT_NAME_PREFIX");
assert given == testRunner.testCase.testSuite.getPropertyValue("PATIENT_NAME_GIVEN");
assert middle == testRunner.testCase.testSuite.getPropertyValue("PATIENT_NAME_MIDDLE");
assert family == testRunner.testCase.testSuite.getPropertyValue("PATIENT_NAME_FAMILY");
assert suffix == testRunner.testCase.testSuite.getPropertyValue("PATIENT_NAME_SUFFIX");
assert title == testRunner.testCase.testSuite.getPropertyValue("PATIENT_NAME_TITLE");

def recordIdentifier = holder.getNodeValue(testRunner.testCase.testSuite.getPropertyValue("xPath_recordIdentifier"));
assert recordIdentifier == testRunner.testCase.testSuite.getPropertyValue("recordIdentifierIdentity");

def journalType = holder.getNodeValue(testRunner.testCase.testSuite.getPropertyValue("xPath_journalType"));
assert journalType == testRunner.testCase.testSuite.getPropertyValue("JOURNAL_ENTRY_TYPE");

def comments = holder.getNodeValue(testRunner.testCase.testSuite.getPropertyValue("xPath_comments"));
def accessByStaff = holder.getNodeValue(testRunner.testCase.testSuite.getPropertyValue("xPath_accessByStaff"));
assert comments == testRunner.testCase.testSuite.getPropertyValue("UPDATE_COMMENTS");
assert accessByStaff == testRunner.testCase.testSuite.getPropertyValue("ALLOWS_ACCESS_BY_CLINICAL_STAFF");

def observationDate = holder.getNodeValue(testRunner.testCase.testSuite.getPropertyValue("xPath_observationDate"));
assert observationDate == testRunner.testCase.testSuite.getPropertyValue("OBSERVATION_DATE");

def dataEnterer = holder.getNodeValue(testRunner.testCase.testSuite.getPropertyValue("xPath_dataEnterer"));
assert dataEnterer == testRunner.testCase.testSuite.getPropertyValue("UPDATE_DATA_ENTERER");

def mimeTypeCreate = holder.getNodeValue(testRunner.testCase.testSuite.getPropertyValue("xPath_mimeTypeCreate"));
def mimeTypeUpdate = holder.getNodeValue(testRunner.testCase.testSuite.getPropertyValue("xPath_mimeTypeUpdate"));
//def attachmentNameCreate = holder.getNodeValue(testRunner.testCase.testSuite.getPropertyValue("xPath_attachmentNameCreate"));
//def attachmentNode = holder.getDomNode("//genericJournalEntryDetails/binaryAttachments/binaryAttachment[name='inProgress.gif']");


def attachmentNameUpdate = holder.getNodeValue(testRunner.testCase.testSuite.getPropertyValue("xPath_attachmentNameUpdate"));
assert mimeTypeCreate == testRunner.testCase.testSuite.getPropertyValue("MIME_TYPE");
assert mimeTypeUpdate == testRunner.testCase.testSuite.getPropertyValue("MIME_TYPE");
//assert attachmentNameCreate == testRunner.testCase.testSuite.getPropertyValue("CREATE_ATTACHMENT_NAME");
//assert attachmentNameUpdate == testRunner.testCase.testSuite.getPropertyValue("UPDATE_ATTACHMENT_NAME");

//def hexBinaryAttachmentCreate = holder.getNodeValue(testRunner.testCase.testSuite.getPropertyValue("xPath_hexBinaryAttachmentCreate"));
//def hexBinaryAttachmentUpdate = holder.getNodeValue(testRunner.testCase.testSuite.getPropertyValue("xPath_hexBinaryAttachmentUpdate"));
def hexBinaryAttachmentCreateNode = holder.getDomNode("//genericJournalEntryDetails/binaryAttachments/binaryAttachment[name='" + testRunner.testCase.testSuite.getPropertyValue("CREATE_ATTACHMENT_NAME")+"']");
log.info("xpath query create node: " + hexBinaryAttachmentCreateNode);
def hexBinaryAttachmentUpdateNode = holder.getDomNode("//genericJournalEntryDetails/binaryAttachments/binaryAttachment[name='" + testRunner.testCase.testSuite.getPropertyValue("UPDATE_ATTACHMENT_NAME")+"']");
log.info("xpath query update node: " + hexBinaryAttachmentUpdateNode);
assert hexBinaryAttachmentCreateNode != null;
assert hexBinaryAttachmentUpdateNode != null;
//assert hexBinaryAttachmentCreate == testRunner.testCase.testSuite.getPropertyValue("HEX_BINARY_ATTACHMENT");
//assert hexBinaryAttachmentUpdate == testRunner.testCase.testSuite.getPropertyValue("HEX_BINARY_ATTACHMENT");
</script></con:config></con:testStep><con:properties/></con:testCase><con:testCase failOnError="true" failTestCaseOnErrors="true" keepSession="false" maxResults="0" name="ReadDailyEventJournalListWithDateRange" searchProperties="true" id="db1c7e71-ad87-4c58-9538-c264099bf9c0"><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.REQUEST_ID = UUID.randomUUID().toString();</script></con:config></con:testStep><con:testStep type="request" name="readDailyEventJournalListWithDateRange"><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="readDailyEventJournalListWithDateRange"><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.med.DNS   ">
   <soapenv:Header/>
   <soapenv:Body>
      <cli:readClinicalData1>
         <in0>${#TestSuite#READ_TEMPLATE_ID}</in0>
         <in1><![CDATA[
		<?xml version="1.0" encoding="UTF-8"?>
			<filter:filter xmlns:filter="Filter" vhimVersion="Vhim_4_00">
				<filterId>${#TestSuite#READ_FILTER_ID}</filterId>
				<clientName>${#TestSuite#CLIENT_NAME}</clientName>
				<clientRequestInitiationTime>${CLIENT_REQUEST_INIT_TIME}</clientRequestInitiationTime>
				<patients>
					<EdiPi>
						<assigningAuthority>${#TestSuite#PATIENT_ASSIGNING_AUTHORITY}</assigningAuthority>
						<assigningFacility>${#TestSuite#PATIENT_ASSIGNING_FACILITY}</assigningFacility>
						<identity>${#TestCase#PATIENT_IDENTITY}</identity>
					</EdiPi>
				</patients>
				<entryPointFilter queryName="ID_1">
					<filter:defaultDomainEntryPointFilter>
						<domainEntryPoint>PatientEnteredDailyEventJournalEntry</domainEntryPoint>
					</filter:defaultDomainEntryPointFilter>
					<startDate>2012-03-17Z</startDate>
					<endDate>2012-03-18Z</endDate>
				</entryPointFilter>
			</filter:filter>
         	]]]]>><![CDATA[
         </in1>
         <in2>${#TestSuite#READ_FILTER_ID}</in2>
         <in3>${REQUEST_ID}</in3>
      </cli:readClinicalData1>
   </soapenv:Body>
</soapenv:Envelope>]]></con:request><con:assertion type="SOAP Response"/><con:assertion type="GroovyScriptAssertion" name="Script-count records returned for date range"><con:configuration><scriptText>import com.eviware.soapui.support.XmlHolder
import org.w3c.dom.*

def holder = new XmlHolder( messageExchange.responseContentAsXml )
holder.namespaces["clinicaldata"] = "Clinicaldata"
def node = holder["//out"]
def descHolder = new XmlHolder( node )

//def records = descHolder.getDomNodes( "/clinicaldata:ClinicalData/patient/patientJournalEntriespatientjournaling:patientEnteredDailyEventJournalEntry" ).length
def records = descHolder.getDomNodes( "//genericJournalEntryDetails").length
assert records == 4</scriptText></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>PATIENT_IDENTITY</con:name><con:value>test_sourceid_1000001</con:value></con:property></con:properties></con:testCase><con:testCase failOnError="true" failTestCaseOnErrors="true" keepSession="false" maxResults="0" name="DeleteDailyEventJournal" searchProperties="true" id="6c1960f4-caf8-4e79-a1f3-31b72c2e62fd"><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.REQUEST_ID = UUID.randomUUID().toString(); 
</script></con:config></con:testStep><con:testStep type="request" name="logicallyDeleteDailyEventJournal"><con:settings/><con:config xsi:type="con:RequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>ClinicalDataServiceSynchronousInterfaceHttpBinding</con:interface><con:operation>deleteClinicalData</con:operation><con:request name="logicallyDeleteDailyEventJournal"><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.med.DNS   ">
   <soapenv:Header/>
   <soapenv:Body>
      <cli:deleteClinicalData>
         <in0><![CDATA[
			<?xml version="1.0" encoding="UTF-8"?>
			<clinicaldata:ClinicalData xsi:schemaLocation="Clinicaldata HealthAdapterDelete1.xsd" xmlns:clinicaldata="Clinicaldata" xmlns:patientjournaling="PatientJournaling" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
				<templateId>${#TestSuite#DELETE_TEMPLATE_ID}</templateId>
				<clientName>${#TestSuite#CLIENT_NAME}</clientName>
				<clientRequestInitiationTime>${CLIENT_REQUEST_INIT_TIME}</clientRequestInitiationTime>
			<patient>
				<patientJournalEntries>
					<patientjournaling:patientEnteredDailyEventJournalEntry>
						<genericJournalEntryDetails>
							<recordIdentifier>
								<identity>${#TestSuite#recordIdentifierIdentity}</identity>
							</recordIdentifier>
							<recordStatus>1</recordStatus>
						</genericJournalEntryDetails>
					</patientjournaling:patientEnteredDailyEventJournalEntry>
				</patientJournalEntries>
			</patient>
			</clinicaldata:ClinicalData>
              ]]]]>><![CDATA[
         </in0>
         <in1>${#TestSuite#DELETE_TEMPLATE_ID}</in1>
         <in2>${REQUEST_ID}</in2>
      </cli:deleteClinicalData>
   </soapenv:Body>
</soapenv:Envelope>]]></con:request><con:assertion type="SOAP Response"/><con:assertion type="GroovyScriptAssertion" name="checkForErrors"><con:configuration><scriptText>import com.eviware.soapui.support.XmlHolder
import org.w3c.dom.*

def holder = new XmlHolder( messageExchange.responseContentAsXml )
holder.namespaces["clinicaldata"] = "Clinicaldata"
def node = holder["//out"]
def descHolder = new XmlHolder( node )

def errors = descHolder.getDomNodes( "//clinicaldata:ClinicalData/errorSection/errors" )
assert errors.length == 0

def fatalErrors = descHolder.getDomNodes( "//clinicaldata:ClinicalData/errorSection/fatalErrors" )
assert fatalErrors.length == 0</scriptText></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="request" name="readAndConfirmLogicalDelete"><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="readAndConfirmLogicalDelete"><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.med.DNS   ">
   <soapenv:Header/>
   <soapenv:Body>
      <cli:readClinicalData1>
         <in0>${#TestSuite#READ_TEMPLATE_ID}</in0>          
		<in1><![CDATA[<?xml version="1.0" encoding="UTF-8"?>            
			<filter:filter xmlns:filter="Filter" vhimVersion="Vhim_4_00">
				<filterId>${#TestSuite#READ_FILTER_ID}</filterId>
					<clientName>${#TestSuite#CLIENT_NAME}</clientName>
					<clientRequestInitiationTime>${CLIENT_REQUEST_INIT_TIME}</clientRequestInitiationTime>
					<patients>
						<EdiPi>
							<assigningAuthority>${#TestSuite#PATIENT_ASSIGNING_AUTHORITY}</assigningAuthority>
							<assigningFacility>${#TestSuite#PATIENT_ASSIGNING_FACILITY}</assigningFacility>
							<identity>${#Global#CDS_UNIQUE_PATIENT}</identity>
						</EdiPi>
					</patients>
					<entryPointFilter queryName="ID_1">
						<filter:defaultDomainEntryPointFilter>
							<domainEntryPoint>PatientEnteredDailyEventJournalEntry</domainEntryPoint>
						</filter:defaultDomainEntryPointFilter>
				</entryPointFilter>
			</filter:filter>]]]]>><![CDATA[</in1>          
		<in2>${#TestSuite#READ_FILTER_ID}</in2>          
		<in3>${REQUEST_ID}</in3>
      </cli:readClinicalData1>
   </soapenv:Body>
</soapenv:Envelope>]]></con:request><con:assertion type="SOAP Response"/><con:assertion type="GroovyScriptAssertion" name="confirm-one-JournalRecord"><con:configuration><scriptText>import com.eviware.soapui.support.XmlHolder
import org.w3c.dom.*

def holder = new XmlHolder( messageExchange.responseContentAsXml )
holder.namespaces["clinicaldata"] = "Clinicaldata"
def node = holder["//out"]
def descHolder = new XmlHolder( node )

def genericJournalEntryDetails = descHolder.getDomNodes( "//patientJournalEntries " ).length
assert genericJournalEntryDetails == 1
</scriptText></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="request" name="physicallyDeleteOriginalDailyEventJournal"><con:settings/><con:config xsi:type="con:RequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>ClinicalDataServiceSynchronousInterfaceHttpBinding</con:interface><con:operation>deleteClinicalData</con:operation><con:request name="physicallyDeleteOriginalDailyEventJournal"><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.med.DNS   ">
   <soapenv:Header/>
   <soapenv:Body>
      <cli:deleteClinicalData>
         <in0><![CDATA[
			<?xml version="1.0" encoding="UTF-8"?>
			<clinicaldata:ClinicalData xsi:schemaLocation="Clinicaldata HealthAdapterDelete1.xsd" xmlns:clinicaldata="Clinicaldata" xmlns:patientjournaling="PatientJournaling" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
				<templateId>${#TestSuite#DELETE_TEMPLATE_ID}</templateId>
				<clientName>${#TestSuite#CLIENT_NAME}</clientName>
				<clientRequestInitiationTime>${CLIENT_REQUEST_INIT_TIME}</clientRequestInitiationTime>
			<patient>
				<patientJournalEntries>
					<patientjournaling:patientEnteredDailyEventJournalEntry>
						<genericJournalEntryDetails>
							<recordIdentifier>
								<identity>${#TestSuite#recordIdentifierIdentity}</identity>
							</recordIdentifier>
							<recordStatus>0</recordStatus>
						</genericJournalEntryDetails>
					</patientjournaling:patientEnteredDailyEventJournalEntry>
				</patientJournalEntries>
			</patient>
			</clinicaldata:ClinicalData>
              ]]]]>><![CDATA[
         </in0>
         <in1>${#TestSuite#DELETE_TEMPLATE_ID}</in1>
         <in2>${REQUEST_ID}</in2>
      </cli:deleteClinicalData>
   </soapenv:Body>
</soapenv:Envelope>]]></con:request><con:assertion type="SOAP Response"/><con:assertion type="GroovyScriptAssertion" name="checkForErrors"><con:configuration><scriptText>import com.eviware.soapui.support.XmlHolder
import org.w3c.dom.*

def holder = new XmlHolder( messageExchange.responseContentAsXml )
holder.namespaces["clinicaldata"] = "Clinicaldata"
def node = holder["//out"]
def descHolder = new XmlHolder( node )

def errors = descHolder.getDomNodes( "//clinicaldata:ClinicalData/errorSection/errors" )
assert errors.length == 0

def fatalErrors = descHolder.getDomNodes( "//clinicaldata:ClinicalData/errorSection/fatalErrors" )
assert fatalErrors.length == 0</scriptText></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="request" name="readAndConfirmPhysicallDelete"><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="readAndConfirmPhysicallDelete"><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.med.DNS   ">
   <soapenv:Header/>
   <soapenv:Body>
      <cli:readClinicalData1>
         <in0>${#TestSuite#READ_TEMPLATE_ID}</in0>          
		<in1><![CDATA[<?xml version="1.0" encoding="UTF-8"?>            
			<filter:filter xmlns:filter="Filter" vhimVersion="Vhim_4_00">
				<filterId>${#TestSuite#READ_FILTER_ID}</filterId>
					<clientName>${#TestSuite#CLIENT_NAME}</clientName>
					<clientRequestInitiationTime>${CLIENT_REQUEST_INIT_TIME}</clientRequestInitiationTime>
					<patients>
						<EdiPi>
							<assigningAuthority>${#TestSuite#PATIENT_ASSIGNING_AUTHORITY}</assigningAuthority>
							<assigningFacility>${#TestSuite#PATIENT_ASSIGNING_FACILITY}</assigningFacility>
							<identity>${#Global#CDS_UNIQUE_PATIENT}</identity>
						</EdiPi>
					</patients>
					<entryPointFilter queryName="ID_1">
						<filter:defaultDomainEntryPointFilter>
							<domainEntryPoint>PatientEnteredDailyEventJournalEntry</domainEntryPoint>
						</filter:defaultDomainEntryPointFilter>
				</entryPointFilter>
			</filter:filter>]]]]>><![CDATA[</in1>          
		<in2>${#TestSuite#READ_FILTER_ID}</in2>          
		<in3>${REQUEST_ID}</in3>
      </cli:readClinicalData1>
   </soapenv:Body>
</soapenv:Envelope>]]></con:request><con:assertion type="SOAP Response"/><con:assertion type="Simple NotContains" name="Not Contains"><con:configuration><token>(?s).*genericJournalEntryDetails*.</token><ignoreCase>false</ignoreCase><useRegEx>true</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:testCase><con:properties><con:property><con:name>recordIdentifierIdentity</con:name><con:value>12015</con:value></con:property><con:property><con:name>CLIENT_NAME</con:name><con:value>HealthAdapterClient</con:value></con:property><con:property><con:name>CREATE_TEMPLATE_ID</con:name><con:value>HealthAdapterCreate1</con:value></con:property><con:property><con:name>READ_TEMPLATE_ID</con:name><con:value>HealthAdapterRead1</con:value></con:property><con:property><con:name>DETAIL_READ_TEMPLATE_ID</con:name><con:value>HealthAdapterJournalDetailRead1</con:value></con:property><con:property><con:name>UPDATE_TEMPLATE_ID</con:name><con:value>HealthAdapterUpdate1</con:value></con:property><con:property><con:name>DELETE_TEMPLATE_ID</con:name><con:value>HealthAdapterDelete1</con:value></con:property><con:property><con:name>READ_FILTER_ID</con:name><con:value>HEALTH_ADAPTER_SINGLE_PATIENT_ALL_DATA_FILTER</con:value></con:property><con:property><con:name>DETAIL_READ_FILTER_ID</con:name><con:value>HEALTH_ADAPTER_JOURNAL_DETAIL_FILTER</con:value></con:property><con:property><con:name>EVENT_TITLE</con:name><con:value>My Dog Skip</con:value></con:property><con:property><con:name>SECOND_EVENT_TITLE</con:name><con:value>This is a second HA record to use in testing logical deletes.</con:value></con:property><con:property><con:name>PATIENT_ASSIGNING_AUTHORITY</con:name><con:value>USDOD</con:value></con:property><con:property><con:name>PATIENT_ASSIGNING_FACILITY</con:name><con:value>200DOD</con:value></con:property><con:property><con:name>PATIENT_NAME_FAMILY</con:name><con:value>FamilyName</con:value></con:property><con:property><con:name>PATIENT_NAME_GIVEN</con:name><con:value>Given</con:value></con:property><con:property><con:name>PATIENT_NAME_MIDDLE</con:name><con:value>MiddleName</con:value></con:property><con:property><con:name>PATIENT_NAME_PREFIX</con:name><con:value>Prefix</con:value></con:property><con:property><con:name>PATIENT_NAME_SUFFIX</con:name><con:value>Suffix</con:value></con:property><con:property><con:name>PATIENT_NAME_TITLE</con:name><con:value>Title</con:value></con:property><con:property><con:name>JOURNAL_ENTRY_TYPE</con:name><con:value>PatientEnteredDailyEventJournalEntry</con:value></con:property><con:property><con:name>ALLOWS_ACCESS_BY_CLINICAL_STAFF</con:name><con:value>true</con:value></con:property><con:property><con:name>COMMENTS</con:name><con:value>Today I bought a new puppy. I named him Skip. He likes to play catch with me.</con:value></con:property><con:property><con:name>UPDATE_COMMENTS</con:name><con:value>Today I bought a new puppy. I named him Skip. He likes to play catch with me. He is the best little pal to play with.</con:value></con:property><con:property><con:name>OBSERVATION_DATE</con:name><con:value>20120203172217-0600</con:value></con:property><con:property><con:name>DATA_ENTERER</con:name><con:value>HDRPROVIDER,ONE</con:value></con:property><con:property><con:name>UPDATE_DATA_ENTERER</con:name><con:value>UPDATE_HDRPROVIDER,ONE </con:value></con:property><con:property><con:name>RECORD_UPDATE_DT</con:name><con:value>19691231170000-0700</con:value></con:property><con:property><con:name>TABLE_NAME</con:name><con:value>DAILY_EVENT_JOURNAL</con:value></con:property><con:property><con:name>MIME_TYPE</con:name><con:value>image/jpg</con:value></con:property><con:property><con:name>CREATE_ATTACHMENT_NAME</con:name><con:value>inProgress.gif</con:value></con:property><con:property><con:name>UPDATE_ATTACHMENT_NAME</con:name><con:value>inProgress2.gif</con:value></con:property><con:property><con:name>HEX_BINARY_ATTACHMENT</con:name><con:value>47494638396110001000f40000ffffff000000f8f8f8383838848484060606262626d6d6d6a8a8a8161616767676666666e4e4e4989898c6c6c648484856565600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000021fe1a43726561746564207769746820616a61786c6f61642e696e666f0021f904000a00000021ff0b4e45545343415045322e3003010000002c000000001000100000055020208e64699ea530146c212a8460aaad9814c6911a3580f006d988805b8d043c02698550911085018985a28eac292c80495af8a22462f0ba4892903884a835261d7889356b203c1314f2791dc5ef8f420021f904000a0001002c000000001000100000056820208a47d28c682a1ac5e0a8a84024457dc0c0c1d6c502088c9480656814120cc1c02040110a4cc080f0635147830242b4e5b6503598203caa35556451b62be822bea3679430a816aea2a18f416b10cf2341000b3c503730073c090480300e5906382a0d098723210021f904000a0002002c000000001000100000056020208e23f39028da14482a0ac45014092da48731ef33810a3a43cb314bb4488482e106482e9824d9b179000810bed1cc05d86a0b2e81574440dc0e5900a230480916852c308e42d40a8e6b104ae6ed0c553f357703047c246b0d5c290f0c8b210021f904000a0003002c000000001000100000055220208e64699e802094023114c540a883431e06ac17c66b8b829c012142e4603f0081b702be90234582387a4251588063bb6da2760b1222a120e9c2a3608160860d5546a61972dc190ea570eb29f366ff80210021f904000a0004002c000000001000100000056020208e64699ea8400c453110c2c9186d5d18c7b918488cd086d82807108a04340220e7282c18a6462161480058539808816d35a4b501624448b40600aab961622c0a8e258070331663c423b027f80dec220734363750262a582f80288c8d24210021f904000a0005002c000000001000100000055f20208e64699ea84814c54008a6403400c2b2c64122499108b09aa160083e6e850549302488188d1e4b37b20d482c07c1892d74832a8283451a1410a4c32dd160a88860c002f91031890818b097408f0e433768082f310466055c298b8c2621003b000000000000000000</con:value></con:property><con:property><con:name>xPath_templateId</con:name><con:value>/clinicaldata:ClinicalData/templateId</con:value></con:property><con:property><con:name>xPath_ediPiIdentity</con:name><con:value>/clinicaldata:ClinicalData/patients/patient/requestedEdiPi/identity</con:value></con:property><con:property><con:name>xPath_ediPiFacility</con:name><con:value>/clinicaldata:ClinicalData/patients/patient/requestedEdiPi/assigningFacility</con:value></con:property><con:property><con:name>xPath_ediPiAuthority</con:name><con:value>/clinicaldata:ClinicalData/patients/patient/requestedEdiPi/assigningAuthority</con:value></con:property><con:property><con:name>xPath_resultantIdentity</con:name><con:value>/clinicaldata:ClinicalData/patients/patient/resultantIdentifiers/resultantIdentifier/identity</con:value></con:property><con:property><con:name>xPath_resultantFacility</con:name><con:value>/clinicaldata:ClinicalData/patients/patient/resultantIdentifiers/resultantIdentifier/assigningFacility</con:value></con:property><con:property><con:name>xPath_resultantAuthority</con:name><con:value>/clinicaldata:ClinicalData/patients/patient/resultantIdentifiers/resultantIdentifier/assigningAuthority</con:value></con:property><con:property><con:name>xPath_eventTitle</con:name><con:value>/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/eventTitle</con:value></con:property><con:property><con:name>xPath_patientIdentity</con:name><con:value>/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/patient/identifier/identity</con:value></con:property><con:property><con:name>xPath_patientFacility</con:name><con:value>/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/patient/identifier/assigningFacility</con:value></con:property><con:property><con:name>xPath_patientAuthority</con:name><con:value>/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/patient/identifier/assigningAuthority</con:value></con:property><con:property><con:name>xPath_prefix</con:name><con:value>/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/patient/name/prefix</con:value></con:property><con:property><con:name>xPath_given</con:name><con:value>/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/patient/name/given</con:value></con:property><con:property><con:name>xPath_middle</con:name><con:value>/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/patient/name/middle</con:value></con:property><con:property><con:name>xPath_family</con:name><con:value>/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/patient/name/family</con:value></con:property><con:property><con:name>xPath_suffix</con:name><con:value>/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/patient/name/suffix</con:value></con:property><con:property><con:name>xPath_title</con:name><con:value>/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/patient/name/title</con:value></con:property><con:property><con:name>xPath_recordIdentifier</con:name><con:value>/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/recordIdentifier/identity</con:value></con:property><con:property><con:name>xPath_journalType</con:name><con:value>/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/journalEntryType</con:value></con:property><con:property><con:name>xPath_comments</con:name><con:value>/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/comments</con:value></con:property><con:property><con:name>xPath_accessByStaff</con:name><con:value>/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/allowAccessByClinicalStaff</con:value></con:property><con:property><con:name>xPath_observationDate</con:name><con:value>/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/observationDate/literal</con:value></con:property><con:property><con:name>xPath_dataEnterer</con:name><con:value>/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/dataEnterer</con:value></con:property><con:property><con:name>xPath_mimeTypeCreate</con:name><con:value>/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/binaryAttachments/binaryAttachment[1]/mimeType</con:value></con:property><con:property><con:name>xPath_mimeTypeUpdate</con:name><con:value>/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/binaryAttachments/binaryAttachment[2]/mimeType</con:value></con:property><con:property><con:name>xPath_attachmentNameCreate</con:name><con:value>/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/binaryAttachments/binaryAttachment[1]/name</con:value></con:property><con:property><con:name>xPath_attachmentNameUpdate</con:name><con:value>/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/binaryAttachments/binaryAttachment[2]/name</con:value></con:property><con:property><con:name>xPath_hexBinaryAttachmentCreate</con:name><con:value>/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/binaryAttachments/binaryAttachment[1]/hexBinaryAttachment</con:value></con:property><con:property><con:name>xPath_hexBinaryAttachmentUpdate</con:name><con:value>/clinicaldata:ClinicalData/patients/patient/patientJournalEntries/patientjournaling:patientEnteredDailyEventJournalEntry/genericJournalEntryDetails/binaryAttachments/binaryAttachment[2]/hexBinaryAttachment</con:value></con:property></con:properties><con:setupScript/></con:testSuite><con:mockService port="8088" path="/mockClinicalDataServiceSynchronousInterfaceHttpBinding" host="ISL-KHANNA-LT" name="ClinicalDataServiceSynchronousInterfaceHttpBinding MockService">
		<con:settings>
			<con:setting id="com.eviware.soapui.impl.wsdl.mock.WsdlMockService@require-soap-action">false</con:setting>
		</con:settings>
		<con:mockOperation name="appendClinicalData" interface="ClinicalDataServiceSynchronousInterfaceHttpBinding" operation="appendClinicalData">
			<con:settings/>
			<con:dispatchStyle>SEQUENCE</con:dispatchStyle>
			<con:defaultResponse>Response 1</con:defaultResponse>
			<con:response name="Response 1" encoding="UTF-8">
				<con:settings/>
				<con:responseContent><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:cli="http://client.cds.med.DNS   ">
   <soapenv:Header/>
   <soapenv:Body>
      <cli:appendClinicalDataResponse>
         <out>?</out>
      </cli:appendClinicalDataResponse>
   </soapenv:Body>
</soapenv:Envelope>]]></con:responseContent>
				<con:wsaConfig mustUnderstand="NONE" version="200508" action="http://client.cds.med.DNS   /ClinicalDataServiceSynchronousInterfacePortType/appendClinicalDataResponse"/>
			</con:response>
			<con:dispatchConfig/>
		</con:mockOperation>
		<con:mockOperation name="createClinicalData" interface="ClinicalDataServiceSynchronousInterfaceHttpBinding" operation="createClinicalData">
			<con:settings/>
			<con:dispatchStyle>SEQUENCE</con:dispatchStyle>
			<con:defaultResponse>Response 1</con:defaultResponse>
			<con:response name="Response 1" encoding="UTF-8">
				<con:settings/>
				<con:responseContent><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:cli="http://client.cds.med.DNS   ">
   <soapenv:Header/>
   <soapenv:Body>
      <cli:createClinicalDataResponse>
         <out>?</out>
      </cli:createClinicalDataResponse>
   </soapenv:Body>
</soapenv:Envelope>]]></con:responseContent>
				<con:wsaConfig mustUnderstand="NONE" version="200508" action="http://client.cds.med.DNS   /ClinicalDataServiceSynchronousInterfacePortType/createClinicalDataResponse"/>
			</con:response>
			<con:dispatchConfig/>
		</con:mockOperation>
		<con:mockOperation name="deleteClinicalData" interface="ClinicalDataServiceSynchronousInterfaceHttpBinding" operation="deleteClinicalData">
			<con:settings/>
			<con:dispatchStyle>SEQUENCE</con:dispatchStyle>
			<con:defaultResponse>Response 1</con:defaultResponse>
			<con:response name="Response 1" encoding="UTF-8">
				<con:settings/>
				<con:responseContent><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:cli="http://client.cds.med.DNS   ">
   <soapenv:Header/>
   <soapenv:Body>
      <cli:deleteClinicalDataResponse>
         <out>?</out>
      </cli:deleteClinicalDataResponse>
   </soapenv:Body>
</soapenv:Envelope>]]></con:responseContent>
				<con:wsaConfig mustUnderstand="NONE" version="200508" action="http://client.cds.med.DNS   /ClinicalDataServiceSynchronousInterfacePortType/deleteClinicalDataResponse"/>
			</con:response>
			<con:dispatchConfig/>
		</con:mockOperation>
		<con:mockOperation name="isAlive" interface="ClinicalDataServiceSynchronousInterfaceHttpBinding" operation="isAlive">
			<con:settings/>
			<con:dispatchStyle>SEQUENCE</con:dispatchStyle>
			<con:defaultResponse>Response 1</con:defaultResponse>
			<con:response name="Response 1" encoding="UTF-8">
				<con:settings/>
				<con:responseContent><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:cli="http://client.cds.med.DNS   ">
   <soapenv:Header/>
   <soapenv:Body>
      <cli:isAliveResponse>
         <out>?</out>
      </cli:isAliveResponse>
   </soapenv:Body>
</soapenv:Envelope>]]></con:responseContent>
				<con:wsaConfig mustUnderstand="NONE" version="200508" action="http://client.cds.med.DNS   /ClinicalDataServiceSynchronousInterfacePortType/isAliveResponse"/>
			</con:response>
			<con:dispatchConfig/>
		</con:mockOperation>
		<con:mockOperation name="readClinicalData" interface="ClinicalDataServiceSynchronousInterfaceHttpBinding" operation="readClinicalData">
			<con:settings/>
			<con:dispatchStyle>SEQUENCE</con:dispatchStyle>
			<con:defaultResponse>Response 1</con:defaultResponse>
			<con:response name="Response 1" encoding="UTF-8">
				<con:settings/>
				<con:responseContent><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:cli="http://client.cds.med.DNS   ">
   <soapenv:Header/>
   <soapenv:Body>
      <cli:readClinicalDataResponse>
         <out>?</out>
      </cli:readClinicalDataResponse>
   </soapenv:Body>
</soapenv:Envelope>]]></con:responseContent>
				<con:wsaConfig mustUnderstand="NONE" version="200508" action="http://client.cds.med.DNS   /ClinicalDataServiceSynchronousInterfacePortType/readClinicalDataResponse"/>
			</con:response>
			<con:dispatchConfig/>
		</con:mockOperation>
		<con:mockOperation name="readClinicalData1" interface="ClinicalDataServiceSynchronousInterfaceHttpBinding" operation="readClinicalData1">
			<con:settings/>
			<con:dispatchStyle>SEQUENCE</con:dispatchStyle>
			<con:defaultResponse>Response 1</con:defaultResponse>
			<con:response name="Response 1" encoding="UTF-8">
				<con:settings/>
				<con:responseContent><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:cli="http://client.cds.med.DNS   ">
   <soapenv:Header/>
   <soapenv:Body>
      <cli:readClinicalData1Response>
         <out>?</out>
      </cli:readClinicalData1Response>
   </soapenv:Body>
</soapenv:Envelope>]]></con:responseContent>
				<con:wsaConfig mustUnderstand="NONE" version="200508" action="http://client.cds.med.DNS   /ClinicalDataServiceSynchronousInterfacePortType/readClinicalData1Response"/>
			</con:response>
			<con:dispatchConfig/>
		</con:mockOperation>
		<con:mockOperation name="updateClinicalData" interface="ClinicalDataServiceSynchronousInterfaceHttpBinding" operation="updateClinicalData">
			<con:settings/>
			<con:dispatchStyle>SEQUENCE</con:dispatchStyle>
			<con:defaultResponse>Response 1</con:defaultResponse>
			<con:response name="Response 1" encoding="UTF-8">
				<con:settings/>
				<con:responseContent><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:cli="http://client.cds.med.DNS   ">
   <soapenv:Header/>
   <soapenv:Body>
      <cli:updateClinicalDataResponse>
         <out>?</out>
      </cli:updateClinicalDataResponse>
   </soapenv:Body>
</soapenv:Envelope>]]></con:responseContent>
				<con:wsaConfig mustUnderstand="NONE" version="200508" action="http://client.cds.med.DNS   /ClinicalDataServiceSynchronousInterfacePortType/updateClinicalDataResponse"/>
			</con:response>
			<con:dispatchConfig/>
		</con:mockOperation>
		<con:properties/>
	</con:mockService><con:properties/><con:wssContainer/><con:sensitiveInformation/></con:soapui-project>