toJSON of Patient class