<H3>Special Instructions</H3><p>
 <p>This is a complex test to set up.   Do the "XCA_Simple_" Query and Retrieve tests before trying this one.  Initiating Gateways which are grouped with an XDS.b Document Consumer run one instance of this
    test.</p>
 <p>
 <u><strong>Systems needed to run this test:</strong></u>
 </p>
 <p>In the "local/initiating" community (it is permissible choose a systems from the same vendor as the Initiating Gateway):
 <ul>
 <li>Initiating Gateway</li>
 <li>XDS.b. Document Consumer (helping with the test)</li>
 <li>XDS.b Document Registry (helping)</li>
 <li>XDS.b Document Repository (helping)</li>
  </ul>
 <p>In the "remote/responding" community (it is permissible choose Registry/Repository/Source systems from the same vendor as the Responding Gateway):</p>
 <ul>  
 <li>Responding Gateway</li>
 <li>XDS.b Document Source (helping)</li>
 <li>XDS.b Document Registry (helping)</li>
 <li>XDS.b Document Repository (helping)</li>
 </ul>
 
 <p>
    
 <strong>
     <u>Test Configuration:</u>
    </strong>
 </p>
 <ul>
    
 <li>There are 2 communities:' the 'remote' and
     'local' communities are both XDS.b Affinity Domains.' The
     'local' community contains a Document Consumer, Document Registry and
     Document Repository.' The Document Consumer configures the Initiating Gateway as its
     Registry/Repository.</li>
    
 <li>The Initiating Gateway's grouped 'Document Consumer' must configure its
     local Reg/Rep as a query/retrieve destination.</li>
    
 <li>The Assigning Authority is the same for the Patient IDs in the
     'remote' and 'local' communities.</li>
    
 <li>The HIMSS Registration tool is used to create Patient IDs</li>
 
 </ul>
 <p>
    
 <strong>
     <u>Pre-Test Setup:</u></p>
 <p>(you want documents for one patient in both the local and remote communities):</u>
    </strong>
 <p>
    
 <li>ITI-8 or ITI-44 - Patient Identity Source (HIMSS Registration Tool) sends ID for Patient XCA, Andrew PatID=WIEN5009 to the
     Registry in both the "local" and 'remote' communities</li>
 <li>Document Sources use PIX or PDQ Query to get Master Patient ID for patient XCA,
     Andrew PatID=WIEN5009</li>
    
 <li>ITI-41 Document Source creates a document for patient XCA^Andrew and sends it to the Repository (Provide & Reg
     Doc Set)</li>
    
 <li>ITI-42 Document Repository registers the document with the Document Registry</li>
    
 <li>Repeat previous 2 steps to have a total of 3 documents available in each remote community for XCA^Andrew.</li>
 </ul>
 </p><H3>Description</H3><p>This test verifies that an Initiating Gateway which is grouped with an XDS.b Document Consumer
    queries and retrieves in its local affinity domain as well as initiating a Cross-Gateway Query
    and Cross-Gateway Retrieve</p><H3>Evaluation</H3><p>On the <strong>Document Consumer </strong>in the Initiating Gateway's community,
    verify: </p><ul>
    
 <li>The Initiating Gateway returned the requested documents from both its local and the remote
     community.</li>
 </ul>
 