Using artificial intelligence to diagnose COVID-19