Vending machine for management of consumables at a hospital