A doctor is simply a database of past cases, information they've read, and medical knowledge.
They take in symptoms, perform tests, analysis output, repeat
They take in symptoms, perform tests, analysis output, repeat
They take in requirements, perform coding, analyse output, repeat.