示例#1
0
 private async Task CreateMBovisAlert(INotificationForDrugResistanceImport notification)
 {
     var mBovisAlert = new MBovisAlert {
         NotificationId = notification.NotificationId
     };
     await _alertService.AddUniqueAlertAsync(mBovisAlert);
 }
示例#2
0
 public async Task CreateOrDismissMBovisAlert(INotificationForDrugResistanceImport notification)
 {
     if (notification.NotificationStatus != NotificationStatus.Closed &&
         notification.IsMBovis && !notification.IsMBovisQuestionnaireComplete)
     {
         await CreateMBovisAlert(notification);
     }
     else
     {
         await _alertService.DismissMatchingAlertAsync <MBovisAlert>(notification.NotificationId);
     }
 }
示例#3
0
 public async Task CreateOrDismissMdrAlert(INotificationForDrugResistanceImport notification)
 {
     if (notification.NotificationStatus != NotificationStatus.Closed &&
         notification.IsMdr && !notification.MdrDetailsEntered)
     {
         await CreateMdrAlert(notification);
     }
     else
     {
         await _alertService.DismissMatchingAlertAsync <MdrAlert>(notification.NotificationId);
     }
 }