Care of the elderly, Medicines planning