Section 24(3)(b) in The U.P. Dookan Aur Vanijya Adhisthan Adhiniyam, 1962
(b)If the woman employee-(i)refuses to submit herself to medical examination, or-(ii)on such examination is found not pregnant, or not likely to be delivered of a child within six weeks of the date from which permission for absence from duty is desired, the employer may refuse to relieve her from duty, so however that the employee, if found pregnant shall be allowed to remain absent from duty for a period of six weeks prior to the expected date of her delivery.