Responding Gateway responds to a basic Query Document query
Testing Tool (XDS toolkit) initiates QD synchronous Find Documents request to the System with the required parameters.  System responds with the matching documents metadata.
The Testing Tool sends a synchronous Find Documents Request to the System, using the following required parameters:
- SOAP Header = MP: MA Default Request (TestTool) 
 - $XDSDocumentEntryPatientID = [P-000000010 PID]
 
- $XDSDocumentEntryStatus = Approved
 
- $XDSDocumentEntryType = [Demand Documents]
 
- returnType = LeafClass
 
- SOAP request = synchronous
 
- returnComposedObjects = true
 
The SUT is testing as an On-Demand system, it would send one On-Demand document with:
- A 'DocumentMatch' of either: XDSDocumentEntry.uniqueId = D-000000010.27 OR (XDSDocumentEntry.patientID = [P-000000010 PID] AND XDSDocumentEntry.authorPerson = [value from D-000000010.27]) 
 
- A match on: XDSDocumentEntry.status = [value from D-000000010.27]
 
- A match on: XDSDocument.objectType = [value from D-000000010.27]  
 
Assertions test the following:
- ObjectRefCount - Query finds and returns 1 Approved DocumentEntries for this Patient ID.