What factors should be considered to avoid legal Risk in hospital-based care?