Multi-task Learning via Adaptation to Similar Tasks for Mortality Prediction of Diverse Rare Diseases