In Avengers: Endgame Bruce Banner/Professor Hulk travels back in time to the New York attack depicted in the first Avengers movie and runs into the Ancient One, who tells him that Stephen Strange is currently performing surgery somewhere in the city (and not a master of the mystic arts yet).
However, in Doctor Strange we see Strange take a call about someone with a spinal injury from a prototype battlesuit just as he crashes his vehicle and can no longer perform surgery. I've read that this person was the unfortunate Hammer test-pilot we see during the Senate hearing in Iron Man 2 - but that event is long before the New York attack, so how is Stephen Strange performing surgery after his injuries (before learning to overcome them at Kamar-Taj)?