An inquiry into Linda Allan's death at Victoria Hospital in Kirkcaldy found there were "opportunities to detect the deterioration in her condition" before she died from multi-organ failure, cardiac arrest and complications of a perforated gastric ulcer.