
            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 := '500801009175896' --Посещение или движение, на котором создан курс
              ,Lpu_id := '13100943'
              ,Server_id := 13101138
              ,PersonEvn_id := '500801004301095'
              ,EvnCourseTreat_setDT := '2022-03-14 00:00'
              ,EvnCourseTreat_disDT := NULL
              ,Morbus_id := NULL
              ,MedPersonal_id := '74263' --Врач, создавший курс
              ,LpuSection_id := '99560026209'
              ,CourseType_id := 1
              ,EvnCourseTreat_MinCountDay := 1
              ,EvnCourseTreat_MaxCountDay := 1
              ,EvnCourseTreat_ContReception := 90
              ,DurationType_recid := '1'
              ,EvnCourseTreat_Interval := NULL
              ,DurationType_intid := '1'
              ,EvnCourseTreat_Duration := 90
              ,EvnCourseTreat_PrescrCount := 90
              ,DurationType_id := '1'
              ,EvnCourseTreat_FactCount := NULL
              ,ResultDesease_id := NULL
              ,PerformanceType_id := '2'
              ,PrescriptionIntroType_id := '1'
              ,PrescriptionTreatType_id := 2
              ,PrescriptionTreatOrderType_id := NULL
              ,EvnCourseTreat_Comment := NULL
              ,EvnCourseTreat_Volume := NULL
              ,CUBICUNITS_id := NULL
              ,EvnCourseTreat_Time := NULL
              ,Okei_id := NULL
              ,pmUser_id := '351950296916'
              )
        
