修改Patient 请求
continuous-integration/drone/push Build is passing Details

Test_HIR_Net8
hang 2024-12-12 17:48:33 +08:00
parent 39e7218b52
commit 1ee30d047d
1 changed files with 10 additions and 0 deletions

View File

@ -2887,6 +2887,7 @@ namespace IRaCIS.Application.Services
/// <param name="_dicomAEReposiotry"></param>
/// <param name="_logger"></param>
/// <returns></returns>
[HttpPost]
public async Task<List<SCUStudyView>> GetCFindStudyList(SCUQuery inQuery,
[FromServices] IRepository<DicomAE> _dicomAEReposiotry,
[FromServices] ILogger<PatientService> _logger)
@ -2941,6 +2942,15 @@ namespace IRaCIS.Application.Services
/// <returns></returns>
public async Task<IResponseOutput> CmoveStudyList(SCUCmoveCommand inCommand, [FromServices] IRepository<DicomAE> _dicomAEReposiotry)
{
var existStudyIdList = _studyRepository.Where(t => inCommand.StudyIDList.Contains(t.StudyId)).Select(t => t.StudyId).ToList();
var needMoveList = inCommand.StudyIDList.Except(existStudyIdList).ToList();
if (needMoveList.Count == 0)
{
return ResponseOutput.Ok();
}
var result = new List<SCUStudyView>();
var find = await _dicomAEReposiotry.FirstOrDefaultAsync(t => t.Id == inCommand.PacsDicomAEId);