Representation Learning for Medical Data