I had a c-section.... and my then 3.5-4 year old daughter, came to visit and see me and her baby brother.
It was FINE! And it was a very special time for her.
She came to visit me, as soon as I was recovered and out of the recovery room. She stayed with my Husband... .and he brought her to visit me everyday I was in the hospital. 3 Days I was in the hospital.
It is fine.
My Husband and daughter, when at home, would also call me at the hospital, before bedtime. THAT was important for my daughter.
AND, at home, my Husband took care of her... and I wrote down her "routine" for everyday... and it was fine. We also talked to her about it AHEAD of time, before I was in the hospital, so that she knew what to expect. THAT is important... to 'prep' your eldest child.... and explain what will happen when you give birth.... and for when she is at home.
When I was at the hospital, my Husband was with me and Grandma took care of my daughter. THEN, as soon as I was in recovery etc., my Husband went back home, and picked up my daughter, and they came to visit me. It was fine.
have a CLOSE friend, that your daughter knows well... and have that friend, HELP take care of and babysit your daughter, while you are having your c-section. AND have plenty of familiar toys or her loveys, with her.... so she feels comfortable... and they can do something together. THEN, your close friend can then, bring your girl to the Hospital to see you... when you are recovered etc. For example.
BUT, EXPLAIN to your daughter ahead of time, WHO will babysit her... while you are in the hospital... and what will happen.... a child needs to know what is going on... and clue her in.
all the best,
Susan