IF NOT EXISTS(
    SELECT *
    FROM sys.columns 
    WHERE Name      = N'procedureAbbreviation'
      AND Object_ID = Object_ID(N'pal_MedicalProcedure'))
BEGIN
    ALTER TABLE pal_MedicalProcedure
	ADD procedureAbbreviation VARCHAR(350); 
END



IF  NOT EXISTS (SELECT * FROM sys.objects 
WHERE object_id = OBJECT_ID(N'[dbo].[pal_MedicalPatientProcedureBooking]') AND type in (N'U'))
BEGIN

	CREATE TABLE [dbo].[pal_MedicalPatientProcedureBooking](
		[recId] [int] IDENTITY(1,1) NOT NULL,
		[surfaceItemId] [int] NULL,
		[procedureId] [int] NULL,
		[dateSaved] [datetime] NULL,
		[userIdSaved] [int] NULL,
	 CONSTRAINT [PK_pal_MedicalPatientProcedureBooking] PRIMARY KEY CLUSTERED 
	(
		[recId] ASC
	)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
	) ON [PRIMARY]

END