| 
					
					
						
							
						
					
					
				 | 
				@ -331,5 +331,33 @@ namespace Shentun.Peis.ImportPacsResults | 
			
		
		
	
		
			
				 | 
				 | 
				
 | 
				 | 
				 | 
				
 | 
			
		
		
	
		
			
				 | 
				 | 
				            } | 
				 | 
				 | 
				            } | 
			
		
		
	
		
			
				 | 
				 | 
				        } | 
				 | 
				 | 
				        } | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				
 | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				        /// <summary>
 | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				        /// 导入心电图
 | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				        /// </summary>
 | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				        /// <param name="input"></param>
 | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				        /// <returns></returns>
 | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				        [HttpPost("api/app/ImportElectrocardiogramResult/ImportElectrocardiogramResultByPatientRegisterId")] | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				        public async Task ImportElectrocardiogramResultByPatientRegisterIdAsync(PatientRegisterIdInputDto input) | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				        { | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				            var patientRegister = await _patientRegisterRepository.GetAsync(input.PatientRegisterId); | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				            var thirdInterfaces = await _thirdInterfaceRepository.GetListAsync(o => | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				            o.ThirdInterfaceType == ThirdInterfaceTypeFlag.Electrocardiogram | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				            && o.MedicalCenterId == patientRegister.MedicalCenterId | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				            && o.IsActive == 'Y'); | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				            foreach (var thirdInterface in thirdInterfaces) | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				            { | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				                var parmValue = thirdInterface.ParmValue; | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				                var configurationBuilder = new ConfigurationBuilder() | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				                   .AddJsonStream(new MemoryStream(System.Text.Encoding.UTF8.GetBytes(parmValue))); | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				                var config = configurationBuilder.Build(); | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				                var assemblyName = config.GetSection("Interface").GetSection("AssemblyName").Value; | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				                var className = config.GetSection("Interface").GetSection("ClassName").Value; | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				                object[] objects = new object[] { input.PatientRegisterId }; | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				                var pluginsOut = await Utilities.ReflectionHelper.InvokeAsync<ImportPacsResultPlugInsOut>(assemblyName, | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				                    className, [thirdInterface.Id], "ImportResultByPatientRegisterIdAsync", objects); | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				
 | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				            } | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				        } | 
			
		
		
	
		
			
				 | 
				 | 
				    } | 
				 | 
				 | 
				    } | 
			
		
		
	
		
			
				 | 
				 | 
				} | 
				 | 
				 | 
				} |