You may have a case for a lawsuit and compensation. A jail or prison is required by law to provide the medical needs of their inmates. Failure to do so is constitutionally prohibited cruel and unusual punishment, and when it leads to injury or death, the prison can be found liable and forced to pay compensation.