Sorry to hear that man.
Definitely talk to your doctor. Ask your doctor how, given your condition, you can safely work with the most weight possible. You've got to engage those large muscle groups, for your health, if at all possible, somehow.
After the deadlift and squat, the next exercises...