Currently we don’t recommend running this test. This test was designed to hit the adapter layer directly and skips the Entity, NwHIN, Audit, Standard and Passthrough processing. If this test is being redesigned, DocRegistryandRepository should interact with the DS and DR at the Entity layer.
Overview
The test is designed to submit and query document (Registry, Repository) at the adapter layer. It also query document by PatientId, DocumentUniqueId and EventCode.
Test Detail
The Bimodal tests are designed to hit service in standard and passthrough, by calling the JMX console to switch the service mode (Standard and PassThrough) without restarting the server.
DocRegistryAndRepositoryTestSuite
Since the test is hitting the adapter layer (there is no standard or passthrough). The test is designed to clear the Document Repository DB, submit Document, query Document and clean up the document.
ProvideAndRegisterTest
Clear Document
SOAP: Store Document
Match response status (Success)
Delete Document
DocumentQueryTest
Clear Document
SOAP: Store Document
Match response status (Success)
SOAP: QueryByPatientId
Match ExternalIdentifier (CONNECT0)
Count (document)
SOAP: QueryByDocUniqueId
Match ExternalIdentifier (CONNECT0)
Count (document)
Verify CreationTime
Verify serviceStartTime
Verify serviceStopTime
SOAP: QueryByEventCode
Match ExternalIdentifier (CONNECT0)
Count (document)
Verify CreationTime
Verify serviceStartTime
Verify serviceStopTime
SOAP: QueryNoResults
Count (document == 0)
Delete Document