(B) and (C), and (2) by redesignating subparagraph (D) as subparagraph (B). (b) Conforming amendment Paragraph (2) of section 223(c) of the Internal Revenue Code of 1986, as amended by the preceding sections of this Act, is further amended by striking and any dependent (as defined in section 152, determined without regard to subsections (b)(1), (b)(2), and (d)(1)(B) thereof) of such individual and inserting any dependent (as defined in section 152, determined without regard to subsections (b)(1), (b)(2), and (d)(1)(B) thereof) of such individual, and any child (as defined in section 152(f)(1)) of such individual who has not attained the age of 27 before the end of such individual's taxable year . (c) Effective date The amendments made by this section shall apply with respect to insurance purchased after the date of the enactment of this Act in taxable years beginning after such date. 6. Special rule for certain medical expenses incurred before establishment of account (a) In general Paragraph (2) of section 223(c) of the Internal Revenue Code of 1986, as amended and redesignated by the preceding sections of this Act, is further amended by adding at the end the following new subparagraph: (C) Certain medical expenses incurred before establishment of account treated as qualified An expense shall not fail to be treated as a qualified medical expense solely because such expense was incurred before the establishment of the health savings account if such expense was incurred— (i) during either— (I) the taxable year in which the health savings account was established, or (II) the preceding taxable year, in the case of a health savings account established after the taxable year in which such expense was incurred but before the time prescribed by law for filing the return for such taxable year (not including extensions thereof), and (ii) for medical care which (but for the fact that it was incurred before the establishment of the account) otherwise meets the requirements of the preceding subparagraphs. . (b) Effective