
            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 := '450101232722382' --Посещение или движение, на котором создан курс
              ,Lpu_id := '1079121'
              ,Server_id := 0
              ,PersonEvn_id := '450101008102892'
              ,EvnCourseTreat_setDT := '2022-03-11 00:00'
              ,EvnCourseTreat_disDT := NULL
              ,Morbus_id := NULL
              ,MedPersonal_id := '450101000025545' --Врач, создавший курс
              ,LpuSection_id := '450101000005305'
              ,CourseType_id := 1
              ,EvnCourseTreat_MinCountDay := 1
              ,EvnCourseTreat_MaxCountDay := 1
              ,EvnCourseTreat_ContReception := 150
              ,DurationType_recid := '1'
              ,EvnCourseTreat_Interval := NULL
              ,DurationType_intid := '1'
              ,EvnCourseTreat_Duration := 150
              ,EvnCourseTreat_PrescrCount := 150
              ,DurationType_id := '1'
              ,EvnCourseTreat_FactCount := NULL
              ,ResultDesease_id := NULL
              ,PerformanceType_id := '1'
              ,PrescriptionIntroType_id := '1'
              ,PrescriptionTimeType_id := NULL
              ,PrescriptionTreatType_id := 2
              ,PrescriptionTreatOrderType_id := NULL
              ,EvnCourseTreat_Comment := NULL
              ,EvnCourseTreat_Volume := NULL
              ,CUBICUNITS_id := NULL
              ,EvnCourseTreat_Time := NULL
              ,Okei_id := NULL
              ,pmUser_id := '383570251363'
              )
        
