Pregnant during surgery?
Doctors date the pregnancy by the first day of the last period, so if she's 4 weeks, she conceived 2 weeks ago. That is crazy, though!
The only advice I can give is to make sure she's on top of her vitamins every day and does as much as she can to eat enough for her and baby. She also should be working very closely with her OB and her surgeon's office to get the proper prenatal/postsurgical care. I got pregnant 5 months post op and that was hard enough, I couldn't imagine being pregnant at a time when it still hurt to eat/drink. Best of luck to her.
The test was negative the day of surgery because if she is "4 weeks" she actually wasn't pregnant yet, and even if she is 6, it would have been way to early to register on a urine test. She will have to work closely with her docs measuring her levels, and really force herself to stay hydrated (a big challenge right after surgery anyway). I imagine it will not be an easy road, but she and the baby could easily both turn out ok if she really keeps on top of her nutrition as much as possible. Good luck to her.