| 
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -18,6 +18,7 @@ using System; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					using System.Collections.Generic; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					using System.Linq; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					using System.Text; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					using System.Text.Json; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					using System.Threading.Tasks; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					using Volo.Abp; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					using Volo.Abp.Application.Services; | 
				
			
			
		
	
	
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
				
				 | 
				
					@ -32,6 +33,7 @@ namespace Shentun.Peis.ImportLisResults | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    [Authorize] | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    public class ImportLisResultAppService : ApplicationService, IImportLisResultAppService | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        private readonly IRepository<ThirdInterface> _thirdInterfaceRepository; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        private readonly IRepository<RegisterCheckItem> _registerCheckItemRepository; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        private readonly IRepository<PatientRegister, Guid> _patientRegisterRepository; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        private readonly IRepository<ReferenceRange, Guid> _referenceRangeRepository; | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -83,7 +85,8 @@ namespace Shentun.Peis.ImportLisResults | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					             IRepository<Item, Guid> itemRepository, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					             ItemManager itemManager, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					             UnitManager unitManager, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					             RegisterCheckAppService registerCheckAppService) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					             RegisterCheckAppService registerCheckAppService, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					             IRepository<ThirdInterface> thirdInterfaceRepository) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            _registerCheckRepository = registerCheckRepository; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            _userRepository = userRepository; | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -110,7 +113,7 @@ namespace Shentun.Peis.ImportLisResults | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            _units = _unitRepository.GetListAsync().Result; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            _unitManager = unitManager; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            _registerCheckAppService = registerCheckAppService; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            _thirdInterfaceRepository = thirdInterfaceRepository; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        [HttpPost("api/app/ImportLisResult/ImportResult")] | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -273,6 +276,17 @@ namespace Shentun.Peis.ImportLisResults | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        public async Task ImportResultByPatientRegisterIdAsync(PatientRegisterIdInputDto input) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            var thirdInterfaces = await _thirdInterfaceRepository.GetListAsync(o =>  | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            o.ThirdInterfaceType == ThirdInterfaceTypeFlag.ImportLisResult  | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            && o.IsActive == 'Y'); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            foreach (var thirdInterface in thirdInterfaces) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                var parmValue = thirdInterface.ParmValue; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                JsonDocument doc = JsonDocument.Parse(parmValue); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                var assemblyName = doc.RootElement.GetProperty("Interface").GetProperty("AssemblyName").ToString(); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                var className = doc.RootElement.GetProperty("Interface").GetProperty("ClassName").ToString(); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					             | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
				
				 | 
				
					
  |