Gangrene on the stomach lining got McKinley. Modern medicine definitely would have been able to save him.
I'm not sure when that would have been detectable. By '43 removing his stomach and pumping him full of penicillin would been possible.
EDIT: Lincoln died 8hrs later. Kenedy died 26hrs...