测试肿瘤学评估
continuous-integration/drone/push Build is passing

This commit is contained in:
he
2025-04-08 09:31:36 +08:00
parent b79b4567b4
commit 8213c6d10f
3 changed files with 53 additions and 0 deletions
@@ -291,6 +291,23 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
public List<string> SheetNames { get; set; }
}
public class TestOncologyDto
{
public Guid Id { get; set; }
public string TargetLesion { get; set; }
public string NonTargetLesions { get; set; }
public string NewLesion { get; set; }
public string OverallEfficacy { get; set; }
}
/// <summary>
/// 阅片计算Dto
/// </summary>
@@ -5,6 +5,7 @@ using IRaCIS.Core.Infra.EFCore.Common;
using IRaCIS.Core.Infrastructure;
using MassTransit;
using Microsoft.AspNetCore.Mvc;
using Newtonsoft.Json;
namespace IRaCIS.Core.Application.Service.ReadingCalculate
{
@@ -1120,6 +1121,35 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate
return CalculationGetImgOncology(targetLesion, noTargetLesion, newLesions);
}
/// <summary>
/// 测试肿瘤学评估
/// </summary>
/// <returns></returns>
public async Task<List<TestOncologyDto>> TestOncology()
{
var dataList = await _tumorAssessmentRepository.AsQueryable().ToListAsync();
List<TestOncologyDto> result = new List<TestOncologyDto>();
foreach (var item in dataList)
{
var data = CalculationGetImgOncology(item.TargetLesion.GetEnumInt(), item.NonTargetLesions.GetEnumInt(), item.NewLesion.GetEnumInt());
if (item.OverallEfficacy.GetEnumInt() != data)
{
result.Add(new TestOncologyDto()
{
Id = item.Id,
TargetLesion = item.TargetLesion.ToString(),
NewLesion = item.NewLesion.ToString(),
NonTargetLesions = item.NonTargetLesions.ToString(),
OverallEfficacy = item.OverallEfficacy.ToString(),
});
}
}
return result;
}
/// <summary>