If you get any of the good AI texts, there will be a section on expert systems; you can, if forced, work from there and implement your own.
: "if-then", , 4 . , :
IF blood temperature > 41Β°C
THEN patient.has-fever := TRUE
IF patient has wet-sounding breathing
THEN patient.has-pneumonia
IF patient.has-fever AND patient.has-pneumonia
THEN CONCLUDE bacterial pneumonia. ACTION prescribe Augmentin
, , , . ( chaing ), Wikipedia .
, , , , . , - .