修改
This commit is contained in:
@@ -410,7 +410,6 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate
|
||||
ReadingCalculateDto readingData = await _generalCalculateService.GetReadingCalculateDto(inDto.VisitTaskId);
|
||||
|
||||
var maxSuv = await GetSuvMax(readingData);
|
||||
|
||||
var rowInfo = readingData.QuestionInfo.SelectMany(x => x.TableRowInfoList).ToList();
|
||||
var tableQuestions = rowInfo.SelectMany(x => x.TableQuestionList).Where(x=>x.RowId==inDto.RowId).ToList();
|
||||
|
||||
@@ -425,6 +424,36 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取是否可选择不能融合影像
|
||||
/// </summary>
|
||||
/// <param name="inDto"></param>
|
||||
/// <returns></returns>
|
||||
[HttpPost]
|
||||
public async Task<GetCanChooseNotMergeOutDto> GetCanChooseNotMerge(GetCanChooseNotMergeInDto inDto)
|
||||
{
|
||||
ReadingCalculateDto readingData = await _generalCalculateService.GetReadingCalculateDto(inDto.VisitTaskId);
|
||||
|
||||
List<QuestionType?> questionTypes = new List<QuestionType?>() {
|
||||
QuestionType.LiverSUVmax,
|
||||
QuestionType.MediastinumSUVmax,
|
||||
QuestionType.SUVmax,
|
||||
QuestionType.SUVmaxLesion,
|
||||
};
|
||||
|
||||
var pet5ps = readingData.QuestionInfo.Where(x => x.QuestionType == QuestionType.PET5PS).Select(x => x.Answer).FirstOrDefault();
|
||||
|
||||
|
||||
GetCanChooseNotMergeOutDto getCanChooseNotMergeOutDto = new GetCanChooseNotMergeOutDto()
|
||||
{
|
||||
IsCanChooseNotMerge = !readingData.QuestionInfo.Any(x => questionTypes.Contains(x.QuestionType) && x.Answer != string.Empty)
|
||||
&& (pet5ps==string.Empty||pet5ps==PET5PSScore.NE.GetEnumInt())
|
||||
|
||||
|
||||
};
|
||||
return getCanChooseNotMergeOutDto;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 测试计算
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user