; and (4) in paragraph (3), as redesignated by paragraph (2) of this subsection— (A) in the matter preceding subparagraph (A), by inserting and subsections (e) and (f) after this subsection ; (B) by redesignating subparagraphs (A) through (C) as subparagraphs (B) through (D), respectively; (C) by inserting before subparagraph (B), as redesignated by subparagraph (B) of this paragraph, the following new subparagraph: (A) Emergency department of a hospital The term emergency department of a hospital includes a hospital outpatient department that provides emergency services. ; (D) by amending subparagraph (C), as redesignated by subparagraph (B) of this paragraph, to read as follows: (C) Emergency services (i) In general The term emergency services , with respect to an emergency medical condition means— (I) a medical screening examination (as required under section 1867 of the Social Security Act, or as would be required under such section if such section applied to an independent freestanding emergency department) that is within the capability of the emergency department of a hospital or of an independent freestanding emergency department, as applicable, including ancillary services routinely available to the emergency department to evaluate such emergency medical condition