. . "opinion shall be exempt from military duty, except upon such conditions as may be prescribed by law." . .