AI in diagnosis

Everything is revolving around AI today.
Be it diagnosis or self- medication by patients.

So, the question is- Who is responsible for the diagnosis or treatment gone wrong?