| 
					
					
						
							
						
					
					
				 | 
				@ -444,20 +444,26 @@ namespace Shentun.Peis.RegisterCheckItems | 
			
		
		
	
		
			
				 | 
				 | 
				                } | 
				 | 
				 | 
				                } | 
			
		
		
	
		
			
				 | 
				 | 
				                else | 
				 | 
				 | 
				                else | 
			
		
		
	
		
			
				 | 
				 | 
				                { | 
				 | 
				 | 
				                { | 
			
		
		
	
		
			
				 | 
				 | 
				                    var registerCheckItemCount = await _registerCheckItemRepository.CountAsync(c => c.RegisterCheckId == input.RegisterCheckId && (c.IsFollowUp == 'Y' || c.IsCriticalValue == 'Y')); | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				                    if (registerCheckItemCount == 0) | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				                    { | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				                        //更新registerCheck
 | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				                        registerCheckEnt.IsCriticalValue = registerCheckItemEnt.IsCriticalValue; | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				                        registerCheckEnt.IsFollowUp= registerCheckItemEnt.IsFollowUp; | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				                        await _registerCheckRepository.UpdateAsync(registerCheckEnt); | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				
 | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				                    //删除随访表记录  
 | 
				 | 
				 | 
				                    //删除随访表记录  
 | 
			
		
		
	
		
			
				 | 
				 | 
				                    await _followUpAppService.DeleteByPatientRegisterId(new PatientRegisterIdInputDto | 
				 | 
				 | 
				                    await _followUpAppService.DeleteByPatientRegisterId(new PatientRegisterIdInputDto | 
			
		
		
	
		
			
				 | 
				 | 
				                    { | 
				 | 
				 | 
				                    { | 
			
		
		
	
		
			
				 | 
				 | 
				                        PatientRegisterId = registerCheckEnt.PatientRegisterId | 
				 | 
				 | 
				                        PatientRegisterId = registerCheckEnt.PatientRegisterId | 
			
		
		
	
		
			
				 | 
				 | 
				                    }); | 
				 | 
				 | 
				                    }); | 
			
		
		
	
		
			
				 | 
				 | 
				                    } | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				
 | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				                    //var registerCheckItemCount = await _registerCheckItemRepository.CountAsync(c => c.RegisterCheckId == input.RegisterCheckId && (c.IsFollowUp == 'Y' || c.IsCriticalValue == 'Y'));
 | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				                    //if (registerCheckItemCount == 0)
 | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				                    //{
 | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				                    //    //更新registerCheck
 | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				                    //    registerCheckEnt.IsCriticalValue = registerCheckItemEnt.IsCriticalValue;
 | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				                    //    registerCheckEnt.IsFollowUp= registerCheckItemEnt.IsFollowUp;
 | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				                    //    await _registerCheckRepository.UpdateAsync(registerCheckEnt);
 | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				
 | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				                    //    //删除随访表记录  
 | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				                    //    await _followUpAppService.DeleteByPatientRegisterId(new PatientRegisterIdInputDto
 | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				                    //    {
 | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				                    //        PatientRegisterId = registerCheckEnt.PatientRegisterId
 | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				                    //    });
 | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				                    //}
 | 
			
		
		
	
		
			
				 | 
				 | 
				                } | 
				 | 
				 | 
				                } | 
			
		
		
	
		
			
				 | 
				 | 
				
 | 
				 | 
				 | 
				
 | 
			
		
		
	
		
			
				 | 
				 | 
				            } | 
				 | 
				 | 
				            } | 
			
		
		
	
	
		
			
				| 
					
						
							
						
					
					
					
				 | 
				
  |