Overview:

DocQueryErrorCodesStandard project is used to test Document Query service error handling functionality for Patient Id. When an unknown or invalid PatientID passed in Document Query request message, no correlations are present for that patient and an error ""XDSUnknownPatientId" should be returned. It is accomplished by processing Document Query request with XDSDocumentEntryPatientId element. 

Testing will be done in standard mode. 

Test case details:

NOTE: To read more about Document Query error handing follow Nhin Document Query error Handling Spec.  

Preparation & Execution:

  1. Make sure to copy CONNECT common properties from \\CONNECT\Product\Production\Common\Properties\src\main\resources to application server properties folder. (If using WildFly 8.2.1 , copy into \\wildfly-8.2.1.Final\modules\system\layers\base\org\connectopensource\configuration\main).
  2. Make sure to enable Standard mode for DQ service in gateway.properties. Note: By default Document Query services are in Standard mode in gateway.properties.
  3. Restart application server.
  4. Deploy CONNECT ear (mvn clean install -P AD,PD,DQ,DR,DS).
  5. In SoapUI, make sure to have GatewayPropDir value set either by using global SOAPUI properties or by setting custom SOAPUI property at the project level.
  6. In SoapUI, load DocQueryErrorCodesStandard project and execute.
  7. Make sure all test cases are passed and green.