diff --git a/IRaCIS.Core.Application/Service/Reading/Dto/SegmentationViewModel.cs b/IRaCIS.Core.Application/Service/Reading/Dto/SegmentationViewModel.cs index b6ce51987..01558d5f3 100644 --- a/IRaCIS.Core.Application/Service/Reading/Dto/SegmentationViewModel.cs +++ b/IRaCIS.Core.Application/Service/Reading/Dto/SegmentationViewModel.cs @@ -49,7 +49,9 @@ public class SegmentationQuery:PageInput public string? SegmentationJson { get; set; } public string? SegmentationName { get; set; } - + + public Guid? Id { get; set; } + public Guid? SeriesId { get; set; } public Guid? StudyId { get; set; } diff --git a/IRaCIS.Core.Application/Service/Reading/Segment/SegmentationService.cs b/IRaCIS.Core.Application/Service/Reading/Segment/SegmentationService.cs index 69aba50d7..2fb4aeaf5 100644 --- a/IRaCIS.Core.Application/Service/Reading/Segment/SegmentationService.cs +++ b/IRaCIS.Core.Application/Service/Reading/Segment/SegmentationService.cs @@ -44,6 +44,7 @@ public class SegmentationService(IRepository _segmentationReposito var segmentationQueryable =_segmentationRepository .WhereIf(inQuery.SegmentationName.IsNotNullOrEmpty(),x=>x.SegmentationName.Contains(inQuery.SegmentationName)) + .WhereIf(inQuery.Id != null, x => x.Id == inQuery.Id) .WhereIf(inQuery.TrialId != null, x => x.TrialId == inQuery.TrialId) .WhereIf(inQuery.SeriesId != null, x => x.SeriesId == inQuery.SeriesId) .WhereIf(inQuery.StudyId != null, x => x.StudyId == inQuery.StudyId)