It is hoped that a new system to investigate unexpected deaths at hospitals will help medical personnel learn from mistakes and lower patient fatalities.