Fairness-Optimized Synthetic EHR Generation for Arbitrary Downstream Predictive Tasks