Uat_Study
parent
ea6c6c8490
commit
63572942ea
|
@ -183,7 +183,7 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
|
|||
|
||||
public List<ReadingReportDto> TaskQuestions { get; set; }
|
||||
|
||||
public List<LesionDto> LesionList { get; set; } = new List<LesionDto>();
|
||||
public List<LesionDto> LesionCountList { get; set; } = new List<LesionDto>();
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -131,7 +131,7 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate
|
|||
var tableQuestionList = await _readingTableQuestionTrialRepository.Where(x => x.TrialCriterionId == criterionId).OrderBy(x => x.ShowOrder).ToListAsync();
|
||||
var tableAnsweRowInfos = await _readingTableAnswerRowInfoRepository.Where(x => x.VisitTaskId == indto.VisitTaskId).ProjectTo<TableAnsweRowInfo>(_mapper.ConfigurationProvider).ToListAsync();
|
||||
|
||||
result.LesionList = tableAnsweRowInfos.GroupBy(x => x.LesionType).Select(x => new LesionDto
|
||||
result.LesionCountList = tableAnsweRowInfos.GroupBy(x => x.LesionType).Select(x => new LesionDto
|
||||
{
|
||||
LesionType = x.Key.Value,
|
||||
Count = x.ToList().Count()
|
||||
|
|
Loading…
Reference in New Issue