An expert system is a computer system that emulates the decision-making ability of a human expert by reasoning through bodies of knowledge using a combination of rules and heuristics to come up with a solution.
A medical expert system could be used to diagnose and treat patients based on their symptoms and medical history, taking into account various factors such as age, gender, and medical condition.