
            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_ins(
                EvnVizitPL_id := NULL,
                pmUser_id := '391524774829',
                evnvizitpl_pid := '890101022990729',
                evnvizitpl_setdt := '2022-03-23 16:15:35',
                evnvizitpl_disdt := NULL,
                evnvizitpl_diddt := NULL,
                evnvizitpl_issigned := NULL,
                evnvizitpl_signdt := NULL,
                pmuser_signid := NULL,
                lpu_id := '13101872',
                personevn_id := '890101009067020',
                server_id := '0',
                morbus_id := NULL,
                evnstatus_id := NULL,
                evnvizitpl_statusdate := NULL,
                medstafffact_id := '890101000008475',
                lpusection_id := '890101000001255',
                medpersonal_id := '890101000004034',
                paytype_id := '299',
                evndirection_id := NULL,
                timetablegraf_id := '890101004661159',
                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 := '20000820',
                treatmentclass_id := NULL,
                vizitpldouble_id := NULL,
                evnvizitpl_isotherdouble := NULL,
                servicetype_id := NULL,
                vizittype_id := '446',
                vizitclass_id := 2,
                profgoal_id := NULL,
                diag_id := NULL,
                diagsetphase_id := NULL,
                deseasetype_id := NULL,
                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
            )
        
