5353import org .labkey .dbutils .api .SimpleQueryUpdater ;
5454import org .labkey .dbutils .api .SimplerFilter ;
5555import org .labkey .webutils .api .json .JsonUtils ;
56- import org .labkey .wnprc_ehr .notification .AnimalRequestNotification ;
5756import org .labkey .wnprc_ehr .notification .AnimalRequestNotificationRevamp ;
58- import org .labkey .wnprc_ehr .notification .AnimalRequestNotificationUpdate ;
5957import org .labkey .wnprc_ehr .notification .AnimalRequestUpdateNotificationRevamp ;
6058import org .labkey .wnprc_ehr .notification .BloodDrawReviewTriggerNotification ;
6159import org .labkey .wnprc_ehr .notification .BloodOverdrawTriggerNotification ;
62- import org .labkey .wnprc_ehr .notification .DeathNotification ;
6360import org .labkey .wnprc_ehr .notification .DeathNotificationRevamp ;
6461import org .labkey .wnprc_ehr .notification .ProjectRequestNotification ;
6562import org .labkey .wnprc_ehr .notification .VvcNotification ;
@@ -198,19 +195,6 @@ public void sendDeathNotification(final List<String> ids, String hostName) {
198195 Module ehr = ModuleLoader .getInstance ().getModule ("EHR" );
199196 //Verifies 'Notification Service' is enabled before sending notification.
200197 if (NotificationService .get ().isServiceEnabled ()){
201- //Sends original Death Notification.
202- //Remove this if-else when new notification is approved.
203- if (NotificationService .get ().isActive (new DeathNotification (), container )) {
204- for (String id : ids ) {
205- DeathNotification idNotification = new DeathNotification ();
206- idNotification .setParam (DeathNotification .idParamName , id );
207- idNotification .sendManually (container , user );
208- }
209- }
210- else {
211- _log .info ("Death Notification is not enabled, will not send death notification" );
212- }
213-
214198 //Sends revamped Death Notification.
215199 if (NotificationService .get ().isActive (new DeathNotificationRevamp (ehr ), container )) {
216200 for (String id : ids ) {
@@ -872,17 +856,6 @@ public void sendAnimalRequestNotification(Integer rowid, String hostName){
872856
873857 //Verifies 'Notification Service' is enabled before sending notification.
874858 if (NotificationService .get ().isServiceEnabled ()){
875- //Sends original Animal Request Notification.
876- //TODO: Remove this if-else when new notification is approved.
877- if (NotificationService .get ().isActive (new AnimalRequestNotification (ehr ), container )) {
878- _log .info ("Using java helper to send email for animal request record: " +rowid );
879- AnimalRequestNotification notification = new AnimalRequestNotification (ehr , rowid , user , hostName );
880- notification .sendManually (container , user );
881- }
882- else {
883- _log .info ("Animal Request Notification is not enabled, will not send animal request notification" );
884- }
885-
886859 //Sends revamped Animal Request Notification.
887860 if (NotificationService .get ().isActive (new AnimalRequestNotificationRevamp (ehr ), container )) {
888861 _log .info ("Using java helper to send animal request notification revamp for animal request record: " +rowid );
@@ -902,17 +875,6 @@ public void sendAnimalRequestNotificationUpdate(Integer rowid, Map<String,Object
902875
903876 // Verifies 'Notification Service' is enabled before sending notification.
904877 if (NotificationService .get ().isServiceEnabled ()) {
905- // Sends original Animal Request Update Notification.
906- // TODO: Remove this if-else when new notification is approved.
907- if (NotificationService .get ().isActive (new AnimalRequestNotificationUpdate (ehr ), container )) {
908- _log .info ("Using java helper to send email for animal request record: " +rowid );
909- AnimalRequestNotificationUpdate notification = new AnimalRequestNotificationUpdate (ehr , rowid , row , oldRow , user , hostName );
910- notification .sendManually (container , user );
911- }
912- else {
913- _log .info ("Animal Request Update Notification is not enabled, will not send animal request notification." );
914- }
915-
916878 // Sends revamped Animal Request Notification.
917879 if (NotificationService .get ().isActive (new AnimalRequestUpdateNotificationRevamp (ehr ), container )) {
918880 _log .info ("Using java helper to send animal request update notification revamp for animal request record: " + rowid );
0 commit comments