修改一版
parent
5033b39427
commit
ac7a97706d
|
@ -184,7 +184,7 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
|
||||||
public Guid TaskMedicalReviewId { get; set; }
|
public Guid TaskMedicalReviewId { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
public class ApplyReReadingInDto: SendMedicalReviewDialogInDto
|
public class ApplyReReadingInDto
|
||||||
{
|
{
|
||||||
|
|
||||||
public Guid TrialId { get; set; }
|
public Guid TrialId { get; set; }
|
||||||
|
@ -195,10 +195,7 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
|
||||||
|
|
||||||
public string RequestReReadingReason { get; set; } = string.Empty;
|
public string RequestReReadingReason { get; set; } = string.Empty;
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
public class SendMedicalReviewDialogInDto
|
|
||||||
{
|
|
||||||
public Guid TaskMedicalReviewId { get; set; }
|
public Guid TaskMedicalReviewId { get; set; }
|
||||||
|
|
||||||
public string Content { get; set; }
|
public string Content { get; set; }
|
||||||
|
@ -208,6 +205,26 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public MedicalReviewDoctorUserIdea DoctorUserIdeaEnum { get; set; } = MedicalReviewDoctorUserIdea.defalut;
|
public MedicalReviewDoctorUserIdea DoctorUserIdeaEnum { get; set; } = MedicalReviewDoctorUserIdea.defalut;
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 不同意重阅原因
|
||||||
|
/// </summary>
|
||||||
|
public string DisagreeReason { get; set; } = string.Empty;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 是否申请重阅
|
||||||
|
/// </summary>
|
||||||
|
public bool? IsApplyHeavyReading { get; set; }
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public class SendMedicalReviewDialogInDto
|
||||||
|
{
|
||||||
|
public Guid TaskMedicalReviewId { get; set; }
|
||||||
|
|
||||||
|
public string Content { get; set; }
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 是否有问题
|
/// 是否有问题
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -223,15 +240,6 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public AuditAdvice AuditAdviceEnum { get; set; } = AuditAdvice.None;
|
public AuditAdvice AuditAdviceEnum { get; set; } = AuditAdvice.None;
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 不同意重阅原因
|
|
||||||
/// </summary>
|
|
||||||
public string DisagreeReason { get; set; } = string.Empty;
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 是否申请重阅
|
|
||||||
/// </summary>
|
|
||||||
public bool? IsApplyHeavyReading { get; set; }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public class SaveMedicineQuestionInDto
|
public class SaveMedicineQuestionInDto
|
||||||
|
|
|
@ -345,9 +345,7 @@ namespace IRaCIS.Core.Application.Service
|
||||||
UserTypeEnumInt = _userInfo.UserTypeEnumInt,
|
UserTypeEnumInt = _userInfo.UserTypeEnumInt,
|
||||||
VisitTaskId = visitTaskId,
|
VisitTaskId = visitTaskId,
|
||||||
AuditAdviceEnum=inDto.AuditAdviceEnum,
|
AuditAdviceEnum=inDto.AuditAdviceEnum,
|
||||||
DisagreeReason=inDto.DisagreeReason,
|
|
||||||
DoctorUserIdeaEnum=inDto.DoctorUserIdeaEnum,
|
|
||||||
IsApplyHeavyReading=inDto.IsApplyHeavyReading,
|
|
||||||
IsHaveQuestion=inDto.IsHaveQuestion,
|
IsHaveQuestion=inDto.IsHaveQuestion,
|
||||||
Questioning=inDto.Questioning,
|
Questioning=inDto.Questioning,
|
||||||
};
|
};
|
||||||
|
@ -366,6 +364,8 @@ namespace IRaCIS.Core.Application.Service
|
||||||
public async Task<IResponseOutput> ApplyReReading(ApplyReReadingInDto inDto)
|
public async Task<IResponseOutput> ApplyReReading(ApplyReReadingInDto inDto)
|
||||||
{
|
{
|
||||||
var visitTaskId = await _taskMedicalReviewRepository.Where(x => x.Id == inDto.TaskMedicalReviewId).Select(x => x.VisitTaskId).FirstOrDefaultAsync();
|
var visitTaskId = await _taskMedicalReviewRepository.Where(x => x.Id == inDto.TaskMedicalReviewId).Select(x => x.VisitTaskId).FirstOrDefaultAsync();
|
||||||
|
if (inDto.IsApplyHeavyReading??false)
|
||||||
|
{
|
||||||
await _visitTaskService.ApplyReReading(new ApplyReReadingCommand()
|
await _visitTaskService.ApplyReReading(new ApplyReReadingCommand()
|
||||||
{
|
{
|
||||||
IsCopyOrigenalForms = inDto.IsCopyOrigenalForms,
|
IsCopyOrigenalForms = inDto.IsCopyOrigenalForms,
|
||||||
|
@ -378,14 +378,26 @@ namespace IRaCIS.Core.Application.Service
|
||||||
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
#region 重阅修改医学审核状态
|
|
||||||
await _taskMedicalReviewRepository.BatchUpdateNoTrackingAsync(x => !x.IsClosedDialog && x.Id == inDto.TaskMedicalReviewId, x => new TaskMedicalReview()
|
await _taskMedicalReviewRepository.BatchUpdateNoTrackingAsync(x => !x.IsClosedDialog && x.Id == inDto.TaskMedicalReviewId, x => new TaskMedicalReview()
|
||||||
{
|
{
|
||||||
IsClosedDialog = true
|
IsClosedDialog = true
|
||||||
});
|
});
|
||||||
#endregion
|
}
|
||||||
return await this.SendMedicalReviewDialog(inDto);
|
ReadingMedicalReviewDialog dialog = new ReadingMedicalReviewDialog()
|
||||||
|
{
|
||||||
|
TaskMedicalReviewId = inDto.TaskMedicalReviewId,
|
||||||
|
UserTypeShortName = _userInfo.UserTypeShortName,
|
||||||
|
Content = inDto.Content,
|
||||||
|
UserTypeEnumInt = _userInfo.UserTypeEnumInt,
|
||||||
|
VisitTaskId = visitTaskId,
|
||||||
|
DisagreeReason = inDto.DisagreeReason,
|
||||||
|
DoctorUserIdeaEnum = inDto.DoctorUserIdeaEnum,
|
||||||
|
IsApplyHeavyReading = inDto.IsApplyHeavyReading,
|
||||||
|
};
|
||||||
|
|
||||||
|
await _readingMedicalReviewDialogRepository.AddAsync(dialog);
|
||||||
|
var result = await _readingMedicalReviewDialogRepository.SaveChangesAsync();
|
||||||
|
return ResponseOutput.Result(result);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue