The first thing you need to do is to get your face into the hospital.

If it's just your social security card that's causing the problem, consider your card broken; if everyone can't use it, put aside the social security upgrade, it should be the hospital's HIS system that's causing the problem. You can consult your local social security center, and if it's not due to the upgrade, you can ask the hospital to issue a certificate so you can get reimbursed.