I think you could present medical records, same as how it works currently for public school vaccination mandates.
It's weird how many people are acting like this is some bizarre, novel thing. We've had mandatory vaccines for public schooling for decades now. Vaccines are also commonly required for some types of visas/immigration. Requiring vaccination in the interest of public health is not new.