if not exists(select* from sys.indexes i where i.[object_id] = OBJECT_ID('AKUZ.T_MEDICAL_EPISODE', 'U') and i.name = 'IX_MEDICAL_EPISODE_AmbulanceEvent')
CREATE NONCLUSTERED INDEX [IX_MEDICAL_EPISODE_AmbulanceEvent] ON [AKUZ].[T_MEDICAL_EPISODE] ([AmbulanceEvent]) WITH (FILLFACTOR=95, MAXDOP = 0, SORT_IN_TEMPDB = ON)