修改一版
parent
64df53602e
commit
71a73ff536
|
@ -506,6 +506,8 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
|
|||
|
||||
public Guid VisitTaskId { get; set; }
|
||||
|
||||
public GlobalAnswerType GlobalAnswerType { get; set; }
|
||||
|
||||
public string Answer { get; set; }
|
||||
}
|
||||
|
||||
|
@ -517,6 +519,8 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
|
|||
public string QuestionName { get; set; }
|
||||
|
||||
public string Answer { get; set; }
|
||||
|
||||
|
||||
}
|
||||
|
||||
public class OncologyVisitTaskInfo
|
||||
|
@ -656,7 +660,12 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
|
|||
public List<GlobalQuestionInfo> AfterQuestionList { get; set; }
|
||||
}
|
||||
|
||||
public class GetGlobalQuestionType
|
||||
{
|
||||
public GlobalAnswerType GlobalAnswerType { get; set; }
|
||||
|
||||
public string QuestionName { get; set; }
|
||||
}
|
||||
public class GlobalQuestionInfo
|
||||
{
|
||||
public Guid? QuestionId { get; set; }
|
||||
|
@ -694,6 +703,9 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
|
|||
/// 类型
|
||||
/// </summary>
|
||||
public string Type { get; set; }
|
||||
|
||||
|
||||
public GlobalAnswerType GlobalAnswerType { get; set; }
|
||||
}
|
||||
|
||||
public class GetReadingImgOutDto
|
||||
|
|
|
@ -1134,7 +1134,7 @@ namespace IRaCIS.Application.Services
|
|||
QuestionId = lr.question.QuestionId,
|
||||
QuestionName = lr.question.QuestionName,
|
||||
Type = lr.question.Type,
|
||||
|
||||
GlobalAnswerType=GlobalAnswerType.Question,
|
||||
AnswerGroup = lr.question.AnswerGroup,
|
||||
AnswerCombination = lr.question.AnswerCombination,
|
||||
JudgeType = lr.question.JudgeType,
|
||||
|
@ -1142,16 +1142,26 @@ namespace IRaCIS.Application.Services
|
|||
|
||||
}).ToList();
|
||||
|
||||
var reason = new GlobalQuestionInfo()
|
||||
List<GetGlobalQuestionType> questionTypes = new List<GetGlobalQuestionType>()
|
||||
{
|
||||
Answer = globalReadingQuestion.Where(y => y.TaskId == x.VisitTaskId && y.QuestionId == null).Select(x => x.Answer).FirstOrDefault() ?? String.Empty,
|
||||
QuestionName = "原因",
|
||||
Type = "input",
|
||||
|
||||
|
||||
new GetGlobalQuestionType (){GlobalAnswerType=GlobalAnswerType.Reason,QuestionName="原因" },
|
||||
new GetGlobalQuestionType (){GlobalAnswerType=GlobalAnswerType.AgreeOrNot,QuestionName="是否同意访视结果" },
|
||||
new GetGlobalQuestionType (){GlobalAnswerType=GlobalAnswerType.UpdateType,QuestionName="评估更新类型" },
|
||||
};
|
||||
|
||||
x.AfterQuestionList.Add(reason);
|
||||
|
||||
foreach (var item in questionTypes)
|
||||
{
|
||||
x.AfterQuestionList.Add(new GlobalQuestionInfo()
|
||||
{
|
||||
Answer = globalReadingQuestion.Where(y => y.TaskId == x.VisitTaskId && y.GlobalAnswerType == item.GlobalAnswerType).Select(x => x.Answer).FirstOrDefault() ?? String.Empty,
|
||||
QuestionName = item.QuestionName,
|
||||
Type = "input",
|
||||
GlobalAnswerType=item.GlobalAnswerType,
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
|
||||
});
|
||||
|
|
|
@ -574,6 +574,32 @@ namespace IRaCIS.Core.Domain.Share
|
|||
OncologyRead = 3,
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 全局答案类型
|
||||
/// </summary>
|
||||
public enum GlobalAnswerType
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 问题答案
|
||||
/// </summary>
|
||||
Question = 0,
|
||||
|
||||
/// <summary>
|
||||
/// 原因
|
||||
/// </summary>
|
||||
Reason = 1,
|
||||
|
||||
/// <summary>
|
||||
/// 是否同意
|
||||
/// </summary>
|
||||
AgreeOrNot = 2,
|
||||
|
||||
/// <summary>
|
||||
/// 评估更新类型
|
||||
/// </summary>
|
||||
UpdateType = 3
|
||||
}
|
||||
public enum QuestionMark
|
||||
{
|
||||
/// <summary>
|
||||
|
|
|
@ -63,10 +63,15 @@ namespace IRaCIS.Core.Domain.Models
|
|||
/// </summary>
|
||||
|
||||
public Guid TrialId { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// SubjectId
|
||||
/// </summary>
|
||||
/// 全局答案类型
|
||||
/// </summary>
|
||||
public GlobalAnswerType GlobalAnswerType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// SubjectId
|
||||
/// </summary>
|
||||
public Guid SubjectId { get; set; }
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue