The mechanical device is designed to replace the lower part of a diseased heart , and keep patients alive while they await a donor heart for a transplant .