Compare commits
No commits in common. "003e63b7fb3dfea294f0690c7d8756e3d2229cb8" and "1dc1d673ddb3a5b8996db9650e417db896f6b6e8" have entirely different histories.
003e63b7fb
...
1dc1d673dd
|
@ -534,22 +534,12 @@ namespace IRaCIS.Core.Application.Services
|
||||||
foreach (var item in noDicomStudyList)
|
foreach (var item in noDicomStudyList)
|
||||||
{
|
{
|
||||||
var nodicom = noDicomList.Where(x => x.Id == item.StudyId).First();
|
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>()
|
item.SeriesList = new List<DicomSeriesDTO>()
|
||||||
{
|
{
|
||||||
new DicomSeriesDTO (){
|
new DicomSeriesDTO (){
|
||||||
IsDicom=false,
|
IsDicom=false,
|
||||||
Id=item.StudyId,
|
Id=item.StudyId,
|
||||||
InstanceCount=instanceCount,
|
InstanceCount=await _noneDicomStudyFileRepository.Where(x=>x.NoneDicomStudyId==item.StudyId).CountAsync(),
|
||||||
Modality=item.Modalities,
|
Modality=item.Modalities,
|
||||||
StudyId=item.StudyId,
|
StudyId=item.StudyId,
|
||||||
TrialId=nodicom.TrialId,
|
TrialId=nodicom.TrialId,
|
||||||
|
@ -563,8 +553,6 @@ namespace IRaCIS.Core.Application.Services
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
if (studyList == null || studyList.Count == 0)
|
if (studyList == null || studyList.Count == 0)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue