
            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 := '392536760180',
                evnvizitpl_pid := '120101124739253',
                evnvizitpl_setdt := '2022-02-01 13:00:19',
                evnvizitpl_disdt := NULL,
                evnvizitpl_diddt := NULL,
                evnvizitpl_issigned := NULL,
                evnvizitpl_signdt := NULL,
                pmuser_signid := NULL,
                lpu_id := '3311009',
                personevn_id := '120101009578291',
                server_id := '0',
                morbus_id := NULL,
                evnstatus_id := NULL,
                evnvizitpl_statusdate := NULL,
                medstafffact_id := '120101000129069',
                lpusection_id := '120101000010621',
                medpersonal_id := '120101000009937',
                paytype_id := '120101000000023',
                evndirection_id := '120101125331132',
                timetablegraf_id := '120101003238547',
                mes_id := '120101000002066',
                medpersonal_sid := NULL,
                evnvizitpl_uet := '0',
                evnvizitpl_uetoms := '0',
                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 := '120101000000292',
                treatmentclass_id := '1',
                vizitpldouble_id := NULL,
                evnvizitpl_isotherdouble := NULL,
                servicetype_id := '1',
                vizittype_id := '120101000000036',
                vizitclass_id := '2',
                profgoal_id := NULL,
                diag_id := '3952',
                diagsetphase_id := '1',
                deseasetype_id := '2',
                tumorstage_id := NULL,
                diag_agid := NULL,
                evnvizitpl_time := NULL,
                uslugacomplex_id := NULL,
                lpudispcontract_id := NULL,
                rankinscale_id := NULL,
                medicalcarekind_id := '6',
                evnvizitpl_iszno := NULL,
                evnvizitpl_isznoremove := NULL,
                evnvizitpl_biopsydate := NULL,
                painintensity_id := NULL,
                diag_spid := NULL,
                evnvizitpl_numgroup := NULL,
                evnvizitpl_isprimaryvizitannual := NULL,
                rehabscale_id := NULL
            )
        
