Text this: Transformer patient embedding using electronic health records enables patient stratification and progression analysis