1. A method for automatically evaluating the quality of a medical record, the method comprising: providing a knowledge base of standard facts of a standard medical record pattern; generating temporary facts from a medical record to be evaluated; constructing a query to said knowledge base from said temporary facts, comprising: forming a list of the temporary facts and a list of the standard facts; removing all facts that are present in both lists; and forming a query using remaining standard facts and negations of remaining temporary facts; executing said query by a reasoning engine; and determining the quality of said medical record to be evaluated using a processor to produce an evaluation result based on said query.