Compare commits
2 Commits
1dc1d673dd
...
003e63b7fb
Author | SHA1 | Date |
---|---|---|
|
003e63b7fb | |
|
73c9e15976 |
|
@ -534,12 +534,22 @@ namespace IRaCIS.Core.Application.Services
|
|||
foreach (var item in noDicomStudyList)
|
||||
{
|
||||
var nodicom = noDicomList.Where(x => x.Id == item.StudyId).First();
|
||||
|
||||
var instanceCount = await _noneDicomStudyFileRepository.Where(x => x.NoneDicomStudyId == item.StudyId).CountAsync();
|
||||
|
||||
if (instanceCount == 0)
|
||||
{
|
||||
item.SeriesList = new List<DicomSeriesDTO>();
|
||||
item.SeriesCount = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
item.SeriesList = new List<DicomSeriesDTO>()
|
||||
{
|
||||
new DicomSeriesDTO (){
|
||||
IsDicom=false,
|
||||
Id=item.StudyId,
|
||||
InstanceCount=await _noneDicomStudyFileRepository.Where(x=>x.NoneDicomStudyId==item.StudyId).CountAsync(),
|
||||
InstanceCount=instanceCount,
|
||||
Modality=item.Modalities,
|
||||
StudyId=item.StudyId,
|
||||
TrialId=nodicom.TrialId,
|
||||
|
@ -553,6 +563,8 @@ namespace IRaCIS.Core.Application.Services
|
|||
};
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
if (studyList == null || studyList.Count == 0)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue