
            select 
            evnprescrlabdiag_id as "EvnPrescrLabDiag_id",
            error_code as "Error_Code",
            error_message as "Error_Msg"
        
            from dbo.p_evnprescrlabdiag_ins(
                evnprescrlabdiag_id := NULL,
                evnprescrlabdiag_pid := '400101226948473',
                lpu_id := '34494',
                server_id := 34494,
                personevn_id := '400101043560690',
                evnprescrlabdiag_setdt := '2023-07-30',
                evnprescrlabdiag_begrecomdate := NULL,
                evnprescrlabdiag_endrecomdate := NULL,
                prescriptiontype_id := 11,
                evnprescrlabdiag_iscito := 1,
                prescriptionstatustype_id := 1,
                evnprescrlabdiag_descr := NULL,
                dopdispinfoconsent_id := NULL,
                studytarget_id := '2',
                medservice_id := '400101000000369',
                UslugaComplexMedService_id := NULL,
                evnprescrlabdiag_countcomposit := 1,
                uslugacomplex_id := '201541',
                medservice_pzmid := NULL,
                PayType_id := NULL,
                pmuser_id := '380910570109'
            );
        
