Transsexuals have a constitutional right to maintain medical confidentiality and they do not lose that right upon being jailed, a federal appeals court declared Friday for the first time in the Second Circuit.

In a groundbreaking ruling, a three-judge panel of the U.S. Court of Appeals for the Second Circuit found that a corrections officer who told others in a Buffalo-area prison that an inmate was an HIV-positive transsexual violated the inmate’s right to privacy and subjected her to cruel and unusual punishment.