IRC_NewDev
parent
fe2539afba
commit
b65635c41c
|
@ -1786,6 +1786,13 @@
|
|||
<param name="inDto"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:IRaCIS.Core.Application.Service.ReadingCalculate.LuganoCalculateService.GetCanChooseNotMerge(IRaCIS.Core.Application.Service.Reading.Dto.GetCanChooseNotMergeInDto)">
|
||||
<summary>
|
||||
获取是否可选择不能融合影像
|
||||
</summary>
|
||||
<param name="inDto"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:IRaCIS.Core.Application.Service.ReadingCalculate.LuganoCalculateService.TestCalculate(System.Guid,IRaCIS.Core.Domain.Share.QuestionType)">
|
||||
<summary>
|
||||
测试计算
|
||||
|
|
|
@ -22,6 +22,16 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
|
|||
public bool IsSuvMaxLesion { get; set; }
|
||||
}
|
||||
|
||||
public class GetCanChooseNotMergeInDto
|
||||
{
|
||||
public Guid VisitTaskId { get; set; }
|
||||
}
|
||||
|
||||
public class GetCanChooseNotMergeOutDto
|
||||
{
|
||||
public bool IsCanChooseNotMerge { get; set; }
|
||||
}
|
||||
|
||||
public class GetPPDInfoInDto
|
||||
{
|
||||
public Guid VisitTaskId { get; set; }
|
||||
|
|
|
@ -410,7 +410,6 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate
|
|||
ReadingCalculateDto readingData = await _generalCalculateService.GetReadingCalculateDto(inDto.VisitTaskId);
|
||||
|
||||
var maxSuv = await GetSuvMax(readingData);
|
||||
|
||||
var rowInfo = readingData.QuestionInfo.SelectMany(x => x.TableRowInfoList).ToList();
|
||||
var tableQuestions = rowInfo.SelectMany(x => x.TableQuestionList).Where(x=>x.RowId==inDto.RowId).ToList();
|
||||
|
||||
|
@ -425,6 +424,36 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate
|
|||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取是否可选择不能融合影像
|
||||
/// </summary>
|
||||
/// <param name="inDto"></param>
|
||||
/// <returns></returns>
|
||||
[HttpPost]
|
||||
public async Task<GetCanChooseNotMergeOutDto> GetCanChooseNotMerge(GetCanChooseNotMergeInDto inDto)
|
||||
{
|
||||
ReadingCalculateDto readingData = await _generalCalculateService.GetReadingCalculateDto(inDto.VisitTaskId);
|
||||
|
||||
List<QuestionType?> questionTypes = new List<QuestionType?>() {
|
||||
QuestionType.LiverSUVmax,
|
||||
QuestionType.MediastinumSUVmax,
|
||||
QuestionType.SUVmax,
|
||||
QuestionType.SUVmaxLesion,
|
||||
};
|
||||
|
||||
var pet5ps = readingData.QuestionInfo.Where(x => x.QuestionType == QuestionType.PET5PS).Select(x => x.Answer).FirstOrDefault();
|
||||
|
||||
|
||||
GetCanChooseNotMergeOutDto getCanChooseNotMergeOutDto = new GetCanChooseNotMergeOutDto()
|
||||
{
|
||||
IsCanChooseNotMerge = !readingData.QuestionInfo.Any(x => questionTypes.Contains(x.QuestionType) && x.Answer != string.Empty)
|
||||
&& (pet5ps==string.Empty||pet5ps==PET5PSScore.NE.GetEnumInt())
|
||||
|
||||
|
||||
};
|
||||
return getCanChooseNotMergeOutDto;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 测试计算
|
||||
/// </summary>
|
||||
|
|
Loading…
Reference in New Issue