Foundation model of electronic medical records for adaptive risk estimation | Synapse