The term "hospital" ... means an institution which—
(1) is primarily engaged in providing, by or under the supervision of physicians, to inpatients
(A) diagnostic services and therapeutic services for medical diagnosis, treatment, and care of injured, disabled, or sick persons, or
(B) rehabilitation services for the rehabilitation of injured, disabled, or sick persons;
(...)
(5) provides 24-hour nursing service rendered or supervised by a registered professional nurse, and has a licensed practical nurse or registered professional nurse on duty at all times; ...
(...)
(7) in the case of an institution in any State in which State or applicable local law provides for the licensing of hospitals,
(A) is licensed pursuant to such law or
(B) is approved, by the agency of such State or locality responsible for licensing hospitals, as meeting the standards established for such licensing