Generally, public entities are immune from liabilities for injuries to or by prisoners [Gov.C. § 844.6(a)]. However, public employees are not shielded from liabilities for injuries legally caused by their “negligent or wrongful act or omission” [Gov.C. § 844.6(d)]. They are also liable for failure to furnish or obtain medical care for a prisoner who they know, or have reason to know, needs immediate medical care. The liability is limited to situations where the public entity intentionally or unjustifiably ignores serious and obvious medical conditions [Gov.C. § 845.6].
To know if a prisoner may or may not have any claim against a public entity for injuries sustained while detained, it is best to consult with a lawyer who is an expert in personal injury cases.