Skip to content

Commit

Permalink
Revert "Fix #2788 : Audit WADO URI event : Improve spool file naming …
Browse files Browse the repository at this point in the history
…to contain combination of Study and SOP IUIDs to avoid aggregation of instances of same study in one spool file"

This reverts commit 7710374.
  • Loading branch information
vrindanayak committed Sep 29, 2020
1 parent 7710374 commit 3dc7e81
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -533,16 +533,14 @@ void spoolRetrieveWADO(RetrieveContext ctx) {
Attributes attrs = ctx.getMatches().get(0).getAttributes();
String suffix = '-' + req.requesterHost
+ '-' + ctx.getLocalAETitle()
+ '-' + ctx.getStudyInstanceUIDs()[0]
+ '-' + ctx.getSopInstanceUIDs()[0];
+ '-' + ctx.getStudyInstanceUIDs()[0];
AuditInfoBuilder info = new AuditInfoBuilder.Builder()
.callingHost(req.requesterHost)
.callingUserID(req.requesterUserID)
.calledUserID(req.requestURI)
.studyUIDAccNumDate(attrs, getArchiveDevice())
.pIDAndName(attrs, getArchiveDevice())
.outcome(null != ctx.getException() ? ctx.getException().getMessage() : null)
.queryString(req.queryString)
.build();
AuditInfoBuilder instanceInfo = new AuditInfoBuilder.Builder()
.sopCUID(attrs.getString(Tag.SOPClassUID))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,6 @@ static ParticipantObjectIdentificationBuilder[] studyPatParticipants(
|| eventType.eventClass == AuditUtils.EventClass.IMPAX))
studyPOIBuilder.lifeCycle(AuditMessages.ParticipantObjectDataLifeCycle.OriginationCreation);

if (eventType.eventClass == AuditUtils.EventClass.STORE_WADOR && auditInfo.getField(AuditInfo.Q_STRING) != null)
studyPOIBuilder.query(auditInfo.getField(AuditInfo.Q_STRING).getBytes());

studyPatParticipants[0] = studyPOIBuilder.build();
studyPatParticipants[1] = patientPOIBuilder(auditInfo).build();
return studyPatParticipants;
Expand Down

0 comments on commit 3dc7e81

Please sign in to comment.