验证代码修改
							parent
							
								
									84d8d33349
								
							
						
					
					
						commit
						4f37f2fa0a
					
				| 
						 | 
				
			
			@ -11,6 +11,7 @@ using Microsoft.Extensions.Caching.Memory;
 | 
			
		|||
using IRaCIS.Core.Infrastructure;
 | 
			
		||||
using MassTransit;
 | 
			
		||||
using System.Reflection.Metadata.Ecma335;
 | 
			
		||||
using System.Linq;
 | 
			
		||||
 | 
			
		||||
namespace IRaCIS.Core.Application.Service.ReadingCalculate
 | 
			
		||||
{
 | 
			
		||||
| 
						 | 
				
			
			@ -817,6 +818,25 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate
 | 
			
		|||
                errorMassage += _localizer["ReadingCalculate_NoMarkerEmpty", string.Join(',', stateIsNullList)] + ",";
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
            // 判断是否有pet
 | 
			
		||||
            if (await _readingTaskQuestionAnswerRepository.AnyAsync(x => x.ReadingQuestionTrial.QuestionType == QuestionType.ExistPET && x.VisitTaskId == inDto.VisitTaskId && x.Answer == ReadingYesOrNo.Yes.GetEnumInt()))
 | 
			
		||||
            {
 | 
			
		||||
                List<QuestionType?> required=new List<QuestionType?>() {
 | 
			
		||||
				QuestionType.LiverSUVmax,
 | 
			
		||||
			    QuestionType.MediastinumSUVmax,
 | 
			
		||||
			    QuestionType.SUVmax,
 | 
			
		||||
			    QuestionType.SUVmaxLesion,
 | 
			
		||||
				QuestionType.PET5PS,
 | 
			
		||||
				QuestionType.UptakeChange,
 | 
			
		||||
				QuestionType.EvidenceFocalFDG
 | 
			
		||||
				};
 | 
			
		||||
 | 
			
		||||
                if ((await _readingTaskQuestionAnswerRepository.CountAsync(x => required.Contains(x.ReadingQuestionTrial.QuestionType) && x.VisitTaskId == inDto.VisitTaskId && x.Answer != string.Empty)) != required.Count())
 | 
			
		||||
                {
 | 
			
		||||
					errorMassage += _localizer["ReadingCalculate_LuganoPetVerification"] + ",";
 | 
			
		||||
				}
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
            if (errorMassage != string.Empty)
 | 
			
		||||
            {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue