
			with myvars as (
				select dbo.tzgetdate() as curtime
			)
			select
				error_code as "Error_Code",
				error_message as "Error_Msg",
				EvnPLStom_id as "EvnPLStom_id"
			from dbo.p_EvnPLStom_upd(
				EvnPLStom_id := '120101124684949',
				pmUser_id := '392536785704',
				evnplstom_setdt := '2022-01-21 07:11:00',
				evnplstom_disdt := '2022-01-21 07:11:00',
				evnplstom_diddt := NULL,
				evnplstom_issigned := NULL,
				evnplstom_signdt := NULL,
				pmuser_signid := NULL,
				lpu_id := '3311076',
				personevn_id := '120101000490575',
				server_id := '0',
				morbus_id := NULL,
				evnstatus_id := NULL,
				evnplstom_statusdate := NULL,
				evnplstom_isfinish := '2',
				evnplstom_issurveyrefuse := NULL,
				prehospdirect_id := NULL,
				prehosptrauma_id := NULL,
				evnplstom_isunlaw := NULL,
				evnplstom_isunport := NULL,
				evnplstom_isfirsttime := NULL,
				evnplstom_ukl := 1,
				evnplstom_isfirstdisable := NULL,
				privilegetype_id := NULL,
				evndirection_id := NULL,
				evndirection_setdt := NULL,
				evndirection_num := NULL,
				lpusection_did := NULL,
				medstafffact_did := NULL,
				org_did := NULL,
				lpu_did := NULL,
				diag_did := NULL,
				diag_preid := NULL,
				diag_fid := NULL,
				evnplstom_numcard := '5150',
				evnplstom_iscons := '1',
				medicalcarebudgtype_id := NULL,
				resultclass_id := '120101000000121',
				interruptleavetype_id := NULL,
				diag_concid := NULL,
				diag_lid := '5964',
				directtype_id := NULL,
				directclass_id := NULL,
				lpu_oid := NULL,
				lpusection_oid := NULL,
				resultdeseasetype_id := '120101000000057',
				evnplstom_complexity := NULL,
				medicalcarekind_id := NULL,
				cmpcallcard_id := NULL,
				leavetype_fedid := NULL,
				resultdeseasetype_fedid := NULL,
				evnplstom_indexrep := NULL,
				evnplstom_indexrepinreg := NULL,
				evnplstom_medpersonalcode := NULL,
				evnplstom_issan := '1',
				sanationstatus_id := NULL
			)
		
