
			with myvars as (
				select dbo.tzgetdate() as curtime
			)
			select
				error_code as "Error_Code",
				error_message as "Error_Msg",
				EvnSection_id as "EvnSection_id"
			from dbo.p_EvnSection_upd(
				EvnSection_id := '120101124404525',
				pmUser_id := '389443908312',
				params :=  E'{"evnsection_pid":"120101124404523","evnsection_setdt":"2022-01-18 10:10:00","evnsection_disdt":"2022-01-22 08:06:00","evnsection_diddt":null,"evnsection_issigned":null,"evnsection_signdt":null,"pmuser_signid":null,"lpu_id":"2118010","personevn_id":"120101009617328","server_id":"0","morbus_id":"389443337457","evnstatus_id":null,"evnsection_statusdate":null,"evnsection_plandisdt":null,"evnsection_isadultescort":"1","evnsection_ismedreason":"1","paytype_id":"120101000000023","paytypeersb_id":null,"lpusection_id":"120101000004852","medpersonal_id":"120101000007488","medstafffact_id":"120101000119837","lpusectionward_id":"120101000000164","diag_id":"3641","diag_eid":null,"diagsetphase_id":"1","diagsetphase_aid":"1","privilegetype_id":null,"evnsection_phasedescr":"\\u041c\\u0438\\u043e\\u043c\\u0430 \\u043c\\u0430\\u0442\\u043a\\u0438 \\u0441 \\u0433\\u0435\\u043c\\u043e\\u0440\\u0440\\u0430\\u0433\\u0438\\u0447\\u0435\\u0441\\u043a\\u0438\\u043c \\u0441\\u0438\\u043d\\u0434\\u0440\\u043e\\u043c\\u043e\\u043c . \\u043e\\u0442\\u0441\\u0443\\u0442\\u0441\\u0442\\u0432\\u0438\\u0435 \\u044d\\u0444\\u0444\\u0435\\u043a\\u0442\\u0430 \\u043e\\u0442 \\u0433\\u043e\\u0440\\u043c\\u043e\\u043d\\u0430\\u043b\\u044c\\u043d\\u043e\\u0433\\u043e \\u0433\\u0435\\u043c\\u043e\\u0441\\u0442\\u0430\\u0437\\u0430 .","evnsection_absence":null,"cureresult_id":null,"mes_id":null,"mes2_id":null,"mes_tid":null,"mes_sid":null,"mes_kid":null,"evnsection_coeffctp":"0","evnsection_insidenumcard":null,"mestariff_id":null,"mestariff_sid":null,"tariffclass_id":null,"leavetype_prmid":null,"leavetype_fedid":null,"resultdeseasetype_fedid":null,"uslugacomplex_id":null,"mesolduslugacomplex_id":null,"evnsection_totalfract":null,"lpusectionprofile_id":"120101000000294","lpusectionbedprofilelink_fedid":"120101000000259","evnsection_ismeal":null,"evnsection_isterm":null,"htmedicalcareclass_id":null,"lpusectiontranstype_id":null,"leavetype_id":"120101000000817","medicalcarebudgtype_id":null,"evnsection_indexrep":"0","evnsection_indexrepinreg":null,"evnsection_iswillpaid":"2","evnsection_indexnum":"1","evnsection_ismanualidxnum":null,"deseasebegtimetype_id":null,"deseasetype_id":"3","rehabscale_id":null,"evnsection_sofascalepoints":null,"tumorstage_id":null,"evnsection_iszno":"1","evnsection_isznoremove":null,"evnsection_biopsydate":null,"diag_spid":null,"painintensity_id":null,"uslugacomplex_sid":null,"evnsection_ispriem":null,"evnsection_isrehab":"1","rankinscale_id":null,"rankinscale_sid":null,"evnsection_insultscale":null,"evnsection_nihssaftertlt":null,"evnsection_nihssleave":null,"lpusectionbedprofile_id":"120101000000195","evnsection_isst":null,"evnsection_ispartialpay":2,"evnsection_iscardshock":null,"evnsection_startpainhour":null,"evnsection_startpainmin":null,"evnsection_gracescalepoints":null,"evnsection_barthelidx":null,"rehabscale_vid":null,"evnsection_ismultiksg":null,"acstype_id":null}'
			)
		
