An implantable medical system that comprises a gas unit for supplying gas that is essentially oxygen and at least one functional cells unit configured to receive oxygen from the gas unit so as to maintain the cells in a viable condition. The cells unit is flexible. Several embodiments are disclosed.