Representation Learning of Structured Data for Medical Foundation Models