Breaking News: President Obama makes the right call.

President Obama on Thursday signed a memorandum requiring hospitals to allow gays and lesbians to have non-family visitors and to grant their partners medical power of attorney.

The president ordered the Department of Health and Human Services to prohibit discrimination in hospital visitation. The memo is scheduled to be made public Friday morning, according to an administration official and another source familiar with the White House decision.

An official said the new rule will affect any hospital that receives Medicare or Medicaid funding.

The decision injects the president squarely into the debate over gay marriage by attempting to end the common practice by many hospitals of insisting that only family members by blood or marriage be allowed to visit patients.

Gay activists have argued for years that recognizing gay marriages would ease the emotional pain associated with not being able to visit their partners during a health crisis.

By contrast, opponents of gay marriage have said the visitation issue is a red herring, and have argued that advocates want to provide special rights for gays and lesbians that others do not have.