diff --git a/IRaCIS.Core.Infra.EFCore/Common/AuditingData.cs b/IRaCIS.Core.Infra.EFCore/Common/AuditingData.cs index 87833d4b8..599a4ff04 100644 --- a/IRaCIS.Core.Infra.EFCore/Common/AuditingData.cs +++ b/IRaCIS.Core.Infra.EFCore/Common/AuditingData.cs @@ -2018,10 +2018,23 @@ namespace IRaCIS.Core.Infra.EFCore.Common foreach (var item in entitys.Where(x => x.Entity.GetType() == typeof(DicomStudy))) { var type = GetEntityAuditOpt(item); + var extraIdentification = string.Empty; + + switch (_userInfo.RequestUrl) + { + case "QCOperation/updateModality": + if (_userInfo.UserTypeEnumInt == (int)UserTypeEnum.ClinicalResearchCoordinator) + { + extraIdentification = "/2"; + } + + break; + } await InsertInspection(item.Entity as DicomStudy, type, x => new InspectionConvertDTO() { - ObjectRelationParentId = x.SubjectVisitId + ObjectRelationParentId = x.SubjectVisitId, + ExtraIndentification = extraIdentification }); }