
            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 := '890101014153837',
                pmUser_id := '390657113322',
                params :=  E'{"evnsection_pid":"890101014137547","evnsection_setdt":"2022-01-14 10:48:00","evnsection_disdt":"2022-01-19 12:00:00","evnsection_diddt":null,"evnsection_issigned":null,"evnsection_signdt":null,"pmuser_signid":null,"lpu_id":"13101851","personevn_id":"890101011893229","server_id":"0","morbus_id":"389371889430","evnstatus_id":null,"evnsection_statusdate":null,"evnsection_plandisdt":"2022-02-09","evnsection_isadultescort":"2","evnsection_ismedreason":"1","paytype_id":"299","paytypeersb_id":null,"lpusection_id":"890101000001480","medpersonal_id":"890101000005692","medstafffact_id":"890101000010267","lpusectionward_id":null,"diag_id":"2783","diag_eid":null,"diagsetphase_id":"2","diagsetphase_aid":"1","privilegetype_id":null,"evnsection_phasedescr":"\\u0418\\u043d\\u0444\\u0435\\u043a\\u0446\\u0438\\u043e\\u043d\\u043d\\u044b\\u0439 \\u043c\\u043e\\u043d\\u043e\\u043d\\u0443\\u043a\\u043b\\u0435\\u043e\\u0437 ,\\u0432\\u044b\\u0437\\u0432\\u0430\\u043d\\u043d\\u044b\\u0439 \\u0412\\u042d\\u0411  (JgM)   \\u0442\\u0438\\u043f\\u0438\\u0447\\u043d\\u044b\\u0439,  \\u0441\\u0440\\u0435\\u0434\\u043d\\u0435\\u0439 \\u0441\\u0442\\u0435\\u043f\\u0435\\u043d\\u0438 \\u0442\\u044f\\u0436\\u0435\\u0441\\u0442\\u0438, \\u043e\\u0441\\u0442\\u0440\\u043e\\u0435  \\u0442\\u0435\\u0447\\u0435\\u043d\\u0438\\u0435. \\n\\u041e\\u0441\\u043b\\u043e\\u0436\\u043d\\u0435\\u043d\\u0438\\u0435 :   \\u0441\\u044b\\u043f\\u044c \\u043f\\u043e\\u0441\\u043b\\u0435 \\u0430\\u043d\\u0442\\u0438\\u0431\\u0430\\u043a\\u0442\\u0435\\u0440\\u0438\\u0430\\u043b\\u044c\\u043d\\u043e\\u0439 \\u0442\\u0435\\u0440\\u0430\\u043f\\u0438\\u0438  ( \\u0430\\u043c\\u043e\\u043a\\u0441\\u0438\\u043a\\u043b\\u0430\\u0432) .","evnsection_absence":null,"cureresult_id":null,"mes_id":null,"mes2_id":null,"mes_tid":"890101000000630","mes_sid":null,"mes_kid":null,"evnsection_coeffctp":"1.2","evnsection_insidenumcard":null,"mestariff_id":"890101000000630","mestariff_sid":"890101000000630","tariffclass_id":null,"leavetype_prmid":null,"leavetype_fedid":null,"resultdeseasetype_fedid":null,"uslugacomplex_id":null,"mesolduslugacomplex_id":"890101001272979","evnsection_totalfract":null,"lpusectionprofile_id":"20000820","lpusectionbedprofilelink_fedid":"3754","evnsection_ismeal":null,"evnsection_isterm":null,"htmedicalcareclass_id":null,"lpusectiontranstype_id":null,"leavetype_id":"1195","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":"4078","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}'
            )
        
