DocQueryErrorCodesStandard
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:
XDSUnknownPatientId:Â
This test case is used to test Document Query service when the PatientID value passed as "unknown" in the $XDSDocumentEntryPatientId slot. When this test case is executed, the script will update "documentQueryQuerySelf" property to false in gateway.properties configuration file. Script will also update patientcorrelationdb.correlatedidentifiers , assigningauthoritydb.aa_to_home_community_mapping tables with a valid patientId, assigning authority and correlationId values (PatientId not as "unknown").  When Document Query service test step is processed, it returns RegistryError response with errorCode as "XDSUnknownPatientId", codeContext as "no patient correlations found"  and coded indication of the severity of the error.  Using assertions script will verify request's response to make sure expected elements with relevant values are present in RegistryError element.
NOTE: To read more about Document Query error handing follow Nhin Document Query error Handling Spec. Â
Preparation & Execution:
- 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).
- 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.
- Restart application server.
- Deploy CONNECT ear (mvn clean install -P AD,PD,DQ,DR,DS).
- 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.
- In SoapUI, load DocQueryErrorCodesStandard project and execute.
- Make sure all test cases are passed and green.