
            with myvars as (
                select dbo.tzgetdate() as curtime
            )
            select
                error_code as "Error_Code",
                error_message as "Error_Msg",
                EvnVizitPLStom_id as "EvnVizitPLStom_id"
            from dbo.p_EvnVizitPLStom_upd(
                EvnVizitPLStom_id := '890101016478904',
                pmUser_id := '374869098297',
                evnvizitplstom_pid := '890101016478903',
                evnvizitplstom_setdt := '2022-02-01 09:21:00',
                evnvizitplstom_disdt := NULL,
                evnvizitplstom_diddt := NULL,
                evnvizitplstom_issigned := NULL,
                evnvizitplstom_signdt := NULL,
                pmuser_signid := NULL,
                lpu_id := '13101857',
                personevn_id := '890101011174839',
                server_id := '13101857',
                morbus_id := NULL,
                evnstatus_id := NULL,
                evnvizitplstom_statusdate := NULL,
                medstafffact_id := '890101000017219',
                lpusection_id := '890101000001031',
                medpersonal_id := '890101000010224',
                paytype_id := '299',
                evndirection_id := '890101016230735',
                timetablegraf_id := '890101003395494',
                mes_id := NULL,
                medpersonal_sid := NULL,
                evnvizitplstom_uet := NULL,
                evnvizitplstom_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 := '20000905',
                treatmentclass_id := '1',
                vizitpldouble_id := NULL,
                evnvizitplstom_isotherdouble := NULL,
                servicetype_id := '1',
                vizittype_id := '446',
                vizitclass_id := '2',
                profgoal_id := NULL,
                diag_id := '5948',
                diagsetphase_id := NULL,
                deseasetype_id := '1',
                tumorstage_id := NULL,
                diag_agid := NULL,
                evnvizitplstom_time := NULL,
                uslugacomplex_id := NULL,
                lpudispcontract_id := NULL,
                rankinscale_id := NULL,
                medicalcarekind_id := '6',
                evnvizitplstom_isprimaryvizit := '1',
                evnvizitplstom_iszno := NULL,
                evnvizitplstom_isznoremove := NULL,
                evnvizitplstom_biopsydate := NULL,
                painintensity_id := NULL,
                diag_spid := NULL,
                evnvizitplstom_numgroup := NULL,
                rehabscale_id := NULL,
                tooth_id := NULL,
                evnvizitplstom_toothsurface := NULL,
                evnvizitplstom_indexrep := 0,
                evnvizitplstom_indexrepinreg := NULL,
                evnvizitplstom_isprimaryvizitannual := NULL
            )
        
