The paper presents the results of the development and implementation of an expert system that automatically generates doctors' letters based on the results of laboratory tests. Medical knowledge is expressed using a first order predicate logic based language. The system was implemented and evaluated in the Helix laboratory service.