Filling in referrals and removing old investigations