parse resident ID for gender and birthday