IRC_NewDev
parent
5c9664ec7d
commit
ba8f22f260
|
@ -32,6 +32,18 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
|
|||
public bool IsApplyHeavyReading { get; set; } = false;
|
||||
}
|
||||
|
||||
public class GetNextIRMedicalFeedbackInDto
|
||||
{
|
||||
/// <summary>
|
||||
/// 项目Id
|
||||
/// </summary>
|
||||
[NotDefault]
|
||||
public Guid TrialId { get; set; }
|
||||
|
||||
public Guid? TrialReadingCriterionId { get; set; }
|
||||
}
|
||||
|
||||
|
||||
public class GetIRMedicalFeedbackListInDto:PageInput
|
||||
{
|
||||
/// <summary>
|
||||
|
@ -78,6 +90,12 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
|
|||
public bool? IsInvalid { get; set; }
|
||||
|
||||
public Guid? TrialReadingCriterionId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取不加急的
|
||||
/// </summary>
|
||||
public bool IsNotHaveSigned { get; set; } = false;
|
||||
|
||||
}
|
||||
|
||||
public class GetIRMedicalFeedbackListOutDto
|
||||
|
|
|
@ -780,6 +780,38 @@ namespace IRaCIS.Core.Application.Service
|
|||
return ResponseOutput.Result(result);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取下一个IR医学反馈
|
||||
/// </summary>
|
||||
/// <param name="inDto"></param>
|
||||
/// <returns></returns>
|
||||
/// <exception cref="BusinessValidationFailedException"></exception>
|
||||
[HttpPost]
|
||||
public async Task<GetIRMedicalFeedbackListOutDto> GetNextIRMedicalFeedback(GetNextIRMedicalFeedbackInDto inDto)
|
||||
{
|
||||
var list = await GetIRMedicalFeedbackList(new GetIRMedicalFeedbackListInDto()
|
||||
{
|
||||
TrialId=inDto.TrialId,
|
||||
IsNotHaveSigned=true,
|
||||
TrialReadingCriterionId=inDto.TrialReadingCriterionId,
|
||||
PageIndex=1,
|
||||
PageSize=1,
|
||||
});
|
||||
|
||||
if (list.CurrentPageData.Count() > 0)
|
||||
{
|
||||
return list.CurrentPageData[0];
|
||||
}
|
||||
else
|
||||
{
|
||||
throw new BusinessValidationFailedException(_localizer["MedicalReview_IRFinish"], ApiResponseCodeEnum.CloseCurrentWindows);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取IR医学审核信息
|
||||
|
@ -795,6 +827,7 @@ namespace IRaCIS.Core.Application.Service
|
|||
.WhereIf(!inDto.TaskBlindName.IsNullOrEmpty(), x => x.VisitTask.TaskBlindName == inDto.TaskBlindName)
|
||||
.WhereIf(inDto.IsUrgent != null, x => x.VisitTask.IsUrgent == inDto.IsUrgent!)
|
||||
.WhereIf(inDto.AuditState != null, x => x.AuditState == inDto.AuditState!)
|
||||
.WhereIf(inDto.IsNotHaveSigned, x => x.AuditState != MedicalReviewAuditState.HaveSigned)
|
||||
.WhereIf(inDto.ReadingCategory != null, x => x.VisitTask.ReadingCategory == inDto.ReadingCategory!)
|
||||
.WhereIf(inDto.AuditAdviceEnum != null, x => x.AuditAdviceEnum == inDto.AuditAdviceEnum!)
|
||||
.WhereIf(inDto.DoctorUserIdeaEnum != null, x => x.DoctorUserIdeaEnum == inDto.DoctorUserIdeaEnum!)
|
||||
|
|
Loading…
Reference in New Issue