I need to tell my friend that I won't be able to visit her for a couple of months. 

I have a high risk pregnancy, and my medical team want me to isolate as much as possible before my delivery which is about a month away. I'm working from home, and aside from visiting my parents once a week, I only leave the house for my hospital appointments.

She will be devastated by this news. She won't understand why my parents get to see me and she can't. She was very upset and split when I explained that only my parents will be able to visit me and the newborn for the first few weeks; so I know this will hurt her even though it's on the advice of several doctors, nurses and midwives. 

My question is: when I tell her, is it better to try to help her understand this isn't a reflection of her in the hopes she won't split again, or should I just tell her the situation and let her process it on her own and wait it out if she splits?