修改
This commit is contained in:
@@ -169,8 +169,7 @@ namespace IRaCIS.Core.Application.Services
|
||||
DicomInstance dicomInstance = CreateDicomInstance(dataset, dicomStudy, dicomSeries);
|
||||
|
||||
|
||||
List<DataInspection> datas = new List<DataInspection>();
|
||||
|
||||
|
||||
|
||||
var createtime=DateTime.Now;
|
||||
|
||||
@@ -198,32 +197,32 @@ namespace IRaCIS.Core.Application.Services
|
||||
await _studyRepository.AddAsync(dicomStudy);
|
||||
}
|
||||
|
||||
if (isSeriesNeedAdd) {
|
||||
if (isSeriesNeedAdd)
|
||||
{
|
||||
// 添加序列
|
||||
|
||||
dicomSeries.Id = NewId.NextGuid();
|
||||
await _seriesRepository.AddAsync(dicomSeries);
|
||||
#region 稽查
|
||||
List<DataInspection> datas = new List<DataInspection>();
|
||||
datas.Add(new DataInspection()
|
||||
{
|
||||
|
||||
SiteId = dicomStudy.SiteId,
|
||||
SubjectId = dicomStudy.SubjectId,
|
||||
TrialId = dicomStudy.TrialId,
|
||||
GeneralId= dicomSeries.Id,
|
||||
GeneralId = dicomSeries.Id,
|
||||
SubjectVisitId = dicomStudy.SubjectVisitId,
|
||||
CreateTime = createtime.AddMilliseconds(10),
|
||||
Identification = "Add|DICOM Series|Info|Visit-Image Upload",
|
||||
JsonDetail = JsonConvert.SerializeObject(new
|
||||
{
|
||||
StudyCode=dicomStudy.StudyCode,
|
||||
StudyCode = dicomStudy.StudyCode,
|
||||
Modalities = dicomStudy.Modalities,
|
||||
SeriesNumber= dicomSeries.SeriesNumber,
|
||||
InstanceCount=dicomSeries.InstanceCount,
|
||||
SeriesTime= dicomSeries.SeriesTime,
|
||||
|
||||
SeriesNumber = dicomSeries.SeriesNumber,
|
||||
InstanceCount = dicomSeries.InstanceCount,
|
||||
SeriesTime = dicomSeries.SeriesTime,
|
||||
|
||||
})
|
||||
});
|
||||
|
||||
|
||||
datas.Add(new DataInspection()
|
||||
{
|
||||
|
||||
@@ -241,17 +240,16 @@ namespace IRaCIS.Core.Application.Services
|
||||
SeriesNumber = dicomSeries.SeriesNumber,
|
||||
InstanceCount = dicomSeries.InstanceCount,
|
||||
SeriesTime = dicomSeries.SeriesTime,
|
||||
IsReading= dicomSeries.IsReading,
|
||||
IsReading = dicomSeries.IsReading,
|
||||
|
||||
})
|
||||
});
|
||||
|
||||
await _seriesRepository.AddAsync(dicomSeries);
|
||||
|
||||
await _inspectionService.AddListInspectionRecordAsync(datas);
|
||||
#endregion
|
||||
}
|
||||
|
||||
|
||||
await _inspectionService.AddListInspectionRecordAsync(datas);
|
||||
|
||||
await _instanceRepository.AddAsync(dicomInstance);
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user