I would agree with groom on this, for medical reasons it is perfectly allowable, but I wonder if you will be allowed to accompany her inside the hospital, it may be wise to ring the hospital to check the procedure, unless your friends appointment letter gives these details.
What does groom think on this, is your friend fully mobile?
Mike