The constitutional protections that survive incarceration - against cruel and unusual conditions, deliberate indifference to medical needs, and punishment without process - and the federal statute that makes a prisoner exhaust the prison's own grievance system before any of them can be enforced in court.
A person in prison or jail keeps a reduced but real set of constitutional rights. The Eighth Amendment forbids conditions of confinement that deny the minimal civilised measure of life's necessities and forbids officials from being deliberately indifferent to a serious medical need - a known, serious condition left untreated is a constitutional violation, not only malpractice. It also forbids the use of force maliciously to cause harm rather than in a good-faith effort to keep order, and requires officials to take reasonable measures against a known substantial risk of violence from other prisoners. Pretrial detainees, who have not been convicted, are protected by the Fourteenth Amendment's Due Process Clause against conditions that amount to punishment. Prisoners retain the right to practise their religion, to communicate with the courts and with counsel, to be free from racial discrimination, and to some measure of process before a disciplinary sanction that affects the length or the basic conditions of their confinement.
The Prison Litigation Reform Act governs how those rights are enforced. Before filing any federal suit about prison conditions, a prisoner must exhaust the institution's administrative grievance process completely and properly - every step, every deadline, in the form the prison requires - and a suit filed before that is dismissed no matter how strong the claim, though a grievance process that is genuinely unavailable need not be exhausted. The Act also requires payment of the filing fee from the prisoner's account over time, limits the fees a successful prisoner's lawyer may recover, bars compensatory damages for mental or emotional injury without a physical injury, restricts the scope and duration of injunctions over prison conditions, and revokes filing-fee waivers for a prisoner who has had three prior suits dismissed as frivolous.
The claim is brought under the federal civil-rights statute against the individual officials and, for a policy-based violation, against the county for a jail; state prison systems and their departments cannot be sued for damages in federal court, and federal prisoners have almost no damages remedy against federal officers. Qualified immunity applies. Alongside the constitutional claim, a state-law negligence or medical-malpractice claim may lie against the same officials or a private medical contractor, subject to the state's tort claims act.
The single most important thing a prisoner or a family member can do is file the grievance now, follow every step of the prison's procedure to its final appeal, and keep copies - a lawyer cannot cure a failure to exhaust, and most prison-conditions cases are lost on that ground before any court looks at the merits. For a serious medical or safety situation, the family should also write to the warden and the state's department of corrections in parallel, because the record of what officials knew is what a deliberate-indifference claim is built on. Prisoners' rights organisations and law-school clinics take these cases; private lawyers take them mainly where there is a serious injury.
Choose your state. Each link opens the directory page for the city in that state with the most currently published law firms in this practice area; a +n beside the city is how many other cities in the state also have one. The list is generated when this page loads, so a state whose listings have lapsed drops out rather than becoming a dead link.