modified patient medicine list to handle multiple medicine