42 U.S. Code § 215 - Detail of Service personnel
The Secretary is authorized, upon the request of the head of an executive department, to detail officers or employees of the Service to such department for duty as agreed upon by the Secretary and the head of such department in order to cooperate in, or conduct work related to, the functions of such department or of the Service. When officers or employees are so detailed their salaries and allowances may be paid from working funds established as provided by law or may be paid by the Service from applicable appropriations and reimbursement may be made as agreed upon by the Secretary and the head of the executive department concerned. Officers detailed for duty with the Army, Air Force, Navy, or Coast Guard shall be subject to the laws for the government of the service to which detailed.
Upon the request of any State health authority or, in the case of work relating to mental health, any State mental health authority, personnel of the Service may be detailed by the Surgeon General for the purpose of assisting such State or a political subdivision thereof in work related to the functions of the Service.
The Surgeon General may detail personnel of the Service to any appropriate committee of the Congress or to nonprofit educational, research  or other institutions engaged in health activities for special studies of scientific problems and for the dissemination of information relating to public health.
Personnel detailed under subsections (b) and (c) of this section shall be paid from applicable appropriations of the Service, except that, in accordance with regulations such personnel may be placed on leave without pay and paid by the State, subdivision, or institution to which they are detailed. In the case of detail of personnel under subsections (b) or (c) of this section to be paid from applicable Service appropriations, the Secretary may condition such detail on an agreement by the State, subdivision, or institution concerned that such State, subdivision, or institution concerned shall reimburse the United States for the amount of such payments made by the Service. The services of personnel while detailed pursuant to this section shall be considered as having been performed in the Service for purposes of the computation of basic pay, promotion, retirement, compensation for injury or death, and the benefits provided by section 213 of this title.
Except with respect to the United States Coast Guard and the Department of Defense, and except as provided in agreements negotiated with officials at agencies where officers of the Commissioned Corps may be assigned, the Secretary shall have the sole authority to deploy any Commissioned Corps officer assigned under this section to an entity outside of the Department of Health and Human Services for service under the Secretary’s direction in response to an urgent or emergency public health care need (as defined in section 204a(a)(5) of this title).
 So in original. Probably should be followed by a comma.
In subsec. (a), Air Force was inserted on the authority of section 207(a), (f) of act July 26, 1947, ch. 343, title II, 61 Stat. 502, which established a separate Department of the Air Force, and Secretary of Defense Transfer Order No. 40 [App. A(74)], July 22, 1949, which transferred certain functions, insofar as they pertain to the Air Force, which were not previously transferred to the Department of the Air Force and Secretary of the Air Force. Section 207(a), (f) of act July 26, 1947, was repealed by section 53 of act Aug. 10, 1956, ch. 1041, 70A Stat. 641. Section 1 of act Aug. 10, 1956, enacted “Title 10, Armed Forces”, which in sections 8010 to 8013 continued the Department of the Air Force under the administrative supervision of a Secretary of the Air Force.
2006—Subsec. (e). Pub. L. 109–417 added subsec. (e).
1979—Subsec. (c). Pub. L. 96–76, § 309(a), inserted provisions authorizing detail of personnel to appropriate committees of Congress.
Subsec. (d). Pub. L. 96–76, § 309(b), inserted provisions relating to agreements by States, etc., for reimbursement upon detail of personnel.
1949—Subsec. (d). Act Oct. 12, 1949, substituted “the computation of basic pay” for “longevity pay”.
1946—Subsec. (b). Act July 3, 1946, provided for detail of personnel on request from a State mental health authority.
Amendment by act Oct. 12, 1949, effective Oct. 1, 1949, see section 533(a) of act Oct. 12, 1949, set out as a note under section 854a of Title 33, Navigation and Navigable Waters.
For transfer of authorities, functions, personnel, and assets of the Coast Guard, including the authorities and functions of the Secretary of Transportation relating thereto, to the Department of Homeland Security, and for treatment of related references, see November 25, 2002, as modified, set out as a note under section 542 of Title 6.sections 468(b), 551(d), 552(d), and 557 of Title 6,
Functions of Public Health Service, Surgeon General of Public Health Service, and all other officers and employees of Public Health Service, and functions of all agencies of or in Public Health Service transferred to Secretary of Health, Education, and Welfare by Reorg. Plan No. 3 of 1966, eff. June 25, 1966, 31 F.R. 8855, 80 Stat. 1610, set out as a note under section 202 of this title. Secretary of Health, Education, and Welfare redesignated Secretary of Health and Human Services by section 509(b) of Pub. L. 96–88 which is classified to section 3508(b) of Title 20, Education. Office of Surgeon General, abolished by section 3 of Reorg. Plan No. 3 of 1966, reestablished within the Office of the Assistant Secretary for Health, see Notice of Department of Health and Human Services, Office of the Assistant Secretary for Health, Mar. 30, 1987, 52 F.R. 11754.
Functions of Federal Security Administrator transferred to Secretary of Health, Education, and Welfare and all agencies of Federal Security Agency transferred to Department of Health, Education, and Welfare by section 5 of Reorg. Plan No. 1 of 1953, set out as a note under section 3501 of this title. Federal Security Agency and office of Administrator abolished by section 8 of Reorg. Plan No. 1 of 1953. Secretary and Department of Health, Education, and Welfare redesignated Secretary and Department of Health and Human Services by section 509(b) of Pub. L. 96–88 which is classified to section 3508(b) of Title 20.
Pub. L. 91–604, § 15(b)(1)–(8)(A), Dec. 31, 1970, 84 Stat. 1710–1712, as amended by Pub. L. 112–81, div. A, title VI, § 631(f)(4)(B), Dec. 31, 2011, 125 Stat. 1465; Pub. L. 112–239, div. A, title X, § 1076(a)(9), Jan. 2, 2013, 126 Stat. 1948, provided that: