
            with myvars as (
                select
                    dbo.tzgetdate() as curtime,
                    MedService_id
                from
                    v_EvnLabSample
                where
                    EvnLabSample_id = '890101023213535'
                limit 1
            )

            select
                evnlabsample_id as "EvnLabSample_id",
                error_code as "Error_Code",
                error_message as "Error_Msg",
                to_char ((select curtime from myvars), 'YYYY-MM-DD HH24:MI:SS') as "EvnLabSample_setDTForBD",
            	to_char((select curtime from myvars), 'HH24:MI dd.mm.yyyy') as "EvnLabSample_setDT"
            from dbo.p_EvnLabSample_upd(
                evnlabsample_id := '890101023213535',
                evnlabrequest_id := '890101023213534',
                refsample_id := '890101000004050',
                lpu_id := '13101851',
                server_id := '13101851',
                personevn_id := '890101012002988',
                evnlabsample_num := '208301051090',
                evnlabsample_barcode := '208301051090',
                medservice_id := (select MedService_id from myvars),
                medservice_did := '890101000001105',
                evnlabsample_setdt := (select curtime from myvars),
                evnlabsample_delivdt := (select curtime from myvars),
                lpu_did := '13101851',
                analyzer_id := '890101000000174',
                lpusection_did := '890101000001471',
                medpersonal_did := NULL,
                medpersonal_sdid := '890101000006106',
                pmuser_id := '389438053146',
                evnlabsample_comment := NULL,
                evnlabsample_studydt := NULL,
                evnlabsample_analyzerdate := NULL
            )
        
