Machine learning can revolutionize healthcare, but it also carries legal risks