Uat_Study
parent
f49012daad
commit
855f260aed
|
@ -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
|
||||
{
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue