@@ -387,12 +387,12 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate
|
||||
if (item.Childrens.Any(x => x.QuestionMark == QuestionMark.IsLymph && x.Answer[i].Answer.EqEnum(ReadingYesOrNo.Yes)))
|
||||
{
|
||||
chartData.Value.Add(item.Childrens.Where(x => x.QuestionMark == QuestionMark.ShortAxis).Select(x => x.Answer[i].Answer).FirstOrDefault());
|
||||
result.Unit = item.Childrens.Where(x => x.QuestionMark == QuestionMark.ShortAxis).Select(x => x.Unit).FirstOrDefault();
|
||||
result.Unit = item.Childrens.Where(x => x.QuestionMark == QuestionMark.MajorAxis).Select(x => x.Unit).FirstOrDefault();
|
||||
}
|
||||
else
|
||||
{
|
||||
chartData.Value.Add(item.Childrens.Where(x => x.QuestionMark == QuestionMark.MajorAxis).Select(x => x.Answer[i].Answer).FirstOrDefault());
|
||||
result.Unit = item.Childrens.Where(x => x.QuestionMark == QuestionMark.ShortAxis).Select(x => x.Unit).FirstOrDefault();
|
||||
result.Unit = item.Childrens.Where(x => x.QuestionMark == QuestionMark.MajorAxis).Select(x => x.Unit).FirstOrDefault();
|
||||
}
|
||||
break;
|
||||
|
||||
@@ -606,7 +606,7 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate
|
||||
};
|
||||
if (negativeToString.Contains(item.QuestionType))
|
||||
{
|
||||
cd.Value = cd.Value.Select(item => item == "-1" ? string.Empty : item).ToList();
|
||||
cd.Value = cd.Value.Select(item => item == "-1"|| item == "-2" ? string.Empty : item).ToList();
|
||||
}
|
||||
chartList.Add(cd);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user