What are the legal obligations for a private practice MD in the US to render care?

In reading this fark thread based on this news story, it seems many people think a medical doctor is legally obligated to render care to whoever walks into their waiting room.

What’s the straight dope on this? What laws govern the choices a doctor can make about rendering care?