A Generic Bed Planning Model