Identifying medical conditions warranting use of drugs