42 USC 217 - Use of Service in time of war or emergency

In time of war, or of emergency proclaimed by the President, he may utilize the Service to such extent and in such manner as shall in his judgment promote the public interest. In time of war, or of emergency involving the national defense proclaimed by the President, he may by Executive order declare the commissioned corps of the Service to be a military service. Upon such declaration, and during the period of such war or such emergency or such part thereof as the President shall prescribe, the commissioned corps
(a)  shall constitute a branch of the land and naval forces of the United States,
(b)  shall, to the extent prescribed by regulations of the President, be subject to the Uniform Code of Military Justice [10 U.S.C. 801 et seq.], and
(c)  shall continue to operate as part of the Service except to the extent that the President may direct as Commander in Chief.