
            with myvars as (
                select dbo.tzgetdate() as curtime
            )
            select
                error_code as "Error_Code",
                error_message as "Error_Msg",
                EvnVizitPL_id as "EvnVizitPL_id"
            from dbo.p_EvnVizitPL_upd(
                EvnVizitPL_id := '140101022870907',
                pmUser_id := '388508300639',
                evnvizitpl_pid := '140101022249715',
                evnvizitpl_setdt := '2022-01-21 10:23:00',
                evnvizitpl_disdt := NULL,
                evnvizitpl_diddt := NULL,
                evnvizitpl_issigned := NULL,
                evnvizitpl_signdt := NULL,
                pmuser_signid := NULL,
                lpu_id := '140101000000006',
                personevn_id := '140101011296418',
                server_id := '140101000000009',
                morbus_id := '402154782381',
                evnstatus_id := NULL,
                evnvizitpl_statusdate := NULL,
                medstafffact_id := '140101000013719',
                lpusection_id := '140101000003420',
                medpersonal_id := '140101000003367',
                paytype_id := '140101000000001',
                evndirection_id := '140101022870824',
                timetablegraf_id := '140101003273148',
                mes_id := NULL,
                medpersonal_sid := NULL,
                evnvizitpl_uet := NULL,
                evnvizitpl_uetoms := NULL,
                healthkind_id := NULL,
                risklevel_id := NULL,
                wellnesscenteragegroups_id := NULL,
                homevisit_id := NULL,
                evnprescr_id := NULL,
                dispclass_id := NULL,
                dispprofgoaltype_id := NULL,
                evnpldisp_id := NULL,
                persondisp_id := NULL,
                lpusectionprofile_id := '140101000000001',
                treatmentclass_id := '1',
                vizitpldouble_id := NULL,
                evnvizitpl_isotherdouble := NULL,
                servicetype_id := '1',
                vizittype_id := '140101000000013',
                vizitclass_id := '2',
                profgoal_id := NULL,
                diag_id := '5742',
                diagsetphase_id := '1',
                deseasetype_id := '3',
                tumorstage_id := NULL,
                diag_agid := NULL,
                evnvizitpl_time := NULL,
                uslugacomplex_id := NULL,
                lpudispcontract_id := NULL,
                rankinscale_id := NULL,
                medicalcarekind_id := '5',
                evnvizitpl_iszno := '1',
                evnvizitpl_isznoremove := NULL,
                evnvizitpl_biopsydate := NULL,
                painintensity_id := NULL,
                diag_spid := NULL,
                evnvizitpl_numgroup := NULL,
                evnvizitpl_isprimaryvizitannual := NULL,
                rehabscale_id := NULL
            )
        
