查询基线病灶
continuous-integration/drone/push Build is passing Details

Test_IRC_Net8
he 2025-12-02 17:24:32 +08:00
parent d9e3b642a5
commit ecfadcb5a3
2 changed files with 34 additions and 1 deletions

View File

@ -10,6 +10,7 @@ using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using MiniExcelLibs;
using Org.BouncyCastle.Asn1.X509;
using System.Data;
using System.IO;
@ -326,7 +327,33 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate
}
break;
case ReportChartType.BaseLineTarget:
// 这是病灶
var baseTarget = data.TaskQuestions.SelectMany(x => x.Childrens)
.Where(x => x.LesionType == LesionType.BaselineLesions).SelectMany(x => x.Childrens)
.ToList();
foreach (var item in baseTarget)
{
ReportChartData chartData = new ReportChartData()
{
Name = item.QuestionName,
Value = new List<string>(),
};
for (var i = 0; i < result.VisitTaskNameList.Count; i++)
{
chartData.Value.Add(item.Childrens.Where(x => x.QuestionMark == QuestionMark.LesionNumber).Select(x => x.Answer[i].Answer).FirstOrDefault());
result.Unit = item.Childrens.Where(x => x.QuestionMark == QuestionMark.LesionNumber).Select(x => x.Unit).FirstOrDefault();
}
result.ChartDataList.Add(chartData);
}
break;
default:
break;
}

View File

@ -2526,6 +2526,12 @@ namespace IRaCIS.Core.Domain.Share
/// </summary>
Target = 0,
/// <summary>
/// 基线病灶
/// </summary>
BaseLineTarget = 1,
}