Expert System Knowledge Base
Toggle patient symptoms, then forward-chain the rules.
Facts (toggle)
Rule base
IF fever AND cough THEN likely flu
IF fever AND rash THEN likely measles
IF flu THEN recommend rest and fluids
IF measles THEN recommend isolation
Derived so far
none — toggle some facts
In forward chaining, satisfied rules fire and their conclusions become new facts, cascading until nothing new can be derived (e.g. facts fever+cough → flu → rest).