
            with myvars as (
                select localtimestamp 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 := '110101365679242',
                pmUser_id := '435594775921',
                evnpl_setdt := '2023-07-21 17:40:00',
                evnpl_disdt := '2023-07-21 17:40:00',
                evnpl_diddt := NULL,
                evnpl_issigned := NULL,
                evnpl_signdt := NULL,
                pmuser_signid := NULL,
                lpu_id := '5050',
                personevn_id := '110101001783463',
                server_id := '0',
                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 := '110101365679224',
                evndirection_setdt := NULL,
                evndirection_num := NULL,
                lpusection_did := NULL,
                medstafffact_did := NULL,
                org_did := NULL,
                lpu_did := NULL,
                diag_did := NULL,
                diag_preid := NULL,
                diag_fid := NULL,
                evnpl_numcard := '913758',
                evnpl_iscons := '1',
                medicalcarebudgtype_id := NULL,
                resultclass_id := '110101000000112',
                interruptleavetype_id := NULL,
                diag_concid := NULL,
                diag_lid := '10896',
                directtype_id := NULL,
                directclass_id := NULL,
                lpu_oid := NULL,
                lpusection_oid := NULL,
                resultdeseasetype_id := '110101000000089',
                evnpl_complexity := NULL,
                medicalcarekind_id := NULL,
                cmpcallcard_id := NULL,
                leavetype_fedid := NULL,
                resultdeseasetype_fedid := NULL,
                evnpl_indexrep := NULL,
                evnpl_indexrepinreg := NULL,
                evnpl_medpersonalcode := NULL
            )
        
