修改
continuous-integration/drone/push Build is passing Details

Test_IRC_Net8
he 2026-01-05 18:01:07 +08:00
parent 86a3f1d2a5
commit 7ceca5d802
1 changed files with 9 additions and 3 deletions

View File

@ -486,7 +486,13 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate
Evaluation = new List<List<EvaluationValue>>() { }
};
var visitAnswerType = QuestionType.Tumor;
if (criterion.CriterionType == CriterionType.PCWG3)
{
visitAnswerType = QuestionType.SiteVisitForTumorEvaluation;
}
result.Evaluation.Add(visitTaskName.Select(x=> new EvaluationValue() {
Value=x
}).ToList());
@ -504,7 +510,7 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate
var r1data = r1.TaskQuestions
.SelectMany(x => x.Childrens)
.Where(x => x.QuestionType == QuestionType.Tumor)
.Where(x => x.QuestionType == visitAnswerType)
.SelectMany(x => x.Answer.Select(a => new EvaluationValue
{
DictionaryCode = x.DictionaryCode,
@ -535,7 +541,7 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate
var r2data = r2.TaskQuestions
.SelectMany(x => x.Childrens)
.Where(x => x.QuestionType == QuestionType.Tumor)
.Where(x => x.QuestionType == visitAnswerType)
.SelectMany(x => x.Answer.Select(a => new EvaluationValue
{
DictionaryCode = x.DictionaryCode,