The aircraft was operating a scheduled passenger service from Toronto (Pearson) to London (Heathrow).On first contact with Shannon ATC the Commander made a PAN call and requested a diversion to Shannon Airport due to a medical emergency.ATC were advised that the First Officer was incapacitated.The aircraft landed safety at Shannon where medical assistance was waiting to meet the aircraft.