IDs are anonymized by mapping them to randomly generated offsetting codes. All dates are uniformly offset by a constant to preserve time intervals while concealing actual dates, and exact ages are replaced with pseudo-ages randomly generated within defined age groups.