All perfect praise be to Allah, The Lord of the Worlds. I testify that there is none worthy of worship except Allah, and that Muhammad is His slave and Messenger.
If the blood is coming out due to the operation, she should fast and pray because the bleeding that prevents her from fasting or praying is only the bleeding of menstruation or the puerperal bleeding.
Allah knows best.