Temporal Supervised Contrastive Learning for Modeling Patient Risk Progression