On the Representation and Management of Medical records in a Knowledge Based System