IF EXISTS ( SELECT  * FROM    dbo.sysobjects WHERE   id = OBJECT_ID(N'[dbo].[AddIHIOPrescription]')  AND OBJECTPROPERTY(id, N'IsProcedure') = 1 )
    DROP PROCEDURE [dbo].[AddIHIOPrescription]

IF EXISTS ( SELECT  * FROM    dbo.sysobjects WHERE   id = OBJECT_ID(N'[dbo].[Sodor_Factor_Drug]')  AND OBJECTPROPERTY(id, N'IsProcedure') = 1 )
    DROP PROCEDURE [dbo].[Sodor_Factor_Drug]

IF EXISTS ( SELECT  * FROM  dbo.sysobjects WHERE   id = OBJECT_ID(N'[dbo].[Sp_HIXPrescription]')  AND OBJECTPROPERTY(id, N'IsProcedure') = 1 )
    DROP PROCEDURE [dbo].[Sp_HIXPrescription]

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[DrugsStagnant]') and xtype in (N'FN', N'IF', N'TF'))
drop function [dbo].[DrugsStagnant]


IF EXISTS ( SELECT  * FROM    dbo.sysobjects WHERE   id = OBJECT_ID(N'[dbo].[Cash_SaveMultilplePrescription]')  AND OBJECTPROPERTY(id, N'IsProcedure') = 1 )
    DROP PROCEDURE [dbo].[Cash_SaveMultilplePrescription]


