“We’re thrilled,” said Dr. Peter Slavin, president of Mass. General. “We think it’s a wonderful statement about the 23,000 people who work here every day and night to make a difference in the lives of patients.”

The hospital announced plans to celebrate on Tuesday with Mayor Thomas M. Menino and an abbreviated version of the Duck Boat “rolling rally” normally held for the city’s championship sports teams.

Get Business Headlines in your inbox:

The Globe's latest business headlines delivered every morning, Monday through Friday.

At Johns Hopkins, meanwhile, spokesman Gary Stephenson offered polite congratulations while blaming changes made to the methodology this year for affecting “the ranking of many organizations, including Johns Hopkins.”

“It’s understandably a bit tough to pass the baton,” he added, “but all of the elements that have gone into ranking us so very high for so many years remain firmly in place.”

US News did indeed tweak its complicated ranking formula this year, placing a little less emphasis on an institution’s reputation — based on a survey of physicians who are asked to name hospitals they consider best in their specialty — and more on quality measures such as mortality rates, nurse-to-patient ratio, and use of advanced technologies.

“Any of those could have been the factor” in Mass. General’s edging out of Hopkins this year, said US News health rankings editor Avery Comarow. “I just plain don’t know. But it’s not as if Mass. General was lurking in the shadows; it’s always been at or near the top of our ranking.”

Brigham and Women’s Hospital ranked ninth in the magazine’s honor roll of top 17 hospitals — defined as those that perform at or near the top in six or more specialities including cancer, urology, and orthopedics.

Mass. General paid $22,500 for the rights to use the US News logo in its print advertising and on its website to promote its number one status, but Slavin said that any sort of ranking needs to “be taken with a grain of salt since it’s an imperfect science.”

Comarow agreed, saying US News “never set out to try to identify hospitals that are best for the kind of care most patients need from hospitals,” meaning routine care. Rather, the rankings are aimed at a small percentage of patients with complex cases who really need the best of the best.

Those who go in for a knee replacement or angioplasty don’t need the top-ranked institution in orthopedics or heart surgery but rather should look for a surgeon with vast experience and a low complication rate, said Comarow. “Good doctors won’t resent patients for asking for these statistics. They should have that data.”

Several years ago, he said, he opted for heart bypass surgery at a hospital that wasn’t ranked for heart surgery in order to get a surgeon who had experience with a minimally invasive approach that was still experimental at that time.

Where a top-ranked hospital may prove useful, Comarow added, is for patients with a rare condition or complicating factors such as advanced age or a health conditions such as diabetes and hypertension that could complicate their treatment or surgery.

But patients still need to do their homework to find a highly competent doctor, even at a top-ranked hospital. “Even if you go to Mass. General,” said Comarow, “that doesn’t mean you’ll get the best surgeon there; the rankings are a screen, just a first pass.”

Deborah Kotz can be reached at dkotz@globe.com. Follow her on Twitter @debkotz2.

BostonGlobe.com complimentary digital access has been provided to you, without a subscription, for free starting today and ending in 14 days. After the free trial period, your free BostonGlobe.com digital access will stop immediately unless you sign up for BostonGlobe.com digital subscription. Current print and digital subscribers are not eligible for the free trial.

Thanks & Welcome to Globe.com

You now have unlimited access for the next two weeks.

BostonGlobe.com complimentary digital access has been provided to you, without a subscription, for free starting today and ending in 14 days. After the free trial period, your free BostonGlobe.com digital access will stop immediately unless you sign up for BostonGlobe.com digital subscription. Current print and digital subscribers are not eligible for the free trial.