There are forms prescribed by the Act.
What if my boss gives me a hard time?
The law protects your rights during pregnancy, including protection against unfair treatment or discrimination. It's worth making sure that you know what your rights are.
Pl remember law is with you and be polite, humble but as per you medical needs ask for leave.
take due care
all the best.