Angelina,
Without giving up hope, from my experience with my parents, the plan become to keep the patient comfortable, safe, and engaged. For us, it was a time for having family and friends close as much as possible, making sure that dad (then mom) knew they were loved and appreciated. Hospice help greatly with the daily physical comfort. Hospice needed to be accepted - for a while dad was not ready to accept the inevitability described by his doctors.
From a more practical standpoint, it is time to make sure that the survivors are cared for as well. Depending on the situation, other's lives will change. Easing the change for survivors is also important, even as it may be an uncomfortable task to consider. The primary caretaker(s) need time off to decompress. Lawers and bankers may need to be involved in protecting or transferring assets. All those things weigh on the survivors, but do need attention, sooner rather than later.
Please seek whatever help may be needed from doctors and the care team. But most importantly, take care of yourself so that you can best help the patient. It is a tough time for all involved.
Best,
Jack