Uat_Study
he 2022-09-07 09:11:49 +08:00
parent c7086dcf08
commit 94d13eff98
1 changed files with 6 additions and 2 deletions

View File

@ -177,7 +177,7 @@ namespace IRaCIS.Application.Services
/// <param name="inDto"></param>
/// <returns></returns>
[HttpPost]
public async Task<(List<DicomReadingQuestionAnswer>,bool)> GetDicomReadingQuestionAnswer(GetDicomReadingQuestionAnswerInDto inDto)
public async Task<(List<DicomReadingQuestionAnswer>,object)> GetDicomReadingQuestionAnswer(GetDicomReadingQuestionAnswerInDto inDto)
{
var criterionId = await _readingQuestionCriterionTrialRepository.Where(x => x.IsConfirm && x.TrialId == inDto.TrialId).Select(x => x.Id).FirstOrDefaultAsync();
@ -195,7 +195,11 @@ namespace IRaCIS.Application.Services
GetDicomReadingAnswer(item, questions, answers);
}
return (result,true);
return (result, new
{
ReadingTaskState = await _visitTaskRepository.Where(x => x.Id == inDto.VisitTaskId).Select(x => x.ReadingTaskState).FirstOrDefaultAsync()
}) ;
}
private void GetDicomReadingAnswer(DicomReadingQuestionAnswer item,List<DicomReadingQuestionAnswer> questions,List<ReadingTaskQuestionAnswer> answers)