You should buy/make her something for when she gets out of the hospital. Maybe a bouquet of flowers or a small teddy bear just to show your girlfriend that you're there for her in her time of need. No matter how bad you're feeling atm, she's most likely feeling worse. You need to put yourself aside and concentrate on her feelings right now.
Plus a small task will help the time go by and distract your mind for a bit.
Plus a small task will help the time go by and distract your mind for a bit.