Before I formed you in the womb I knew you, and before you were born I consecrated you. 72 My frame was not hidden from you, when I was being made in secret, intricately wrought in the depths of the earth. 73

Catechism number 2279

Even if death is thought imminent, the ordinary care owed to a sick person cannot be legitimately interrupted.
The use of painkillers to alleviate the sufferings of the dying, even at the risk of shortening their days, can be morally in conformity with human dignity if death is not willed as either an end or a means, but only foreseen and tolerated as inevitable
Palliative care is a special form of disinterested charity.
As such it should be encouraged.

Suicide

Official source ↗