Basis for the theory of medicine