
			with myvars as (
				select dbo.tzgetdate() as curtime
			)
			select
				error_code as "Error_Code",
				error_message as "Error_Msg",
				EvnVizitPLStom_id as "EvnVizitPLStom_id"
			from dbo.p_EvnVizitPLStom_upd(
				EvnVizitPLStom_id := '120101123763035',
				pmUser_id := '390146933875',
				evnvizitplstom_pid := '120101123763034',
				evnvizitplstom_setdt := '2022-01-11 07:18:00',
				evnvizitplstom_disdt := NULL,
				evnvizitplstom_diddt := NULL,
				evnvizitplstom_issigned := NULL,
				evnvizitplstom_signdt := NULL,
				pmuser_signid := NULL,
				lpu_id := '2124026',
				personevn_id := '120101015365162',
				server_id := '0',
				morbus_id := '390146933875',
				evnstatus_id := NULL,
				evnvizitplstom_statusdate := NULL,
				medstafffact_id := '120101000122638',
				lpusection_id := '120101000004936',
				medpersonal_id := '120101000008192',
				paytype_id := '120101000000023',
				evndirection_id := NULL,
				timetablegraf_id := '120101002777847',
				mes_id := NULL,
				medpersonal_sid := NULL,
				evnvizitplstom_uet := '6.75',
				evnvizitplstom_uetoms := '6.75',
				healthkind_id := NULL,
				risklevel_id := NULL,
				wellnesscenteragegroups_id := NULL,
				homevisit_id := NULL,
				evnprescr_id := NULL,
				dispclass_id := NULL,
				dispprofgoaltype_id := NULL,
				evnpldisp_id := NULL,
				persondisp_id := NULL,
				lpusectionprofile_id := '120101000000259',
				treatmentclass_id := '1',
				vizitpldouble_id := NULL,
				evnvizitplstom_isotherdouble := NULL,
				servicetype_id := '1',
				vizittype_id := '120101000000036',
				vizitclass_id := '1',
				profgoal_id := NULL,
				diag_id := '5964',
				diagsetphase_id := NULL,
				deseasetype_id := '2',
				tumorstage_id := NULL,
				diag_agid := NULL,
				evnvizitplstom_time := NULL,
				uslugacomplex_id := NULL,
				lpudispcontract_id := NULL,
				rankinscale_id := NULL,
				medicalcarekind_id := '6',
				evnvizitplstom_isprimaryvizit := '2',
				evnvizitplstom_iszno := '1',
				evnvizitplstom_isznoremove := NULL,
				evnvizitplstom_biopsydate := NULL,
				painintensity_id := NULL,
				diag_spid := NULL,
				evnvizitplstom_numgroup := NULL,
				rehabscale_id := NULL,
				tooth_id := NULL,
				evnvizitplstom_toothsurface := NULL,
				evnvizitplstom_indexrep := NULL,
				evnvizitplstom_indexrepinreg := NULL,
				evnvizitplstom_isprimaryvizitannual := NULL
			)
		
