IRC_NewDev
parent
ed6a6fb844
commit
4cedb9dbcb
|
@ -2615,9 +2615,35 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate
|
||||||
/// <param name="inDto"></param>
|
/// <param name="inDto"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public async Task<string> GetPET5PSRemark(ReadingCalculateDto inDto)
|
public async Task<string> GetPET5PSRemark(ReadingCalculateDto inDto)
|
||||||
|
{
|
||||||
|
List<QuestionType?> needSearchTypes = new List<QuestionType?>()
|
||||||
|
{
|
||||||
|
QuestionType.PET5PS,
|
||||||
|
QuestionType.PSScoreRemarks,
|
||||||
|
};
|
||||||
|
|
||||||
|
var dataBaseDataList = await _readingTaskQuestionAnswerRepository.Where(x => x.VisitTaskId == inDto.VisitTaskId && needSearchTypes.Contains(x.ReadingQuestionTrial.QuestionType)).Select(x => new
|
||||||
|
{
|
||||||
|
x.Answer,
|
||||||
|
x.ReadingQuestionTrial.QuestionType
|
||||||
|
}).ToListAsync(); ;
|
||||||
|
|
||||||
|
|
||||||
|
// 数据库中最大SUVmax
|
||||||
|
var pET5PS = dataBaseDataList.Where(x => x.QuestionType == QuestionType.PET5PS).Select(x => x.Answer).FirstIsNullReturnEmpty();
|
||||||
|
|
||||||
|
// 如果SUVmax没变 就不重新计算
|
||||||
|
if (pET5PS == (await GetPET5PS(inDto)).ToString())
|
||||||
|
{
|
||||||
|
return dataBaseDataList.Where(x => x.QuestionType == QuestionType.PSScoreRemarks).Select(x => x.Answer).FirstIsNullReturnEmpty();
|
||||||
|
|
||||||
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
return string.Empty;
|
return string.Empty;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue