肿瘤学阅片修改
parent
7b9c90b77c
commit
fb498b3723
|
@ -1317,6 +1317,8 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
|
|||
|
||||
public bool IsBaseLine { get; set; }
|
||||
|
||||
public decimal VisitNum { get; set; }
|
||||
|
||||
public bool IsHaveChange { get; set; }
|
||||
|
||||
public string VisitRemark { get; set; } = string.Empty;
|
||||
|
|
|
@ -215,6 +215,8 @@ namespace IRaCIS.Application.Services
|
|||
{
|
||||
VisitName = x.SourceSubjectVisit.VisitName,
|
||||
IsBaseLine = x.SourceSubjectVisit.IsBaseLine,
|
||||
VisitNum=x.SourceSubjectVisit.VisitNum,
|
||||
|
||||
VisitTaskId = x.Id,
|
||||
// QuestionList = x.ReadingTaskQuestionAnswerList.Where(y => y.ReadingQuestionTrial.IsJudgeQuestion).OrderBy(y => y.ReadingQuestionTrial.ShowOrder)
|
||||
//.Select(y => new OncologyQuestion()
|
||||
|
@ -225,7 +227,7 @@ namespace IRaCIS.Application.Services
|
|||
//}).ToList()
|
||||
}).ToListAsync();
|
||||
|
||||
var oncologyReadingQuestions = await _readingOncologyTaskInfoRepository.Where(x => x.OncologyTaskId == inDto.VisitTaskId).ToListAsync();
|
||||
var oncologyReadingQuestions = await _readingOncologyTaskInfoRepository.Where(x => x.OncologyTaskId == inDto.VisitTaskId).Include(x=>x.VisitTask).ToListAsync();
|
||||
// 上一次肿瘤学阅片
|
||||
|
||||
var lastOncologyTask = await _visitTaskRepository.Where(x =>
|
||||
|
@ -241,7 +243,7 @@ namespace IRaCIS.Application.Services
|
|||
|
||||
if (lastOncologyTask != null&& taskInfo.TaskState==TaskState.Effect&&taskInfo.ReadingTaskState!=ReadingTaskState.HaveSigned)
|
||||
{
|
||||
lastOncologyAnswerList= await _readingOncologyTaskInfoRepository.Where(x => x.OncologyTaskId == lastOncologyTask.Id).ToListAsync();
|
||||
lastOncologyAnswerList= await _readingOncologyTaskInfoRepository.Where(x => x.OncologyTaskId == lastOncologyTask.Id).Include(x => x.VisitTask).ToListAsync();
|
||||
|
||||
}
|
||||
|
||||
|
@ -249,7 +251,8 @@ namespace IRaCIS.Application.Services
|
|||
oncologyVisits.ForEach(x =>
|
||||
{
|
||||
var oncologyData = oncologyReadingQuestions.Where(y => y.VisitTaskId == x.VisitTaskId).FirstOrDefault();
|
||||
var lastOncologyData = lastOncologyAnswerList.Where(y => y.VisitTaskId == x.VisitTaskId).FirstOrDefault();
|
||||
/// 根据任务编号匹配 不区分 r1 r2
|
||||
var lastOncologyData = lastOncologyAnswerList.Where(y => y.VisitTask.VisitTaskNum == x.VisitNum).FirstOrDefault();
|
||||
|
||||
var evaluationResult = string.Empty;
|
||||
var evaluationReason = string.Empty;
|
||||
|
|
Loading…
Reference in New Issue