
            select
               EvnCourseTreat_id as "EvnCourseTreat_id",
               Error_Code as "Error_Code",
               Error_Message as "Error_Msg"
            from dbo.p_EvnCourseTreat_ins (
               EvnCourseTreat_id := NULL
              ,EvnCourseTreat_pid := '500801004369385' --Посещение или движение, на котором создан курс
              ,Lpu_id := '13100886'
              ,Server_id := 0
              ,PersonEvn_id := '80784265'
              ,EvnCourseTreat_setDT := '2022-01-02 00:00'
              ,EvnCourseTreat_disDT := NULL
              ,Morbus_id := NULL
              ,MedPersonal_id := '92450' --Врач, создавший курс
              ,LpuSection_id := '99560031313'
              ,CourseType_id := 1
              ,EvnCourseTreat_MinCountDay := 1
              ,EvnCourseTreat_MaxCountDay := 1
              ,EvnCourseTreat_ContReception := 220
              ,DurationType_recid := '1'
              ,EvnCourseTreat_Interval := NULL
              ,DurationType_intid := '1'
              ,EvnCourseTreat_Duration := 220
              ,EvnCourseTreat_PrescrCount := 220
              ,DurationType_id := '1'
              ,EvnCourseTreat_FactCount := NULL
              ,ResultDesease_id := NULL
              ,PerformanceType_id := '2'
              ,PrescriptionIntroType_id := '1'
              ,PrescriptionTimeType_id := NULL
              ,PrescriptionTreatType_id := 2
              ,PrescriptionTreatOrderType_id := '3'
              ,EvnCourseTreat_Comment := NULL
              ,EvnCourseTreat_Volume := NULL
              ,CUBICUNITS_id := NULL
              ,EvnCourseTreat_Time := NULL
              ,Okei_id := NULL
              ,pmUser_id := '394813234641'
              )
        
