A court filing said the prisoner was at risk for abuse and might not be able to get adequate health care if transferred.