From 137d8ce1054e02f4a35a5bd201178956211e2acb Mon Sep 17 00:00:00 2001 From: Paul Bastide Date: Tue, 17 Aug 2021 09:26:24 -0400 Subject: [PATCH] FHIRNotificationService should emit event for patch update #2692 Signed-off-by: Paul Bastide --- .../com/ibm/fhir/notification/FHIRNotificationService.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/fhir-notification/src/main/java/com/ibm/fhir/notification/FHIRNotificationService.java b/fhir-notification/src/main/java/com/ibm/fhir/notification/FHIRNotificationService.java index b4fd3036492..fe82ac47d89 100644 --- a/fhir-notification/src/main/java/com/ibm/fhir/notification/FHIRNotificationService.java +++ b/fhir-notification/src/main/java/com/ibm/fhir/notification/FHIRNotificationService.java @@ -155,6 +155,13 @@ public void afterDelete(FHIRPersistenceEvent pEvent) throws FHIRPersistenceInter } } + @Override + public void afterPatch(FHIRPersistenceEvent pEvent) throws FHIRPersistenceInterceptorException { + if (shouldPublish(pEvent)) { + this.publish(buildNotificationEvent("patch", pEvent)); + } + } + /** * Returns true iff we should publish the specified persistence event as a notification event. */