
            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 := '890101015308885' --Посещение или движение, на котором создан курс
              ,Lpu_id := '13101875'
              ,Server_id := 13101875
              ,PersonEvn_id := '890101010950704'
              ,EvnCourseTreat_setDT := '2022-01-24 00:00'
              ,EvnCourseTreat_disDT := NULL
              ,Morbus_id := NULL
              ,MedPersonal_id := '890101000009780' --Врач, создавший курс
              ,LpuSection_id := '890101000002214'
              ,CourseType_id := 1
              ,EvnCourseTreat_MinCountDay := 2
              ,EvnCourseTreat_MaxCountDay := 2
              ,EvnCourseTreat_ContReception := 8
              ,DurationType_recid := '1'
              ,EvnCourseTreat_Interval := NULL
              ,DurationType_intid := '1'
              ,EvnCourseTreat_Duration := 8
              ,EvnCourseTreat_PrescrCount := 16
              ,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 := '388749156881'
              )
        
