Uat_Study
he 2022-09-13 16:06:49 +08:00
parent f49012daad
commit 855f260aed
2 changed files with 27 additions and 1 deletions

View File

@ -42,6 +42,26 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
public class GetTumorAssessmentListInDto
{
public Guid CriterionId { get; set; }
/// <summary>
/// 靶病灶
/// </summary>
public string TargetLesion { get; set; }
/// <summary>
/// 非靶病灶
/// </summary>
public string NonTargetLesions { get; set; }
/// <summary>
/// 新病灶
/// </summary>
public string NewLesion { get; set; }
/// <summary>
/// 整体疗效
/// </summary>
public string OverallEfficacy { get; set; }
}
public class CopySystemCriterionDataInDto
{

View File

@ -88,7 +88,13 @@ namespace IRaCIS.Application.Services
[HttpPost]
public async Task<List<TumorAssessment>> GetTumorAssessmentList(GetTumorAssessmentListInDto inDto)
{
var result= await _tumorAssessmentRepository.Where(x => x.CriterionId == inDto.CriterionId).ToListAsync();
var result= await _tumorAssessmentRepository
.Where(x => x.CriterionId == inDto.CriterionId)
.WhereIf(!inDto.OverallEfficacy.IsNullOrEmpty(),x=>x.OverallEfficacy==inDto.OverallEfficacy)
.WhereIf(!inDto.TargetLesion.IsNullOrEmpty(), x => x.TargetLesion == inDto.TargetLesion)
.WhereIf(!inDto.NonTargetLesions.IsNullOrEmpty(), x => x.NonTargetLesions == inDto.NonTargetLesions)
.WhereIf(!inDto.NewLesion.IsNullOrEmpty(), x => x.NewLesion == inDto.NewLesion)
.ToListAsync();
return result;
}