修改一版

This commit is contained in:
he
2022-11-28 15:31:45 +08:00
parent 3e2fac0974
commit 160b9fb14e
5 changed files with 38 additions and 18 deletions
@@ -346,7 +346,7 @@ namespace IRaCIS.Application.Services
}
}
inDto.SelectIsSign = false;
var result = await GetClinicalDataList(inDto);
var previousHistoryList = await _previousHistoryRepository.Where(x => x.SubjectVisitId == inDto.ReadingId).ProjectTo<PreviousHistoryView>(_mapper.ConfigurationProvider).ToListAsync();
@@ -433,6 +433,7 @@ namespace IRaCIS.Application.Services
var resultQuery = _readingClinicalDataRepository.Where(x => x.SubjectId == inDto.SubjectId)
.WhereIf(inDto.ReadingClinicalDataId != null, x => x.Id == inDto.ReadingClinicalDataId)
.WhereIf(inDto.SelectIsSign, x => x.IsSign == true)
.Where(x => x.ReadingId == inDto.ReadingId || (x.SubjectId == inDto.SubjectId && x.ClinicalDataTrialSet.ClinicalDataLevel == ClinicalLevel.Subject))
.Select(x => new GetReadingClinicalDataListOutDto()
{
@@ -178,7 +178,12 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
public Guid? VisitTaskId { get; set; }
public Guid? ReadingClinicalDataId { get; set; }
}
/// <summary>
/// 只查询已经签名的临床数据
/// </summary>
public bool SelectIsSign { get; set; } = true;
}
/// <summary>
/// 获取访视列表
@@ -917,7 +917,12 @@ namespace IRaCIS.Application.Services
}
index++;
}
// 自动计算
await this._readingCalculateService.CalculateTask(new CalculateTaskInDto()
{
IsChangeOtherTask = false,
VisitTaskId = inDto.VisitTaskId,
});
return ResponseOutput.Ok(true);
}
@@ -1067,7 +1072,7 @@ namespace IRaCIS.Application.Services
/// </summary>
/// <param name="inDto"></param>
/// <returns></returns>
[NonDynamicMethod]
public async Task<IResponseOutput> SubmitDicomVisitTask(SubmitDicomVisitTaskInDto inDto)
{
@@ -1495,6 +1500,7 @@ namespace IRaCIS.Application.Services
OriginalVisitId = visitTaskId,
ReadingCategory = GenerateTaskCategory.Global,
TrialId = taskInfo.TrialId,
ReadingGenerataTaskList = needReadList
});
break;