Minnesota hospitals have lost millions in penalties to the federal Medicare program over the past three years for subpar performance, though they’re in much better shape than hospitals elsewhere.

The state’s 50 largest hospitals are collectively being penalized 0.16 percent of their inpatient Medicare revenue this year — amounting to $2.4 million — for failing to prevent patients from being readmitted within 30 days of their prior hospital stays.

Medicare’s average penalty nationally is 0.5 percent for failing to prevent readmissions, an indicator that hospitals didn’t adequately treat patients and prepare them for safe returns home. In Minnesota, five hospitals are being docked more than 1 percent of their inpatient ­revenue from Medicare.

The Star Tribune assembled the Medicare penalties for the past three years, along with data provided by the Minnesota Hospital Association on how much the 2016 penalties are expected to be, into a database that is searchable by hospital.

The financial losses themselves might not sting; Regina Hospital in Hastings is expected to lose only $85,000 this year due to a 1.94 percent penalty that is one of the 200 worst in the nation. (But even penalties that are less than 1 percent can add up when considering that Medicare pays for care for the nation’s elderly and accounts for 25 to 50 percent of most hospitals’ revenue.)

But the publicly accessible penalty can be compared, and hospital officials don’t want to be on the wrong end of the list.

“We want to know where we stand in the community,” said Tim Sielaff, chief medical officer for Allina Health, which operates Regina and a dozen other hospitals around the metro.

More important than pride, he said, is analyzing poor performance and addressing it so that patients receive better care.

Readmissions are but one of three things measured publicly by Medicare that have financial implications.

Hospitals also are measured by their rates of infections such as sepsis and preventable conditions such as bed sores that patients suffer ­during their stays. Those ranked in the bottom 25 percent nationally are penalized, and the amounts are more severe because they apply not only to what Medicare pays for inpatient care, but what the federal program pays hospitals for training, building improvements and other expenses.

Four Minnesota hospitals are losing more than $1 million this year under this program.

On the other hand, a Medicare program ranking hospital value penalizes some hospitals but then gives the proceeds to top-performing hospitals. Value is measured by patient feedback and by indicators of efficiency, clinical performance and improvement from prior years.

On this measure, only five Minnesota hospitals are paying penalties this year. Collectively, the state is expected to gain $5.8 million due to the high value of its hospitals.

Seven hospitals hold the distinction this year of being rewarded for value while avoiding penalties for readmissions and infections. The biggest rewards are going to Mayo Clinic-Saint Marys Hospital in Rochester, Fairview Southdale and Fairview Northland Medical Center.

Regions Hospital in St. Paul and the University of Minnesota Medical Center in Minneapolis are the only two being penalized financially by all three measures this year.

Hospital leaders point out that the penalties are based on year-old data, don’t reflect recent improvements, and should be used by the public to ask questions of hospitals rather than rule them out.

Go to startribune.com/datadrop to find data for your hospital.