A doctor may not always be seated in the cabin on your flight, but most commercial airlines are aware that in-flight medical emergencies can happen (I've written about one or two such instances myself in my time at USA TODAY). Most carriers contract with on-the-ground experts in emergency medicine at altitude.