Deep understanding and generation of medical text and beyond