Compare commits
No commits in common. "3fce7b772e9f562442762fc81abb03361262fc8b" and "ead07cb1cae8ba94ea6a5e35821dfc67eb23f8ab" have entirely different histories.
3fce7b772e
...
ead07cb1ca
|
|
@ -486,32 +486,20 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate
|
||||||
Evaluation = new List<List<EvaluationValue>>() { }
|
Evaluation = new List<List<EvaluationValue>>() { }
|
||||||
};
|
};
|
||||||
|
|
||||||
var baseLineAnswerType= QuestionType.ExistDisease;
|
|
||||||
|
|
||||||
var visitAnswerType = QuestionType.Tumor;
|
var visitAnswerType = QuestionType.Tumor;
|
||||||
switch (criterion.CriterionType)
|
if (criterion.CriterionType == CriterionType.PCWG3)
|
||||||
{
|
{
|
||||||
case CriterionType.PCWG3:
|
|
||||||
baseLineAnswerType= QuestionType.SiteVisitForTumorEvaluation;
|
|
||||||
visitAnswerType = QuestionType.SiteVisitForTumorEvaluation;
|
visitAnswerType = QuestionType.SiteVisitForTumorEvaluation;
|
||||||
break;
|
|
||||||
case CriterionType.Lugano2014WithoutPET:
|
|
||||||
visitAnswerType = QuestionType.CTandMRI;
|
|
||||||
break;
|
|
||||||
case CriterionType.Lugano2014:
|
|
||||||
visitAnswerType = QuestionType.ImgOncology;
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
result.Evaluation.Add(visitTaskName.Select(x=> new EvaluationValue() {
|
result.Evaluation.Add(visitTaskName.Select(x=> new EvaluationValue() {
|
||||||
Value=x
|
Value=x
|
||||||
}).ToList());
|
}).ToList());
|
||||||
|
|
||||||
var r1baseLine= r1.TaskQuestions
|
var r1baseLine= r1.TaskQuestions
|
||||||
.SelectMany(x => x.Childrens)
|
.SelectMany(x => x.Childrens)
|
||||||
.Where(x => x.QuestionType == baseLineAnswerType)
|
.Where(x => x.QuestionType == QuestionType.ExistDisease)
|
||||||
.SelectMany(x => x.Answer.Select(a => new EvaluationValue
|
.SelectMany(x => x.Answer.Select(a => new EvaluationValue
|
||||||
{
|
{
|
||||||
DictionaryCode = x.DictionaryCode,
|
DictionaryCode = x.DictionaryCode,
|
||||||
|
|
@ -542,7 +530,7 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate
|
||||||
{
|
{
|
||||||
var r2baseLine = r2.TaskQuestions
|
var r2baseLine = r2.TaskQuestions
|
||||||
.SelectMany(x => x.Childrens)
|
.SelectMany(x => x.Childrens)
|
||||||
.Where(x => x.QuestionType == baseLineAnswerType)
|
.Where(x => x.QuestionType == QuestionType.ExistDisease)
|
||||||
.SelectMany(x => x.Answer.Select(a => new EvaluationValue
|
.SelectMany(x => x.Answer.Select(a => new EvaluationValue
|
||||||
{
|
{
|
||||||
DictionaryCode = x.DictionaryCode,
|
DictionaryCode = x.DictionaryCode,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue