
            with myvars as (
                select localtimestamp 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 := '560101385124655',
                pmUser_id := '426956956034',
                params := '{"evnsection_pid":"560101385124654","evnsection_setdt":"2023-07-26 01:58:00","evnsection_disdt":"2023-07-26 02:00:00","evnsection_diddt":null,"evnsection_issigned":null,"evnsection_signdt":null,"pmuser_signid":null,"lpu_id":"4974794","personevn_id":"560101036904139","server_id":"4974794","morbus_id":null,"evnstatus_id":null,"evnsection_statusdate":null,"evnsection_plandisdt":null,"evnsection_isadultescort":null,"evnsection_isrecoverypotential":null,"evnsection_ismedreason":null,"paytype_id":"560101000000008","paytypeersb_id":null,"lpusection_id":"560101000010336","medpersonal_id":"560101000040450","medstafffact_id":"560101000536602","lpusectionward_id":null,"diag_id":"7516","diag_eid":null,"diagsetphase_id":null,"diagsetphase_aid":null,"privilegetype_id":null,"evnsection_phasedescr":null,"evnsection_absence":null,"cureresult_id":null,"mes_id":null,"mes2_id":null,"mes_tid":"560101000000235","mes_sid":null,"mes_kid":null,"evnsection_coeffctp":null,"evnsection_insidenumcard":null,"mestariff_id":"560101000000270","mestariff_sid":null,"tariffclass_id":null,"leavetype_prmid":null,"leavetype_fedid":null,"resultdeseasetype_fedid":null,"uslugacomplex_id":null,"mesolduslugacomplex_id":"560101002836853","evnsection_totalfract":null,"lpusectionprofile_id":null,"lpusectionbedprofilelink_fedid":null,"evnsection_ismeal":null,"evnsection_isterm":null,"htmedicalcareclass_id":null,"lpusectiontranstype_id":null,"leavetype_id":null,"medicalcarebudgtype_id":null,"evnsection_indexrep":null,"evnsection_indexrepinreg":null,"evnsection_iswillpaid":null,"evnsection_indexnum":null,"evnsection_ismanualidxnum":null,"deseasebegtimetype_id":null,"deseasetype_id":null,"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":"2","evnsection_isrehab":null,"rankinscale_id":null,"rankinscale_sid":null,"evnsection_insultscale":null,"evnsection_nihssaftertlt":null,"evnsection_nihssleave":null,"lpusectionbedprofile_id":null,"evnsection_isst":null,"evnsection_ispartialpay":null,"evnsection_iscardshock":null,"evnsection_startpainhour":null,"evnsection_startpainmin":null,"evnsection_gracescalepoints":null,"evnsection_barthelidx":null,"rehabscale_vid":null,"evnsection_ismultiksg":null,"acstype_id":null}'
            )
        
