The 40-year-old actress and screenwriter had a hysterectomy when she was 31 because of her long-term battle with endometriosis.