‘Reprehensible’ doctor ordered detention of dying woman

A woman was unnecessarily and probably illegally detained under mental health laws less than two hours before she died, a coroner has found.