
            

            SELECT
                EvnDirection_id as "EvnDirection_id",
                NULL as "EvnDirection_TalonCode",
                error_code as "Error_Code",
                error_message as "Error_Msg"
            FROM dbo.p_EvnDirection_ins(
                EvnDirection_PreparationInfo := NULL,
                ConsultingForm_id := NULL,
                EvnDirection_id := NULL,
                EvnDirection_pid := NULL,
                Server_id := '1806021',
                PersonEvn_id := '400101043316471',
                EvnDirection_setDT := '2023-07-30',
                DirType_id := 16,
                MedicalCareFormType_id := NULL,
                StudyTarget_id := NULL,
                PayType_id := NULL,
                Diag_id := NULL,
                EvnDirection_Num := '8975231',
                EvnDirection_Descr := NULL,
                Lpu_did := '1806021', --куда направлен
                LpuSection_did := NULL,
                LpuSectionProfile_id := '20001730',
                Lpu_id := '1806021', -- кто направил
                LpuSection_id := NULL,
                LpuUnit_did := NULL,
                MedPersonal_id := NULL,
                MedStaffFact_id := NULL,
                MedPersonal_zid := NULL,
                MedPersonal_Code := NULL,
                MedService_id := NULL,
                EvnDirection_desDT := NULL,
                EvnDirection_IsAuto := NULL,
                EvnDirection_IsCito := NULL,
                EvnStatus_id := NULL,
                Post_id := NULL,
                Lpu_sid := '1806021',
                Org_sid := NULL,
                Org_oid := NULL,
                PrehospDirect_id := NULL,
                TimetableGraf_id := '400101018194345',
                TimetableStac_id := NULL,
                TimetableResource_id := NULL,
                TimetableMedService_id := NULL,
                EvnDirection_IsNeedOper := 1,
                EvnQueue_id := NULL,
                ARMType_id := NULL,
                EvnDirection_IsReceive := NULL,
                Resource_id := NULL,
                MedPersonal_did := NULL,
                RemoteConsultCause_id := NULL,
                MedSpec_fid := NULL,
                UslugaComplex_did := NULL,
                FSIDI_id := NULL,
                LpuUnitType_id := NULL,
                EvnDirection_TalonCode := NULL,
                RecMethodType_id := '17',
                ConsultationForm_id := NULL,
                FluoroReason_id := NULL,
                EvnDirection_IsAgreement := NULL,
                RequestConsult_id := NULL,
                RecordType_id := 7,
                
                    EvnDirection_rid := NULL,
                 LpuSectionBedProfile_id := NULL,  EvnDirection_IsBiopsy := NULL, 
                pmUser_id := '413923473913'
            )
        
