Joe Raedle/Getty Images Germany OKs law on mandatory measles vaccination The law is set to come into force in March 2020, but concerns remain over the enforcement of the mandatory vaccine.

German lawmakers Thursday approved a law that makes it mandatory for children attending kindergarten and elementary school to be vaccinated against measles. Parents and schools that refuse to comply face potential fines of up to €2,500.

Health Minister Jens Spahn, who proposed the law, said measles are “too often underestimated” and endanger children who are unable to protect themselves.

Compulsory vaccination will also apply to teachers, asylum seekers and refugees in public housing, as well as employees working there. Health insurers will be obliged to enter into agreements with the country's health service to reimburse the cost of vaccination carried out in schools.

The only party to vote against the law was the far-right Alternative for Germany, while the Greens and some members of the Left Party abstained, according to the German Press Agency.

The law is set to come into force in March 2020, but concerns remain over the enforcement of the mandatory vaccine.

Some supporters have expressed fears that anti-vaxxers could fake medical records. Other questions remain about how Germany's obligatory school attendance requirements would play out in cases when a parent refused to vaccinate their child.

CORRECTION: This story was updated to clarify that only refugees and asylum seekers that are in public housing fall under the new law.