@ -6,6 +6,7 @@ using NPOI.SS.Formula.Functions; 
			
		 
		
	
		
			
				 
				 
				using  Shentun.Peis.Enums ;  
				 
				 
				using  Shentun.Peis.Enums ;  
			
		 
		
	
		
			
				 
				 
				using  Shentun.Peis.Models ;  
				 
				 
				using  Shentun.Peis.Models ;  
			
		 
		
	
		
			
				 
				 
				using  Shentun.Peis.PatientRegisters ;  
				 
				 
				using  Shentun.Peis.PatientRegisters ;  
			
		 
		
	
		
			
				 
				 
				 
				 
				 
				using  Shentun.Peis.Patients ;  
			
		 
		
	
		
			
				 
				 
				using  Shentun.Peis.Permissions ;  
				 
				 
				using  Shentun.Peis.Permissions ;  
			
		 
		
	
		
			
				 
				 
				using  SqlSugar ;  
				 
				 
				using  SqlSugar ;  
			
		 
		
	
		
			
				 
				 
				using  System ;  
				 
				 
				using  System ;  
			
		 
		
	
	
		
			
				
					
						
							 
						 
					
					
						
							 
						 
					
					
				 
				@ -82,6 +83,29 @@ namespace Shentun.Peis.ThirdPartyPublicInterfaces 
			
		 
		
	
		
			
				 
				 
				            _columnReferenceInterfaceRepository  =  columnReferenceInterfaceRepository ;  
				 
				 
				            _columnReferenceInterfaceRepository  =  columnReferenceInterfaceRepository ;  
			
		 
		
	
		
			
				 
				 
				        }  
				 
				 
				        }  
			
		 
		
	
		
			
				 
				 
				
 
				 
				 
				
 
			
		 
		
	
		
			
				 
				 
				 
				 
				 
				        /// <summary>
  
			
		 
		
	
		
			
				 
				 
				 
				 
				 
				        /// 根据身份证获取体检记录
  
			
		 
		
	
		
			
				 
				 
				 
				 
				 
				        /// </summary>
  
			
		 
		
	
		
			
				 
				 
				 
				 
				 
				        /// <param name="input"></param>
  
			
		 
		
	
		
			
				 
				 
				 
				 
				 
				        /// <returns></returns>
  
			
		 
		
	
		
			
				 
				 
				 
				 
				 
				        [Authorize(PeisPermissions.Third.Default)]  
			
		 
		
	
		
			
				 
				 
				 
				 
				 
				        [HttpPost("api/Third/ThirdPartyPublicInterface/GetPatientRegisterListByIdNo")]  
			
		 
		
	
		
			
				 
				 
				 
				 
				 
				        public  async  Task < List < GetPatientRegisterListByIdNoDto > >  GetPatientRegisterListByIdNoAsync ( IdNoInputDto  input )  
			
		 
		
	
		
			
				 
				 
				 
				 
				 
				        {  
			
		 
		
	
		
			
				 
				 
				 
				 
				 
				            var  entListDto  =  ( from  patientRegister  in  await  _patientRegisterRepository . GetQueryableAsync ( )  
			
		 
		
	
		
			
				 
				 
				 
				 
				 
				                              join  patient  in  await  _patientRepository . GetQueryableAsync ( )  on  patientRegister . PatientId  equals  patient . Id  
			
		 
		
	
		
			
				 
				 
				 
				 
				 
				                              where  patient . IdNo  = =  input . IdNo  
			
		 
		
	
		
			
				 
				 
				 
				 
				 
				                              orderby  patientRegister . MedicalStartDate  descending  
			
		 
		
	
		
			
				 
				 
				 
				 
				 
				                              select  new  GetPatientRegisterListByIdNoDto  
			
		 
		
	
		
			
				 
				 
				 
				 
				 
				                              {  
			
		 
		
	
		
			
				 
				 
				 
				 
				 
				                                  MedicalStartDate  =  DataHelper . ConversionDateShortToString ( patientRegister . MedicalStartDate ) ,  
			
		 
		
	
		
			
				 
				 
				 
				 
				 
				                                  PatientName  =  patientRegister . PatientName ,  
			
		 
		
	
		
			
				 
				 
				 
				 
				 
				                                  PatientRegisterNo  =  patientRegister . PatientRegisterNo  
			
		 
		
	
		
			
				 
				 
				 
				 
				 
				                              } ) . ToList ( ) ;  
			
		 
		
	
		
			
				 
				 
				 
				 
				 
				
 
			
		 
		
	
		
			
				 
				 
				 
				 
				 
				            return  entListDto ;  
			
		 
		
	
		
			
				 
				 
				 
				 
				 
				        }  
			
		 
		
	
		
			
				 
				 
				 
				 
				 
				
 
			
		 
		
	
		
			
				 
				 
				
 
				 
				 
				
 
			
		 
		
	
		
			
				 
				 
				        /// <summary>
  
				 
				 
				        /// <summary>
  
			
		 
		
	
		
			
				 
				 
				        /// 查询体检人员基本信息
  
				 
				 
				        /// 查询体检人员基本信息
  
			
		 
		
	
	
		
			
				
					
						
							 
						 
					
					
						
							 
						 
					
					
				 
				@ -276,6 +300,9 @@ namespace Shentun.Peis.ThirdPartyPublicInterfaces 
			
		 
		
	
		
			
				 
				 
				        }  
				 
				 
				        }  
			
		 
		
	
		
			
				 
				 
				
 
				 
				 
				
 
			
		 
		
	
		
			
				 
				 
				
 
				 
				 
				
 
			
		 
		
	
		
			
				 
				 
				 
				 
				 
				
 
			
		 
		
	
		
			
				 
				 
				 
				 
				 
				
 
			
		 
		
	
		
			
				 
				 
				 
				 
				 
				
 
			
		 
		
	
		
			
				 
				 
				        ///// <summary>
  
				 
				 
				        ///// <summary>
  
			
		 
		
	
		
			
				 
				 
				        ///// 查询体检明细项目信息
  
				 
				 
				        ///// 查询体检明细项目信息
  
			
		 
		
	
		
			
				 
				 
				        ///// </summary>
  
				 
				 
				        ///// </summary>