添加 IsBeSegment 标记
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
be5c25ba5f
commit
fa4564d491
|
|
@ -13,6 +13,8 @@ namespace IRaCIS.Core.Application.Contracts.Dicom.DTO
|
||||||
|
|
||||||
public bool IsBeMark { get; set; } = false;
|
public bool IsBeMark { get; set; } = false;
|
||||||
|
|
||||||
|
public bool IsBeSegment { get; set; } = false;
|
||||||
|
|
||||||
public Guid Id { get; set; }
|
public Guid Id { get; set; }
|
||||||
public Guid StudyId { get; set; }
|
public Guid StudyId { get; set; }
|
||||||
public string StudyInstanceUid { get; set; } = String.Empty;
|
public string StudyInstanceUid { get; set; } = String.Empty;
|
||||||
|
|
|
||||||
|
|
@ -30,6 +30,7 @@ namespace IRaCIS.Core.Application.Services
|
||||||
IRepository<DicomInstance> _dicomInstanceRepository,
|
IRepository<DicomInstance> _dicomInstanceRepository,
|
||||||
IRepository<TaskStudy> _taskStudyRepository,
|
IRepository<TaskStudy> _taskStudyRepository,
|
||||||
IRepository<TaskSeries> _taskSeriesRepository,
|
IRepository<TaskSeries> _taskSeriesRepository,
|
||||||
|
IRepository<Segmentation> _segmentationRepository,
|
||||||
IRepository<TaskInstance> _taskInstanceRepository,
|
IRepository<TaskInstance> _taskInstanceRepository,
|
||||||
IServiceProvider _serviceProvider,
|
IServiceProvider _serviceProvider,
|
||||||
IRepository<DicomSeries> _dicomSeriesRepository,
|
IRepository<DicomSeries> _dicomSeriesRepository,
|
||||||
|
|
@ -912,6 +913,19 @@ namespace IRaCIS.Core.Application.Services
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
#region 处理分割
|
||||||
|
|
||||||
|
var segmentatSeriesList =await _segmentationRepository.Where(x => x.VisitTaskId == indto.VisitTaskId && x.SEGUrl != string.Empty).Select(x => x.SeriesId).ToListAsync();
|
||||||
|
result.ForEach(x =>
|
||||||
|
{
|
||||||
|
x.SeriesList.ForEach(y =>
|
||||||
|
{
|
||||||
|
y.IsBeSegment = segmentatSeriesList.Any(z => z == y.Id);
|
||||||
|
});
|
||||||
|
|
||||||
|
});
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue