
            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 := '910101105236295',
                pmUser_id := '237563872497',
                params := '{"evnsection_pid":"910101105236291","evnsection_setdt":"2023-07-16 21:15:00","evnsection_disdt":null,"evnsection_diddt":null,"evnsection_issigned":null,"evnsection_signdt":null,"pmuser_signid":null,"lpu_id":"150467","personevn_id":"910101002984391","server_id":"13004186","morbus_id":null,"evnstatus_id":null,"evnsection_statusdate":null,"evnsection_plandisdt":"2023-07-19","evnsection_isadultescort":"1","evnsection_isrecoverypotential":null,"evnsection_ismedreason":"1","paytype_id":"171","paytypeersb_id":null,"lpusection_id":"11840","medpersonal_id":"6087","medstafffact_id":"112307","lpusectionward_id":null,"diag_id":"7947","diag_eid":null,"diagsetphase_id":"1","diagsetphase_aid":null,"privilegetype_id":null,"evnsection_phasedescr":null,"evnsection_absence":null,"cureresult_id":null,"mes_id":null,"mes2_id":null,"mes_tid":"1068394","mes_sid":null,"mes_kid":null,"evnsection_coeffctp":"0","evnsection_insidenumcard":null,"mestariff_id":"994517","mestariff_sid":null,"tariffclass_id":null,"leavetype_prmid":null,"leavetype_fedid":null,"resultdeseasetype_fedid":null,"uslugacomplex_id":null,"mesolduslugacomplex_id":"910101000002322","evnsection_totalfract":null,"lpusectionprofile_id":"402061","lpusectionbedprofilelink_fedid":"1443","evnsection_ismeal":null,"evnsection_isterm":null,"htmedicalcareclass_id":null,"lpusectiontranstype_id":null,"leavetype_id":null,"medicalcarebudgtype_id":null,"evnsection_indexrep":"0","evnsection_indexrepinreg":null,"evnsection_iswillpaid":"2","evnsection_indexnum":"1","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":null,"evnsection_isrehab":"1","rankinscale_id":null,"rankinscale_sid":null,"evnsection_insultscale":null,"evnsection_nihssaftertlt":null,"evnsection_nihssleave":null,"lpusectionbedprofile_id":"2865","evnsection_isst":null,"evnsection_ispartialpay":"1","evnsection_iscardshock":null,"evnsection_startpainhour":null,"evnsection_startpainmin":null,"evnsection_gracescalepoints":null,"evnsection_barthelidx":null,"evnsection_barthelidxend":null,"rehabscale_vid":null,"evnsection_ismultiksg":null,"acstype_id":null}'
            )
        
