?How exactly does a doctor check if you’re dilated and does it hurt

Please explain new mom here