(CNN) Terminally ill adults in New Jersey will now be able to ask for medical help to end their lives.
In April, Gov. Phil Murphy signed the Medical Aid in Dying for the Terminally Ill Act. It goes into effect Thursday.
It allows adults with a prognosis of six months or less to live to get a prescription for life-ending medication.
Other jurisdictions that allow physician-assisted suicide are: California, Colorado, Oregon, Vermont, Washington, Hawaii, Montana and the District of Columbia.
The law requires either a psychiatrist or psychologist determine that the patient has the mental capacity to make the decision. The prescription is a series of self-administered pills that can be taken at home.
"Allowing residents with terminal illnesses to make end-of-life choices for themselves is the right thing to do," Murphy said in a statement.
The bill narrowly passed in the Senate, and some who voted against it are apprehensive about its effects.
"The bill has lasting ramifications and lots of loopholes," said Republican Sen. Robert Singer. "We are so concerned about opioids, and not trusting doctors with opioids. But now we are willing to trust them with this."
New Jersey legislators have tried passing versions of this bill since 2014, but this was the first time the bill went to a vote in the Senate.
At least 19 other states are considering physician-assisted suicide bills.