This paper describes an automatic programming tool for the end users in the medical knowledge representation. When end users work with the rule generating tool (RGT) that we have designed, they can represent an idea using an Image-oriented interface such as a picture, movie, audio reference or two dimensional bar code. Such representations can be valuable tools for medical study, diagnosis, decision making and treatment monitoring to supplement the expertise of medical personnel. The RGT will automatically generate rules in the logic programming language Prolog and then add them to the knowledge base.