The invention is a method which uses "the template method" to solve that it is difficult to write the medical record and prescription on the computer. each kind of disease name, the host sues, the present medical history, formerly history, the medical examination, and standard treating plan are inputted into the disease template databank in advance, each kind of medicine name, tablet, capsule, intermuscular injection, the vein injection, vein drip and other dosage-forms information are inputted into the data bank in advance. Through the computer procedure, only need several letters, and make a little change according to the reality, a serial of medical file can accomplished.