The character, who was pregnant with twins, had a heart emergency that needed an operation in the fall finale.