“The court correctly ruled that Jason properly stated an invasion-of-privacy claim against ESPN and Adam Schefter, who we allege improperly published Jason’s medical records. Today’s ruling is a recognition of Jason’s right, as a professional athlete, to oppose the publication of his medical records without his consent,” said the football player’s attorney, Mitchell Schuster of Meister Seelig & Fein.

Pierre-Paul blew his finger off during a July 4 fireworks mishap last year and was treated at Jackson Memorial Hospital in Miami.

The NFL star says Schefter “improperly obtained” Pierre-Paul’s medical chart, showing the defensive end had his right index finger amputated, and posted an image of the records on his Twitter page. The ESPN contributor had nearly 4 million Twitter followers at the time of the 2015 incident.

The New York-based reporter says he tweeted the image of the medical record to bolster a story about the surgery. Pierre-Paul argues that while his injury may have been “a matter of legitimate public concern,” the “chart was not.”

Cooke agreed in a ruling she issued from the bench Thursday morning after an hour of arguments.

“This just went beyond the pale,” sports law expert Daniel Wallach said of Schefter’s decision to post the private records. “If this is not where the line is, where would it be?” said Wallach, of the law firm Becker & Poliakoff. Wallach, who is not involved in the case, expects the decision will mean a quick settlement.

Schefter and ESPN had a perfect right to report on the accidental maiming of a star athlete.

ESPN and Schefter believed that the document ordering Pierre-Paul’s finger amputation constitutes a matter of “legitimate public concern.” Pierre-Paul’s lawyers argued that, while the information reflects a legitimate public concern, the actual medical documentation does not.

That’s the crux of the case. Even if the contents of the medical records become known, are the medical records protected against disclosure — especially if they were obtained in a manner that violates state law?

Bottom line? Next August, Schefter may be going without shaving or sleeping for reasons other than a hokey ESPN fantasy football marathon.