
            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 := '890101012772512',
                pmUser_id := '370869763386',
                params := '{"evnsection_pid":"890101012772502","evnsection_setdt":"2021-12-27 15:40:00","evnsection_disdt":"2021-12-29 13:00:00","evnsection_diddt":null,"evnsection_issigned":null,"evnsection_signdt":null,"pmuser_signid":null,"lpu_id":"13101853","personevn_id":"890101011742257","server_id":"13101853","morbus_id":"370869763386","evnstatus_id":null,"evnsection_statusdate":null,"evnsection_plandisdt":"2022-01-06","evnsection_isadultescort":"1","evnsection_ismedreason":"1","paytype_id":"299","paytypeersb_id":null,"lpusection_id":"890101000000388","medpersonal_id":"590101000001582","medstafffact_id":"890101000015339","lpusectionward_id":null,"diag_id":"4950","diag_eid":null,"diagsetphase_id":"2","diagsetphase_aid":"2","privilegetype_id":null,"evnsection_phasedescr":null,"evnsection_absence":null,"cureresult_id":null,"mes_id":null,"mes2_id":null,"mes_tid":"890101000000186","mes_sid":null,"mes_kid":null,"evnsection_coeffctp":"0","evnsection_insidenumcard":null,"mestariff_id":"890101000000273","mestariff_sid":"890101000000273","tariffclass_id":null,"leavetype_prmid":null,"leavetype_fedid":null,"resultdeseasetype_fedid":null,"uslugacomplex_id":null,"mesolduslugacomplex_id":"890101000408724","evnsection_totalfract":null,"lpusectionprofile_id":"20000807","lpusectionbedprofilelink_fedid":"3792","evnsection_ismeal":null,"evnsection_isterm":null,"htmedicalcareclass_id":null,"lpusectiontranstype_id":null,"leavetype_id":"1229","medicalcarebudgtype_id":null,"evnsection_indexrep":"0","evnsection_indexrepinreg":null,"evnsection_iswillpaid":"2","evnsection_indexnum":"1","evnsection_ismanualidxnum":"1","deseasebegtimetype_id":null,"deseasetype_id":"2","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":"4106","evnsection_isst":null,"evnsection_ispartialpay":"1","evnsection_iscardshock":null,"evnsection_startpainhour":null,"evnsection_startpainmin":null,"evnsection_gracescalepoints":null,"evnsection_barthelidx":null,"rehabscale_vid":null,"evnsection_ismultiksg":null,"acstype_id":null}'
            )
        
