修改Patient 请求
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
39e7218b52
commit
1ee30d047d
|
@ -2887,6 +2887,7 @@ namespace IRaCIS.Application.Services
|
||||||
/// <param name="_dicomAEReposiotry"></param>
|
/// <param name="_dicomAEReposiotry"></param>
|
||||||
/// <param name="_logger"></param>
|
/// <param name="_logger"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
|
[HttpPost]
|
||||||
public async Task<List<SCUStudyView>> GetCFindStudyList(SCUQuery inQuery,
|
public async Task<List<SCUStudyView>> GetCFindStudyList(SCUQuery inQuery,
|
||||||
[FromServices] IRepository<DicomAE> _dicomAEReposiotry,
|
[FromServices] IRepository<DicomAE> _dicomAEReposiotry,
|
||||||
[FromServices] ILogger<PatientService> _logger)
|
[FromServices] ILogger<PatientService> _logger)
|
||||||
|
@ -2941,6 +2942,15 @@ namespace IRaCIS.Application.Services
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public async Task<IResponseOutput> CmoveStudyList(SCUCmoveCommand inCommand, [FromServices] IRepository<DicomAE> _dicomAEReposiotry)
|
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 result = new List<SCUStudyView>();
|
||||||
|
|
||||||
var find = await _dicomAEReposiotry.FirstOrDefaultAsync(t => t.Id == inCommand.PacsDicomAEId);
|
var find = await _dicomAEReposiotry.FirstOrDefaultAsync(t => t.Id == inCommand.PacsDicomAEId);
|
||||||
|
|
Loading…
Reference in New Issue