Mortgage lenders look at a number of factors — credit score, recent mortgage applications and job changes, among them. But most importantly, they look at your DTI ratio.
Medical debt does factor into your DTI. In addition, unpaid medical debt can also have a negative effect on your credit score, which can affect your ability to qualify for a mortgage.