This doesn't mean that people don't deserve to earn a living. The doctor in the article managed to find a way to make the man's procedure happen without taking a loss on it.
But it's an inaccurate simplification to consider healthcare a market like any other -- inaccurate simplifications hurt any system and that's why our current 'market' system has more bureaucratic red tape, higher prices and worse outcomes than actual socialist systems in the rest of the western economies.