
            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 := '140101022228095',
                pmUser_id := '366462377510',
                params :=  E'{"evnsection_pid":"140101022228087","evnsection_setdt":"2022-01-14 13:11:00","evnsection_disdt":"2022-01-24 15:00:00","evnsection_diddt":null,"evnsection_issigned":null,"evnsection_signdt":null,"pmuser_signid":null,"lpu_id":"140101000000008","personevn_id":"140101011441590","server_id":"140101000000008","morbus_id":"365856931849","evnstatus_id":null,"evnsection_statusdate":null,"evnsection_plandisdt":"2022-01-30","evnsection_isadultescort":"1","evnsection_ismedreason":"1","paytype_id":"140101000000001","paytypeersb_id":null,"lpusection_id":"140101000000937","medpersonal_id":"140101000003812","medstafffact_id":"140101000023049","lpusectionward_id":null,"diag_id":"5393","diag_eid":null,"diagsetphase_id":"2","diagsetphase_aid":"1","privilegetype_id":null,"evnsection_phasedescr":"I20.8 \\u0414\\u0440\\u0443\\u0433\\u0438\\u0435 \\u0444\\u043e\\u0440\\u043c\\u044b \\u0441\\u0442\\u0435\\u043d\\u043e\\u043a\\u0430\\u0440\\u0434\\u0438\\u0438. \\u0418\\u0411\\u0421. \\u041f\\u0418\\u041a\\u0421 \\u043d\\u0435\\u0438\\u0437\\u0432\\u0435\\u0441\\u0442\\u043d\\u043e\\u0439 \\u0434\\u0430\\u0432\\u043d\\u043e\\u0441\\u0442\\u0438. \\u041a\\u043e\\u0440\\u043e\\u043d\\u0430\\u0440\\u043e\\u0441\\u043a\\u043b\\u0435\\u0440\\u043e\\u0437. \\u0421\\u0442\\u0435\\u043d\\u043e\\u0437\\u044b \\u041f\\u041d\\u0410: \\u0432 \\u043f\\/\\u0437 \\u0434\\u043e 55%, \\u0432 \\u0434\\/\\u0437 \\u0434\\u043e 80%. \\u041a\\u0440\\u0438\\u0442\\u0438\\u0447\\u0435\\u0441\\u043a\\u0438\\u0439 \\u0441\\u0442\\u0435\\u043d\\u043e\\u0437 \\u0414\\u04122 \\u041f\\u041d\\u0410 \\u0432 \\u0441\\/\\u0437. \\u0421\\u0442\\u0435\\u043d\\u043e\\u0437\\u044b \\u041e\\u0410: \\u0432 \\u043f\\/\\u0437 \\u0434\\u043e 60%, \\u0432 \\u0441\\/\\u0437 \\u0434\\u043e 80%. \\u0421\\u0442\\u0435\\u043d\\u043e\\u0437\\u044b \\u041f\\u041a\\u0410: \\u0432 \\u043f\\/\\u0437 \\u0434\\u043e 85%, \\u0432 \\u0441\\/\\u0437 \\u0438 \\u0434\\/\\u0437 \\u0434\\u043e 50%. \\u041f\\u0440\\u0430\\u0432\\u043e\\u0432\\u0435\\u043d\\u0435\\u0447\\u043d\\u044b\\u0439 \\u0442\\u0438\\u043f. \\u041d\\u0420\\u0421. \\u041f\\u043e\\u0441\\u0442\\u043e\\u044f\\u043d\\u043d\\u0430\\u044f \\u0444\\u043e\\u0440\\u043c\\u0430 \\u0424\\u041f, \\u0431\\u0440\\u0430\\u0434\\u0438\\u0441\\u0438\\u0441\\u0442\\u043e\\u043b\\u0438\\u0447\\u0435\\u0441\\u043a\\u0438\\u0439 \\u0432\\u0430\\u0440\\u0438\\u0430\\u043d\\u0442. \\u0413\\u0438\\u043f\\u0435\\u0440\\u0442\\u043e\\u043d\\u0438\\u0447\\u0435\\u0441\\u043a\\u0430\\u044f \\u0431\\u043e\\u043b\\u0435\\u0437\\u043d\\u044c 3 \\u0441\\u0442, \\u0441\\u0442\\u0435\\u043f\\u0435\\u043d\\u044c \\u0410\\u0413 2, \\u0440\\u0438\\u0441\\u043a \\u0421\\u0421\\u041e 4.","evnsection_absence":null,"cureresult_id":null,"mes_id":null,"mes2_id":null,"mes_tid":"140101000187645","mes_sid":null,"mes_kid":null,"evnsection_coeffctp":"0","evnsection_insidenumcard":null,"mestariff_id":"140101000009159","mestariff_sid":"140101000009159","tariffclass_id":null,"leavetype_prmid":null,"leavetype_fedid":null,"resultdeseasetype_fedid":null,"uslugacomplex_id":null,"mesolduslugacomplex_id":"140101003976369","evnsection_totalfract":null,"lpusectionprofile_id":"140101000000012","lpusectionbedprofilelink_fedid":"140101000000080","evnsection_ismeal":null,"evnsection_isterm":null,"htmedicalcareclass_id":"58087","lpusectiontranstype_id":null,"leavetype_id":"140101000000002","medicalcarebudgtype_id":null,"evnsection_indexrep":"0","evnsection_indexrepinreg":null,"evnsection_iswillpaid":null,"evnsection_indexnum":null,"evnsection_ismanualidxnum":null,"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":"140101000000080","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}'
            )
        
