A coroner says the death of a 65-year-old man was certain after a hospital incorrectly diagnosed gastrointestinal bleeding as pneumonia.