Watson is able to parse natural language and pull out possibly important information. It then applies some very state-of-the-art machine learning to derive the most likely contextual meaning of that information. That contextual meaning can be cross-referenced with billions of other pieces of weighted information to derive further insights.
I come from a family full of doctors. They tend to be smart people, but as Jeopardy showed, even the best player on earth is no match for a machine trained at that discipline.
Once we start adding in genetic information, that will allow machines like Watson to customize diagnoses and treatments based upon your specific genetic profile.
The way they are implemented is by people entering data in an orderly fashion, both those who built the systems ,and doctors . This somewhat limits the system, both from breadth of research and data entry time at the doctor.
But even with those limitations , those systems offer far better diagnoses , especially in the rare cases,than you average and even great doctor.
Unlike with jeopardy, you do not have a huge well organized catalog of information lovingly curated by trivia worshiping nerds. It is a ridicules stumbling block but there you have it. Health records are not normalized and you can't touch them anyway, research is closer to human readable prose and filled with jargon - good luck developing NLP for it if you're "just a programmer". Hell, look at their textbooks and the way they study and are trained, that screams for computerized improvement and is still a tall order.