
			with myvars as (
				select dbo.tzgetdate() as curtime
			)
			select
				error_code as "Error_Code",
				error_message as "Error_Msg",
				EvnVizitPL_id as "EvnVizitPL_id"
			from dbo.p_EvnVizitPL_upd(
				EvnVizitPL_id := '70101203869234',
				pmUser_id := '374502380513',
				evnvizitpl_pid := '70101203869230',
				evnvizitpl_setdt := '2021-12-18 10:14:00',
				evnvizitpl_disdt := NULL,
				evnvizitpl_diddt := NULL,
				evnvizitpl_issigned := NULL,
				evnvizitpl_signdt := NULL,
				pmuser_signid := NULL,
				lpu_id := '864911',
				personevn_id := '70101011881089',
				server_id := '39',
				morbus_id := '374506018484',
				evnstatus_id := NULL,
				evnvizitpl_statusdate := NULL,
				medstafffact_id := '70101000067088',
				lpusection_id := '70101000014995',
				medpersonal_id := '70101000001410',
				paytype_id := '70101000000011',
				evndirection_id := NULL,
				timetablegraf_id := '70101002798264',
				mes_id := NULL,
				medpersonal_sid := NULL,
				evnvizitpl_uet := NULL,
				evnvizitpl_uetoms := NULL,
				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 := '20001612',
				treatmentclass_id := '11',
				vizitpldouble_id := NULL,
				evnvizitpl_isotherdouble := NULL,
				servicetype_id := '1',
				vizittype_id := '70101000000029',
				vizitclass_id := '1',
				profgoal_id := NULL,
				diag_id := '10880',
				diagsetphase_id := '1',
				deseasetype_id := NULL,
				tumorstage_id := NULL,
				diag_agid := NULL,
				evnvizitpl_time := NULL,
				uslugacomplex_id := NULL,
				lpudispcontract_id := NULL,
				rankinscale_id := NULL,
				medicalcarekind_id := '6',
				evnvizitpl_iszno := '1',
				evnvizitpl_isznoremove := NULL,
				evnvizitpl_biopsydate := NULL,
				painintensity_id := NULL,
				diag_spid := NULL,
				evnvizitpl_numgroup := NULL,
				evnvizitpl_isprimaryvizitannual := NULL,
				rehabscale_id := NULL
			)
		
