I had to withdraw money early from a 401k plan to cover loss of wages because my child was hospitalized several months, does that count as "medical expenses" exemption?

The money was for living expenses, not to pay medical bills.