修改一版
parent
5a50b95987
commit
01c9aeef48
|
@ -704,8 +704,18 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate
|
|||
public async Task<int> GetBaseLineLesionsCount(ReadingCalculateDto inDto)
|
||||
{
|
||||
|
||||
return inDto.QuestionInfo.Where(x => x.LesionType == LesionType.BaselineLesions).SelectMany(x => x.TableRowInfoList)
|
||||
.Where(x => x.TableQuestionList.Any(y => y.QuestionMark == QuestionMark.State && y.Answer == EvaluationOfState.Exists.GetEnumInt())).Count();
|
||||
try
|
||||
{
|
||||
return (int)(inDto.QuestionInfo.Where(x => x.LesionType == LesionType.BaselineLesions).SelectMany(x => x.TableRowInfoList)
|
||||
|
||||
.Sum(x => x.TableQuestionList.Where(y => y.QuestionMark == QuestionMark.LesionNumber).Select(x => x.Answer).FirstOrDefault().IsNullOrEmptyReturn0()));
|
||||
}
|
||||
catch
|
||||
{
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
|
|
@ -1011,6 +1011,11 @@ namespace IRaCIS.Core.Domain.Share
|
|||
/// 所在部位
|
||||
/// </summary>
|
||||
Part = 8,
|
||||
|
||||
/// <summary>
|
||||
/// 病灶数量
|
||||
/// </summary>
|
||||
LesionNumber=11,
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
Loading…
Reference in New Issue