BOSTON (AP) — A revised agreement by Attorney General Martha Coakley and Partners HealthCare over the company's plans to acquire Hallmark Health Centers is heading before a judge.

Under a revised deal announced last week, Partners has agreed to cap prices at Hallmark for 6½ years if it acquires the company, which owns Lawrence Memorial Hospital in Medford and Melrose-Wakefield Hospital.

Coakley said Partners also agreed to maintain current psychiatric and behavioral health services at its Hallmark and North Shore facilities.

Coakley says the amended consent judgment is expected to be considered by Suffolk Superior Court Judge Janet Sanders. The next court date is Monday.

Coakley, who is running for governor, has been criticized over the deal by political rivals, including Republican candidate Charlie Baker, who said the deal is too complex.