This article primarily examines the potential risks that the use of artificial intelligence in healthcare could bring to light, assessing its current status through existing legal and ethical values. It then addresses the role of explainable artificial intelligence in mitigating the effects of future AI use in the healthcare sector. It discusses how artificial intelligence can be utilized to increase patient satisfaction, support health professionals, and improve overall health outcome by minimizing potential risks caused by AI use.