Compare commits

...

2 Commits

Author SHA1 Message Date
he e10e1f990f Merge branch 'Test.IRC' of http://192.168.3.68:2000/XCKJ/irc-netcore-api into Test.IRC
continuous-integration/drone/push Build is passing Details
2023-12-08 11:26:20 +08:00
he ce8fe53d4d 修改 2023-12-08 11:26:15 +08:00
1 changed files with 6 additions and 2 deletions

View File

@ -524,7 +524,7 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate
//SUVmax //SUVmax
new ReadingCalculateData (){QuestionType=QuestionType.SUVmax,GetDecimalFun=GetSuvMax}, new ReadingCalculateData (){QuestionType=QuestionType.SUVmax,GetDecimalNullFun=GetSuvMax},
// SUVmax所在病灶 // SUVmax所在病灶
new ReadingCalculateData (){QuestionType=QuestionType.SUVmaxLesion,GetStringFun=GetSuvMaxFocus}, new ReadingCalculateData (){QuestionType=QuestionType.SUVmaxLesion,GetStringFun=GetSuvMaxFocus},
@ -2248,8 +2248,12 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate
/// </summary> /// </summary>
/// <param name="inDto"></param> /// <param name="inDto"></param>
/// <returns></returns> /// <returns></returns>
public async Task<decimal> GetSuvMax(ReadingCalculateDto inDto) public async Task<decimal?> GetSuvMax(ReadingCalculateDto inDto)
{ {
if (inDto.QuestionInfo.Any(x => x.QuestionType == QuestionType.ExistPET && x.Answer == ReadingYesOrNo.No.GetEnumInt()))
{
return null;
}
var rowInfo = inDto.QuestionInfo.SelectMany(x => x.TableRowInfoList).ToList(); var rowInfo = inDto.QuestionInfo.SelectMany(x => x.TableRowInfoList).ToList();
var tableQuestions = rowInfo.SelectMany(x => x.TableQuestionList).ToList(); var tableQuestions = rowInfo.SelectMany(x => x.TableQuestionList).ToList();