; and (B) excludes a facility that provide long-term inpatient care. (5) The term substance use disorder treatment facility — (A) includes— (i) a child or adult outpatient facility that provides outpatient substance use disorder services; and (ii) a hospital (including a general acute hospital, a psychiatric hospital, a critical access hospital, a rural emergency hospital, a sole community hospital, a children’s hospital, or other type of hospital as specified by the Secretary) that— (I) provides acute, short-term inpatient substance use disorder treatment services or outpatient services; and (II) may include a military services program to meet the needs of active and retired military servicemembers; and (B) excludes any facility described in paragraph (1)(B). (6) The term psychiatric hospital has the meaning given to such term in section 1861(f) of the Social Security Act. (7) The term rural emergency hospital has the meaning given to such term in section 1861(kkk) of the Social Security Act. (8) The term sole community hospital has the meaning given to such term in section 1886(d)(5)(D)(iii) of the Social Security Act. (h) Funding limitations The Secretary may provide loans and loan guarantees under this section— (1) only to the extent or in the amounts provided in advance in appropriation Acts