Revision: 18951
http://sourceforge.net/p/dcm4che/svn/18951
Author: javawilli
Date: 2021-02-18 07:51:21 +0000 (Thu, 18 Feb 2021)
Log Message:
-----------
Add sendStudyInfoNotification
Modified Paths:
--------------
dcm4chee/dcm4chee-web/branches/DCM4CHEE_WEB_3_0_4-RC/dcm4chee-web-sar/dcm4chee-web-sar-contentedit/src/main/java/org/dcm4chee/web/service/contentedit/ContentEditService.java
Modified: dcm4chee/dcm4chee-web/branches/DCM4CHEE_WEB_3_0_4-RC/dcm4chee-web-sar/dcm4chee-web-sar-contentedit/src/main/java/org/dcm4chee/web/service/contentedit/ContentEditService.java
===================================================================
--- dcm4chee/dcm4chee-web/branches/DCM4CHEE_WEB_3_0_4-RC/dcm4chee-web-sar/dcm4chee-web-sar-contentedit/src/main/java/org/dcm4chee/web/service/contentedit/ContentEditService.java 2021-02-15 12:06:06 UTC (rev 18950)
+++ dcm4chee/dcm4chee-web/branches/DCM4CHEE_WEB_3_0_4-RC/dcm4chee-web-sar/dcm4chee-web-sar-contentedit/src/main/java/org/dcm4chee/web/service/contentedit/ContentEditService.java 2021-02-18 07:51:21 UTC (rev 18951)
@@ -546,6 +546,7 @@
for (Study study : studies) {
suids[i++] = study.getStudyInstanceUID();
}
+ this.sendStudyInfoChangedNotification(suids);
studies.iterator().next().getPatient().getAttributes().copyTo(obj);
obj.putStrings(Tag.StudyInstanceUID, VR.UI, suids);
server.invoke(qrServiceName, "clearCachedSeriesAttrs",
@@ -1201,6 +1202,12 @@
log.debug("Send JMX Notification:"+notif);
super.sendNotification(notif);
}
+ private void sendStudyInfoChangedNotification(String... studyIUIDs) {
+ Notification notif = new Notification("StudyInfoChanged", this, getNextNotificationSequenceNumber());
+ notif.setUserData(studyIUIDs);
+ log.debug("Send StudyInfoChanged JMX Notification:"+notif);
+ super.sendNotification(notif);
+ }
public void doAfterDicomEdit(String patId, String patName, String[] studyIUIDs, DicomObject obj, String qrLevel) {
sendDicomActionNotification(obj, DicomActionNotification.UPDATE, qrLevel);
@@ -1211,7 +1218,10 @@
} catch (Exception ignore) {
log.info("Clear cached Series Attributes in QR service failed!");
}
- }
+ if (!"SERIES".equals(qrLevel)) {
+ sendStudyInfoChangedNotification(studyIUIDs);
+ }
+ }
if ("PATIENT".equals(qrLevel)) {
Auditlog.logPatientRecord(AuditEvent.ActionCode.UPDATE, true, patId, patName);
if (enableForwardOnPatientUpdate && forwardModifiedToAETs != null) {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|