Machine Learning System for Electronic Medical Records (EMR)