A sweeping bill designed to curb the raging opiate epidemic in Massachusetts unanimously cleared the state House of Representatives today, with the Senate expected to take up the substance abuse bill tomorrow.

The bill would screen high school students for opioid abuse and limit a first prescription of any opioid to a seven-day supply — but nixes Gov. Charlie Baker’s call to let doctors to commit patients involuntarily to drug treatment facilities for up to 72 hours if they’re considered an immediate danger.

House Speaker Robert DeLeo denied that the bill is a watered-down version of Baker’s proposal, saying he was not sure whether Baker’s proposal to hold people for three days was constitutional.

“Quite frankly we hit the proper balance,” DeLeo said. “This is a very strong bill.”

The bill, a compromise between House and Senate versions, passed the House 153-0.

The speaker told reporters before the vote that he has heard that other states are interested in the Massachusetts bill.

“People from around the country, other governors, had stated they felt that this was a very good piece that probably would serve as a template for other states to follow,” DeLeo said.

DeLeo said he expects the Senate will vote on the bill tomorrow — with the hope that Baker could have the bill to sign the same day.

The legislation also calls for adding information on opiate use and misuse to annual head injury safety programs for high schools and launching a Prescription Monitoring Program that requires prescribers to check each time they prescribe an opioid. Additional training is also included.

The high school programs would screen all students for opioid abuse, although parents would be able to opt their children out of the screenings.

“The fact that we are having these discussions night now is really a good sign that people are responding to it,” said Rep. Elizabeth Malia, chair of the Joint Committee on Mental Health and Substance Abuse. “We are going to start talking about this in school because we have to save our kids lives.”