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

Test_IRC_Net8
he 2025-04-08 09:31:36 +08:00
parent b79b4567b4
commit 8213c6d10f
3 changed files with 53 additions and 0 deletions

View File

@ -4725,6 +4725,12 @@
<param name="inDto"></param> <param name="inDto"></param>
<returns></returns> <returns></returns>
</member> </member>
<member name="M:IRaCIS.Core.Application.Service.ReadingCalculate.MRECISTHCCCalculate.TestOncology">
<summary>
测试肿瘤学评估
</summary>
<returns></returns>
</member>
<member name="M:IRaCIS.Core.Application.Service.ReadingCalculate.MRECISTHCCCalculate.CalculationGetImgOncology(System.String,System.String,System.String)"> <member name="M:IRaCIS.Core.Application.Service.ReadingCalculate.MRECISTHCCCalculate.CalculationGetImgOncology(System.String,System.String,System.String)">
<summary> <summary>
计算整体肿瘤评估 【测试】 计算整体肿瘤评估 【测试】

View File

@ -291,6 +291,23 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
public List<string> SheetNames { get; set; } 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> /// <summary>
/// 阅片计算Dto /// 阅片计算Dto
/// </summary> /// </summary>

View File

@ -5,6 +5,7 @@ using IRaCIS.Core.Infra.EFCore.Common;
using IRaCIS.Core.Infrastructure; using IRaCIS.Core.Infrastructure;
using MassTransit; using MassTransit;
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
using Newtonsoft.Json;
namespace IRaCIS.Core.Application.Service.ReadingCalculate namespace IRaCIS.Core.Application.Service.ReadingCalculate
{ {
@ -1120,6 +1121,35 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate
return CalculationGetImgOncology(targetLesion, noTargetLesion, newLesions); 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> /// <summary>