There must be legislative change to ensure that elderly and vulnerable patients do not die alone in hospital, a bereaved daughter has told the Covid-19 Inquiry.