Artificial intelligence in healthcare: a critical analysis of the legal and ethical implications · Study