Test Documentation
Environment: default
Test Session: default
Test: 12004
Description: R.b Document Resubmission
Profile: XDS
Test Purpose
The creation of a document and the submission of a document are different
events. A document created within an EHR could be forwarded as reference
to multiple parties. A lab report is an example. Each party could then
submit this document as evidence to support an action taken. Now, as a
second issue, this report is based on the CDA format and the Content
Profile requires that the XDSDocumentEntry.uniqueId be the value of
attribute x in the CDA. Now, if both parties are truly submitting the same
document (hash matches) then this should not cause a conflict. They cannot
allocate a new uniqueId for one of the copies because the Content Profile
stipulates taking the value from the document header. This test validates:
- That resubmission does not generate an error
- That an apparent resubmission (same uniqueId) but different hash (different content) is rejected
- Both copies are available in query
Sections
submit -
Submit a Submission Set containing a single document
resubmit_doc -
Resubmit same with document having same XDSDocumentEntry.uniqueId and
XDSDocumentEntry.hash. The Register must be successful.
resubmit_doc_diff_hash -
Resubmit again with document having a different value in
XDSDocumentEntry.hash but same value in XDSDocumentEntry.uniqueId. This must
return errorCode XDSDuplicateUniqueIdInRegistry.
Section submit
Transaction: submit
Submit single DocumentEntry
Target Actor: XDS
Transaction: Register
Expected Status in Response: Success
Additional Evaluation
Transaction: resubmit_doc
Resubmit same DocumentEntry with same uniqueId. Must be successful.
Target Actor: XDS
Transaction: Register
Expected Status in Response: Success
Additional Evaluation
Transaction: resubmit_doc_diff_hash
Resubmit same DocumentEntry with same uniqueId but different hash.
Must fail with XDSNonIdenticalHash error
Target Actor: XDS
Transaction: Register
Expected Status in Response: Failure
Excpected Error Message: XDSNonIdenticalHash
Additional Evaluation
Section eval
Transaction: submit_eval
Original and first resubmission must be returned
(resubmission of same document with same uniqueId).
Third DocumentEntry is not returned (not saved in registry).
Target Actor: XDS
Transaction: Stored Query
Expected Status in Response: Success
Additional Evaluation
Verify contents: Metadata contains 2 ObjectRefs, no SubmissionSets, no DocumentEntries, no Folders, and no Associations