Whether a student loan is discharged based on hardship is not automatically determined in the bankruptcy process. You must file a petition (called an adversary proceeding) to get a determination.