if exists(select * from sys.indexes i where i.[object_id] = object_id('PHARM.T_BILL_OF_GOODS', 'U') and i.name = 'IX_T_BILL_OF_GOODS_MedicationForms')
	drop index IX_T_BILL_OF_GOODS_MedicationForms on PHARM.T_BILL_OF_GOODS;
go