Story highlights A state judge makes the ruling Monday

The ruling could make NM the fifth state to allow doctors to prescribe fatal doses to terminal patients

New Mexico's attorney general is contemplating whether to appeal

In a decision sure to cause debate, a New Mexico judge has ruled that terminally ill, mentally competent patients have the right to get a doctor to end their lives.

The landmark decision Monday by New Mexico Second Judicial District Judge Nan Nash came after a two-day trial and could make New Mexico the fifth state to allow doctors to prescribe fatal prescriptions to terminal patients.

The ACLU and Compassion & Choices, an end-of-life choice advocacy group, filed the lawsuit on behalf of two New Mexico doctors and cancer patient Aja Riggs.

The judge was asked to consider whether the doctors should be allowed to write prescriptions for a terminally ill cancer patient who wanted to use drugs to end her life.

"This Court cannot envision a right more fundamental, more private or more integral to the liberty, safety and happiness of a New Mexican than the right of a competent, terminally ill patient to choose aid in dying," the judge wrote. "If decisions made in the shadow of one's imminent death regarding how they and their loved ones will face that death are not fundamental and at the core of these constitutional guarantees, than what decisions are?"

JUST WATCHED UK man fighting for the right to die Replay More Videos ... MUST WATCH UK man fighting for the right to die 03:32

JUST WATCHED Is assisted suicide ever OK? Replay More Videos ... MUST WATCH Is assisted suicide ever OK? 02:48

New Mexico's Attorney General's office said it was analyzing the decision to see if it would file an appeal.

Years of debate

Most states ban assisted suicide, but aid-in-dying is permitted in Oregon, Washington, Montana and Vermont. The practice has been hotly debated since it was first adopted in Oregon in 1997.

But Riggs, the 50-year-old terminally ill cancer patient named in the New Mexico lawsuit, says she's glad she now has a choice.

"I am really pleased that the court has recognized that terminally ill patients should have more choice in the manner of their death," said Riggs.

The cancer is currently is in remission, but Riggs says statistically her cancer is likely to return.

"Most Americans want to die peacefully at home, surrounded by loved ones, not die in agony in a hospital," she said. "I feel the same way. If my cancer returns and I face intolerable suffering, I want the option to cut it short, and to die peacefully at home."