修改一版

Uat_Study
he 2022-07-28 09:52:16 +08:00
parent 53221448cf
commit dba2dcb0e5
2 changed files with 49 additions and 2 deletions

View File

@ -39,6 +39,43 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
/// </summary>
[NotDefault]
public Guid TrialId { get; set; }
public bool? IsUrgent { get; set; }
public MedicalReviewAuditState? AuditState { get; set; }
public string SubjectCode { get; set; }
public string TaskBlindName { get; set; }
public ReadingCategory? ReadingCategory { get; set; }
/// <summary>
/// 审核建议
/// </summary>
public AuditAdvice? AuditAdviceEnum { get; set; }
/// <summary>
/// 阅片人是否认同
/// </summary>
public MedicalReviewDoctorUserIdea? DoctorUserIdeaEnum { get; set; }
/// <summary>
/// 是否关闭对话
/// </summary>
public bool? IsClosedDialog { get; set; }
/// <summary>
/// 是否有问题
/// </summary>
public bool? IsHaveQuestion { get; set; }
/// <summary>
/// 医学审核对话关闭原因
/// </summary>
public MedicalDialogClose? MedicalDialogCloseEnum { get; set; }
/// <summary>
/// 无效的 为True无效
/// </summary>
public bool? IsInvalid { get; set; }
}
public class GetIRMedicalFeedbackListOutDto

View File

@ -573,7 +573,17 @@ namespace IRaCIS.Core.Application.Service
{
var taskMedicalReviewquery = _taskMedicalReviewRepository.Where(x => x.TrialId == inDto.TrialId).Include(x => x.VisitTask)
.Where(x => x.VisitTask.DoctorUserId == _userInfo.Id)
.Where(x=>x.IsHaveQuestion)
.Where(x => x.IsHaveQuestion)
.WhereIf(!inDto.TaskBlindName.IsNullOrEmpty(), x => x.VisitTask.TaskBlindName == inDto.TaskBlindName)
.WhereIf(inDto.IsUrgent != null, x => x.VisitTask.IsUrgent == inDto.IsUrgent.Value)
.WhereIf(inDto.AuditState != null, x => x.AuditState == inDto.AuditState.Value)
.WhereIf(inDto.ReadingCategory != null, x => x.VisitTask.ReadingCategory == inDto.ReadingCategory.Value)
.WhereIf(inDto.AuditAdviceEnum != null, x => x.AuditAdviceEnum == inDto.AuditAdviceEnum.Value)
.WhereIf(inDto.DoctorUserIdeaEnum != null, x => x.DoctorUserIdeaEnum == inDto.DoctorUserIdeaEnum.Value)
.WhereIf(inDto.IsClosedDialog != null, x => x.IsClosedDialog == inDto.IsClosedDialog.Value)
.WhereIf(inDto.IsHaveQuestion != null, x => x.IsHaveQuestion == inDto.IsHaveQuestion.Value)
.WhereIf(inDto.MedicalDialogCloseEnum != null, x => x.MedicalDialogCloseEnum == inDto.MedicalDialogCloseEnum.Value)
.WhereIf(inDto.IsInvalid != null, x => x.IsInvalid == inDto.IsInvalid.Value)
.Select(x => new GetIRMedicalFeedbackListOutDto
{
TaskState=x.VisitTask.TaskState,
@ -594,7 +604,7 @@ namespace IRaCIS.Core.Application.Service
MedicalDialogCloseEnum=x.MedicalDialogCloseEnum,
IsInvalid=x.IsInvalid,
});
}).WhereIf(!inDto.SubjectCode.IsNullOrEmpty(), x => x.SubjectCode == inDto.SubjectCode);
var result=await taskMedicalReviewquery.ToPagedListAsync(inDto.PageIndex, inDto.PageSize, inDto.SortField.IsNullOrEmpty() ? nameof(GetIRMedicalFeedbackListOutDto.AuditState) : inDto.SortField,
inDto.Asc);