diff --git a/nirc_ehr/src/org/labkey/nirc_ehr/NIRC_EHRModule.java b/nirc_ehr/src/org/labkey/nirc_ehr/NIRC_EHRModule.java index dff28c58..2e6b4f86 100644 --- a/nirc_ehr/src/org/labkey/nirc_ehr/NIRC_EHRModule.java +++ b/nirc_ehr/src/org/labkey/nirc_ehr/NIRC_EHRModule.java @@ -184,10 +184,10 @@ protected void doStartupAfterSpringConfig(ModuleContext moduleContext) EHRService.get().registerMoreActionsButton(new MarkCompletedButton(this, "study", "flags", "Set End Date"), "study", "flags"); registerDataEntry(); - NotificationService.get().registerNotification(new NIRCDeathNotification()); - NotificationService.get().registerNotification(new NIRCClinicalMoveNotification()); - NotificationService.get().registerNotification(new NIRCProcedureOverdueNotification()); - NotificationService.get().registerNotification(new NIRCPregnancyOutcomeNotification()); + NotificationService.get().registerNotification(new NIRCDeathNotification(this)); + NotificationService.get().registerNotification(new NIRCClinicalMoveNotification(this)); + NotificationService.get().registerNotification(new NIRCProcedureOverdueNotification(this)); + NotificationService.get().registerNotification(new NIRCPregnancyOutcomeNotification(this)); EHRService.get().registerReportLink(EHRService.REPORT_LINK_TYPE.moreReports, "Printable Necropsy Report", this, DetailsURL.fromString("/nirc_ehr-necropsy.view"), "Pathology"); diff --git a/nirc_ehr/src/org/labkey/nirc_ehr/notification/NIRCClinicalMoveNotification.java b/nirc_ehr/src/org/labkey/nirc_ehr/notification/NIRCClinicalMoveNotification.java index 57b56984..227b8d75 100644 --- a/nirc_ehr/src/org/labkey/nirc_ehr/notification/NIRCClinicalMoveNotification.java +++ b/nirc_ehr/src/org/labkey/nirc_ehr/notification/NIRCClinicalMoveNotification.java @@ -3,12 +3,23 @@ import org.jetbrains.annotations.Nullable; import org.labkey.api.data.Container; import org.labkey.api.ehr.notification.AbstractEHRNotification; +import org.labkey.api.module.Module; import org.labkey.api.security.User; import java.util.Date; public class NIRCClinicalMoveNotification extends AbstractEHRNotification { + public NIRCClinicalMoveNotification(Module owner) + { + super(owner); + } + + public NIRCClinicalMoveNotification() + { + super(); + } + @Override public String getName() { diff --git a/nirc_ehr/src/org/labkey/nirc_ehr/notification/NIRCDeathNotification.java b/nirc_ehr/src/org/labkey/nirc_ehr/notification/NIRCDeathNotification.java index ce6cf21e..6603d94c 100644 --- a/nirc_ehr/src/org/labkey/nirc_ehr/notification/NIRCDeathNotification.java +++ b/nirc_ehr/src/org/labkey/nirc_ehr/notification/NIRCDeathNotification.java @@ -17,12 +17,23 @@ import org.labkey.api.data.Container; import org.labkey.api.ehr.notification.AbstractEHRNotification; +import org.labkey.api.module.Module; import org.labkey.api.security.User; import java.util.Date; public class NIRCDeathNotification extends AbstractEHRNotification { + public NIRCDeathNotification(Module owner) + { + super(owner); + } + + public NIRCDeathNotification() + { + super(); + } + @Override public String getName() { diff --git a/nirc_ehr/src/org/labkey/nirc_ehr/notification/NIRCPregnancyOutcomeNotification.java b/nirc_ehr/src/org/labkey/nirc_ehr/notification/NIRCPregnancyOutcomeNotification.java index 914ac891..1913b489 100644 --- a/nirc_ehr/src/org/labkey/nirc_ehr/notification/NIRCPregnancyOutcomeNotification.java +++ b/nirc_ehr/src/org/labkey/nirc_ehr/notification/NIRCPregnancyOutcomeNotification.java @@ -17,16 +17,27 @@ import org.labkey.api.data.Container; import org.labkey.api.ehr.notification.AbstractEHRNotification; +import org.labkey.api.module.Module; import org.labkey.api.security.User; import java.util.Date; public class NIRCPregnancyOutcomeNotification extends AbstractEHRNotification { + public NIRCPregnancyOutcomeNotification(Module owner) + { + super(owner); + } + + public NIRCPregnancyOutcomeNotification() + { + super(); + } + @Override public String getName() { - return "NIRC Pregnancy Outcome Notification"; + return "Pregnancy Outcome Notification"; } @Override diff --git a/nirc_ehr/src/org/labkey/nirc_ehr/notification/NIRCProcedureOverdueNotification.java b/nirc_ehr/src/org/labkey/nirc_ehr/notification/NIRCProcedureOverdueNotification.java index e2b693c6..fd802702 100644 --- a/nirc_ehr/src/org/labkey/nirc_ehr/notification/NIRCProcedureOverdueNotification.java +++ b/nirc_ehr/src/org/labkey/nirc_ehr/notification/NIRCProcedureOverdueNotification.java @@ -5,6 +5,7 @@ import org.labkey.api.data.TableInfo; import org.labkey.api.data.TableSelector; import org.labkey.api.ehr.notification.AbstractEHRNotification; +import org.labkey.api.module.Module; import org.labkey.api.query.QueryService; import org.labkey.api.query.UserSchema; import org.labkey.api.security.User; @@ -17,10 +18,15 @@ public class NIRCProcedureOverdueNotification extends AbstractEHRNotification { + public NIRCProcedureOverdueNotification(Module owner) + { + super(owner); + } + @Override public String getName() { - return "NIRC Procedure Overdue Notification"; + return "Procedure Overdue Notification"; } @Override