The Automated Patient Engine