上传Dicom影像
This commit is contained in:
@@ -18,6 +18,9 @@ using EasyCaching.Core;
|
||||
using IRaCIS.Core.Infra.EFCore;
|
||||
using IRaCIS.Core.Application.Contracts;
|
||||
using IRaCIS.Core.Domain.Models;
|
||||
using IRaCIS.Core.Application.Service.Inspection.Interface;
|
||||
using Newtonsoft.Json;
|
||||
using IRaCIS.Core.Application.Service.Inspection.DTO;
|
||||
|
||||
namespace IRaCIS.Api.Controllers
|
||||
{
|
||||
@@ -31,7 +34,7 @@ namespace IRaCIS.Api.Controllers
|
||||
private readonly IStudyService _studyService;
|
||||
private readonly IDicomArchiveService _dicomArchiveService;
|
||||
private readonly ILogger<StudyController> _logger;
|
||||
|
||||
private readonly IInspectionService _inspectionService;
|
||||
private IEasyCachingProvider _provider;
|
||||
private IUserInfo _userInfo;
|
||||
private static object _locker = new object();
|
||||
@@ -40,6 +43,7 @@ namespace IRaCIS.Api.Controllers
|
||||
public StudyController(IStudyService studyService,
|
||||
IDicomArchiveService dicomArchiveService,
|
||||
ILogger<StudyController> logger,
|
||||
IInspectionService inspectionService,
|
||||
IEasyCachingProvider provider, IUserInfo userInfo
|
||||
)
|
||||
{
|
||||
@@ -48,7 +52,7 @@ namespace IRaCIS.Api.Controllers
|
||||
_studyService = studyService;
|
||||
_dicomArchiveService = dicomArchiveService;
|
||||
_logger = logger;
|
||||
|
||||
this._inspectionService = inspectionService;
|
||||
}
|
||||
|
||||
|
||||
@@ -63,6 +67,8 @@ namespace IRaCIS.Api.Controllers
|
||||
[TypeFilter(typeof(TrialResourceFilter))]
|
||||
public async Task<IResponseOutput> ArchiveStudy([FromForm] ArchiveStudyCommand archiveStudyCommand)
|
||||
{
|
||||
|
||||
|
||||
//Stopwatch sw = new Stopwatch();
|
||||
var startTime = DateTime.Now;
|
||||
//sw.Start();
|
||||
@@ -205,6 +211,8 @@ namespace IRaCIS.Api.Controllers
|
||||
return ResponseOutput.NotOk("未完成该检查的归档", archiveResult);
|
||||
}
|
||||
|
||||
await _inspectionService.AddInspectionRecordAsync(JsonConvert.DeserializeObject<DataInspectionAddDTO>(archiveStudyCommand.AuditInfo))
|
||||
|
||||
return ResponseOutput.Ok(archiveResult);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user