+19
-3
@@ -792,13 +792,28 @@ namespace IRaCIS.Core.Application.Service
|
||||
var list = await GetIRMedicalFeedbackList(new GetIRMedicalFeedbackListInDto()
|
||||
{
|
||||
TrialId=inDto.TrialId,
|
||||
IsNotHaveSigned=true,
|
||||
AuditState= MedicalReviewAuditState.Auditing,
|
||||
TrialReadingCriterionId=inDto.TrialReadingCriterionId,
|
||||
SubjectId=inDto.SubjectId,
|
||||
PageIndex=1,
|
||||
PageSize=1,
|
||||
});
|
||||
|
||||
if (list.CurrentPageData.Count() > 0)
|
||||
|
||||
if (list.CurrentPageData.Count() == 0)
|
||||
{
|
||||
list = await GetIRMedicalFeedbackList(new GetIRMedicalFeedbackListInDto()
|
||||
{
|
||||
TrialId = inDto.TrialId,
|
||||
AuditState = MedicalReviewAuditState.Auditing,
|
||||
TrialReadingCriterionId = inDto.TrialReadingCriterionId,
|
||||
PageIndex = 1,
|
||||
PageSize = 1,
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
if (list.CurrentPageData.Count() > 0)
|
||||
{
|
||||
return list.CurrentPageData[0];
|
||||
}
|
||||
@@ -825,7 +840,8 @@ namespace IRaCIS.Core.Application.Service
|
||||
.Where(x => x.VisitTask.DoctorUserId == _userInfo.Id)
|
||||
.Where(x => x.IsHaveQuestion)
|
||||
.WhereIf(!inDto.TaskBlindName.IsNullOrEmpty(), x => x.VisitTask.TaskBlindName == inDto.TaskBlindName)
|
||||
.WhereIf(inDto.IsUrgent != null, x => x.VisitTask.IsUrgent == inDto.IsUrgent!)
|
||||
.WhereIf(inDto.SubjectId != null, x => x.VisitTask.SubjectId == inDto.SubjectId!)
|
||||
.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!)
|
||||
|
||||
Reference in New Issue
Block a user