Assertion should be change (3.5.4.UT.2 Unknown Stored Query) to expect error and not empty-registryList
Overview
Verify Document Query search capability without mock-response and verify expected results, and verify Document Retrieve function.
Test Detail
The Document Query (Passthrough) service is running with JMX call script to set the CONNECT application to Passthrough services without application restart.
Document Query
Generate Patient ID (FullPatientID)
Send Document Query with search-parameter and verify the expected response.
Document Retrieve
Generate HCID (CorrectedLocalHCID)
Send Document Retrieve request and verify the expected response
DocQueryRetrieveSelfTest
3.3.1.UT.2 Find Patient ID (Single document)
Generate Patient ID for Doc Query
SOAP: Document Query
Assert status (Success)
Assert count (Document == 1)
3.3.2.UT.2 Find Patient ID (Multiple documents)
Generate Patient ID for Doc Query
Document Query
Assert status (Success)
Assert count (Document == 3)
3.4.1.UT.1 No Matching Class Code
Generate Patient ID for Doc Query
Document Query
Set invalid value (XDSDocumentEntryClassCode)
Assert count (Document == 0)
3.4.1.UT.2 Class code one
Generate Patient ID for Doc Query
Document Query
Set valid value (XDSDocumentEntryClassCode)
Assert status (Success)
Assert count (Document == 3)
3.4.2.UT.2 No Matching Services Start Time
Generate Patient ID for Doc Query
Document Query
Set invalid value (XDSDocumentEntryServiceStartTimeFrom, XDSDocumentEntryServiceStartTimeTo)
Assert count (Document == 0)
3.4.2.UT.2 Matching Services Start Time
Generate Patient ID for Doc Query
Document Query
Set valid value (XDSDocumentEntryServiceStartTimeFrom, XDSDocumentEntryServiceStartTimeTo)
Assert count (Document == 1)
3.4.2.UT.2 Matching Services Stop Time
Generate Patient ID for Doc Query
Document Query
Set valid value (XDSDocumentEntryServiceStartTimeFrom, XDSDocumentEntryServiceStartTimeTo)
Assert count (Document == 2)
Assert status (Success)
3.4.3.UT.2 No Matching Creation Time between
Generate Patient ID for Doc Query
Document Query
Set invalid value (XDSDocumentEntryCreationTimeFrom, XDSDocumentEntryCreationTimeTo)
Assert count (Document == 0)
3.4.3.UT.2 Creation Time between
Generate Patient ID for Doc Query
Document Query
Set valid value (XDSDocumentEntryCreationTimeFrom, XDSDocumentEntryCreationTimeTo)
Assert count (Document == 1)
Assert status (Success)
3.4.3.UT.2 Creation Time Left edge
Generate Patient ID for Doc Query
Document Query
Set valid value (XDSDocumentEntryCreationTimeFrom, XDSDocumentEntryCreationTimeTo)
Assert count (Document == 1)
Assert status (Success)
3.4.3.UT.2 Creation Time Right edge
Generate Patient ID for Doc Query
Document Query
Set valid value (XDSDocumentEntryCreationTimeFrom, XDSDocumentEntryCreationTimeTo)
Assert count (Document == 1)
Assert status (Success)
3.4.4.UT.2 Class Code & Service Start Time
Generate Patient ID for Doc Query
Document Query
Set valid value (XDSDocumentEntryClassCode, XDSDocumentEntryCreationTimeFrom, XDSDocumentEntryCreationTimeTo)
Assert count (Document == 1)
Assert status (Success)
3.4.4.UT.2 Class Code & Service Stop Time
Generate Patient ID for Doc Query
Document Query
Set valid value (XDSDocumentEntryClassCode, XDSDocumentEntryCreationTimeFrom, XDSDocumentEntryCreationTimeTo)
Assert count (Document == 2)
Assert status (Success)
3.4.5.UT.2 Creation Time & Service Start Time
Generate Patient ID for Doc Query
Document Query
Set valid value (XDSDocumentEntryServiceStartTimeFrom, XDSDocumentEntryServiceStartTimeTo, XDSDocumentEntryCreationTimeFrom, XDSDocumentEntryCreationTimeTo)
Assert count (Document == 1)
Assert status (Success)
3.4.5.UT.2 Creation Time & Service Stop Time
Generate Patient ID for Doc Query
Document Query
Set valid value (XDSDocumentEntryServiceStartTimeFrom, XDSDocumentEntryServiceStartTimeTo, XDSDocumentEntryCreationTimeFrom, XDSDocumentEntryCreationTimeTo)
Assert count (Document == 1)
Assert status (Success)
3.4.6.UT.2 Creation Time & Class Code
Generate Patient ID for Doc Query
Document Query
Set valid value (XDSDocumentEntryClassCode, XDSDocumentEntryCreationTimeFrom, XDSDocumentEntryCreationTimeTo)
Assert count (Document == 1)
Assert status (Success)
3.4.7.UT.2 No Documents Available
Generate Patient ID for Doc Query
Document Query
Set PatientId with no document
Assert count (Document == 0)
3.5.2.UT.2 No Patient Found
Generate Patient ID for Doc Query
Document Query
Set Invalid PatientID
Assert count (Document == 0)
3.5.4.UT.2 Unknown Stored Query
Generate Patient ID for Doc Query
Document Query
Set Invalid ID(uuid)
Assert count (Document == 0)
Expect Error (Unknown Stored Query query id)
11.3.1.UT.2 Single Document
Generate HCID for Doc Retrieve
Document Retrieve
Assert Document (Document Id, HCID, Repository ID)
Assert status (Success)
11.3.1.UT.4 Document Persistence
Generate HCID for Doc Retrieve
Document Retrieve
Assert Document (Document Id, HCID, Repository ID)
Assert status (Success)
11.3.2.UT.2 Multiple Documents Unique Community ID one set
Generate HCID for Doc Retrieve
Document Retrieve
Assert first Document (Document Id, HCID, Repository ID)
Assert second Document (Document Id, HCID, Repository ID)
Assert status (Success)
11.4.1.UT.2 Missing Document
Generate HCID for Doc Retrieve
Document Retrieve
Assert status (Failure)
11.3.2.UT.4 Multiple Documents Unique Community ID Multiple Set (Disabled)
Initialize Configurations
Generate HCID for Doc Retrieve
Document Retrieve (Disabled)
3.5.11.UT.2 Missing Patient ID (Disabled)
Initialize Configurations
Document Query (Disabled)
3.5.1.UT.2 Too Many Results (Disabled)
Initialize Configurations
Generate Patient ID for Doc Query
Document Query (Disabled)