Updated

WASHINGTON -- President Obama on Friday tweeted about his decision to require hospitals that accept Medicare and Medicaid payments from the U.S. government let patients choose which persons, including gay and lesbian partners, can visit them and help make critical health decisions.

"Expanding hospital visitation rights -- same-sex partners and others should not be barred from a loved one's bedside in a time of need," the president posted on the Twitter Web site.

With no fanfare, the White House on Thursday night released a statement by Obama instructing the Health and Human Services Department to draft rules requiring federally subsidized hospitals to grant all patients the right to designate people who can visit and consult with them at crucial moments.

The directive said Medicare-Medicaid hospitals, which include most of the nation's facilities, may not deny visitation and consultation privileges on the basis of race, color, national origin, religion, sex, sexual orientation, gender identity or disability.

The new rules, Obama said, should "guarantee that all patients' advance directives, such as durable powers of attorney and health care proxies, are respected," and that patients' designees be able to "make informed decisions regarding patients' care."

The tweet appears to confirm a statement by The Human Rights Campaign, which backs gay rights, that Obama based his decision in part on a New York Times article about a lesbian couple in Miami. They were kept apart while one lay dying in a hospital despite having an "advanced health care directive" asking for full visitation rights for each other.

"Discrimination touches every facet of the lives of lesbian, gay, bisexual and transgender people, including at times of crisis and illness," said HRC President Joe Solmonese. "The president's action today will help ensure that the indignities" suffered by the Miami patient and her children will not happen to others.

In his statement, Obama said: "Every day, all across America, patients are denied the kindnesses and caring of a loved one at their sides -- whether in a sudden medical emergency or a prolonged hospital stay. Often, a widow or widower with no children is denied the support and comfort of a good friend."

He added: "Also uniquely affected are gay and lesbian Americans who are often barred from the bedsides of the partners with whom they may have spent decades of their lives -- unable to be there for the person they love, and unable to act as a legal surrogate if their partner is incapacitated."

Without the expanded visitor-designation rights, Obama said, "all too often, people are made to suffer or even to pass away alone, denied the comfort of companionship in their final moments while a loved one is left worrying and pacing down the hall."

The Associated Press contributed to this report.