
            with myvars as (
                select dbo.tzgetdate() as curtime
            )
            select
                error_code as "Error_Code",
                error_message as "Error_Msg",
                EvnPL_id as "EvnPL_id"
            from dbo.p_EvnPL_upd(
                EvnPL_id := '890101022920417',
                pmUser_id := '371821443484',
                evnpl_setdt := '2022-03-23 11:56:00',
                evnpl_disdt := '2022-03-23 11:56:00',
                evnpl_diddt := NULL,
                evnpl_issigned := NULL,
                evnpl_signdt := NULL,
                pmuser_signid := NULL,
                lpu_id := '13101875',
                personevn_id := '890101011665799',
                server_id := '13101875',
                morbus_id := NULL,
                evnstatus_id := NULL,
                evnpl_statusdate := NULL,
                evnpl_isfinish := '2',
                evnpl_issurveyrefuse := NULL,
                prehospdirect_id := NULL,
                prehosptrauma_id := NULL,
                evnpl_isunlaw := NULL,
                evnpl_isunport := NULL,
                evnpl_isfirsttime := NULL,
                evnpl_ukl := 1,
                evnpl_isfirstdisable := NULL,
                privilegetype_id := NULL,
                evndirection_id := NULL,
                evndirection_setdt := NULL,
                evndirection_num := NULL,
                lpusection_did := NULL,
                medstafffact_did := '590101000000555',
                org_did := NULL,
                lpu_did := NULL,
                diag_did := NULL,
                diag_preid := NULL,
                diag_fid := NULL,
                evnpl_numcard := '189906',
                evnpl_iscons := '1',
                medicalcarebudgtype_id := NULL,
                resultclass_id := '325',
                interruptleavetype_id := NULL,
                diag_concid := NULL,
                diag_lid := '11164',
                directtype_id := NULL,
                directclass_id := NULL,
                lpu_oid := NULL,
                lpusection_oid := NULL,
                resultdeseasetype_id := '142',
                evnpl_complexity := NULL,
                medicalcarekind_id := NULL,
                cmpcallcard_id := NULL,
                leavetype_fedid := NULL,
                resultdeseasetype_fedid := NULL,
                evnpl_indexrep := NULL,
                evnpl_indexrepinreg := NULL,
                evnpl_medpersonalcode := NULL
            )
        
