
            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 := '140101000615004' --Посещение или движение, на котором создан курс
			  ,Lpu_id := '140101000000021'
			  ,Server_id := 140101000000021
			  ,PersonEvn_id := '140101010407987'
			  ,EvnCourseTreat_setDT := '2021-12-07 00:00'
			  ,EvnCourseTreat_disDT := NULL
			  ,Morbus_id := NULL
			  ,MedPersonal_id := '140101000008641' --Врач, создавший курс
			  ,LpuSection_id := '140101000000506'
			  ,CourseType_id := 1
			  ,EvnCourseTreat_MinCountDay := 1
			  ,EvnCourseTreat_MaxCountDay := 1
			  ,EvnCourseTreat_ContReception := 48
			  ,DurationType_recid := '1'
			  ,EvnCourseTreat_Interval := NULL
			  ,DurationType_intid := '1'
			  ,EvnCourseTreat_Duration := 48
			  ,EvnCourseTreat_PrescrCount := 48
			  ,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 := '388853525649'
			  )
		
