IF NOT EXISTS (SELECT * FROM sysobjects WHERE name = 'DrugCodeMapping')
BEGIN
CREATE TABLE [dbo].[DrugCodeMapping](
	[IRCCode] [VARCHAR](20) NOT NULL,
	[GTINCode] [VARCHAR](20) NULL,
	[GenericCode] [VARCHAR](5) NULL,
	[ATCCode] [VARCHAR](10) NULL,
	[ERXCode] [VARCHAR](10) NULL,
	[GenericName] [NVARCHAR](MAX) NULL,
	[EnName] [NVARCHAR](MAX) NULL,
	[FaName] [NVARCHAR](MAX) NULL,
	[PackageCount] [INT] NULL,
	[ProduceCompanyId] [VARCHAR](15) NULL,
	[Scope] [NVARCHAR](MAX) NULL,
 CONSTRAINT [PK_DrugCodeMapping] PRIMARY KEY CLUSTERED 
(
	[IRCCode] ASC
)
) ON [PRIMARY] 
End