
			select
				eup.*
			from lis.v_AnalyzerTest at
				inner join lis.v_Analyzer a on at.Analyzer_id = a.Analyzer_id
				inner join v_UslugaComplexMedService ucms on at.UslugaComplexMedService_id = ucms.UslugaComplexMedService_id
				inner join v_EvnLabRequest elr on a.MedService_id = elr.MedService_id
				inner join lateral (
					select
				    	count(distinct eup.EvnUslugaPar_id) as cnt
					from v_EvnLabRequestUslugaComplex elruc
						inner join v_EvnUslugaPar eup on eup.EvnUslugaPar_id = elruc.EvnUslugaPar_id
					where elruc.EvnLabRequest_id = elr.EvnLabRequest_id
						and eup.UslugaComplex_id = ucms.UslugaComplex_id
				) eup on true
			where (1=1)
				and at.AnalyzerTest_id = 890101000019812
				and cnt > 0
			limit 1
		
