Family practice/internal medicine is arguably one of the most important roles, but many new doctors specialize so that they can better "cash in" on their M.D. degree. It's much cheaper to be proactive than reactive, but medicine doesn't think that way.
Another problem is that Medicine spends a ton of money trying to keep old people alive for a few more days.
For example, my grandfather was somehow talked into have his pacemaker replaced a few months before his 101st birthday. There were complications, infections, etc, and my aunt had to fight to get him on hospice care. Replacing this pacemaker was a mean thing to do to an old man who'd spent years hoping to die in his sleep. It would have been kinder to have never given him the pacemaker in the first place. He would've passed away 10 years earlier, but those last 10 years were of little value to him.
Obamacare has only made "paying the bill" for medicine even more problematic.