Article 40 of the Irish Constitution (Bunreacht na hÉireann) sets down that you have a right not to have your body or person interfered with. This means that the State may not do anything to harm your life or health.
If you are in custody, you have a right not to have your health endangered while in prison.