SPRINGFIELD, Ill. (AP) — The Illinois Supreme Court has upheld a 2012 law that sought to clarify property tax exemptions for charitable hospitals.

The court voted 7-0 in an opinion issued Thursday. It ruled on a law that allows issuing tax exemptions to hospitals when the value of the “charity care” or “free or discounted services” they provide exceed its estimated tax liability.

Constance Oswald argued in her lawsuit that the law requires issuing an exemption regardless of whether the constitutional requirements are met. The court found that the language of the law merely allows allowing an exemption in warranted cases.

Illinois Health and Hospital Association spokesman Danny Chun says the law has cleared up previous confusion and ensured financially stretched hospitals can serve their communities.