and (modalitytype='CT' OR modalitytype='MR' OR modalitytype='PET' OR modalitytype='PET-CT' OR modalitytype='PET-IRM' OR modalitytype='SPECT-CT' OR modalitytype='IRM') and dep_id=___dep_id___   and (removeddate is null or removeddate > to_date('___start_date___','YYYY-MM-DD HH24:MI:SS'))